/* ================================================
   Quinn Photography — Design Mockup Styles
   Brand Guidelines Applied
   ================================================ */

/* --- Variables --- */
:root {
  color-scheme: light;
  --dusty-rose: #B8908A;
  --deep-rose: #9E7670;
  --blush: #E8D5D0;
  --blush-light: #F3ECEA;
  --warm-white: #FAF7F5;
  --charcoal: #3D3030;
  --warm-grey: #5C4A4A;
  --mid-grey: #8A7A7A;
  --light-line: #DDD0CC;
  --white: #FFFFFF;

  /* Motion language — "develop, don't pop" (see MOTION-REVIEW.md) */
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);  /* the one true reveal curve */
  --ease-soft:  cubic-bezier(0.33, 0, 0.2, 1);   /* settle / parallax catch-up */
  --dur-reveal: 0.9s;   /* standard reveal */
  --dur-slow:   1.1s;   /* hero title, image zoom */
  --stagger:    90ms;   /* between siblings in a group */
}

/* Branded text selection */
::selection { background: var(--blush); color: var(--charcoal); }

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Base --- */
body {
  font-family: 'Libre Franklin', Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-grey);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* Inline prose links: charcoal text (AA 8:1 on warm-white) with a deep-rose
   underline so the brand accent stays without colour carrying meaning alone.
   Nav, footer and buttons all set their own colour + text-decoration, so this
   base rule only reaches links inside body copy. */
a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--deep-rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { color: var(--deep-rose); text-decoration-color: var(--deep-rose); }
a:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

/* Skip link — visible on focus only */
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 300;
  background: var(--charcoal); color: white;
  padding: 8px 16px; border-radius: 4px;
  font-family: 'Libre Franklin', sans-serif; font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: white; }

/* Interactive elements: prevent tap delay */
button, a, input, select, textarea, [role="button"] { touch-action: manipulation; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--charcoal);
  font-weight: 600;
}
h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.1; margin-bottom: 16px; text-wrap: balance; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin-bottom: 20px; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.25; font-weight: 500; margin-bottom: 12px; text-wrap: balance; }
h4 { font-size: 20px; line-height: 1.3; font-weight: 500; margin-bottom: 12px; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.lead { font-weight: 300; font-size: 17px; line-height: 1.75; }
.label {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid-grey); margin-bottom: 8px;
}

/* --- Layout --- */
.section { max-width: 900px; margin: 0 auto; padding: 80px 40px; }
.section--wide { max-width: 1100px; margin: 0 auto; padding: 80px 40px; }
.section--full { width: 100%; }
/* Warm white is the page canvas; --alt lifts a band back to crisp white */
.section--alt { background: var(--white); }
.section--blush { background: var(--blush-light); }
/* Brief: avoid dark/high-contrast. Contact CTA uses warm blush with a soft top border. */
.section--dark {
  background: linear-gradient(180deg, var(--blush-light) 0%, var(--warm-white) 100%);
  color: var(--warm-grey);
  border-top: 1px solid var(--light-line);
}
.section--dark h2, .section--dark h3 { color: var(--charcoal); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-line);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500; font-size: 20px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--warm-grey); text-decoration: none;
  padding: 4px 0; border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--charcoal); border-bottom-color: var(--dusty-rose);
}
/* Standing enquiry CTA in the nav — primary action one click from every page */
.nav-links li.nav-cta-item a {
  background: var(--dusty-rose); color: #fff;
  padding: 9px 20px; border-radius: 4px;
  border-bottom: none;
  transition: background-color 0.2s, transform 0.2s;
}
.nav-links li.nav-cta-item a:hover {
  background: var(--deep-rose); color: #fff; border-bottom: none;
}
.nav-links li.nav-cta-item a::after { display: none; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #3D3030 0%, #5a4a4a 50%, #3D3030 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(184,144,138,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1; max-width: 680px; padding: 40px;
}
.hero h1 { color: white; text-shadow: 0 2px 18px rgba(61,48,48,0.55); }
.hero .label { color: rgba(255,255,255,0.78); text-shadow: 0 2px 14px rgba(61,48,48,0.55); }
.hero p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 32px; text-shadow: 0 2px 14px rgba(61,48,48,0.5); }
.hero-sm { min-height: 40vh; }
.hero-tall { min-height: 85vh; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 16px 40px; border-radius: 4px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; font-weight: 600;
  line-height: 1.35; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid transparent;
  /* Keep filled buttons (overflow:hidden for the sheen) aligned with outline
     buttons sitting beside them — overflow changes inline baseline otherwise. */
  vertical-align: middle;
}
.btn:focus-visible {
  outline: 2px solid var(--dusty-rose);
  outline-offset: 3px;
}
.btn-primary { background: var(--dusty-rose); color: white; }
.btn-primary:hover { background: var(--deep-rose); color: white; }
.btn-outline { background: transparent; color: var(--dusty-rose); border-color: var(--dusty-rose); }
.btn-outline:hover { background: var(--blush-light); }
.btn-white { background: white; color: var(--dusty-rose); }
.btn-white:hover { background: var(--blush-light); }
.btn-outline--light { color: white; border-color: rgba(255,255,255,0.7); background: transparent; }
.btn-outline--light:hover { background: rgba(255,255,255,0.15); color: white; border-color: white; }
.btn + .btn { margin-left: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-light) 100%);
  border: 2px dashed var(--light-line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--mid-grey); font-size: 12px;
  padding: 24px; gap: 8px; min-height: 200px;
}
.img-placeholder--hero { min-height: 280px; border-radius: 0; border: none; }
.img-placeholder--portrait { aspect-ratio: 3/4; }
.img-placeholder--landscape { aspect-ratio: 16/9; }
.img-placeholder--square { aspect-ratio: 1; }
.img-placeholder--tall { min-height: 400px; }
.img-placeholder--sm { min-height: 120px; }

