/* ============================================================
   WOODBERRY DESIGNS — index.css
   Zero Bootstrap dependency. Pixel-matched to reference image.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500;600&family=Montserrat:wght@200;300;400&display=swap");

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Palette — exact warm linen/sienna from reference */
  --bg: #f4f1e9;
  /* warm linen — slightly warmer than before */
  --bg-card: #edeae1;
  /* beige card tile bg */
  --text: #29201a;
  /* deep warm charcoal */
  --text-muted: #7a6e66;
  /* muted warm brown for body copy */
  --accent: #9b6c42;
  /* exact sienna walnut accent */
  --accent-hover: #7c5130;
  --accent-light: #c89b70;
  /* logo and light accents */
  --footer-bg: #1e1b18;
  /* very dark warm footer */
  --border-soft: rgba(41, 32, 26, 0.09);

  /* Hero overlay — pulled from reference: heavy warm sepia left, fades right */
  --hero-gradient: linear-gradient(
    102deg,
    rgba(22, 12, 4, 0.86) 0%,
    rgba(22, 12, 4, 0.64) 32%,
    rgba(22, 12, 4, 0.28) 58%,
    rgba(22, 12, 4, 0.05) 100%
  );

  /* Font families — matched to reference image */
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  /* elegant editorial serif */
  --script: "Pinyon Script", cursive;
  /* flowing script for logo */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale — Cormorant Garamond reads larger than Playfair, tune accordingly */
  --f-hero: clamp(62px, 9.5vw, 106px);
  /* hero H1 */
  --f-h2: clamp(34px, 4vw, 52px);
  /* section H2 */
  --f-h2-sm: clamp(28px, 3.2vw, 42px);
  /* smaller section H2 */
  --f-body: 0.875rem;
  /* 14px */
  --f-sm: 0.8rem;
  /* 12.8px */
  --f-xs: 0.68rem;
  /* 10.9px */
  --f-label: 0.625rem;
  /* 10px all-caps label */

  /* Spacing rhythm (8-pt grid) */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 4.5vw, 72px);
}

/* ── 2. RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ── 3. SHARED LAYOUT ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── 4. SHARED TYPOGRAPHY COMPONENTS ───────────────────────── */

/* eyebrow label — "OUR PHILOSOPHY", "FEATURED COLLECTIONS" etc */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a8074;
  margin-bottom: 12px;
}

.eyebrow.center {
  text-align: center;
}

/* shared heading helper */
.section-h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: #1a1a1a;
  margin-bottom: var(--s3);
}

.section-h2.center {
  text-align: center;
}

/* body copy */
.body-copy {
  font-family: var(--sans);
  font-size: var(--f-body);
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-muted);
  max-width: 600px;
}

/* underline arrow link — "LEARN MORE →" */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: var(--f-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  /* Fix 4: expanded horizontal breathing room + smooth icon gap */
  gap: 12px;
  font-family: var(--sans);
  font-size: var(--f-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1a1a;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 0;
  padding: 14px 36px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  transform: translateY(-2px);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 14px 28px;
  transition: all 0.3s ease;
}

.btn-solid:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* ── 5. HEADER ──────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease;
}

.hdr-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  transition: padding 0.4s ease;
}

#site-header.scrolled {
  background: rgba(243, 240, 232, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border-soft);
}

#site-header.scrolled .hdr-inner {
  padding: 12px var(--gutter);
}

/* Logo */
.hdr-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 1px;
}

.logo-img {
  width: auto;
  height: 72px; /* Increased from 64px */
  max-height: 100%;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(
    0 4px 6px rgba(0, 0, 0, 0.3)
  ); /* Added highlight drop shadow */
  transition: all 0.4s ease;
}

.hdr-logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

/* If the logo is white, we might need to invert it or make it darker on scrolled state */
#site-header.scrolled .logo-img {
  filter: invert(1) brightness(0.2);
  /* Fallback assumption: if it's white, make it dark grey. If it's already dark, remove this rule. */
}

.logo-text-img {
  width: auto;
  height: 54px;
  object-fit: contain;
  margin-top: 2px;
  transition: filter 0.4s ease;
  /* Make the dark text logo completely white over the dark hero background */
  filter: brightness(0) invert(1);
}

/* Return the logotext.png to its original dark color on scroll */
#site-header.scrolled .logo-text-img {
  filter: none;
}

#site-header.scrolled .hdr-nav-link {
  color: var(--text);
  text-shadow: none;
}

