/* ============================
   Bloom & Groen — Stylesheet
   ============================ */

:root {
  /* Brand hues */
  --sage: #8a9a7e;
  --sage-dark: #6f7f63;      /* fixed: solid accent bg, pairs with white text */
  --sage-accent: #6f7f63;    /* text/links on page or card background — brightens in dark mode */
  --sage-light: #dbe3d3;     /* section background — becomes a deep muted surface in dark mode */
  --blush: #e3b7b0;          /* section background — becomes a deep muted surface in dark mode */
  --blush-dark: #cf9a92;     /* fixed: gradient tiles, step numerals, footer accent */
  --gold: #c9a567;

  --ink: #423b35;            /* fixed: intentional dark surface (footer, hover-darken states) */
  --paper: #fbf6ef;          /* fixed: guaranteed-light text/lines on the --ink surface */
  --white: #ffffff;          /* fixed: text on saturated or dark component backgrounds */

  --bg: #fbf6ef;             /* page background */
  --surface: #ffffff;        /* card / component background */
  --text: #423b35;           /* primary foreground text */
  --text-soft: #6b6259;      /* secondary foreground text */

  --line: rgba(66, 59, 53, 0.08);
  --line-strong: rgba(66, 59, 53, 0.2);
  --shadow: rgba(66, 59, 53, 0.07);
  --header-bg: rgba(251, 246, 239, 0.94);

  color-scheme: light dark;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --max-width: 1140px;
  --radius: 4px;
}

/* Dark theme: applied automatically when the OS/browser prefers dark
   (unless the visitor has explicitly chosen light via the toggle), or
   forced either way once the toggle stamps data-theme on <html>. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sage: #8fa283;
    --sage-accent: #a8bd99;
    --sage-light: #262f21;
    --blush: #3a2b2a;
    --gold: #d8b876;

    --bg: #1c1815;
    --surface: #29241f;
    --text: #f2ece2;
    --text-soft: #b7aca0;

    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.22);
    --shadow: rgba(0, 0, 0, 0.45);
    --header-bg: rgba(23, 20, 17, 0.85);
  }
}

:root[data-theme="dark"] {
  --sage: #8fa283;
  --sage-accent: #a8bd99;
  --sage-light: #262f21;
  --blush: #3a2b2a;
  --gold: #d8b876;

  --bg: #1c1815;
  --surface: #29241f;
  --text: #f2ece2;
  --text-soft: #b7aca0;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: rgba(0, 0, 0, 0.45);
  --header-bg: rgba(23, 20, 17, 0.85);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.5rem; }

p { color: var(--text-soft); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-accent);
  margin-bottom: 14px;
}

.section {
  padding: 90px 0;
}

.section--tight {
  padding: 60px 0;
}

.section--sage {
  background: var(--sage-light);
}

.section--blush {
  background: var(--blush);
}

.center {
  text-align: center;
}

.lede {
  max-width: 620px;
  font-size: 1.1rem;
}

.center .lede {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--sage-dark);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--ink);
}

.btn--outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--light {
  background: var(--surface);
  color: var(--text);
}
.btn--light:hover {
  background: var(--sage-dark);
  color: var(--white);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.logo span {
  color: var(--sage-accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--sage-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--sage-light);
}

.theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--text);
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
  }
}

/* ============ Hero ============ */
.hero {
  padding: 110px 0 100px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(227, 183, 176, 0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(138, 154, 126, 0.3), transparent 40%);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lede {
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sub-page header banner (non-home pages) */
.page-banner {
  padding: 70px 0 50px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 30%, rgba(227, 183, 176, 0.3), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(138, 154, 126, 0.28), transparent 40%);
}

.page-banner .lede {
  margin: 0 auto;
}

/* ============ Placeholder imagery ============
   Real photos should replace these blocks — see README.
*/
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--sage), var(--blush-dark));
  position: relative;
  overflow: hidden;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.08) 2px,
    transparent 2px,
    transparent 14px
  );
}

.ph span {
  position: relative;
  padding: 0 18px;
}

.ph--alt {
  background: linear-gradient(145deg, var(--blush-dark), var(--gold));
}

.ph--photo {
  background: none;
}

.ph--photo::before {
  display: none;
}

.ph--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Feature cards (home) ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px var(--shadow);
}

.feature-card .ph {
  height: 220px;
}

.feature-card-body {
  padding: 28px;
}

.feature-card-body h3 {
  margin-bottom: 10px;
}

.feature-card-body p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.text-link {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-accent);
  border-bottom: 1px solid var(--sage-accent);
  padding-bottom: 2px;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Two-column intro ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split .ph {
  height: 420px;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split .ph {
    height: 280px;
  }
}

/* ============ Gallery ============ */
.filter-bar {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--sage-light);
}

.filter-btn.active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px var(--shadow);
}

.gallery-item .ph {
  height: 260px;
}

.gallery-item.hide {
  display: none;
}

.gallery-caption {
  background: var(--surface);
  padding: 16px 18px;
}

.gallery-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.gallery-caption span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-accent);
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Services / Pricing ============ */
.service-block {
  margin-bottom: 90px;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block-header {
  max-width: 640px;
  margin-bottom: 44px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 10px 26px var(--shadow);
  border-top: 3px solid var(--sage);
  display: flex;
  flex-direction: column;
}

.price-card--accent {
  border-top-color: var(--gold);
}

.price-card h3 {
  margin-bottom: 6px;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--sage-accent);
  margin: 10px 0 16px;
}

.price-tag small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  flex-grow: 1;
}

.price-card li {
  font-size: 0.92rem;
  color: var(--text-soft);
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.price-card li:first-child {
  border-top: none;
}

@media (max-width: 860px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Process steps ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--blush-dark);
  margin-bottom: 10px;
}

.step h4 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

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

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

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage-accent);
}

.form-note {
  font-size: 0.82rem;
  margin-top: 10px;
  color: var(--text-soft);
}

.contact-info h3 {
  margin-bottom: 14px;
}

.contact-info p {
  margin-bottom: 26px;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.info-list li:first-child {
  border-top: none;
}

.info-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-row a {
  padding: 10px 20px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-row a:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============ Footer ============
   Intentionally a fixed dark surface in both themes, so it always uses
   the constant --ink/--paper tokens rather than the flipping --bg/--text ones.
*/
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 54px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 36px;
}

.footer-top .logo {
  color: var(--paper);
}

.footer-top .logo span {
  color: var(--blush-dark);
}

.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 246, 239, 0.15);
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(251, 246, 239, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ Misc ============ */
.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 22px auto;
}

.left .divider {
  margin: 22px 0;
}