/* --- Real Images (Unsplash placeholders) --- */
.img-real {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 12px;
  display: block;
}
.img-placeholder--portrait .img-real,
.img-placeholder--landscape .img-real,
.img-placeholder--square .img-real {
  position: absolute; top: 0; left: 0;
}
.img-placeholder.has-img {
  position: relative; overflow: hidden;
  border: none; padding: 0;
  background: var(--blush-light);
}
.img-placeholder.has-img svg,
.img-placeholder.has-img span { display: none; }

.gallery-grid .img-placeholder.has-img {
  min-height: 0;
}
.gallery-grid .img-placeholder.has-img .img-real {
  position: static;
  aspect-ratio: 3/4;
}

/* Story card real images */
.story-card .img-placeholder.has-img {
  border-radius: 0;
}
.story-card .img-placeholder.has-img .img-real {
  border-radius: 0; min-height: 300px;
}
/* Story image fills its cell edge-to-edge. aspect-ratio:auto (not the 16/9 the
   --landscape base sets) stops the stretched cell deriving a width wider than its
   column — that was the earlier overlap bug. The photos are framed with headroom,
   so the centred cover-crop never clips heads. */
@media (min-width: 769px) {
  .story-card .img-placeholder.has-img { aspect-ratio: auto; }
}

/* Browse cards real images */
.card .img-placeholder.has-img {
  border-radius: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
}
.card .img-placeholder.has-img .img-real {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
  object-fit: cover;
}