#site-header.scrolled .hdr-nav-link::after {
  background-color: var(--text);
}

.hdr-nav {
  display: none;
}

@media (min-width: 900px) {
  .hdr-nav {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-grow: 1;
    justify-content: center;
  }
}

.hdr-nav-link {
  position: relative;
  padding-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
  transition: all 0.4s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hdr-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.4s ease;
}

.hdr-nav-link:hover::after,
.hdr-nav-link.active::after {
  width: 100%;
}

.hdr-nav-link:hover {
  opacity: 1;
}

/* Minimalist CTA Anchor */
.cta-anchor {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  transition: all 0.4s ease;
  display: inline-block;
}

.cta-anchor:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

#site-header.scrolled .cta-anchor {
  color: var(--text);
  border-color: var(--border-soft);
}

#site-header.scrolled .cta-anchor:hover {
  border-color: var(--text);
}

/* Secondary Category Nav Bar */
.hdr-bottom-nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 0.4s ease;
}

#site-header.scrolled .hdr-bottom-nav {
  border-top: 1px solid var(--border-soft);
}

.hdr-bottom-inner {
  max-width: 800px;
  /* Constrain width so space-between doesn't hit screen edges */
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.cat-link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  opacity: 0.9;
  transition: all 0.3s ease;
  padding: 14px 0;
  display: inline-block;
}

.cat-link:hover {
  opacity: 1;
  color: #fff;
}

#site-header.scrolled .cat-link {
  color: var(--text-muted);
}

#site-header.scrolled .cat-link:hover {
  color: var(--text);
}

/* Mega Menu */
.nav-dropdown-wrapper {
  position: static;
  display: flex;
  align-items: center;
  height: 100%;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  background-color: #f9f8f6;
  box-shadow: 0px 15px 50px rgba(26, 22, 19, 0.06);
  border-radius: 4px;
  padding: 24px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}

.nav-dropdown-wrapper:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 0 var(--gutter);
}

.mega-col {
  flex: 0 1 240px;
}

.mega-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: #111111;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mega-num {
  font-family: var(--serif);
  font-weight: 400;
  color: #999999;
  margin-right: 4px;
}

.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-list li {
  margin-bottom: 14px;
}

.mega-list a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  color: #4a4540;
  text-transform: capitalize;
  line-height: 1.5;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  padding-top: 2px;
  padding-bottom: 2px;
}

.mega-list a:hover {
  color: var(--accent);
}

.mega-col-img {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid #eaeaea;
  padding-left: 24px;
}

.mega-col-img img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
}

.mega-img-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  line-height: 1.4;
}

.mega-img-subtitle span {
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: none;
  color: #666666;
  letter-spacing: 0;
  display: block;
  margin-top: 4px;
}

.mega-img-link {
}

#site-header.scrolled .hdr-nav-link {
  color: var(--text-muted);
}

#site-header.scrolled .hdr-nav-link.active {
  color: var(--text);
}

#site-header.scrolled .hdr-nav-link.active::after {
  background-color: var(--text);
}

#site-header.scrolled .hdr-nav-link:hover {
  color: var(--accent);
}

/* Header action icons */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.hdr-icon-btn {
  background: none;
  border: none;
  padding: 2px;
  display: flex;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  position: relative;
  /* Fix 2: keep icons crisp and visible against any background */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.hdr-icon-btn:hover {
  opacity: 1;
}

#site-header.scrolled .hdr-icon-btn {
  color: var(--text-muted);
  filter: none;
}

#site-header.scrolled .hdr-icon-btn:hover {
  color: var(--accent);
  filter: drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.1));
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.45rem;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  transition: background 0.4s;
}

#site-header.scrolled .cart-badge {
  background: var(--text);
  color: var(--bg);
}

/* ── 6. HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 150px;
  box-sizing: border-box;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  transition:
    opacity 1.2s ease-in-out,
    transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Added a top gradient 'Invisible Shadow' to make the transparent navbar pop */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.15) 25%,
      rgba(0, 0, 0, 0) 40%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      rgba(0, 0, 0, 0) 75%
    ),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 25%);
  pointer-events: none;
}

