/* ==========================================================================
   Sweet Pea Home & Lighting
   Layout is pure CSS (grid / flex / relative units). No JS positioning.
   Breakpoints: 600px (small tablet), 900px (nav + 2-col), 1200px (wide)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #0F3457;
  --navy-deep: #0B2742;
  --petal: #6C92C4;
  --tint: #EEF3F9;
  --white: #FFFFFF;
  --paper: #FAF9F6;
  --ink: #1C2633;
  --muted: #5A6675;
  --line: rgba(15, 52, 87, .18);
  --brass: #B08D57;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --header-h: 4.5rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 75rem;
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
  --space-block: clamp(2.5rem, 6vw, 5rem);

  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, .95rem + .2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;            /* belt-and-braces: no sideways scroll */
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
input, select, textarea, button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  padding: .75rem 1rem; background: var(--navy); color: var(--white);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small caps labels */
.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--petal);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 3rem;
  padding: .85rem 1.75rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.btn-solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--white); color: var(--navy); }
.btn-outline-dark { color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  /* no backdrop-filter/transform here: they would trap the fixed mobile menu */
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: auto; height: 2.75rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-sub {
  margin-top: .3rem;
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Menu button (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .5rem .25rem .5rem .75rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--navy);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel: drops below the header, scrolls if short screen */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.5rem);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
}
.nav-call { align-self: stretch; }

@media (max-width: 380px) {
  .brand-name { font-size: 1.2rem; letter-spacing: .1em; }
  .brand-sub { letter-spacing: .24em; }
  .nav-toggle-label { display: none; }
}

/* Desktop nav: inline */
@media (min-width: 900px) {
  :root { --header-h: 5.25rem; }
  .brand-mark { height: 3.25rem; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-list { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
  .nav-list a {
    padding: .5rem 0;
    border: 0;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    position: relative;
  }
  /* underline grows on hover/focus; also shown for the current section */
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .2rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
  }
  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
  .nav-call { align-self: auto; min-height: 2.75rem; padding: .7rem 1.25rem; }
}
/* Between 900–1100px: keep call button compact */
@media (min-width: 900px) and (max-width: 1099px) {
  .nav-call-label { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero .btn-solid { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero .btn-solid:hover, .hero .btn-solid:focus-visible { background: var(--tint); border-color: var(--tint); }
.hero-lede {
  margin: 1.5rem 0 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  color: rgba(255,255,255,.85);
}
.hero-art { justify-self: center; width: min(22rem, 80%); }
.hero-art img { width: 100%; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
  .hero-art { width: min(26rem, 100%); }
}

/* ==========================================================================
   INTRO BAND
   ========================================================================== */
.intro-band { padding-block: var(--space-block); }
.intro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.intro-inner h2 { max-width: 22ch; }

/* ==========================================================================
   FEATURE ROWS (alternating)
   ========================================================================== */
.features { padding-bottom: var(--space-section); }
.features .container { display: grid; gap: var(--space-section); }

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-text { max-width: 34rem; }
.feature-text h2 { margin-bottom: 1.5rem; }
.feature-text p + p { margin-top: 1rem; }
.rule { display: block; width: 2.5rem; height: 1px; background: var(--navy); margin-bottom: 1.5rem; }

@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; }
  .feature--flip { grid-template-columns: 7fr 5fr; }
  .feature--flip .feature-text { order: 2; }
  .feature--flip .feature-media { order: 1; }
}

/* Photo slot placeholder: keeps a fixed aspect ratio, never a fixed height */
.photo-slot {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-align: center;
}
.photo-slot--portrait { aspect-ratio: 4 / 5; }

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services {
  background: var(--white);
  padding-block: var(--space-section);
  border-block: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  margin-bottom: var(--space-block);
}
.section-head h2 { max-width: 30ch; }
.section-head .kicker { margin-bottom: 0; }
.section-head--center { justify-items: center; text-align: center; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  /* hairlines: grid draws top/left, each card draws right/bottom,
     so an empty last cell just stays white */
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.service-card h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.45rem); }
.service-card p { color: var(--muted); font-size: .95rem; }
.icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .5rem;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding-block: var(--space-section); }
.about-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-media { width: min(100%, 28rem); }
.about-text h2 { margin-bottom: 1.5rem; }
.owner-quote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--brass);
}
.owner-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  line-height: 1.5;
  color: var(--navy);
}
.owner-quote footer { margin-top: .75rem; font-size: .85rem; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.facts dt, .contact-details dt {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--petal);
}
.facts dd { margin-top: .35rem; font-size: .95rem; }