/* Hero background images */
.hero.has-bg {
  background-size: cover; background-position: center;
}
.hero.has-bg::before {
  background: linear-gradient(rgba(61,48,48,0.32), rgba(61,48,48,0.46));
}
.img-placeholder:hover {
  background: linear-gradient(135deg, var(--blush-light) 0%, var(--blush) 100%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .img-placeholder:hover { transform: scale(1.01); }
}
.gallery-grid .img-placeholder { cursor: pointer; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.gallery-grid .img-placeholder:hover { box-shadow: 0 4px 16px rgba(61,48,48,0.12); }

/* --- Testimonial --- */
.testimonial {
  background: var(--blush-light); border-radius: 16px;
  padding: 48px; text-align: center;
}
.testimonial-quote {
  font-family: 'Cormorant Infant', Georgia, serif;
  font-style: italic; font-size: 28px; line-height: 1.5;
  color: var(--charcoal); margin-bottom: 24px;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; color: var(--dusty-rose); opacity: 0.5;
  display: block; line-height: 0.5; margin-bottom: 16px;
}
.testimonial-author {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--deep-rose);
}
.testimonial--inline {
  background: transparent; padding: 32px 0;
  border-top: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

/* --- Pull quote & accent highlight (brand signature) --- */
/* Cormorant Infant italic in dusty rose — used sparingly. */
.pull-quote {
  font-family: 'Cormorant Infant', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.5;
  color: var(--deep-rose); text-align: center;
  max-width: 620px; margin: 40px auto;
}
.accent {
  font-family: 'Cormorant Infant', Georgia, serif;
  font-style: italic; color: var(--deep-rose);
  font-size: 1.2em;
}

/* --- Card --- */
.card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(61,48,48,0.06);
  transition: box-shadow 0.2s;
  /* Equal-height cards in a row, with content centred so short cards don't
     leave a pool of empty space below the text. */
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(61,48,48,0.1); }
.card-body {
  padding: 36px 32px;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
/* Card titles: clearly headings, not body — serif, deep rose, larger and heavier.
   Deep rose (not dusty rose) so 24px clears WCAG contrast on white. */
.card-body h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--deep-rose);
  letter-spacing: 0.01em;
}
.card-body p:last-child { margin-bottom: 0; }

/* --- Package Card --- */
.package {
  background: white; border-radius: 16px; padding: 40px;
  box-shadow: 0 2px 12px rgba(61,48,48,0.06);
  text-align: center;
  display: flex; flex-direction: column;
}
.package--featured {
  border: 2px solid var(--dusty-rose);
  position: relative;
}
.package--featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--dusty-rose); color: white;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; padding: 4px 16px;
  border-radius: 20px;
}
.package .btn { margin-top: auto; }
.package-name { font-size: 14px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mid-grey); margin-bottom: 8px; }
.package-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 600;
  color: var(--deep-rose); margin: 8px 0 8px;
}
.package-desc {
  font-size: 14px; color: var(--warm-grey);
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--blush-light);
}
.package ul { list-style: none; text-align: left; margin: 0 0 28px; }
.package li {
  padding: 10px 0; border-bottom: 1px solid var(--blush-light);
  padding-left: 24px; position: relative; font-size: 14px;
}
.package li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--dusty-rose); font-weight: 600;
}

/* --- Process Step --- */
.process-step { text-align: center; padding: 24px; }
.process-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--dusty-rose); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  margin: 0 auto 16px;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid .img-placeholder { min-height: 180px; }

/* --- Wedding Story Card --- */
.story-card {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(61,48,48,0.06);
  margin-bottom: 32px;
  background: white;
  transition: box-shadow 0.3s ease;
}
.story-card:hover { box-shadow: 0 8px 32px rgba(61,48,48,0.1); }
.story-card .grid-2 { gap: 0; align-items: stretch; }
.story-card .grid-2 > div:not(.img-placeholder) { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.story-card .img-placeholder { border-radius: 0; border: none; min-height: 300px; }
.story-card .img-placeholder:hover { transform: none; }

/* --- Form --- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--charcoal);
}
.form-input, .form-textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--light-line); border-radius: 4px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 15px; color: var(--charcoal);
  background: white; transition: border-color 0.2s;
}
.form-input:focus-visible, .form-textarea:focus-visible {
  outline: 2px solid var(--dusty-rose);
  outline-offset: 2px;
  border-color: var(--dusty-rose);
  background: var(--blush-light);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--mid-grey); }
.form-status {
  min-height: 22px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--warm-grey);
}

/* --- Extras / Optional Add-ons --- */
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 720px; margin: 32px auto; }
.extra-item {
  padding: 24px; background: var(--blush-light); border-radius: 12px;
  text-align: left; /* heading centres with the section; card bodies stay left */
}
.extra-item h4 { font-size: 18px; margin-bottom: 8px; }
.extra-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: var(--dusty-rose); margin-bottom: 8px;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--light-line);
  padding: 20px 0;
}
.faq-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 500;
  color: var(--charcoal); cursor: pointer;
  margin-bottom: 0;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--dusty-rose); }
