/* ==========================================================================
   fashions — Kannur silks & styles
   Design tokens
   Palette drawn from the kasavu saree itself: cream-and-gold base cloth,
   deep maroon pallu, warm clay skin tones from the product photography.
   ========================================================================== */

:root {
  --ink:        #2a1d15;
  --ink-soft:    #5a4a3e;
  --cream:      #f8f2e6;
  --cream-deep: #efe4d0;
  --maroon:     #7a2331;
  --maroon-deep:#551723;
  --gold:       #b6892f;
  --gold-light: #d8b866;
  --clay:       #c17a4f;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(.4,0,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--maroon-deep);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: 1em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--on-dark { color: var(--gold-light); }
.eyebrow--on-dark::before { background: var(--gold-light); }
.eyebrow--center { justify-content: center; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--cream-deep { background: var(--cream-deep); }
.section--maroon { background: var(--maroon-deep); color: var(--cream); }
.section--maroon h1, .section--maroon h2, .section--maroon h3 { color: var(--cream); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); }

/* ---------- Signature motif: the kasavu border ----------
   A thin-thick double gold rule, echoing the zari border
   woven along the edge of a kasavu saree. Used as a section
   divider, and as a frame that "unwinds" onto product images
   on hover. */
.kasavu-rule {
  height: 10px;
  background:
    linear-gradient(var(--gold), var(--gold)) top / 100% 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom / 100% 1px no-repeat;
  background-color: transparent;
  opacity: .9;
}
.kasavu-rule--light {
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) top / 100% 2px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom / 100% 1px no-repeat;
}