@media (min-width: 900px) {
  .about-inner { grid-template-columns: 5fr 7fr; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews {
  background: var(--tint);
  padding-block: var(--space-section);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.review-grid > li { display: flex; }
.review {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
}
.review blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  line-height: 1.5;
  color: var(--navy);
}
.review figcaption { font-size: .85rem; font-weight: 500; letter-spacing: .04em; }
.review figcaption span { font-weight: 300; color: var(--muted); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-block: var(--space-section); }
.contact-inner {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}
.contact-panel {
  background: var(--navy);
  color: rgba(255,255,255,.88);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.contact-panel h2 { color: var(--white); margin-bottom: 1rem; }
.contact-panel .kicker { color: rgba(255,255,255,.65); }
.contact-phone {
  display: inline-block;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  line-height: 1.2;
  padding-bottom: .25rem;
}
.contact-phone:hover, .contact-phone:focus-visible { border-bottom-color: var(--white); }
.contact-details { display: grid; gap: 1.25rem; }
.contact-details dt { color: rgba(255,255,255,.6); }
.contact-details dd { margin-top: .25rem; color: var(--white); }

.quote-form { padding: clamp(2rem, 5vw, 3.5rem); }
.form-title { margin-bottom: 1.5rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
.req { color: var(--brass); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 1rem;             /* 16px: stops iOS zoom on focus */
  font-weight: 400;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.field [aria-invalid="true"] { border-color: #A23B3B; }
.field-error { font-size: .8rem; color: #A23B3B; }
.form-note { margin: 1rem 0 1.25rem; font-size: .8rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-size: .95rem; color: var(--navy); min-height: 1.5em; }

/* Web3Forms states: sending, error, success, spam trap */
.form-status.is-error { color: #A23B3B; }
.form-status a, .form-success a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .2em;
  white-space: nowrap;
}
.quote-form .btn[disabled] { opacity: .7; cursor: progress; }
.quote-form.is-sent > :not(.form-success) { display: none; }   /* success replaces the form */
.form-success:focus { outline: none; }
.form-success p { font-size: 1.05rem; color: var(--ink); }
.form-success p + p { margin-top: 1rem; }
.form-hp {                     /* visually hidden, not display:none (Web3Forms honeypot) */
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 5fr 7fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding-block: var(--space-block);
  text-align: center;
  font-size: .9rem;
}
.footer-inner { display: grid; justify-items: center; gap: 1rem; }
.footer-brand img { width: 8rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--white); }
.footer-contact a { color: var(--white); }
.footer-contact span { margin-inline: .5rem; }
.footer-copy { font-size: .78rem; letter-spacing: .06em; }

/* ==========================================================================
   STAGE 3: STYLING LAYER
   Floral details, light/glow, refined surfaces. All static; no side vines.
   ========================================================================== */

/* ---------- Hero: soft "lamp light" glow behind the logo ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(108, 146, 196, .22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;          /* glow is clipped to the hero, never widens the page */
}
.hero h1 em {
  font-style: italic;
  color: #CFDDF0;
}
.hero-art { position: relative; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -1;
  background: radial-gradient(circle at 60% 55%, rgba(255, 233, 196, .20), rgba(255, 233, 196, 0) 62%);
  pointer-events: none;
}
.hero-art img { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25)); }

/* thin framing lines inside the hero, like a print mat */
.hero::after {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) + 1rem) clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 599px) { .hero::after { display: none; } }

/* ---------- Intro band ---------- */
.intro-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.intro-band .kicker { color: var(--brass); }

/* ---------- Kicker with a short leading line ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.section-head--center .kicker::before { display: none; }

/* ---------- Ornament: line · flower · line (echoes the logo lockup) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(100%, 16rem);
  margin-inline: auto;
}
.ornament span { flex: 1; height: 1px; background: var(--line); }
.ornament img { width: 1.6rem; height: auto; }
.ornament--light span { background: rgba(255, 255, 255, .25); }

/* ---------- Feature rows ---------- */
.feature-text h2 { font-weight: 400; }
.feature-text p { color: #3B4756; }
.rule { background: var(--brass); }

/* Photo slots: placeholder panels styled as framed prints */
.photo-slot {
  position: relative;
  overflow: hidden;
  gap: 1rem;
  align-content: center;
  background: linear-gradient(155deg, #F3F6FA 0%, #DFE8F3 100%);
  border: 0;
  outline: 1px solid rgba(15, 52, 87, .22);
  outline-offset: -.85rem;
}
.slot-flower {
  width: clamp(4.5rem, 22%, 8rem);
  opacity: .85;
}
.slot-label {
  max-width: 22ch;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(15, 52, 87, .65);
}
/* offset hairline frame behind images on larger screens */
@media (min-width: 600px) {
  .feature-media { position: relative; }
  .feature-media::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1.25rem -1.25rem 1.25rem;
    border: 1px solid var(--brass);
    opacity: .55;
    z-index: -1;
  }
  .feature--flip .feature-media::before { inset: 1.25rem 1.25rem -1.25rem -1.25rem; }
  .features .container { padding-inline: calc(var(--gutter) + 1.25rem); }
  .about-media { position: relative; }
  .about-media::before {
    content: "";
    position: absolute;
    inset: -1.25rem 1.25rem 1.25rem -1.25rem;
    border: 1px solid var(--brass);
    opacity: .55;
    z-index: -1;
  }
}
.features, .about { position: relative; isolation: isolate; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-card {
  position: relative;
  transition: background-color .5s var(--ease-out);
}
.service-card::after {          /* thin top accent that grows on hover/focus */
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: 100%;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
/* keyboard focus always; mouse hover only on devices that truly hover,
   so a tap on a phone doesn't leave a card stuck highlighted */
.service-card:focus-within { background: #F7F9FC; }
.service-card:focus-within::after { transform: scaleX(1); }
@media (hover: hover) {
  .service-card:hover { background: #F7F9FC; }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .icon { stroke: var(--petal); }
}
.icon { stroke: var(--navy); transition: stroke .5s var(--ease-out); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-text h2 { font-weight: 400; }

/* ---------- Reviews ---------- */
.reviews {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .7), transparent 70%),
    var(--tint);
}
.review { position: relative; padding-top: clamp(3rem, 5vw, 3.75rem); }
.review::before {
  content: "\201C";
  position: absolute;
  top: .25rem;
  left: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--petal);
  opacity: .55;
}
.review figcaption {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-inner { box-shadow: 0 30px 60px -40px rgba(11, 39, 66, .35); }
.contact-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(108, 146, 196, .25), transparent 60%),
    var(--navy);
}
.contact-panel::after {         /* faint flower watermark, bottom corner */
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  width: 9rem;
  aspect-ratio: 228 / 309;
  /* PHOTO: Faint flower watermark in the bottom-right corner of the navy "Get in Touch" panel (Contact section).
     CHANGE: the line below - the path inside url("assets/flower.webp"). (Background images have no alt text.)
     SIZE: portrait, transparent background (current file 228x309). Shown about 144px wide at low opacity; scaled to fit, not cropped.
     ALSO: the same flower file is used in 5 places - About photo placeholder and Reviews ornament (index.html), contact panel watermark (styles.css), intro 2 and intro 4 (script.js). Replacing the file in assets/ changes all five. */
  background: url("assets/flower.webp") center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}
.contact-panel > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(108, 146, 196, .16), transparent 70%),
    var(--navy-deep);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.footer-contact a {
  display: inline-block;
  padding-block: .6rem;             /* comfortable tap target on phones */
  text-decoration: none;
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)) left calc(100% - .55rem) / 100% 1px no-repeat;
}