.faq-question::after {
  content: '+'; font-family: 'Libre Franklin', sans-serif;
  font-size: 24px; font-weight: 300; color: var(--dusty-rose);
  flex-shrink: 0; margin-left: 16px;
  transition: transform 0.2s;
}
/* Native <details> accordion */
summary.faq-question { list-style: none; }
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 3px; border-radius: 2px; }
details.faq-item[open] > .faq-question::after { content: '\2212'; }
.faq-answer { margin-top: 12px; font-size: 14px; line-height: 1.75; }

/* --- Contact Info --- */
.contact-info { list-style: none; }
.contact-info li {
  padding: 12px 0; border-bottom: 1px solid var(--blush-light);
  display: flex; align-items: center; gap: 12px;
}
.contact-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blush-light); color: var(--dusty-rose);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
}

/* --- Footer --- */
.footer {
  background: var(--charcoal); color: rgba(255,255,255,0.7);
  padding: 60px 40px 30px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer h4 {
  font-family: 'Cormorant Garamond', serif;
  color: white; font-size: 18px; margin-bottom: 16px;
}
.footer p { font-size: 14px; }
.footer-areas { margin-top: 12px; color: rgba(255,255,255,0.55); }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--dusty-rose); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: var(--dusty-rose); color: white; }
.footer-social svg { width: 16px; height: 16px; }

