/* ============================================================
   The Flower Couch — design system
   Brand voice: playful, colorful, full of texture.
   Edit the values in :root to re-skin the whole site at once.
   ============================================================ */

:root {
  /* Colors — drawn from the logo (sage couch, taupe type) and Emily's
     photography (coral & pink blooms, golden accents). */
  --cream:      #FBF6EF;  /* page background */
  --cream-deep: #EFE9DD;  /* alternating section background */
  --ink:        #44403A;  /* main text — warm charcoal, matches logo type */
  --ink-soft:   #847C72;  /* secondary text — logo taupe */
  --terracotta: #E27086;  /* primary accent — coral-pink from the blooms */
  --terracotta-dark: #C9546C;
  --green:      #46604F;  /* deep botanical green (logo leaves) */
  --sage:       #9DBBAC;  /* soft sage — the couch */
  --sage-soft:  #D5E4DC;  /* pale sage tint */
  --ochre:      #E7B24E;  /* golden pop (craspedia) */
  --blush:      #F4CBD2;  /* soft pink */
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing & layout */
  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(46, 42, 38, 0.45);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); }

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.35rem; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--terracotta-dark);
  margin-bottom: 0.8rem;
}

/* ---------- Layout helpers ---------- */
.container { width: 90%; max-width: var(--maxw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--cream-deep); }
.section--green { background: var(--green); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-family: var(--font-body);
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--terracotta-dark);
  background: var(--terracotta-dark);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(0.92); }
.btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--terracotta-dark); }
.btn--ghost:hover { background: var(--terracotta-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { filter: brightness(0.96); }

/* Inline form feedback */
.form-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #FBE3E3;
  color: #9B2C2C;
  font-size: 0.92rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46, 42, 38, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-logo { height: 160px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem; }
.nav-links a:hover { color: var(--terracotta-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-art {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, var(--blush), transparent 55%),
    radial-gradient(circle at 80% 70%, var(--ochre), transparent 50%),
    linear-gradient(135deg, var(--terracotta), var(--sage));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
/* Real photo sits on top of the gradient; if the file is missing it simply
   hides (see onerror in the HTML) and the gradient shows through. */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero .btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(46,42,38,0.05);
}
.card .icon { font-size: 2rem; }
.card h3 { margin-top: 0.6rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid rgba(46,42,38,0.18);
  border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--terracotta); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .req { color: var(--terracotta-dark); }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 3rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--blush); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; }
.footer-small { opacity: 0.7; font-size: 0.85rem; margin-top: 2rem; }

/* Social icon row */
.socials { display: flex; gap: 0.75rem; margin-top: 0.9rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: var(--blush);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.socials a:hover { background: var(--terracotta-dark); color: var(--white); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Cards with images (subscription themes, etc.) ---------- */
.card-img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  position: relative;
  background: linear-gradient(135deg, var(--blush), var(--sage));
}
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Portfolio: collection covers ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.collection-cover {
  position: relative;
  display: block;
  width: 100%;
  border: 0; padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  color: var(--white);
  font-family: inherit;
  text-align: left;
}
.collection-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-cover .cover-label {
  position: absolute; inset: auto 0 0 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(30, 26, 22, 0.78));
}
.collection-cover .cover-label h3 { color: var(--white); margin: 0; font-size: 1.25rem; }
.collection-cover .cover-label span { font-size: 0.85rem; opacity: 0.9; }
.collection-cover:hover img { transform: scale(1.04); }
.collection-cover img { transition: transform 0.4s ease; }

/* ---------- Lightbox (opens a collection) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 24, 20, 0.94);
  display: none;
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: block; }
.lightbox-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto 1.5rem;
  color: var(--cream);
}
.lightbox-head h2 { color: var(--white); margin: 0; }
.lightbox-close {
  background: rgba(255,255,255,0.12); color: var(--white);
  border: 0; border-radius: 999px; width: 44px; height: 44px;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { background: var(--terracotta-dark); }
.lightbox-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.lightbox-grid img, .lightbox-grid .ph {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  background: linear-gradient(135deg, var(--blush), var(--ochre));
}
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .form-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
  .nav-toggle { display: block; }
  .brand-logo { height: 90px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.2rem;
    background: var(--cream); padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(46,42,38,0.1);
    display: none;
  }
  .nav-links.open { display: flex; }
}