/* ---------- Scroll fade-in (JS adds .reveal; without JS all content shows) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   STAGE 4: OPENING INTRO (overlay only; removed from the DOM when done)
   Rules: slow ease-out, max 2 things moving at once, 1px lines,
   position:fixed so it never touches the page layout underneath.
   ========================================================================== */
:root {
  --intro-ease: cubic-bezier(.22, .61, .36, 1);     /* gentle ease-out, no overshoot */
  --intro-ease-slow: cubic-bezier(.16, .84, .32, 1);
  --intro-ease-exit: cubic-bezier(.33, .1, .25, 1);   /* soft, unhurried fade-out */
  --intro-v1-bg: #07131F;
}

/* Pre-build cover (html::before is fixed; it can't affect layout) */
html.intro-pending::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--intro-v1-bg);
}
html.intro-pending.intro-v2::before,
html.intro-pending.intro-v4::before { background: var(--paper); }
html.intro-pending.intro-v3::before { background: var(--navy-deep); }

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  place-content: center;            /* keeps over-wide art (v4 on phones) centred */
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding: var(--gutter);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--intro-leave, .9s) var(--intro-ease-exit),
              transform var(--intro-leave, .9s) var(--intro-ease-exit);
}
.intro.is-leaving, .intro.is-skipping { opacity: 0; pointer-events: none; }