/* --- Mobile Hamburger --- */
.nav-hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 10px;
}
.nav-hamburger:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 3px; border-radius: 2px; }
.nav-hamburger svg { display: block; }
/* Required-field marker */
.form-label .req { color: var(--deep-rose, #9D5C63); margin-left: 2px; }
/* Burger-to-X morph: each line rotates about its own midpoint, then the
   outer pair slide to the centre. Origins are viewBox units (24x24). */
.nav-hamburger line:nth-child(1) { transform-origin: 12px 6px; }
.nav-hamburger line:nth-child(2) { transform-origin: 12px 12px; }
.nav-hamburger line:nth-child(3) { transform-origin: 12px 18px; }
.nav.nav-open .nav-hamburger line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.nav-open .nav-hamburger line:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-hamburger line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Section Divider (decorative) --- */
.section-divider {
  text-align: center; padding: 8px 0;
}
.section-divider::before {
  content: '';
  display: inline-block; width: 40px; height: 1px;
  background: var(--light-line); vertical-align: middle;
}
.section-divider::after {
  content: '\2022'; /* bullet */
  color: var(--dusty-rose); font-size: 8px;
  vertical-align: middle; margin: 0 12px;
}

/* --- Gallery triggers (clickable thumbnails) --- */
.gallery-trigger {
  all: unset; box-sizing: border-box;
  display: block; cursor: pointer; position: relative;
  overflow: hidden; border-radius: 12px;
  aspect-ratio: 3 / 4; background: var(--blush-light);
}
.gallery-trigger:focus-visible { outline: 2px solid var(--dusty-rose); outline-offset: 3px; }
.gallery-trigger .img-real {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 12px; display: block;
}
.gallery-trigger::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(61,48,48,0); transition: background 0.3s ease;
}
.gallery-trigger:hover::after, .gallery-trigger:focus-visible::after { background: rgba(61,48,48,0.12); }
.gallery-grid .gallery-trigger { min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-trigger .img-real { transition: transform 0.5s ease; }
  .gallery-trigger:hover .img-real { transform: scale(1.05); }
}
.gallery-hint {
  font-size: 13px; color: var(--warm-grey);
  letter-spacing: 0.05em; margin-top: 4px;
}

/* --- Editorial Masonry (natural orientations, no cropping) --- */
/* No-JS / pre-JS fallback: simple balanced column flow */
.masonry { column-count: 4; column-gap: 14px; }
.masonry .gallery-trigger {
  width: 100%;
  margin: 0 0 14px;
  aspect-ratio: auto;                 /* let each photo keep its real shape */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.masonry .gallery-trigger .img-real {
  height: auto;                       /* natural height -> no harsh crop */
  object-fit: contain;
}
@media (max-width: 1080px) { .masonry { column-count: 3; } }
@media (max-width: 680px)  { .masonry { column-count: 2; column-gap: 10px; }
  .masonry .gallery-trigger { margin-bottom: 10px; } }

/* JS-enhanced: shortest-column packing keeps the grid full and even */
.masonry.is-laid-out {
  column-count: initial;
  display: flex; gap: 14px; align-items: flex-start;
}
.masonry.is-laid-out .gallery-trigger { margin: 0; }
.masonry-col {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 680px) {
  .masonry.is-laid-out { gap: 10px; }
  .masonry-col { gap: 10px; }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(31,24,24,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox-img {
  max-width: 92vw; max-height: 84vh;
  object-fit: contain; border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.lightbox-caption {
  position: absolute; bottom: 22px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.82);
  font-family: 'Cormorant Infant', Georgia, serif; font-style: italic;
  font-size: 18px; padding: 0 60px; pointer-events: none;
}
.lightbox-counter {
  position: absolute; top: 26px; left: 28px;
  color: rgba(255,255,255,0.55); font-size: 12px; letter-spacing: 0.18em;
}
.lightbox-btn {
  position: absolute; background: rgba(255,255,255,0.12);
  border: none; color: #fff; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; transition: background 0.2s;
}
.lightbox-btn:hover { background: var(--dusty-rose); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox-close { top: 22px; right: 24px; font-size: 20px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; }
  .lightbox-btn { width: 44px; height: 44px; }
  .lightbox-caption { font-size: 15px; padding: 0 16px; bottom: 12px; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* h1/h2 now scale fluidly via clamp() — no fixed mobile override needed */
  .section, .section--wide { padding: 48px 20px; }
  /* Guarantee >=44px tap targets on touch */
  .form-input, .form-textarea, select.form-input { padding-top: 15px; padding-bottom: 15px; }
  .grid-2, .grid-3, .grid-4, .grid-2-1 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 20px; }
  .nav-logo img { height: 38px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    /* Solid background: a translucent panel nested inside the nav's
       backdrop-filter mis-composites on Chromium and iOS Safari. */
    background: #fff;
    border-bottom: 1px solid var(--light-line);
    box-shadow: 0 8px 24px rgba(61,48,48,0.08);
    padding: 8px 20px 16px;
  }
  .nav.nav-open .nav-links a {
    display: block;
    padding: 16px 0; border-bottom: 1px solid var(--blush-light);
  }
  .nav.nav-open .nav-links li:last-child a { border-bottom: none; }
  .nav.nav-open .nav-links li.nav-cta-item a {
    display: block; text-align: center;
    margin-top: 16px; padding: 14px 20px;
    border-bottom: none;
  }
  .hero { min-height: 50vh; }
  .hero-content { padding: 24px; }
  .story-card .grid-2 { grid-template-columns: 1fr; }
  .story-card .img-placeholder {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .story-card .img-placeholder.has-img .img-real { min-height: 0; }
  .extras { grid-template-columns: 1fr; }
  .hero-tall { min-height: 70vh; }
  .testimonial { padding: 32px 20px; }
  .testimonial-quote { font-size: 22px; }
  .pull-quote { font-size: 22px; margin: 32px auto; }
  .package-price { font-size: 36px; }
  .btn + .btn { margin-left: 0; margin-top: 12px; }
  /* Override inline grid styles for mobile */
  .gallery-grid[style] { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-3[style] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ================================================
   MOTION & POLISH  (added module)
   - All non-essential motion lives inside
     @media (prefers-reduced-motion: no-preference)
   - Reveal hidden-state is scoped to html.js-motion so that
     with no JS / no motion, content is always visible.
   ================================================ */

/* Nav: refine on scroll (works regardless of motion pref, but transitions are guarded) */
.nav { transition: box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease; }
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 24px rgba(61,48,48,0.07);
  border-bottom-color: transparent;
}
.nav.is-scrolled .nav-inner { transition: height 0.4s cubic-bezier(0.22,1,0.36,1); }

/* Thin dusty-rose scroll progress accent, pinned under the sticky nav */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blush) 0%, var(--dusty-rose) 100%);
  z-index: 101; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
}
.scroll-progress.is-active { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {

  /* ---- Scroll reveals ---- */
  html.js-motion .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  html.js-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  /* ---- Hero ---- */
  /* Ken-burns lives on an injected background layer so the dark overlay
     (.hero.has-bg::before) and crisp text are never scaled. */
  .hero .hero-kenburns {
    position: absolute; inset: -2% 0; z-index: 0;
    background-size: cover; background-position: center;
    transform: translate3d(0, var(--hero-par, 0px), 0) scale(1.03);
    animation: kenburns 24s ease-out forwards;
    will-change: transform;
  }
  /* Keep the dark overlay above the animated layer, and text above the overlay. */
  .hero.has-bg::before { z-index: 1; }
  .hero .hero-content { z-index: 2; }
  /* Ken-burns scale composes with the live --hero-par parallax offset set by JS,
     so the photo keeps drifting with scroll after the zoom settles. */
  @keyframes kenburns {
    from { transform: translate3d(0, var(--hero-par, 0px), 0) scale(1.03); }
    to   { transform: translate3d(0, var(--hero-par, 0px), 0) scale(1.1); }
  }

  /* Hero title: word-by-word mask reveal. Each word gets its own overflow mask
     (JS-wrapped under js-motion) so it works no matter how the line wraps. */
  html.js-motion .hero h1 { overflow: visible; }
  html.js-motion .hero h1 .word-mask {
    display: inline-block; overflow: hidden;
    vertical-align: top; padding-bottom: 0.12em;
  }
  html.js-motion .hero h1 .word {
    display: inline-block;
    transform: translateY(115%);
    transition: transform var(--dur-slow) var(--ease-quint);
    transition-delay: var(--d, 0ms);
  }
  html.js-motion .hero.is-in h1 .word { transform: translateY(0); }
  /* The word reveal replaces the generic hero fade for the title only,
     so they don't double-animate. Other hero children keep their fade-up. */
  html.js-motion .hero .hero-content > h1 { opacity: 1; animation: none; transform: none; }

  /* Gallery "develop-in": masonry items rise + settle once the packer has placed
     them. Gated on .reveal-ready (added by the masonry module only when motion is
     allowed) so it's independent of js-motion ordering and fails safe without JS. */
  .masonry.reveal-ready .gallery-trigger {
    opacity: 0; transform: translateY(40px) scale(0.985);
    transition: opacity var(--dur-reveal) var(--ease-quint),
                transform var(--dur-reveal) var(--ease-quint);
    transition-delay: var(--d, 0ms);
  }
  .masonry.reveal-ready .gallery-trigger.is-in {
    opacity: 1; transform: none;
  }

  /* Magnetic primary CTAs: smooth return to rest (JS drives the pull, desktop only) */
  @media (hover: hover) and (pointer: fine) {
    .btn-primary, .btn-white { transition: transform 0.3s var(--ease-soft), box-shadow 0.4s ease; }
  }
  /* Soft staged fade-in of hero text on load */
  html.js-motion .hero .hero-content > * {
    opacity: 0;
    transform: translateY(14px);
    animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--hero-delay, 0ms);
  }
  @keyframes heroIn {
    to { opacity: 1; transform: none; }
  }

  /* ---- Micro-interactions ---- */
  /* Card lift */
  .card { transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1); }
  .card:hover { transform: translateY(-4px); }
  .package { transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1); }
  .package:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(61,48,48,0.1); }
  .story-card { transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1); }
  .story-card:hover { transform: translateY(-3px); }

  /* Image zoom for NON-masonry framed images (story cards, portrait, browse cards).
     Masonry .gallery-trigger is deliberately excluded. */
  .story-card .img-placeholder.has-img .img-real,
  .card .img-placeholder.has-img .img-real,
  .grid-2 > .img-placeholder.has-img .img-real {
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  .story-card:hover .img-placeholder.has-img .img-real,
  .card:hover .img-placeholder.has-img .img-real,
  .grid-2 > .img-placeholder.has-img:hover .img-real {
    transform: scale(1.04);
  }

  /* Primary button soft sheen sweep on hover */
  .btn-primary, .btn-white { position: relative; overflow: hidden; }
  .btn-primary::after, .btn-white::after {
    content: ''; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
    pointer-events: none;
  }
  .btn-primary:hover::after, .btn-white:hover::after { left: 140%; }

  /* Nav link underline grows from centre */
  .nav-links a { position: relative; }
  .nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1.5px;
    height: 1.5px; background: var(--dusty-rose);
    transform: scaleX(0); transform-origin: 50% 50%;
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }
  .nav-links a:hover::after { transform: scaleX(1); }
  /* Suppress the underline pseudo on the active/border style to avoid doubling */
  .nav-links a.active::after { transform: scaleX(1); }

  /* Process number gentle pop on reveal */
  .process-step .process-number { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
  .process-step:hover .process-number { transform: scale(1.08); }

  /* Testimonial quote-mark flourish when its block reveals */
  html.js-motion .testimonial.reveal .testimonial-quote::before {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.15s;
  }
  html.js-motion .testimonial.reveal.is-visible .testimonial-quote::before {
    opacity: 0.5; transform: none;
  }

  /* Burger lines morph into the X and back */
  .nav-hamburger line { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease; }

  /* Mobile nav panel entrance: runs on display:none -> flex when .nav-open
     is added; exit stays instant. */
  .nav.nav-open .nav-links { animation: navDrop 0.25s ease both; }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }

  /* Lightbox entrance: backdrop fades, photo lifts in. Runs on display:none ->
     flex when .is-open is added; exit stays instant. */
  .lightbox.is-open { animation: lightboxFade 0.3s ease both; }
  .lightbox.is-open .lightbox-img { animation: lightboxZoom 0.45s var(--ease-quint) both; }
  @keyframes lightboxFade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes lightboxZoom {
    from { opacity: 0; transform: scale(0.965); }
    to   { opacity: 1; transform: none; }
  }

  /* Feature-image hover depth: a whisper of charcoal wash under the existing
     zoom, on framed (non-masonry) photos only. */
  .story-card .img-placeholder.has-img::after,
  .card .img-placeholder.has-img::after,
  .grid-2 > .img-placeholder.has-img::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(61,48,48,0);
    transition: background 0.5s var(--ease-quint);
    pointer-events: none;
  }
  .story-card:hover .img-placeholder.has-img::after,
  .card:hover .img-placeholder.has-img::after,
  .grid-2 > .img-placeholder.has-img:hover::after {
    background: rgba(61,48,48,0.07);
  }
}

