/* ============================================================
   PATTU HOUSE — Kancheepuram Silk Sarees, Dubai
   Design tokens
   ============================================================ */

:root {
  --ivory: #FAF7EF;
  --ivory-deep: #F0EAD9;
  --green: #0E4B39;
  --green-deep: #082E22;
  --gold: #C89A2E;
  --gold-light: #E3C976;
  --teal: #0B5D5A;
  --ink: #1B241E;
  --stone: #CFDBD1;

  --display: 'Cormorant Garamond', serif;
  --body: 'Jost', sans-serif;

  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

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

p { margin: 0 0 1em 0; }

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
}

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

/* ---------- Temple border — the signature motif ----------
   A woven kovil/gopuram zig-zag border, the way a real
   Kanjivaram saree carries a temple border along its edge.
   Used as a structural divider, never decorative filler. */

.temple-border {
  height: 22px;
  width: 100%;
  background-color: var(--green);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'><polygon points='0,22 11,4 22,22' fill='none' stroke='%23C89A2E' stroke-width='1.4'/><polygon points='22,22 33,4 44,22' fill='none' stroke='%23C89A2E' stroke-width='1.4'/><circle cx='11' cy='9' r='1.6' fill='%23C89A2E'/><circle cx='33' cy='9' r='1.6' fill='%23C89A2E'/></svg>");
  background-repeat: repeat-x;
  background-size: 44px 22px;
}

.temple-border.thin { height: 14px; background-size: 30px 14px; }

/* ---------- Header / Nav ---------- */

header.site-header {
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stone);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}

.brand img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  display: block;
}

.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text small {
  font-family: var(--body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--gold);
}

.brand span { color: var(--gold); }

nav.main-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav.main-nav a {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--green);
  color: var(--ivory) !important;
  padding: 10px 20px !important;
  border-radius: 2px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--green-deep); color: var(--ivory) !important; border-bottom: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--green);
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 0.3em; }

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border-radius: 2px;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn-primary { background: var(--green); color: var(--ivory); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}
.btn-ghost:hover { background: var(--green); color: var(--ivory); }

/* Rotating hero photo — random Image_1 picks, not sold out */
.hero-photo {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 60%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(8, 46, 34, 0.45);
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-photo img.is-active { opacity: 1; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

/* Hero video (loops the brand ad in place of the rotating photo) */
.hero-video-wrap {
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(8, 46, 34, 0.45);
  background: var(--green-deep);
  max-width: 380px;
  margin: 0 auto;
}
.hero-video-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--green-deep);
}
.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px solid var(--gold);
  opacity: 0.55;

  pointer-events: none;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left { margin: 0 0 48px; text-align: left; }

.bg-ivory-deep { background: var(--ivory-deep); }
.bg-green { background: var(--green); color: var(--ivory); }
.bg-green h2, .bg-green h3 { color: var(--ivory); }
.bg-green .eyebrow { color: var(--gold-light); }

section.quote-section { padding: 44px 0; }

/* Feature / value grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--stone);
  padding: 34px 28px;
  border-radius: 2px;
}

.card .num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold);
  font-style: italic;
  display: block;
  margin-bottom: 12px;
}

/* Collections list */
.collection-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--stone);
  align-items: start;
}
.collection-item:first-of-type { border-top: 1px solid var(--stone); }