.intro-logo { width: 100%; height: auto; }

.intro-skip {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: .75rem 1rem;
  background: none;
  border: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.intro-skip:hover, .intro-skip:focus-visible { color: rgba(255, 255, 255, .9); }

/* ---------- Version 1: Wix-style. Scene rises out of darkness with a slow drift ---------- */
.intro--v1 { background: var(--intro-v1-bg); }
.intro--v1 .intro-scene {
  position: relative;
  width: min(72vw, 46vh, 24rem);
  opacity: 0;
  animation: intro-v1-scene 1.9s var(--intro-ease) forwards;
}
.intro--v1 .intro-glow {
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: radial-gradient(circle, rgba(108, 146, 196, .28) 0%, rgba(255, 233, 196, .08) 35%, transparent 65%);
}
@keyframes intro-v1-scene {
  from { opacity: 0; transform: scale(1.07) translate3d(0, 2%, 0); filter: brightness(.55); }
  to   { opacity: 1; transform: none; filter: brightness(1); }
}
.intro-tagline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: clamp(.6rem, .55rem + .3vw, .75rem);
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  opacity: 0;
  animation: intro-fade 1s var(--intro-ease) .9s forwards;
}
.intro-tagline span { width: clamp(1.5rem, 6vw, 3.5rem); height: 1px; background: rgba(255, 255, 255, .45); flex: none; }
.intro--v1.is-leaving { transform: translate3d(0, -1.5vh, 0); }

@keyframes intro-fade { to { opacity: 1; } }

/* ---------- Version 2: logo fades in, one flower opens behind it, all fades up ---------- */
.intro--v2 { background: var(--paper); }
.intro--v2 .intro-skip { color: rgba(15, 52, 87, .5); }
.intro--v2 .intro-skip:hover, .intro--v2 .intro-skip:focus-visible { color: var(--navy); }
.intro-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 44vh, 20rem);
}
.intro-stage > * { grid-area: 1 / 1; }
.intro--v2 .intro-flower {
  width: 120%;
  max-width: none;
  justify-self: center;
  opacity: 0;
  transform-origin: 62% 78%;               /* bloom opens from its base */
  animation: intro-v2-bloom 1.8s var(--intro-ease) forwards;   /* slow opening */
}
@keyframes intro-v2-bloom {
  from { opacity: 0;   transform: translate3d(-4%, 6%, 0) scale(.55) rotate(-16deg); clip-path: circle(6% at 62% 78%); }
  to   { opacity: .28; transform: none;                                        clip-path: circle(80% at 50% 50%); }
}
.intro--v2 .intro-logo {
  position: relative;
  opacity: 0;
  animation: intro-fade .85s var(--intro-ease) .1s forwards;
}
.intro--v2.is-leaving { transform: translate3d(0, -4vh, 0); }

