/* =============================================================
   THE STITCH STABLE — Main Stylesheet
   Color Palette (drawn from brand images):
     Sage green:   #8a9c6e / #6b7d52 / #4a5c38
     Cream/ivory:  #f0e8d5 / #faf4ea / #ede5d4
     Brown/rust:   #7b4535 / #9c6040 / #4a2718
   Fonts: Playfair Display · Dancing Script · Lato
   ============================================================= */

/* ─── Custom Properties ──────────────────────────────────── */
:root {
  --green:        #8a9c6e;
  --green-mid:    #6b7d52;
  --green-dark:   #4a5c38;
  --green-pale:   #c8d4b4;
  --green-bg:     #e6ecda;

  --cream:        #f0e8d5;
  --cream-light:  #faf4ea;
  --cream-mid:    #ede5d4;

  --brown:        #7b4535;
  --brown-mid:    #9c6040;
  --brown-dark:   #4a2718;
  --brown-pale:   #c4957a;

  --text-dark:    #2c1a10;
  --text-mid:     #5a3c2c;
  --text-muted:   #8a6b58;

  --white:        #ffffff;
  --shadow:       rgba(74, 39, 24, 0.14);
  --shadow-deep:  rgba(74, 39, 24, 0.32);

  --ff-serif:     'Playfair Display', Georgia, serif;
  --ff-script:    'Dancing Script', cursive;
  --ff-sans:      'Lato', 'Helvetica Neue', Arial, sans-serif;

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:          0.35s;
  --dur-slow:     0.65s;

  --r:            12px;
  --r-lg:         20px;
  --r-xl:         28px;
  --max:          1200px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream-light);
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Typography helpers ─────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  background: rgba(123, 69, 53, 0.10);
  border: 1px solid rgba(123, 69, 53, 0.22);
  padding: 0.28rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--brown-dark);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.script-accent {
  font-family: var(--ff-script);
  font-size: 1.25em;
  color: var(--brown);
  display: inline-block;
  line-height: 1;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

/* ─── Container ──────────────────────────────────────────── */
.container { width: 90%; max-width: var(--max); margin: 0 auto; }

/* ─── Section spacing ────────────────────────────────────── */
.section     { padding: 6rem 0; }
.section-green { background: var(--green-bg); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 2.1rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--dur) var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream-light);
  border-color: var(--brown);
}
.btn-primary:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-deep);
}

.btn-outline {
  background: transparent;
  color: var(--cream-light);
  border-color: rgba(250, 244, 234, 0.75);
}
.btn-outline:hover {
  background: var(--cream-light);
  color: var(--brown-dark);
  border-color: var(--cream-light);
  transform: translateY(-3px);
}

.btn-full { width: 100%; }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding: 1rem 0;
  transition: background var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              padding var(--dur-slow) var(--ease);
}
.navbar.scrolled {
  background: rgba(250, 244, 234, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px var(--shadow);
  padding: 0.55rem 0;
}

.nav-container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.nav-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 149, 122, 0.6);
  transition: transform var(--dur) var(--ease);
  flex-shrink: 0;
}
.nav-logo:hover .nav-logo-img { transform: rotate(8deg) scale(1.08); }