.collection-swatch {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.collection-swatch::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path d='M15 2 L26 26 L4 26 Z' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='1'/></svg>");
  background-size: 30px 30px;
}
.swatch-1 { background: linear-gradient(150deg, #6B1420, #8C1C2A); }
.swatch-2 { background: linear-gradient(150deg, #0B5D5A, #0E7873); }
.swatch-3 { background: linear-gradient(150deg, #B8862E, #8C671F); }
.swatch-4 { background: linear-gradient(150deg, #4A0D16, #241B14); }

.collection-item h3 { margin-bottom: 6px; }
.collection-item .price-tag {
  font-family: var(--body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Quote / trust block */
.quote-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.quote-block .sourcing-lede {
  font-family: var(--body);
  font-size: 1rem;
  font-style: normal;
  color: var(--ivory);
  opacity: 0.92;
  max-width: 60ch;
  margin: 0 auto 30px;
  line-height: 1.75;
}
.quote-block p {
  font-family: var(--display);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.45;
}
.quote-block .attribution {
  font-family: var(--body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-style: normal;
}

/* Timeline (used only where order genuinely matters: the sourcing journey) */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.journey .step { position: relative; padding-top: 28px; }
.journey .step::before {
  content: attr(data-step);
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  position: absolute;
  top: 0; left: 0;
}
.journey .step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.journey .step p { font-size: 0.92rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.info-line {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone);
}
.info-line .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  min-width: 110px;
}

form.contact-form { display: flex; flex-direction: column; gap: 18px; }

.field label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}

.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--ivory);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.82rem; color: var(--ink); opacity: 0.75; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: var(--ivory-deep);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-grid h4 {
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: var(--ivory-deep); opacity: 0.85; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(247,241,229,0.15);
  padding-top: 24px;
  font-size: 0.78rem;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero .eyebrow { display: block; margin-bottom: 10px; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  nav.main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--stone);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 320px; }
  nav.main-nav a { width: 100%; padding: 16px 32px; border-bottom: 1px solid var(--stone); }
  .nav-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .collection-item { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Banner hero (image-based, homepage) ---------- */
.banner-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.banner-hero img {
  width: 100%;
  display: block;
}
.banner-hero .banner-caption {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.85;
}

/* ---------- Filter bar (collections page) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--stone);
  background: var(--ivory);
  color: var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--ivory);
}

.filter-meta {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.7;
  margin-bottom: 28px;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(8, 46, 34, 0.35);
}

.product-photo {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--ivory-deep);
  position: relative;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-photo .series-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(8, 46, 34, 0.82);
  color: var(--ivory);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.product-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-info .p-design {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.25;
}
.product-info .p-meta {
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.75;
}
.product-info .p-price {
  margin-top: 8px;
  font-family: var(--body);
  font-weight: 600;
  color: var(--teal);
  font-size: 0.95rem;
}
.product-info .p-enquire {
  margin-top: 10px;
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.product-info .p-enquire:hover { color: var(--gold); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink);
  opacity: 0.7;
  font-size: 0.95rem;
}

.load-more-row { text-align: center; margin-top: 40px; }

/* ---------- Footer logo ---------- */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img { height: 40px; width: 40px; border-radius: 50%; }
.footer-brand span {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 600;
}

@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

/* ---------- Category marquee (homepage) ---------- */
.category-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.category-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: category-scroll 34s linear infinite;
  padding: 4px 0;
}
.category-marquee:hover .category-track { animation-play-state: paused; }
@keyframes category-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.category-tile {
  display: block;
  width: 300px;
  flex: 0 0 auto;
  background: var(--ivory);
  border: 1px solid var(--stone);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(8, 46, 34, 0.35);
}
.category-tile-media {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--ivory-deep);
}
.category-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.category-tile-media img.is-active { opacity: 1; }
.category-tile-info { padding: 18px 20px 22px; }
.category-tile-info h3 { margin-bottom: 6px; }
.category-tile-info p { font-size: 0.88rem; margin: 0; opacity: 0.85; }

@media (max-width: 880px) {
  .category-tile { width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-track { animation: none; }
}

/* ---------- Sold-out ribbon ---------- */
.product-photo.is-sold img { filter: grayscale(45%); opacity: 0.72; }
.sold-ribbon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 46, 34, 0.22);
  pointer-events: none;
}
.sold-ribbon span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(8, 46, 34, 0.9);
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  padding: 8px 20px;
  transform: rotate(-8deg);
  white-space: nowrap;
}

/* ---------- Lightbox (saree image gallery) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 46, 34, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox-close {
  position: absolute;
  top: 20px; left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 247, 239, 0.12);
  border: 1px solid rgba(250, 247, 239, 0.35);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(250, 247, 239, 0.22); }
.lightbox-body { max-width: 560px; width: 100%; }
.lightbox-info { text-align: center; color: var(--ivory); margin-bottom: 16px; }
.lightbox-info .p-design { font-family: var(--display); font-size: 1.3rem; font-style: italic; display: block; }
.lightbox-info .p-meta { font-size: 0.82rem; opacity: 0.75; display: block; margin-top: 4px; }
.lightbox-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--green-deep);
  border-radius: 3px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}
.lightbox-stage img.is-active { opacity: 1; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8, 46, 34, 0.6);
  color: var(--ivory);
  border: 1px solid rgba(250, 247, 239, 0.4);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }
.lightbox-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.lightbox-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(250, 247, 239, 0.35); display: block; }
.lightbox-dots span.is-active { background: var(--gold-light); }

@media (max-width: 640px) {
  .lightbox-close { top: 12px; left: 12px; padding: 8px 14px; font-size: 0.7rem; }
  .lightbox-arrow { width: 36px; height: 36px; }
}

/* ---------- Trust badge (About page: DET licensing) ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  background: var(--ivory-deep);
}