/* ---------- Version 3: minimal. Logo and name glow on like a light ---------- */
.intro--v3 { background: var(--navy-deep); }
.intro--v3 .intro-stage { width: min(58vw, 42vh, 18rem); }
.intro--v3 .intro-glow {
  width: 280%;                       /* wide halo: the light spreads well past the logo */
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 240, 214, .36) 0%,
    rgba(255, 238, 210, .24) 18%,
    rgba(255, 236, 205, .13) 34%,
    rgba(160, 180, 205, .08) 50%,
    transparent 70%);
  opacity: 0;
  animation: intro-fade .8s var(--intro-ease) forwards;
}
.intro--v3 .intro-logo {
  opacity: 0;
  animation: intro-v3-on .75s var(--intro-ease) forwards;
}
@keyframes intro-v3-on {
  from { opacity: 0; filter: brightness(.4) drop-shadow(0 0 0 rgba(255, 236, 205, 0)); }
  to   { opacity: 1; filter: brightness(1.06) drop-shadow(0 0 22px rgba(255, 238, 210, .42)); }
}

@media (prefers-reduced-motion: reduce) {
  .intro, html.intro-pending::before { display: none; }   /* JS also skips it */
}

/* ---------- Version 4: green vines grow out of the logo; blue sweet peas open on them ----------
   1) logo fades in  2) vines grow, each leaf/flower opening as the tip passes it  3) fade out */
.intro--v4 { background: var(--paper); }
.intro--v4 .intro-skip { color: rgba(15, 52, 87, .5); }
.intro--v4 .intro-skip:hover, .intro--v4 .intro-skip:focus-visible { color: var(--navy); }
.intro-vines {
  width: min(140vw, 64rem, 125vh);   /* on phones the vine tips run off the edges */
  max-width: none;
  height: auto;
  overflow: visible;
}
.v4-logo { opacity: 0; animation: intro-fade .7s var(--intro-ease) forwards; }
.v4-vine {
  fill: none;
  stroke: #2E5248;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: v4-grow 1.7s var(--intro-ease) .7s forwards;   /* keep in sync with V4_GROW_* in script.js */
}
@keyframes v4-grow { to { stroke-dashoffset: 0; } }
.v4-stem {                          /* short stalk joining each flower to the vine */
  fill: none;
  stroke: #2E5248;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: v4-grow .4s var(--intro-ease) forwards;   /* per-item delay set in script.js */
}
.v4-leaf path { fill: #4A7466; }
.v4-leaf .v4-vein { fill: none; stroke: #9DBBAC; stroke-width: .8; stroke-linecap: round; }
.v4-leaf, .v4-bloom {
  transform-box: fill-box;
  opacity: 0;
  transform: scale(.35);
  animation: v4-open .8s var(--intro-ease) forwards;   /* per-item delay set in script.js */
}
.v4-leaf  { transform-origin: 0% 50%; }    /* leaves unfurl from the stem */
.v4-bloom { transform-origin: 75% 90%; }   /* flowers open from their base */
@keyframes v4-open { to { opacity: 1; transform: none; } }
.intro--v4.is-leaving { transform: translate3d(0, -3vh, 0); }

/* ==========================================================================
   PHOTOS + SCROLL MOTION (effects modelled on the client's Wix site)
   1) hero photo: slow parallax   2) feature photos: sideways pan in frame
   3) photo band: dimmed photo with vertical parallax
   All motion is CSS scroll-driven animation (no JS, no layout measuring).
   Browsers without support, or with reduced motion, get still photos.
   ========================================================================== */

/* ---------- 1) Hero background photo ---------- */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;                 /* under the frame line (-1) and the content */
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* No tint over the hero photo: the text sits directly on it. A soft shadow
   on the lettering keeps it readable over brighter parts of the room. */
.hero .eyebrow, .hero h1, .hero-lede {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 22px rgba(0, 0, 0, .55);
}
.hero h1 em { color: #E4EDF8; }
.hero .eyebrow { color: rgba(255, 255, 255, .92); }
/* Phones/tablets crop the photo narrow: frame the darker left side of the room
   (wall, artwork, dining table) behind the text instead of the bright window. */
@media (max-width: 899px) {
  .hero-photo img { object-position: 12% 50%; }
}
/* Light neutral shade (black, not navy) behind the text side only; it fades
   out before the logo so the room stays bright. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .40) 0%, rgba(0, 0, 0, .28) 35%, rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, 0) 70%);
}
@media (max-width: 899px) {           /* stacked layout: text is on top, logo below */
  .hero-photo::after {
    background: linear-gradient(180deg,
      rgba(0, 0, 0, .40) 0%, rgba(0, 0, 0, .30) 45%, rgba(0, 0, 0, .10) 68%, rgba(0, 0, 0, 0) 85%);
  }
}

/* ---------- 2) Feature photos ---------- */
.photo-frame {
  position: relative;
  overflow: clip;              /* the photo pans inside this frame. "clip", not "hidden":
                                  hidden would make this a scroll container and freeze
                                  the photo's view() scroll timeline */
  aspect-ratio: 4 / 3;
  background: var(--tint);
}
.feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);      /* spare image on each side to pan into */
}

