/* Corine Amoia, bridal hair. Mel's Sep 8 blueprint CSS, adopted verbatim,
   with the site's real fonts (Cormorant Garamond + Lato) and the existing
   working pieces (menu, accordions, steps, form) styled to the same tokens.
   Design and layout (c) 2026 Maryellen Archambault.

   CRITICAL, do not reinterpret:
   .work-row-1 { grid-template-columns:70% 30%; aspect-ratio:1.95/1 }
   .work-row-2 { aspect-ratio:1.90/1 }
   .work-row-3 { grid-template-columns:60% 40%; aspect-ratio:2.40/1 }  */

:root {
  --bg: #f7f3ec;
  --panel: #f0eae0;
  --text: #211f1c;
  --muted: #80796f;
  --taupe: #b9a793;

  --page-gutter: 20px;
  --content-width: 760px;

  --sticky-h: 82px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", Arial, Helvetica, sans-serif;
}

/* ========================= BASE ========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom) + 24px);
}
img { display: block; width: 100%; }
.corine-page { width: 100%; overflow: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.is-empty { background: var(--panel); }

/* ========================= TYPOGRAPHY ========================= */
h1, h2, .brand-name {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
h1 {
  /* the blueprint's 38px minimum cannot fit its own 4-line break structure in
     the 42% column at 390px; scaled so the hero reads as the mock's 4 lines */
  font-size: clamp(20px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(38px, 10vw, 50px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
em { font-weight: 400; }
p { margin: 0; line-height: 1.55; }
.eyebrow, .brand-sub, .work-label, .work-heading-note, .footer {
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.short-rule, .mini-rule { width: 34px; height: 1px; background: var(--text); }
.short-rule { margin: 18px 0; }
.mini-rule { margin: 14px 0; }

/* ========================= HEADER ========================= */
.site-header {
  height: 68px;
  padding: 10px var(--page-gutter) 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
}
.brand-name { font-size: 32px; line-height: 0.9; }
.brand-sub { margin-top: 6px; color: var(--muted); font-size: 9px; letter-spacing: 0.34em; }
.menu-btn {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0; cursor: pointer;
}
.menu-btn span { display: block; width: 27px; height: 1px; background: var(--text); }

.menu {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4px var(--page-gutter) 14px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.menu a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.menu-contact { border-top: 1px solid rgba(0,0,0,0.12); margin-top: 6px; padding-top: 6px; }
.menu-contact a { color: var(--muted); }

/* ========================= HERO ========================= */
.hero {
  position: relative;
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 370px;
  background: #dfe7e6;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 48px 16px 30px 18px;
}
.hero-image { overflow: hidden; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 59% center;  /* the bride and her waves stay in frame */
}
.hero-copy .eyebrow { margin-bottom: 14px; }
.hero-copy p { font-size: 13px; color: #5b5650; margin-bottom: 20px; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  background: var(--taupe);
  color: #fff;
  border: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { opacity: .9; }
.btn-wide { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ========================= WORK SECTION ========================= */
.work-section {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--content-width);
  margin: 32px auto 64px;
}
.work-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}
.work-heading .eyebrow { margin-bottom: 8px; }
.work-heading .short-rule { margin-bottom: 0; }
.work-heading-note { padding-bottom: 7px; color: var(--muted); }
.work-row { width: 100%; overflow: hidden; }
.work-row + .work-row { margin-top: 8px; }

/* ROW 1 — 350 x 179 @ 390 viewport */
.work-row-1 {
  display: grid;
  grid-template-columns: 70% 30%;
  aspect-ratio: 1.55 / 1;
}
.work-image { overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: cover; }
.work-image-1 img { object-position: 52% 44%; }
.work-copy-1 {
  background: var(--panel);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-copy p, .work-overlay-copy p {
  font-family: Georgia, serif;
  font-size: 13px;
  line-height: 1.45;
}

/* ROW 2 — 350 x 184 @ 390 viewport */
.work-row-2 { aspect-ratio: 1.55 / 1; }
.work-image-2 { position: relative; width: 100%; height: 100%; }
.work-image-2 img { object-position: 50% 32%; }
.work-overlay-copy {
  position: absolute;
  top: 12%; left: 5%;
  z-index: 2;
  width: 27%;
  color: #fff;
}
.work-overlay-copy .mini-rule { background: #fff; }
.work-overlay-copy p { color: rgba(255,255,255,0.92); }

/* ROW 3 — 350 x 146 @ 390 viewport */
.work-row-3 {
  display: grid;
  grid-template-columns: 60% 40%;
  aspect-ratio: 1.95 / 1;
}
.work-image-3 img { object-position: 50% 32%; }
.work-copy-3 {
  padding: 15px 12px 12px 17px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.work-copy-3 p { font-family: Georgia, serif; font-size: 13px; color: var(--muted); }

/* ========================= SIMPLE CONTENT SECTIONS ========================= */
.simple-section {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 0;
}
.simple-section .eyebrow { margin-bottom: 12px; }
.simple-section h2 { margin-bottom: 24px; }
.simple-section > p { font-size: 15px; max-width: 520px; }

/* about: opens the page, Corine first (Mel, Sep 8) */
.about-section { padding-top: 22px; padding-bottom: 40px; }

.about-row { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: start; }
.about-photo { aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.about-bio p { font-size: 15px; }
.about-bio p + p { margin-top: 12px; }

/* services */
.price-line { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.price-note { color: var(--muted); font-size: 14px; max-width: 480px; }
.acc { margin-top: 22px; border-top: 1px solid rgba(0,0,0,0.12); }
.acc details { border-bottom: 1px solid rgba(0,0,0,0.12); }
.acc summary {
  list-style: none; cursor: pointer;
  padding: 14px 0;
  font-family: var(--serif); font-size: 21px;
  display: flex; align-items: center; justify-content: space-between;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--sans); font-size: 15px; color: var(--muted); transition: transform .2s ease; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { color: var(--muted); font-size: 14px; padding: 0 0 16px; }

/* process */
.steps { list-style: none; margin: 6px 0 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 38px 1fr; gap: 6px;
  padding: 15px 0; border-top: 1px solid rgba(0,0,0,0.12);
}
.steps li:first-child { border-top: 0; padding-top: 4px; }
.num { font-size: 10px; letter-spacing: 0.2em; color: var(--taupe); padding-top: 5px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; line-height: 1.2; }
.steps p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ========================= FINAL CTA ========================= */
.final-cta {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--content-width);
  margin: 48px auto 0;
  min-height: 210px;
  display: grid;
  grid-template-columns: 54% 46%;
  background: #eeeae4;
}
.final-copy {
  padding: 32px 14px 28px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.final-copy .eyebrow { font-size: 9px; margin-bottom: 14px; }
.final-copy h2 { font-size: 35px; margin-bottom: 22px; }
.final-image { overflow: hidden; }
.final-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% center;  /* keep the bride's hair visible */
}

/* ========================= INQUIRY FORM ========================= */
.inquiry-section .lede { color: var(--muted); font-size: 15px; }
.form { margin-top: 24px; }
.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  background: #fffdf8;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 0;
  padding: 13px 13px;
  font-family: var(--sans); font-weight: 300; font-size: 16px; color: var(--text);
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--text); }
input::placeholder, textarea::placeholder { color: #b6ae9f; opacity: 1; }
textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.notice {
  margin-top: 20px; border: 1px solid rgba(0,0,0,0.14);
  background: #fffdf8; padding: 16px; font-size: 14px;
}
.notice .eyebrow { margin-bottom: 8px; }
.notice a { text-decoration: underline; }

/* ========================= FOOTER ========================= */
.footer {
  width: calc(100% - (var(--page-gutter) * 2));
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(0,0,0,0.12);
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 8px;
}
.footer-links {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.footer-links a { text-decoration: underline; text-underline-offset: 2px; }

/* ========================= STICKY CONTACT ========================= */
.sticky-contact {
  position: fixed;
  /* no transforms here: a transform on a fixed element makes iOS Safari and
     in-app browsers repaint it late during scroll and the bar drifts */
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  min-height: calc(var(--sticky-h) + env(safe-area-inset-bottom));
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(247,243,236,0.97);
  border-top: 1px solid rgba(0,0,0,0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transition: opacity .22s ease, visibility .22s ease;
}
.sticky-contact.is-hidden { opacity: 0; visibility: hidden; }
.sticky-contact a {
  min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--text);
  font-size: 13px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}
.sticky-contact a:first-child {
  background: var(--taupe);
  color: #fff;
  border-color: var(--taupe);
}

/* ========================= SMALL PHONES ========================= */
@media (max-width: 374px) {
  :root { --page-gutter: 18px; }
  h1 { font-size: 21px; }
  .hero { min-height: 350px; }
  .hero-copy { padding-left: 14px; }
  .work-copy p, .work-overlay-copy p, .work-copy-3 p { font-size: 12px; }
}

/* ========================= TABLET / DESKTOP ========================= */
@media (min-width: 768px) {
  :root { --page-gutter: 32px; }
  .site-header { height: 84px; }
  .brand-name { font-size: 38px; }
  .hero { min-height: 500px; grid-template-columns: 42% 58%; }
  .hero-copy { padding: 80px 34px 40px; }
  .hero-copy h1 { font-size: 58px; line-height: 0.98; }
  .work-section { margin-top: 56px; }
  /* Desktop can become wider, but preserve the same editorial geometry. */
  .work-row-1 { aspect-ratio: 2.35 / 1; }
  .work-row-2 { aspect-ratio: 2.30 / 1; }
  .work-row-3 { aspect-ratio: 2.65 / 1; }
  .final-cta { min-height: 290px; }
}

/* ========================= MOTION ========================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .acc summary::after { transition: none; }
}
