/* ============================================================
   Nomadé Florals styles.css
   Warm steppe palette. Signature: the wanderer's dotted path
   that travels down the page from the hero to the tin cup.
   ============================================================ */

:root {
  --terracotta: #C1663B;
  --terracotta-dark: #A5522C;
  --sand: #E8DCC8;
  --cream: #FAF6F0;
  --umber: #3B2A20;
  --umber-deep: #2B1E15;
  --sage: #8A9A7E;
  --sage-deep: #5C6B52;

  --font-heading: "Fraunces", "Georgia", serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(59, 42, 32, 0.10);
  --header-height: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--umber);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Film grain: echoes the textured logo tile. Sits over everything,
   never intercepts input. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); color: var(--cream); }

.btn-outline { border-color: var(--terracotta); color: var(--terracotta-dark); background: transparent; }
.btn-outline:hover { background: var(--terracotta); color: var(--cream); }

.btn-light { background: rgba(250, 246, 240, 0.94); color: var(--umber); }
.btn-light:hover { background: var(--cream); color: var(--terracotta-dark); }

.btn-ghost-light {
  border-color: rgba(250, 246, 240, 0.7);
  color: var(--cream);
  background: rgba(59, 42, 32, 0.18);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(250, 246, 240, 0.16); color: #fff; border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 42, 32, 0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--umber); }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--umber);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  position: relative;
}
.site-nav a:not(.nav-instagram)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--terracotta);
  transition: right 0.25s ease;
}
.site-nav a:not(.nav-instagram):hover::after { right: 0; }
.site-nav a:hover { color: var(--terracotta); }
.nav-instagram { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--umber);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(59, 42, 32, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 320px; }
  .site-nav a { padding: 0.9rem 0; width: 100%; text-align: center; }
  .site-nav a:not(.nav-instagram)::after { display: none; }
  .nav-instagram { justify-content: center; padding-bottom: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92dvh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--umber);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 26s ease-out both;
}
@keyframes hero-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(30, 20, 13, 0.78) 0%, rgba(30, 20, 13, 0.28) 45%, rgba(30, 20, 13, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 1.25rem 4.5rem;
  color: var(--cream);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.9);
  margin-bottom: 1.1rem;
  animation: rise-in 0.9s ease 0.1s both;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 420;
  font-size: clamp(2.5rem, 7.5vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  max-width: 15ch;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 30px rgba(30, 20, 13, 0.45);
  animation: rise-in 0.9s ease 0.25s both;
}
.hero-title em {
  font-style: italic;
  color: var(--sand);
}

.hero-sub {
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  max-width: 44ch;
  color: rgba(250, 246, 240, 0.92);
  margin-bottom: 2rem;
  text-shadow: 0 1px 16px rgba(30, 20, 13, 0.5);
  animation: rise-in 0.9s ease 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  animation: rise-in 0.9s ease 0.55s both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- The ridge (hero baseline) ---------- */
.ridge { background: var(--cream); line-height: 0; }
.ridge svg { width: 100%; height: 56px; display: block; }
.ridge-mountains {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0.55;
}
.ridge-path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.6;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  opacity: 0.7;
}

/* ---------- The wanderer's path (journey connectors) ---------- */
.journey {
  background: var(--cream);
  line-height: 0;
  overflow: hidden;
}
.journey svg { width: 220px; height: 130px; display: block; margin: 0 auto; }
.journey.on-sand { background: var(--sand); }
.journey.into-sand {
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 50%, var(--sand) 50%, var(--sand) 100%);
}
.journey.sand-to-cream {
  background: linear-gradient(to bottom, var(--sand) 0%, var(--sand) 50%, var(--cream) 50%, var(--cream) 100%);
}
.journey.into-umber {
  background: linear-gradient(to bottom, var(--cream) 0%, var(--cream) 50%, var(--umber) 50%, var(--umber) 100%);
}

.journey-path {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.4;
  stroke-linecap: round;
  /* pathLength is normalized to 120 in the SVG markup; "0 4" + round caps
     renders the line as a trail of dots */
  stroke-dasharray: 0 4;
  opacity: 0.75;
  animation: wander 30s linear infinite;
}
.journey.into-umber .journey-path { stroke: url(#path-dusk); }

@keyframes wander {
  to { stroke-dashoffset: -120; }
}

.journey-mountains {
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0.4;
}
.journey.into-umber .journey-mountains { stroke: var(--sage); opacity: 0.5; }

.journey-waypoint {
  fill: var(--cream);
  stroke: var(--terracotta);
  stroke-width: 1.8;
}
.journey.into-umber .journey-waypoint { fill: var(--umber); stroke: var(--sand); }

/* ---------- Sections (shared) ---------- */
.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* Eyebrows carry a waypoint marker: a small rotated square,
   the same glyph that ends each path segment. */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  margin-bottom: 0.6rem;
}
.section-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border: 1.8px solid var(--terracotta);
  transform: rotate(45deg);
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 480;
  font-size: clamp(2rem, 5.4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 420;
}

.section-lede { max-width: 560px; margin-bottom: 2rem; font-size: 1.06rem; }

/* ---------- Story ---------- */
.story { background: var(--cream); }

.story-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 860px) {
  .story-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .story-portrait { position: sticky; top: calc(var(--header-height) + 2rem); }
}
@media (max-width: 859px) {
  .story-portrait { max-width: 380px; margin: 0 auto; width: 100%; }
}