/* ---------- 3) Photo band ---------- */
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(24rem, 72vh, 40rem);
  padding-block: var(--space-section);
  text-align: center;
  color: var(--white);
  view-timeline: --sp-band block;
}
.photo-band-media { position: absolute; inset: 0; z-index: -1; }
.photo-band-media img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;                /* extra height so the parallax never shows an edge */
  object-fit: cover;
}
.photo-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 50% 50%, rgba(11, 39, 66, .45), rgba(11, 39, 66, .72));
}
.photo-band::after {           /* hairline frame, as in the hero */
  content: "";
  position: absolute;
  inset: clamp(.75rem, 2vw, 1.5rem);
  border: 1px solid rgba(255, 255, 255, .18);
  pointer-events: none;
}
.photo-band-inner { display: grid; justify-items: center; gap: 1.75rem; }
.photo-band .kicker { color: rgba(255, 255, 255, .8); margin: 0; }
.photo-band-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.12;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

/* ---------- Scroll-driven motion (progressive enhancement) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* hero photo moves down at ~half the scroll speed while the hero leaves */
    .hero-photo img {
      animation: sp-hero-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100vh;
    }
    /* feature photos pan sideways as they cross the screen; direction alternates */
    .feature-photo {
      animation: sp-pan-right linear both;
      animation-timeline: view();
      animation-range: cover;
    }
    .feature--flip .feature-photo { animation-name: sp-pan-left; }
    /* band photo drifts against the scroll */
    .photo-band-media img {
      animation: sp-band-parallax linear both;
      animation-timeline: --sp-band;
      animation-range: cover;
    }
  }
}
@keyframes sp-hero-parallax { to { transform: translate3d(0, 45vh, 0); } }
/* about ±50px on a desktop-size photo, like the Wix site (7% x 1.18 < 9% spare) */
@keyframes sp-pan-right {
  from { transform: scale(1.18) translate3d(-7%, 0, 0); }
  to   { transform: scale(1.18) translate3d(7%, 0, 0); }
}
@keyframes sp-pan-left {
  from { transform: scale(1.18) translate3d(7%, 0, 0); }
  to   { transform: scale(1.18) translate3d(-7%, 0, 0); }
}
@keyframes sp-band-parallax {
  from { transform: translate3d(0, -10%, 0); }
  to   { transform: translate3d(0, 10%, 0); }
}
