/* Details Weddings prototype. Brand tokens taken from detailsweddings.pt: rose #AE7573, Canvas (display) + Raleway (text). */
@font-face { font-family: 'Canvas'; src: url('/assets/fonts/CanvasRegular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Canvas'; src: url('/assets/fonts/CanvasLight.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/assets/fonts/Raleway-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/assets/fonts/Raleway-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Raleway'; src: url('/assets/fonts/Raleway-LightItalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --rose: #ae7573;
  --rose-band: #9d6563; /* brand rose deepened just enough for white text (4.7:1, WCAG AA) */
  --rose-deep: #8a5452;
  --rose-ink: #6e4240;
  --soft: #f1e6e1;
  --soft-2: #e8d8d1;
  --ink: #3a2c2d;
  --night: #3b2a2b;
  --display: 'Canvas', 'Cormorant Garamond', Georgia, serif;
  --text: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--text); font-weight: 300; font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--soft); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.site-header :focus-visible, .band-rose :focus-visible, .hero :focus-visible, .w-hero :focus-visible, .cta-photo :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--rose-ink); }
h3 { font-size: 1.6rem; color: var(--rose-ink); margin-bottom: .2em; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: #fff; padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.lead { font-size: 1.3rem; line-height: 1.55; color: var(--rose-ink); }

/* Buttons and links */
.btn { display: inline-block; font-family: var(--text); font-weight: 500; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--rose-deep); border: 1px solid var(--rose-deep); padding: .95rem 1.8rem; border-radius: var(--radius); cursor: pointer; transition: background .2s, color .2s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--rose-ink); border-color: var(--rose-ink); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--rose-ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); color: var(--rose-ink); border-color: var(--soft); }
.link { display: inline-block; font-weight: 500; letter-spacing: .06em; color: var(--rose-ink); text-decoration: underline; text-decoration-thickness: 1px; margin-top: .5rem; }
.link:hover { color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 20; background: var(--rose-band); }
/* top stays auto: the overlay header sits at its static position, i.e. right below any bar injected before it (prototype banner) */
.site-header.is-overlay { position: absolute; left: 0; right: 0; top: auto; background: linear-gradient(rgba(40, 24, 24, .58), rgba(40, 24, 24, 0)); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 1.5rem; }
.brand img { width: 230px; height: auto; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a { color: #fff; text-decoration: none; font-weight: 500; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; padding: .4rem 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current='page'] { border-bottom-color: #fff; }
.menu .menu-cta { border: 1px solid #fff; padding: .6rem 1.1rem; }
.menu .menu-cta:hover { background: #fff; color: var(--rose-ink); }
.menu-btn { display: none; background: none; border: 1px solid #fff; color: #fff; font: 500 .8rem var(--text); letter-spacing: .16em; text-transform: uppercase; padding: .55rem .9rem; cursor: pointer; border-radius: var(--radius); }
@media (max-width: 860px) {
  .header-in { height: 76px; }
  .brand img { width: 150px; }
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: .4rem; background: var(--rose-deep); padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem; }
  .menu.is-open { display: flex; }
  .menu a { font-size: .95rem; padding: .6rem 0; }
}

/* Hero (home + wedding pages): one real wedding photograph, copy on its clean lower area */
.hero, .w-hero { position: relative; min-height: min(100dvh, 920px); display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.w-hero { min-height: min(86dvh, 820px); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .w-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(rgba(35, 20, 20, 0), rgba(35, 20, 20, .62)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero-copy h1 { max-width: 19ch; margin-bottom: .35em; }
.hero-copy p { font-size: 1.2rem; max-width: 46ch; }
.hero-copy .btn { margin-top: .6rem; }
.crumb { margin: 0 0 .4rem; }
.crumb a { color: #fff; font-weight: 500; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }

/* Bands */
.band-soft { background: var(--soft); }
.band-rose { background: var(--rose-band); color: #fff; }
.band-rose h1, .band-rose h2 { color: #fff; }
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.hero, .w-hero, .cta-photo { padding: 0; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.intro-text h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.signature { width: 230px; margin: 1.4rem 0 .4rem; }
.intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Work (home) */
.work { background: var(--soft-2); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.2rem 1.6rem; margin: 2.2rem 0 2.4rem; }
.work-item { text-decoration: none; color: var(--ink); display: block; }
.work-media { display: block; overflow: hidden; }
.work-media img { width: 100%; object-fit: cover; transition: transform .6s ease; }
.work-item:hover .work-media img { transform: scale(1.03); }
.work-0 img { aspect-ratio: 4 / 3.1; } .work-1 img, .work-2 img { aspect-ratio: 4 / 4.2; } .work-3 img { aspect-ratio: 4 / 3; } .work-4 img { aspect-ratio: 4 / 5; }
/* desktop: row 1 = one large + one tall, row 2 = three of different widths, every image in a row the same height */
@media (min-width: 901px) {
  .work-0 { grid-column: 1 / 9; } .work-1 { grid-column: 9 / 13; }
  .work-2 { grid-column: 1 / 6; } .work-3 { grid-column: 6 / 10; } .work-4 { grid-column: 10 / 13; }
  .work-0 img, .work-1 img { aspect-ratio: auto; height: clamp(26rem, 38vw, 36rem); }
  .work-2 img, .work-3 img, .work-4 img { aspect-ratio: auto; height: clamp(18rem, 26vw, 25rem); }
}
.work-name { display: block; font-family: var(--display); font-size: 1.55rem; color: var(--rose-ink); margin-top: .8rem; line-height: 1.2; }
.work-words { display: block; font-size: .95rem; color: var(--ink); }

/* Approach */
.approach-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.approach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.approach-list { margin: 1.6rem 0 0; }
.approach-list div { padding: 1.1rem 0; border-top: 1px solid rgba(110, 66, 64, .25); }
.approach-list dt { font-family: var(--display); font-size: 1.45rem; color: var(--rose-ink); }
.approach-list dd { margin: .2rem 0 0; max-width: 56ch; }

/* Quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--display); font-size: 1.4rem; line-height: 1.4; }
.quote figcaption { font-size: .92rem; font-weight: 500; letter-spacing: .04em; }
.quote figcaption a, .band-rose a:not(.btn) { color: #fff; margin-left: .6rem; font-weight: 300; }
.quote figcaption a, .review figcaption a, .footer-contact a, .social a, .link { display: inline-flex; align-items: center; min-height: 44px; }
.quote-lg p { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 30ch; }
.quote-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255, 255, 255, .45); }
.quote-row .quote p { font-size: 1.2rem; }
.quote-dark p { color: var(--rose-ink); }
.quote-dark figcaption a { color: var(--rose-ink); }

/* CTA with photo */
.cta-photo { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; background: #2a3324; overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 82%; } /* keep the couple (bottom of the photo) in frame */
.cta-copy { position: relative; z-index: 2; width: 100%; padding-top: 4rem; padding-bottom: 4rem; }
.cta-copy h2 { color: #fff; max-width: 14ch; }
.cta-copy p { max-width: 38ch; font-size: 1.15rem; }
.cta-photo::after { content: ''; position: absolute; inset: 0 50% 0 0; background: linear-gradient(90deg, rgba(25, 30, 20, .55), rgba(25, 30, 20, 0)); }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band-in h2 { margin: 0; }
.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* Page heads */
.page-head { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head p { font-size: 1.2rem; max-width: 52ch; }
.page-head-tall { min-height: 62vh; display: flex; align-items: center; }
.page-head .signature { width: 220px; }

/* About */
.about-hello { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.team { background: var(--soft-2); }
.person { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-top: 3rem; }
.person-alt { grid-template-columns: 7fr 4fr; }
.person-alt img { order: 2; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.role { font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--rose-ink); }
.reviews { background: var(--soft); }
.review-list { columns: 2 380px; column-gap: 3.5rem; margin-top: 2rem; }
.review { break-inside: avoid; margin: 0 0 2.6rem; }
.review blockquote { margin: 0; }
.review p { font-size: 1.02rem; }
.review figcaption { font-family: var(--display); font-size: 1.3rem; color: var(--rose-ink); }
.review figcaption a { font-family: var(--text); font-size: .9rem; margin-left: .6rem; }

/* Portfolio */
.portfolio { background: var(--soft-2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 1.8rem; }
.pf-item { text-decoration: none; color: var(--ink); }
.pf-media { display: block; overflow: hidden; }
.pf-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.pf-item:hover .pf-media img { transform: scale(1.03); }
.pf-wide3 .pf-media img { aspect-ratio: 1.67; }
@media (min-width: 901px) { .pf-wide3 { grid-column: span 2; } }
@media (max-width: 900px) { .pf-wide3 .pf-media img { aspect-ratio: 4 / 5; } }

/* Wedding page */
.w-quote { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.gallery { background: var(--soft-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; grid-auto-flow: dense; }
.g-item { display: block; position: relative; overflow: hidden; }
.g-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.03); }
@media (min-width: 901px) { .g-w3 { grid-column: span 2; } .g-w3 img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; } }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: .8rem; } .g-w2 { grid-column: 1 / -1; } .g-w2 img { aspect-ratio: 3 / 2; } }
.w-nav-band { background: var(--soft-2); border-top: 1px solid rgba(110, 66, 64, .18); padding: 0; }
.w-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.w-nav a { text-decoration: none; font-family: var(--display); font-size: 1.4rem; color: var(--rose-ink); }
.w-nav a:last-child { text-align: right; }
.w-nav span { display: block; font-family: var(--text); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(30, 20, 20, .92); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.lightbox img { max-height: 90vh; width: auto; }
.lightbox img { box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: #fff; border: 0; padding: .6rem 1rem; font: 500 .8rem var(--text); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* Contact form */
.contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; margin-bottom: 1.4rem; }
.social { display: flex; gap: 1.4rem; }
.form { background: #fbf6f3; padding: clamp(1.5rem, 4vw, 3rem); }
.form h2 { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 500; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rose-ink); margin-bottom: .45rem; }
.field input, .field textarea { width: 100%; font: 300 1rem var(--text); color: var(--ink); background: #fff; border: 1px solid #977470; border-radius: var(--radius); padding: .85rem .9rem; }
.field input::placeholder, .field textarea::placeholder { color: #7d6664; }
.field input:focus, .field textarea:focus { border-color: var(--rose-deep); }
.field [aria-invalid='true'] { border-color: #a3262a; }
.hint { font-size: .85rem; color: #6b5654; margin: .35rem 0 0; }
.form-status { border-left: 3px solid #a3262a; background: #fff; padding: .8rem 1rem; color: #a3262a; font-weight: 500; margin: 0 0 1.4rem; }
.form-note { font-size: .9rem; color: #6b5654; margin: -.6rem 0 1.4rem; }
.err { font-size: .88rem; color: #a3262a; font-weight: 500; margin: .35rem 0 0; }
.check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; }
.check input { width: 24px; height: 24px; margin-top: .25rem; accent-color: var(--rose-deep); }
.check label { text-transform: none; letter-spacing: 0; font-weight: 300; font-size: 1rem; color: var(--ink); }
.check .err { grid-column: 2; }

/* Prose */
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--night); color: #f1e6e1; padding: 4rem 0 2rem; }
.site-footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; align-items: start; }
.footer-brand img { width: 64px; margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.legal { font-size: .85rem; margin-top: 3rem; opacity: .8; max-width: var(--wrap); }

/* Mobile */
@media (max-width: 900px) {
  .intro-grid, .approach-grid, .about-grid, .contact-grid, .person, .person-alt, .footer-in { grid-template-columns: 1fr; }
  .person-alt img { order: 0; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .work-0, .work-3, .work-4 { grid-column: 1 / -1; }
  .quote-row { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .cta-photo::after { inset: 0; background: rgba(25, 30, 20, .35); }
  .contact-side img { max-height: 340px; }
  .contact-side { order: 2; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero-copy p { font-size: 1.05rem; }
  .work-name { font-size: 1.3rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .w-nav a { font-size: 1.15rem; }
}
@media (max-width: 640px) { .hero .hero-img { object-position: 57% 40% !important; } }

/* Intros above the portfolio grid and wedding galleries */
.pf-intro, .g-intro { max-width: 60ch; margin-bottom: 2.6rem; }