/* Reduced motion: belt-and-braces — neutralise any injected layers */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-kenburns { animation: none; transform: none; }
  .scroll-progress { display: none; }
}

/* --- Cookie consent bar --- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 720px; margin: 0 auto;
  background: var(--warm-white, #FBF8F5); color: var(--charcoal, #2B2422);
  border: 1px solid var(--light-line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(61,48,48,0.18);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(12px);
  transition: opacity .32s ease, transform .32s ease;
}
.cookie-bar.is-in { opacity: 1; transform: none; }
.cookie-text { margin: 0; font-size: 14px; line-height: 1.55; flex: 1 1 300px; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-actions .btn { padding: 11px 22px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* --- Form submission: button loading + success animation --- */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff;
  border-radius: 50%; animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.form-success {
  text-align: center; padding: 32px 20px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.form-success.is-in { opacity: 1; transform: none; }
.form-success h3 { margin: 0 0 8px; }
.form-success p { margin: 0 auto; max-width: 380px; }
.success-tick { width: 68px; height: 68px; margin: 0 auto 18px; display: block; }
.success-tick-circle {
  fill: none; stroke: var(--dusty-rose); stroke-width: 3;
  stroke-dasharray: 170; stroke-dashoffset: 170;
}
.success-tick-check {
  fill: none; stroke: var(--deep-rose); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
}
.form-success.is-in .success-tick-circle { animation: tick-draw .6s ease forwards; }
.form-success.is-in .success-tick-check { animation: tick-draw .45s .5s ease forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; }
  .form-success { transition: none; opacity: 1; transform: none; }
  .success-tick-circle, .success-tick-check { stroke-dashoffset: 0; animation: none; }
}