/* Slider Controls contrast */
.slider-controls {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slider-controls .line,
.slider-controls span {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* hero text body — left-aligned */
.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* constrain text block */
.hero-body > * {
  max-width: 650px;
  opacity: 0;
  animation: fadeUpPremium 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-heading {
  animation-delay: 0.2s;
}

.hero-sub {
  max-width: 600px;
  animation-delay: 0.4s;
}

.hero-body .btn-primary {
  animation-delay: 0.6s;
}

.slider-indicators {
  animation-delay: 0.8s;
  display: flex;
  gap: 12px;
  margin-top: 48px;
  align-items: center;
}

@keyframes fadeUpPremium {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.indicator {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.4s ease,
    width 0.4s ease;
  position: relative;
}

.indicator::after {
  content: "";
  position: absolute;
  inset: -10px 0;
  /* expand click area */
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
  background: #fff;
  width: 60px;
  /* expands slightly when active */
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  max-width: none;
}

.hero-heading {
  font-family: var(--serif);
  font-size: calc(2.2rem + 4.5vw);
  font-style: normal;
  font-weight: 400;
  line-height: 0.95;
  font-variant-ligatures: normal;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0;
  max-width: none;
}

/* thin rule between heading and subtext — visible in reference */
.hero-rule {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
  margin: 22px 0 18px;
  flex-shrink: 0;
}

.hero-sub {
  max-width: 600px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.68;
  color: #f9f9f9;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ── 7. PHILOSOPHY SECTION ──────────────────────────────────── */
.section-philosophy {
  position: relative;
  overflow: hidden;
  /* Fix 2: editorial whitespace — premium brands rely on generous negative space */
  padding: clamp(80px, 10vw, 120px) 0;
  display: flex;
  align-items: center;
}

.philosophy-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.philosophy-text {
  position: relative;
  z-index: 1;
}

.philosophy-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  /* Fix 3: warm-tinted, ultra-soft shadow blends naturally into the linen canvas */
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 40px rgba(58, 43, 34, 0.08);
}

/* concentric ring decoration — right side of philosophy, behind text */
.rings-left {
  position: absolute;
  left: -220px;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 22px,
    rgba(155, 108, 66, 0.055) 23px
  );
  pointer-events: none;
  z-index: 0;
}

/* ── 8. COLLECTIONS SECTION ─────────────────────────────────── */
.section-collections {
  padding: var(--s8) 0;
}

.coll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--s6);
}

.coll-card {
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coll-card:hover {
  transform: translateY(-6px);
}

.coll-img-wrap {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.coll-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.coll-card:hover .coll-img-wrap img {
  transform: scale(1.04);
}

/* Collection card footer — solid beige bar like the reference */
.coll-card-foot {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 0 0 0;
  background: transparent;
  margin-top: 0;
  gap: 4px;
}

.coll-img-wrap {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.coll-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--f-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.coll-icon {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(42, 33, 24, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coll-link {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.25s;
}

.coll-link:hover {
  color: var(--accent);
}

/* ── 9. CRAFTSMANSHIP SPLIT ─────────────────────────────────── */
.section-craft {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.craft-photo {
  position: relative;
  overflow: hidden;
}

.craft-photo img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  display: block;
}

.craft-content {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--s7) clamp(40px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}

/* concentric ring on craft right panel */
.craft-rings {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 22px,
    rgba(156, 107, 66, 0.07) 23px
  );
  pointer-events: none;
}

.craft-inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

/* ── 10. BEST SELLERS ───────────────────────────────────────── */
.section-sellers {
  padding: var(--s7) 0 var(--s8);
}

.sellers-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.sellers-viewall {
  font-size: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s;
  white-space: nowrap;
}

.sellers-viewall:hover {
  color: var(--accent);
}

.sellers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Product tile */
.prod-tile {
  cursor: pointer;
}

.prod-thumb {
  position: relative;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  /* contain so product shows on beige bg */
  mix-blend-mode: multiply;
  /* white bg of product image blends away */
  padding: 16px;
  display: block;
  transition: transform 0.4s ease;
}

.prod-tile:hover .prod-thumb img {
  transform: scale(1.05);
}

.prod-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 0;
  display: flex;
  transition:
    opacity 0.3s,
    color 0.3s;
  z-index: 1;
}

.prod-heart:hover,
.prod-heart.liked {
  opacity: 1;
  color: var(--accent);
}

.prod-heart.liked svg {
  fill: currentColor;
}

.prod-name {
  font-family: var(--serif);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.prod-price {
  font-size: var(--f-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ── 11. FEATURE BAR ────────────────────────────────────────── */
.feature-bar {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 26px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feat-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--accent);
}

.feat-title {
  font-size: var(--f-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}

.feat-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
}

/* ── 12. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 24px;
}

/* Footer brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-wordmark {
  font-family: var(--script);
  /* Pinyon Script — matches logo */
  font-size: 1.7rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-wordsub {
  font-size: 0.46rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
  max-width: 270px;
  margin-bottom: 20px;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-link {
  color: rgba(255, 255, 255, 0.32);
  display: flex;
  transition: color 0.3s;
}

.social-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Footer columns */
.footer-col-hd {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.82);
}

/* Footer newsletter */
.footer-nl-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 14px;
  line-height: 1.65;
  font-weight: 300;
}

.footer-form {
  position: relative;
}

.footer-form input[type="email"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 11px 44px 11px 14px;
  outline: none;
  transition: border-color 0.3s;
}

.footer-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.footer-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-form button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--footer-bg);
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.footer-form button:hover {
  background: #fff;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.22);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ── 13. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sellers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sellers-grid .prod-tile:nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .section-craft {
    grid-template-columns: 1fr;
  }

  .craft-photo img {
    min-height: 400px;
  }

  .craft-content {
    padding: 56px 40px;
  }

  .philosophy-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .coll-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --s8: 72px;
    --s7: 56px;
  }

  .hdr-nav {
    display: none;
  }

  .sellers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sellers-grid .prod-tile:nth-child(n + 3) {
    display: none;
  }

  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-heading {
    font-size: clamp(44px, 12vw, 80px);
  }
}

/* ── RESPONSIVE & MOBILE OVERRIDES ───────────────────────────── */
.hdr-menu-btn {
  display: none;
}

/* Ensure header scales gracefully on extreme widescreens */
header,
.hero-bottom-controls {
  padding-left: 5%;
  padding-right: 5%;
}

/* Remove duplicate padding from hdr-inner since header now has it globally */
.hdr-inner {
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  .hdr-nav,
  .hdr-bottom-nav,
  .cta-anchor {
    display: none;
  }

  .hdr-menu-btn {
    display: flex;
  }
}

/* ── NEW SECTIONS ────────────────────────────────────────────── */

.why-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.check-item {
  position: relative;
  padding-left: 28px;
  font-size: var(--f-body);
  color: var(--text-muted);
  margin-bottom: 12px;
}

.check-item::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
}

/* Services */
.section-services {
  padding: var(--s8) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: var(--s5);
  align-items: flex-start;
}

/* Break the symmetry trap by offsetting the middle card */
@media (min-width: 900px) {
  .service-card:nth-child(2) {
    margin-top: 80px;
  }
}

.service-card {
  position: relative;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
}
.service-img {
  position: relative;
  z-index: 1;
}
.service-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-content {
  padding: 24px 0;
}

.service-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.service-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.service-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}

