/* ---------------------------------------------------------
   Keerthana Collections — design tokens
   Palette drawn from the fabric itself: kanjeevaram maroon,
   zari gold, temple-border teal, raw cotton ivory.
--------------------------------------------------------- */
:root {
  --ivory: #FAF4EC;
  --ivory-deep: #F1E3D0;
  --ink: #271A16;
  --maroon: #7A1F2B;
  --maroon-deep: #591721;
  --gold: #B8862E;
  --gold-light: #E7C77C;
  --teal: #17504C;
  --teal-deep: #0E3A37;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--maroon-deep);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: #4B3630;
  max-width: 46ch;
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------------- woven divider ----------------
   A repeating diamond motif stands in for a plain <hr>,
   nodding to the border pattern on a woven saree —
   used only between major sections, never as decoration. */
.woven-divider {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    135deg,
    var(--gold) 0px, var(--gold) 2px,
    transparent 2px, transparent 14px
  ),
  repeating-linear-gradient(
    45deg,
    var(--gold) 0px, var(--gold) 2px,
    transparent 2px, transparent 14px
  );
  background-color: var(--ivory-deep);
  opacity: 0.55;
}

/* ---------------- nav ---------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(122, 31, 43, 0.14);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--maroon);
  letter-spacing: 0.01em;
}
.wordmark span { color: var(--gold); }

nav.links {
  display: flex;
  gap: 28px;
  font-size: 0.96rem;
}
nav.links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
nav.links a:hover { border-color: var(--gold); color: var(--maroon); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--maroon);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--maroon-deep); }
.btn-ghost {
  border-color: var(--maroon);
  color: var(--maroon);
}
.btn-ghost:hover { background: rgba(122,31,43,0.06); }

/* ---------------- mobile nav ----------------
   Below 640px the three-way row (wordmark / links / button)
   no longer fits on one line, so it becomes two rows:
   wordmark + WhatsApp button on top, nav links centered below. */
@media (max-width: 640px) {
  .nav-row {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 14px 20px;
  }
  .wordmark {
    order: 1;
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .nav-row .btn-primary {
    order: 2;
    margin-left: auto;
    padding: 9px 16px;
    font-size: 0.86rem;
  }
  nav.links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    gap: 22px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .wordmark { font-size: 0.98rem; }
}

/* ---------------- hero ---------------- */
.hero {
  padding: 76px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .kicker {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Asymmetric photo collage standing in for a live Instagram
   preview — three offset frames rather than a uniform grid. */
.collage {
  position: relative;
  height: 420px;
}
.collage .frame {
  position: absolute;
  border: 6px solid var(--ivory);
  box-shadow: 0 18px 40px rgba(39, 26, 22, 0.18);
  background-color: var(--ivory-deep);
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}
.collage .frame.f1 { width: 58%; height: 66%; top: 0; left: 0; z-index: 2; }
.collage .frame.f2 { width: 46%; height: 48%; top: 8%; right: 0; z-index: 1; }
.collage .frame.f3 { width: 44%; height: 46%; bottom: 0; left: 14%; z-index: 3; }
.collage .badge {
  position: absolute;
  bottom: -14px;
  right: 6%;
  background: var(--teal);
  color: var(--ivory);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 4;
  box-shadow: 0 10px 24px rgba(14, 58, 55, 0.3);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .collage { height: 340px; margin-top: 12px; }
}

/* ---------------- about ---------------- */
.about {
  padding: 70px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--maroon);
}
.stat span {
  font-size: 0.88rem;
  color: #6B5750;
}

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

/* ---------------- collections (dynamic feeds) ---------------- */
.collections {
  padding: 70px 0 84px;
  background: var(--ivory-deep);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.section-head p { margin: 0; }

.tabs {
  display: flex;
  gap: 4px;
  background: rgba(122,31,43,0.08);
  padding: 4px;
  border-radius: var(--radius);
  width: fit-content;
  margin-bottom: 28px;
}
.tab-btn {
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--maroon-deep);
  background: transparent;
  border: none;
  cursor: pointer;
}
.tab-btn[aria-selected="true"] {
  background: var(--maroon);
  color: var(--ivory);
}

.feed-panel { display: none; }
.feed-panel.active { display: block; }

/* Instagram widget mounts here via Behold.so — see README */
behold-widget { display: block; min-height: 200px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Fabric-swatch card: a small notch cut from the top-right
   corner, like a cut swatch sample, instead of a uniform
   rounded SaaS card. */
.swatch-card {
  background: var(--ivory);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 0 100%);
  overflow: hidden;
  border: 1px solid rgba(122,31,43,0.12);
}
.swatch-card .thumb {
  aspect-ratio: 16/9;
  background: #e7d9c8;
  background-size: cover;
  background-position: center;
}
.swatch-card .meta {
  padding: 16px 18px 20px;
}
.swatch-card .meta h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
}
.swatch-card .meta time {
  font-size: 0.82rem;
  color: #8A6F65;
}

.feed-empty, .feed-error {
  padding: 40px 0;
  color: #6B5750;
  font-size: 0.96rem;
}

/* ---------------- contact ---------------- */
.contact {
  padding: 76px 0 90px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--maroon);
  color: var(--ivory);
  padding: 40px;
  border-radius: var(--radius);
}
.contact-card h2 { color: var(--gold-light); }
.contact-card .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 18px 0 22px;
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-card .btn-ghost {
  border-color: var(--gold-light);
  color: var(--ivory);
}
.contact-card .btn-ghost:hover { background: rgba(255,255,255,0.08); }

.social-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.social-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(122,31,43,0.16);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.social-list a:hover {
  border-color: var(--maroon);
  transform: translateX(3px);
}
.social-list .icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--maroon);
}
.social-list .label b { display: block; font-size: 0.98rem; }
.social-list .label span { font-size: 0.84rem; color: #6B5750; }

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

/* ---------------- footer ---------------- */
footer {
  padding: 30px 0;
  border-top: 1px solid rgba(122,31,43,0.14);
  font-size: 0.86rem;
  color: #8A6F65;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