.nav-brand {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  color: var(--cream-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
  transition: color var(--dur) var(--ease), text-shadow var(--dur) var(--ease);
  line-height: 1.2;
}
.navbar.scrolled .nav-brand {
  color: var(--brown-dark);
  text-shadow: none;
}
.nav-brand .script {
  font-family: var(--ff-script);
  font-size: 1.4em;
  color: inherit;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(250, 244, 234, 0.92);
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: all var(--dur) var(--ease);
}
.navbar.scrolled .nav-links a {
  color: var(--text-mid);
  text-shadow: none;
}
.nav-links a:hover,
.nav-links a.active-link {
  background: rgba(123, 69, 53, 0.75);
  color: var(--cream-light);
  text-shadow: none;
}
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active-link {
  background: var(--brown);
  color: var(--cream-light);
}

.nav-cta {
  background: rgba(123, 69, 53, 0.5) !important;
  border: 1px solid rgba(250, 244, 234, 0.5) !important;
}
.navbar.scrolled .nav-cta {
  background: var(--brown) !important;
  color: var(--cream-light) !important;
  border-color: transparent !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream-light);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.navbar.scrolled .nav-toggle span { background: var(--brown-dark); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  /* Size hero proportionally to the image's natural ~8:3 wide-format ratio.
     max-height caps it so it never overflows on very wide screens.
     min-height keeps it from getting too short on small screens. */
  aspect-ratio: 8 / 3;
  height: auto;
  max-height: 100vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #ede5d4;
}

.hero-parallax {
  position: absolute;
  /* Leave bottom 5rem clear for the CTA button strip */
  top: 0; left: 0; right: 0; bottom: 5rem;
  will-change: transform;
}
.hero-image {
  width: 100%;
  height: 100%;
  /* contain: always show the full image, never crop.
     Background #ede5d4 fills any letterbox space invisibly. */
  object-fit: contain;
  /* Pin image to the top — any remaining space falls below the image
     where the gradient overlay naturally covers it */
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Only darken the lower portion where the buttons sit.
     Upper area stays transparent so the image title is fully readable. */
  background: linear-gradient(
    to bottom,
    rgba(74, 39, 24, 0.0)  0%,
    rgba(74, 39, 24, 0.0) 60%,
    rgba(74, 39, 24, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.5rem 1rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  display: none; /* hidden — CTA buttons below image serve as the scroll prompt */
}
.scroll-chevron {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
  50%        { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ─── About ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Avatar */
.avatar-ring {
  position: relative;
  width: 220px;
  height: 220px;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed var(--green-pale);
  animation: spinRing 22s linear infinite;
}
.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(138, 156, 110, 0.35);
  animation: spinRing 35s linear infinite reverse;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--cream);
  box-shadow: 0 10px 40px var(--shadow-deep);
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
}
.avatar-ring:hover .avatar-img {
  transform: scale(1.05);
  box-shadow: 0 16px 56px var(--shadow-deep);
}

/* Social pills */
.about-socials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 260px;
}
.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  transition: all var(--dur) var(--ease);
}
.social-pill svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.social-pill.facebook { background: #1877f2; }
.social-pill.facebook:hover { background: #0d65d9; transform: translateX(5px); box-shadow: 0 5px 18px rgba(24,119,242,0.4); }
.social-pill.etsy      { background: #f16521; }
.social-pill.etsy:hover { background: #d45616; transform: translateX(5px); box-shadow: 0 5px 18px rgba(241,101,33,0.4); }

/* About copy */
.about-copy p {
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0;
}
.tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  background: rgba(74, 92, 56, 0.1);
  border: 1px solid rgba(74, 92, 56, 0.25);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
}
.shipping-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(74, 92, 56, 0.08);
  border-left: 3px solid var(--green-dark);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
}
.shipping-note span { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.05rem; }
.shipping-note p { color: var(--green-dark); font-weight: 600; font-size: 0.95rem; margin: 0; }

/* ─── Services ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--cream-light);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  border: 1px solid rgba(138, 156, 110, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--brown));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 24px 56px var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-icon-wrap { margin-bottom: 1.1rem; }
.service-icon {
  font-size: 2.6rem;
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.25) rotate(-6deg); }

.service-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  color: var(--brown-dark);
  margin-bottom: 0.65rem;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.2rem; }

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
  transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.service-link:hover { color: var(--brown-dark); letter-spacing: 0.08em; }

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  border: 2px solid var(--green-pale);
  background: transparent;
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

/* ─── Gallery Carousel (default view) ───────────────────── */
.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.carousel-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 1 / 1;
  background: var(--cream-mid);
  cursor: zoom-in;
}
.carousel-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
}
.carousel-slot:hover img { transform: scale(1.08); }
.carousel-slot .g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,39,24,0.82) 0%, rgba(74,39,24,0.1) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.carousel-slot:hover .g-overlay { opacity: 1; }
.carousel-slot .g-overlay span {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Fade-in when slot updates */
@keyframes slotFade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.carousel-slot.updating img { animation: slotFade 0.4s var(--ease) both; }

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-light);
  border: 2px solid var(--green-pale);
  color: var(--brown-dark);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
  line-height: 1;
}
.carousel-arrow:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
  transform: scale(1.1);
}

.carousel-dots {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-pale);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.carousel-dot.active {
  background: var(--brown);
  transform: scale(1.35);
}

/* Hidden state for grid (shown only when filter is active) */
.gallery-grid--hidden { display: none !important; }
.gallery-carousel--hidden { display: none !important; }

/* Padding below carousel for the dots */
.gallery-carousel { padding-bottom: 2.5rem; }

/* ─── Gallery Grid (filter view) ────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
  background: var(--cream-mid);
  /* entry animation */
  animation: galleryIn 0.45s var(--ease) both;
}
@keyframes galleryIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.g-item:hover img { transform: scale(1.09); }

.g-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,39,24,0.82) 0%, rgba(74,39,24,0.1) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.9rem;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.g-item:hover .g-overlay { opacity: 1; }
.g-overlay span {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.g-item.hidden {
  display: none;
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 5, 2, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lb-figure {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lb-figure img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
}
.lb-figure figcaption {
  color: rgba(250,244,234,0.75);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.lb-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
  line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
  line-height: 1;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-pitch { max-width: 680px; }

.shipping-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.25rem;
  background: var(--green-dark);
  color: white;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
  background: var(--cream-light);
}
.pricing-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 64px var(--shadow-deep);
}

.pricing-img-wrap { overflow: hidden; }
.pricing-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s var(--ease);
}
.pricing-card:hover .pricing-img-wrap img { transform: scale(1.04); }