.story-portrait img {
  width: 100%;
  border-radius: 26px 10px 26px 10px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.story-portrait figcaption {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  text-align: center;
  padding-top: 0.8rem;
}

.story-body p { margin-bottom: 1.15rem; font-size: 1.06rem; max-width: 62ch; }
.story-body p:first-child {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.4rem, 3.4vw, 1.8rem);
  line-height: 1.35;
  color: var(--terracotta-dark);
  margin-bottom: 1.4rem;
}
.story-signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--terracotta);
}

/* ---------- Gallery ---------- */
.gallery-section { background: var(--sand); }

.gallery-grid {
  columns: 2;
  column-gap: 0.9rem;
}
@media (min-width: 720px) { .gallery-grid { columns: 3; column-gap: 1.1rem; } }

.gallery-item {
  display: block;
  width: 100%;
  margin-bottom: 0.9rem;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  break-inside: avoid;
  box-shadow: 0 4px 14px rgba(59, 42, 32, 0.08);
  border-radius: 18px 8px 18px 8px;
  transition: box-shadow 0.3s ease;
}
.gallery-item:nth-child(even) { border-radius: 8px 18px 8px 18px; }
.gallery-item:hover { box-shadow: 0 10px 26px rgba(59, 42, 32, 0.16); }
@media (min-width: 720px) { .gallery-item { margin-bottom: 1.1rem; } }

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ---------- Offer ---------- */
.offer { background: var(--cream); }

.offer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 640px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }

.offer-card {
  background: #fff;
  border: 1px solid rgba(59, 42, 32, 0.07);
  border-radius: 26px 12px 26px 12px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.offer-card:nth-child(even) { border-radius: 12px 26px 12px 26px; }
.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(59, 42, 32, 0.13);
}

.offer-icon {
  width: 52px;
  height: 52px;
  border-radius: 46% 54% 52% 48% / 48% 46% 54% 52%;
  background: rgba(138, 154, 126, 0.18);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.offer-card:nth-child(2) .offer-icon { background: rgba(193, 102, 59, 0.14); color: var(--terracotta-dark); border-radius: 54% 46% 48% 52% / 52% 54% 46% 48%; }
.offer-card:nth-child(3) .offer-icon { background: rgba(232, 220, 200, 0.75); color: var(--terracotta-dark); }
.offer-card:nth-child(4) .offer-icon { background: rgba(138, 154, 126, 0.18); color: var(--sage-deep); border-radius: 54% 46% 48% 52% / 52% 54% 46% 48%; }
.offer-icon svg { width: 27px; height: 27px; }

.offer-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.offer-card p { font-size: 0.97rem; }

/* ---------- Contact (the last camp: dark umber) ---------- */
.contact {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(138, 154, 126, 0.10) 0%, rgba(138, 154, 126, 0) 55%),
    var(--umber);
  color: var(--cream);
  padding-bottom: 5.5rem;
}
.contact-inner { max-width: 720px; text-align: center; }

.tin-cup {
  display: block;
  margin: 0 auto 1.4rem;
  width: 64px;
  height: 64px;
  color: var(--sand);
  opacity: 0.9;
}

.contact .section-eyebrow {
  justify-content: center;
  color: var(--sand);
}
.contact .section-eyebrow::before { border-color: var(--sand); }

.contact .section-title { color: var(--cream); }
.contact .section-title em { color: #D9A377; }

.contact .section-lede {
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 246, 240, 0.85);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.8rem;
}
.contact .btn-outline {
  border-color: rgba(250, 246, 240, 0.6);
  color: var(--cream);
}
.contact .btn-outline:hover { background: var(--cream); color: var(--umber); border-color: var(--cream); }

.inquiry-form {
  background: var(--cream);
  color: var(--umber);
  border-radius: 26px 14px 26px 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  padding: 1.8rem 1.5rem;
  text-align: left;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) { .inquiry-form { padding: 2.4rem; } }

.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.inquiry-form label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
.inquiry-form label span { font-weight: 400; letter-spacing: 0.03em; }
.inquiry-form label em { color: rgba(59, 42, 32, 0.55); font-style: normal; font-size: 0.85em; }

.inquiry-form input,
.inquiry-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--umber);
  background: #fff;
  border: 1.5px solid rgba(59, 42, 32, 0.14);
  border-radius: var(--radius);
  padding: 0.75rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.inquiry-form textarea { resize: vertical; min-height: 120px; }

.btn-submit { justify-self: center; padding: 0.85rem 2.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--umber-deep);
  color: var(--sand);
  text-align: center;
  padding: 2.8rem 1.25rem;
  border-top: 1px solid rgba(232, 220, 200, 0.12);
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; gap: 0.4rem; justify-items: center; }
.footer-logo { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 0.6rem; }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
}
.site-footer a { color: var(--sand); }
.site-footer a:hover { color: #fff; }
.footer-dot { margin: 0 0.5rem; opacity: 0.6; }
.footer-small { font-size: 0.85rem; opacity: 0.65; margin-top: 0.6rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 21, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
  padding: 0.6rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox button:hover { opacity: 1; transform: scale(1.08); }

.lightbox-close { top: 1rem; right: 1.2rem; font-size: 2.4rem; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}
.lightbox-prev { left: 0.8rem; }
.lightbox-next { right: 0.8rem; }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.1); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img { animation: none; }
  .hero-eyebrow, .hero-title, .hero-sub, .hero-actions { animation: none; }
  .journey-path { animation: none; }
}