.kasavu-frame {
  position: relative;
  overflow: hidden;
}
.kasavu-frame::before,
.kasavu-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.kasavu-frame::after {
  inset: 15px;
  border-width: 1px;
  transition-delay: .05s;
}
.kasavu-frame:hover::before,
.kasavu-frame:hover::after,
.kasavu-frame:focus-within::before,
.kasavu-frame:focus-within::after {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 14px 30px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--primary { background: var(--maroon); color: var(--cream); }
.btn--primary:hover { background: var(--maroon-deep); }
.btn--gold { background: var(--gold); color: var(--maroon-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { background: transparent; border-color: var(--maroon); color: var(--maroon); }
.btn--ghost:hover { background: var(--maroon); color: var(--cream); }
.btn--ghost-light { background: transparent; border-color: var(--gold-light); color: var(--cream); }
.btn--ghost-light:hover { background: var(--gold-light); color: var(--maroon-deep); }
.btn--small { padding: 9px 18px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
body:not(.is-home) .site-header {
  position: sticky;
  background: var(--cream);
  border-bottom: 1px solid rgba(42,29,21,.08);
}
.site-header.is-scrolled {
  position: fixed;
  background: rgba(248,242,230,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(42,29,21,.08);
}
.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: lowercase;
  letter-spacing: .01em;
}
.brand__tagline {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
body.is-home .site-header:not(.is-scrolled) .brand,
body.is-home .site-header:not(.is-scrolled) .main-nav a,
body.is-home .site-header:not(.is-scrolled) .nav-toggle span {
  color: var(--cream);
}
.site-header.is-scrolled .brand,
.site-header.is-scrolled .main-nav a { color: var(--ink); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.nav-cta { flex-shrink: 0; }
body.is-home .site-header:not(.is-scrolled) .btn--ghost { border-color: var(--gold-light); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 24px;
  flex-direction: column; justify-content: space-between;
  padding: 0;
}
.nav-toggle span { display: block; height: 1px; background: currentColor; width: 100%; }
.mobile-nav {
  display: none;
  background: var(--cream);
  border-top: 1px solid rgba(42,29,21,.08);
  border-bottom: 1px solid rgba(42,29,21,.08);
}
.mobile-nav ul { padding: 8px 28px 20px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(42,29,21,.06);
}
.mobile-nav__cta { color: var(--maroon); }
.mobile-nav.is-open { display: block; }

@media (max-width: 900px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: var(--maroon-deep);
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,20,20,.82) 0%, rgba(35,20,20,.35) 55%, rgba(35,20,20,.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 90px;
  width: 100%;
}
.hero__content h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 14ch;
  margin-bottom: .25em;
}
.hero__content h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__content p {
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(248,242,230,.85);
}
.hero__actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.hero__dots {
  position: absolute; bottom: 28px; right: 28px; z-index: 3;
  display: flex; gap: 10px;
}
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--gold-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero__dots button.is-active { background: var(--gold-light); }

/* ==========================================================================
   Page banner (inner pages)
   ========================================================================== */
.page-banner {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background: var(--banner-img, none) center / cover no-repeat, var(--maroon-deep);
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,20,20,.86), rgba(35,20,20,.4));
}
.page-banner__inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 130px 28px 40px;
  width: 100%;
}
.page-banner h1 { color: var(--cream); font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: .15em; }

/* ==========================================================================
   Collection cards (home + collections index)
   ========================================================================== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
}
.collection-card__img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform .7s var(--ease);
}
.collection-card:hover .collection-card__img { transform: scale(1.06); }
.collection-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(35,20,20,.78) 0%, rgba(35,20,20,0) 55%);
}
.collection-card__label {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
  color: var(--cream);
}
.collection-card__label .eyebrow { color: var(--gold-light); margin-bottom: .4em; }
.collection-card__label .eyebrow::before { background: var(--gold-light); }
.collection-card__label h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: .15em; text-transform: capitalize; }
.collection-card__label span.view {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}

@media (max-width: 860px) {
  .collection-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Split section (welcome / about teaser)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media { aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.split p { color: var(--ink-soft); }
.split--reverse .split__media { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}

/* ==========================================================================
   Contact strip
   ========================================================================== */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.contact-strip__item .eyebrow { justify-content: center; }
.contact-strip__item a, .contact-strip__item p { color: var(--cream); }

@media (max-width: 760px) {
  .contact-strip { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About page
   ========================================================================== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.explore-card {
  background: var(--cream);
  border: 1px solid rgba(42,29,21,.1);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.explore-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.explore-card img { margin: 0 auto 14px; height: 44px; width: auto; }
.explore-card span { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); }

@media (max-width: 760px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Category tabs (collections / mens / womens / kids)
   ========================================================================== */
.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.tabs a {
  padding: 10px 22px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--maroon);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tabs a.is-active, .tabs a:hover { background: var(--maroon); color: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  aspect-ratio: 3/4;
  border: 1px solid rgba(42,29,21,.08);
  cursor: zoom-in;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Career page
   ========================================================================== */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.career-card {
  background: var(--cream);
  border: 1px solid rgba(42,29,21,.1);
  border-top: 3px solid var(--gold);
  padding: 32px;
}
.career-card h3 { font-size: 1.3rem; text-transform: capitalize; }
.career-card .openings {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--maroon);
  display: inline-block;
  margin-bottom: 16px;
}
.career-card ul { margin-bottom: 22px; }
.career-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.career-card li::before {
  content: '';
  position: absolute; left: 0; top: .6em;
  width: 8px; height: 1px;
  background: var(--gold);
}

@media (max-width: 760px) {
  .career-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Forms (contact / apply)
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(42,29,21,.25);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field input[type="file"] { padding: 10px 0; }

.form-note {
  padding: 14px 18px;
  font-size: .92rem;
  border-left: 3px solid var(--gold);
  background: var(--cream-deep);
  margin-bottom: 24px;
}
.form-note--error { border-left-color: var(--maroon); }

.map-frame { border: 1px solid rgba(42,29,21,.12); }
.map-frame iframe { width: 100%; height: 320px; display: block; border: none; }

@media (max-width: 860px) {
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.gallery-grid {
  columns: 4 220px;
  column-gap: 18px;
}
.gallery-grid a {
  display: block;
  margin-bottom: 18px;
  break-inside: avoid;
  cursor: zoom-in;
  border: 1px solid rgba(42,29,21,.08);
}
@media (max-width: 640px) { .gallery-grid { columns: 2 160px; } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(35,20,20,.95);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 88vw; max-height: 86vh; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: var(--cream);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--gold-light); color: var(--cream);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.6rem; cursor: pointer;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--cream); }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 28px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 32px;
}
.footer__brand { display: flex; gap: 12px; align-items: center; }
.brand__mark--footer { color: var(--gold-light); }
.brand__name--footer { font-family: var(--font-display); font-size: 1.25rem; }
.brand__tagline--footer { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: .9rem; opacity: .85; }
.footer__nav a:hover { opacity: 1; color: var(--gold-light); }
.footer__contact p { margin-bottom: 6px; font-size: .9rem; opacity: .85; }
.footer__contact a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 14px; align-items: flex-start; }
.footer__social img { filter: grayscale(1) brightness(2); opacity: .8; transition: opacity .3s; }
.footer__social a:hover img { opacity: 1; }
.footer__bottom {
  border-top: 1px solid rgba(248,242,230,.1);
  text-align: center;
  padding: 20px;
  font-size: .8rem;
  opacity: .6;
}
.footer__bottom a { text-decoration: underline; }

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal-on-scroll (subtle, respects reduced motion via rule above)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