.service-desc {
  font-size: var(--f-body);
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-left: 0;
}

/* Process */

/* Process */
.process-steps {
  margin-top: var(--s4);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.step-text h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.step-text p {
  font-size: var(--f-body);
  color: var(--text-muted);
}

/* Quality / Why Choose Us */
.section-quality {
  background: var(--bg-card);
  padding: var(--s8) 0;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
  text-align: center;
}

.quality-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.q-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(41, 32, 26, 0.1);
  color: var(--accent);
}

.q-icon svg {
  width: 32px;
  height: 32px;
}

.q-text {
  font-size: var(--f-xs);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* Portfolio */
.section-portfolio {
  padding: var(--s8) 0;
}

.portfolio-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.port-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Safe asymmetrical layout using independent columns */
@media (min-width: 900px) {
  .port-left {
    width: 58.333%;
  }

  /* ~7 columns */
  .port-right {
    width: 41.666%;
    margin-top: 100px;
  }

  /* ~5 columns, staggered */
}

@media (max-width: 899px) {
  .portfolio-grid {
    flex-direction: column;
  }

  .port-left,
  .port-right {
    width: 100%;
    margin-top: 0;
  }
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

.port-foot {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
}

.port-foot p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Testimonials */
.section-testimonials {
  background: var(--bg);
  padding: var(--s8) 0;
}

.testim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--s5);
  align-items: flex-start;
}

/* Asymmetrical staggering for social proof */
@media (min-width: 900px) {
  .testim-card:nth-child(2) {
    margin-top: 40px;
  }

  .testim-card:nth-child(3) {
    margin-top: 80px;
  }
}

.testim-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  overflow: hidden;
}

.testim-card::before {
  content: "”";
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}