.pricing-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(74,39,24,0.88) 0%, transparent 100%);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem 0.85rem;
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pricing-footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--cream-light);
  border-radius: var(--r-xl);
  border: 1.5px dashed rgba(138, 156, 110, 0.5);
}
.pricing-footer p {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-mid);
  margin-bottom: 1.3rem;
}

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4.5rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }

.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-item h4 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 0.2rem;
}
.info-item p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

.contact-socials h4 {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 0.75rem;
}
.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(138, 156, 110, 0.22);
  color: var(--text-mid);
  font-size: 0.93rem;
  font-weight: 700;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.contact-social-link:last-child { border-bottom: none; }
.contact-social-link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.contact-social-link:hover { color: var(--brown); padding-left: 0.4rem; }

/* Form */
.contact-form-wrap {
  position: relative;
  background: var(--cream-light);
  border-radius: var(--r-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 10px 48px var(--shadow);
  border: 1px solid rgba(138, 156, 110, 0.2);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.38rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(138, 156, 110, 0.3);
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brown);
  box-shadow: 0 0 0 3px rgba(123, 69, 53, 0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: -0.3rem;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.75rem;
  animation: fadeIn 0.5s var(--ease) forwards;
}
.form-success.visible { display: flex; }
.success-icon {
  font-size: 2.5rem;
  color: var(--brown);
  animation: popIn 0.5s var(--ease);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.form-success h3 { font-family: var(--ff-serif); font-size: 1.6rem; color: var(--brown-dark); }
.form-success p  { color: var(--text-mid); }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--brown-dark);
  color: rgba(250, 244, 234, 0.8);
  padding: 4.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 244, 234, 0.1);
}

.footer-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(250, 244, 234, 0.18);
  margin-bottom: 1rem;
  transition: transform var(--dur) var(--ease);
}
.footer-logo:hover { transform: scale(1.08); }

.footer-tagline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: rgba(250, 244, 234, 0.55);
  line-height: 1.6;
}

.footer-nav h4,
.footer-connect h4 {
  font-family: var(--ff-serif);
  color: rgba(250, 244, 234, 0.9);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav a,
.footer-connect a {
  color: rgba(250, 244, 234, 0.55);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
  display: block;
  margin-bottom: 0.45rem;
}
.footer-nav a:hover,
.footer-connect a:hover { color: var(--brown-pale); padding-left: 0.3rem; }

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250, 244, 234, 0.35);
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal-up    { transform: translateY(44px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-right { transform: translateX(44px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ─── Misc Animations ────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual  { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .contact-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  /* Mobile nav */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250, 244, 234, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
    border-top: 1px solid rgba(138, 156, 110, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur) var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a    { color: var(--text-mid) !important; text-shadow: none !important; padding: 0.65rem 1rem; }

  .nav-toggle { display: flex; }

  /* ─── Hero mobile: image defines height, buttons below ─────── */
  .hero {
    min-height: unset;
    max-height: unset;
    aspect-ratio: unset; /* let the image determine height */
    display: block;
    padding-top: 4.5rem; /* clear the fixed navbar (~78px tall) */
    background: #ede5d4;
  }
  .hero-parallax {
    position: relative;
    top: unset; left: unset; right: unset; bottom: unset;
    width: 100%;
    transform: none !important;
    will-change: unset;
  }
  .hero-image {
    width: 100%;
    height: auto;
    object-fit: fill; /* show full image at natural ratio */
    display: block;
  }
  .hero-overlay { display: none; } /* no overlay — buttons live below image */
  .hero-content {
    position: relative; /* flow below the image */
    bottom: unset; left: unset; right: unset;
    padding: 0.85rem 1.5rem 1rem;
    background: #ede5d4; /* cream strip matching hero background */
    z-index: 2;
  }
  .hero-scroll { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  /* Outline button sits on cream background on mobile — switch to dark border */
  .hero-actions .btn-outline {
    color: var(--brown-dark);
    border-color: var(--brown);
  }
  .hero-actions .btn-outline:hover {
    background: var(--brown);
    color: var(--cream-light);
  }

  /* ─── About avatar: column layout + smaller avatar on mobile ─ */
  .about-visual { flex-direction: column; }
  .avatar-ring { width: 160px; height: 160px; }

  .form-row.two-col { grid-template-columns: 1fr; }

  .gallery-grid   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .carousel-track { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid    { grid-template-columns: 1fr; }

  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}