.testim-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.testim-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testim-text {
  font-size: 1.1rem;
  font-family: var(--serif);
  color: var(--text);
  font-style: italic;
  flex-grow: 1;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.testim-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.testim-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.testim-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

/* Tailored Designs */
.section-tailored {
  background: var(--bg);
  padding: var(--s8) 0;
}

.tailored-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.tailored-text h2 {
  margin-bottom: 16px;
}

.tailored-icons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.t-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.t-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(41, 32, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.t-icon svg {
  width: 24px;
  height: 24px;
}

.t-text {
  font-size: var(--f-xs);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA */
.section-cta {
  padding: var(--s8) 0;
}

.cta-banner {
  background: var(--footer-bg);
  color: #fff;
  padding: 80px 40px;
  border-radius: 0;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #fff;
}

@media (max-width: 900px) {
  .services-grid,
  .portfolio-grid,
  .testim-grid {
    grid-template-columns: 1fr;
  }
}

/* ── MOBILE MENU DRAWER ──────────────────────────────────────── */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f9f8f6;
  /* Warm alabaster */
  padding: 100px 5% 40px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu-drawer.is-open {
  transform: translateY(0);
}

.mobile-close-btn {
  position: absolute;
  top: 20px;
  right: calc(5% - 8px);
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  flex-grow: 1;
}

.mobile-nav-link {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  margin-bottom: 28px;
  text-decoration: none;
  display: block;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-family: var(--sans);
}

.mobile-accordion {
  width: 100%;
}

.accordion-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  cursor: pointer;
}

.accordion-toggle .arr {
  font-size: 10px;
  opacity: 0.5;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.mobile-sub-link {
  font-size: 15px;
  font-weight: 300;
  color: #555555;
  padding-left: 15px;
  margin-bottom: 24px;
  display: block;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.mobile-cta {
  margin-top: auto;
  text-align: center;
  width: 100%;
  border: 1px solid var(--text);
  color: var(--text);
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.mobile-cta:hover {
  background: var(--text);
  color: #fff;
}

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-section {
  padding: 80px 40px;
  background-color: var(--footer-bg);
  border-radius: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  text-align: left;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 0 8px;
  outline: none;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-textarea {
  min-height: 80px;
}

.form-input:focus {
  border-bottom-color: var(--accent);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.btn-submit {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

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

  .contact-section {
    padding: 60px 20px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }
}

/* ========================================
   BANNER SECTION
   ======================================== */
.section-banner {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  /* Use top/bottom padding or margins if desired, but banner is usually full width and flush */
}

.banner-image {
  width: 100%;
  height: 100%;
  background-image: url("../images/portfolio_optimized/woodberry-interior-gallery-12.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Parallax effect */
  position: absolute;
  top: 0;
  left: 0;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* Dark overlay to make text readable */
  z-index: 1;
}

.banner-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 56px);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  width: 90%;
  max-width: 900px;
  line-height: 1.3;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   MASONRY GALLERY
   ======================================== */
.masonry-gallery-wrap {
  margin: 80px auto 0;
  max-width: var(--max-w);
  padding: 80px var(--gutter) 0;
}

.masonry-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 40px;
  text-align: center;
}

.masonry-grid {
  column-count: 3;
  column-gap: 24px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

@media (max-width: 900px) {
  .masonry-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .masonry-item {
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .masonry-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 24px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .masonry-grid::-webkit-scrollbar {
    display: none;
  }
  .masonry-item {
    min-width: 80vw;
    scroll-snap-align: center;
    margin-bottom: 0; /* Override masonry vertical margin */
  }
  .masonry-item img {
    height: 400px; /* Fixed height so the horizontal row looks neat */
    object-fit: cover;
  }
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: var(--f-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  color: var(--text);
}

.filter-btn.active::after {
  width: 100%;
}

/* Timeline Icons */
.tl-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
  transition: transform 0.4s ease;
}

.timeline-card:hover .tl-icon {
  transform: scale(1.1) translateY(-4px);
  color: var(--text);
}

/* Base state for coll-card transitions (filtering) */
.coll-card {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Force varying heights for a true masonry effect */
.masonry-item:nth-child(5n + 1) img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.masonry-item:nth-child(5n + 2) img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.masonry-item:nth-child(5n + 3) img {
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}
.masonry-item:nth-child(5n + 4) img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.masonry-item:nth-child(5n + 5) img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Masonry Overlay */
.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.masonry-overlay span {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .masonry-overlay {
    opacity: 1;
    transform: translateY(0);
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  }
}

@media (min-width: 900px) {
  .hero-content {
    padding-left: 60px;
  }
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-family: var(--serif);
  font-size: 120px;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tailored-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .tailored-icons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
  }
}
