/* ==========================================================================
   Weddings by Fleur — stylesheet
   --------------------------------------------------------------------------
   1. Fonts (self-hosted, see /fonts)
   2. Design tokens
   3. Base & typography
   4. Layout helpers
   5. Components (header, buttons, sections, cards, footer)
   6. Responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-regular-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  --bg: #f6f2ec;
  --bg-alt: #efe9e0;
  --bg-card: #f9f6f0;
  --ink: #2c2a26;
  --ink-soft: #4a473f;
  --ink-muted: #6e6a5e;
  --accent: #5f6e52;
  --accent-dark: #3f4a36;
  --accent-soft: #7c8b6f;
  --accent-pale: #cdd4c2;
  --on-dark: #f6f2ec;
  --on-dark-soft: #d8d3c8;
  --on-dark-muted: #b7b2a8;
  --on-dark-faint: #8b867c;
  --line-dark: #46433c;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 120px);
  --section-y: clamp(72px, 9vw, 120px);
}

/* 3. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-dark); }

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

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark);
}
.skip-link:focus { top: 16px; }

/* 4. Layout helpers --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--accent); color: var(--on-dark); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.section--accent .eyebrow { color: var(--accent-pale); }

.section-title { font-size: clamp(34px, 4vw, 48px); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}

/* 5. Components ------------------------------------------------------------- */

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 40px;
  background: var(--accent); color: var(--bg-card);
  font-family: var(--sans); font-weight: 400; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent-dark); color: var(--bg-card); }

.link-underline {
  display: inline-block;
  font-family: var(--sans); font-weight: 400; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.link-arrow {
  font-family: var(--sans); font-weight: 400; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
}

/* Header / navigation */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding: 32px var(--gutter) 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--on-dark);
}
.brand { display: block; }
.brand img {
  width: auto; height: clamp(110px, 12vw, 150px);
  filter: drop-shadow(0 2px 10px rgba(30,28,24,.35));
  transition: opacity .2s ease;
}
.brand:hover img { opacity: .85; }
.nav ul {
  display: flex; gap: 40px; margin: 10px 0 0; padding: 0; list-style: none;
}
.nav a {
  font-weight: 400; font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark);
}
.nav a:hover { color: #fff; }

.site-header--solid {
  position: static; color: var(--ink);
  padding-bottom: 28px; border-bottom: 1px solid #e3ddd2;
}
.site-header--solid .brand img { filter: none; }
.site-header--solid .nav a { color: var(--ink-soft); }
.site-header--solid .nav a:hover { color: var(--ink); }
.site-header--solid .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  position: absolute; top: 28px; right: var(--gutter);
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; margin: 5px auto;
  background: var(--on-dark); transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: clamp(640px, 90vh, 880px);
  display: flex; align-items: flex-end; overflow: hidden;
  color: var(--on-dark);
}
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(30,28,24,.45) 0%, rgba(30,28,24,.10) 28%,
    rgba(30,28,24,.30) 55%, rgba(30,28,24,.72) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 var(--gutter) clamp(56px, 8vh, 96px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__title {
  font-size: clamp(42px, 5.5vw, 76px); line-height: 1.04;
  color: #f9f6f0; max-width: 900px;
}
.hero__lead {
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: #f1ebe1;
  max-width: 560px; margin: 26px 0 34px;
}

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.about__media { aspect-ratio: 12 / 11; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about__body { padding: var(--section-y) var(--gutter); max-width: 640px; }
.about__body h2 { font-size: clamp(34px, 3.4vw, 46px); line-height: 1.14; margin-bottom: 26px; }
.about__body p { color: var(--ink-soft); }
.about__body .link-underline { margin-top: 14px; }

/* Packages */
.packages {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.package {
  background: var(--bg-card); padding: 48px 40px;
  display: flex; flex-direction: column;
}
.package__num {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--accent-soft); margin-bottom: 18px;
}
.package h3 { font-size: 30px; line-height: 1.15; margin-bottom: 16px; }
.package p { font-size: 15.5px; color: var(--ink-soft); flex-grow: 1; }
.package .link-arrow { margin-top: 28px; }

/* Portfolio — cover cards on the home page */
.cases {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px;
}
.case { display: block; color: inherit; }
.case__media {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt);
}
.case__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.case:hover .case__media img { transform: scale(1.04); }
.case__body { padding: 24px 0 0; }
.case__meta {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-soft);
  margin-bottom: 8px;
}
.case h3 { font-size: 32px; line-height: 1.15; margin-bottom: 8px; }
.case p { font-size: 15.5px; color: var(--ink-soft); max-width: 460px; }
.case .link-arrow { display: inline-block; margin-top: 14px; }

/* Portfolio — gallery pages */
.page-intro { padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px); }
.page-intro h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.page-intro p { font-size: 18px; color: var(--ink-soft); max-width: 640px; }
.page-intro .facts {
  display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 26px;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-soft);
}
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 300px; grid-auto-flow: dense; gap: 20px;
  padding-bottom: var(--section-y);
}
.gallery figure { margin: 0; position: relative; background: var(--bg-alt); overflow: hidden; }
.gallery figure.is-portrait { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark);
  background: linear-gradient(to top, rgba(30,28,24,.55), rgba(30,28,24,0));
  opacity: 0; transition: opacity .3s ease;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
.gallery-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid #e3ddd2; padding: 32px 0 var(--section-y);
}

/* Reviews */
.reviews {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px;
}
.review { margin: 0; text-align: center; }
.review blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2vw, 27px); line-height: 1.5; color: var(--on-dark);
}
.review figcaption {
  margin-top: 26px; font-weight: 400; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-pale);
}

/* CTA */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(36px, 4.2vw, 54px); max-width: 760px; margin-bottom: 22px; }
.cta p { font-size: 18px; color: var(--ink-soft); max-width: 540px; margin-bottom: 36px; }

/* Footer */
.site-footer {
  background: var(--ink); color: var(--on-dark-muted);
  padding: 72px 0 40px; font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.footer-brand { margin-bottom: 20px; }
.footer-brand img { width: auto; height: 120px; }
.footer-grid p { max-width: 380px; }
.footer-heading {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 10px;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.footer-nav a, .footer-contact a {
  color: var(--on-dark-soft); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
}
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { line-height: 2; }
.footer-contact a { text-transform: none; letter-spacing: 0; font-size: 14px; }
.social { display: flex; gap: 18px; margin-top: 26px; }
.social a {
  display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #56534b; align-items: center; justify-content: center;
  color: var(--on-dark-soft); transition: border-color .2s ease, color .2s ease;
}
.social a:hover { border-color: var(--on-dark); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-dark); padding-top: 22px;
  font-size: 12.5px; letter-spacing: .1em; color: var(--on-dark-faint);
}
.footer-bottom a { color: var(--on-dark-faint); }
.footer-bottom a:hover { color: var(--on-dark); }

/* 6. Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .packages { gap: 20px; }
  .cases { gap: 24px; }
  .package { padding: 36px 28px; }
  .reviews { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Header collapses to brand + hamburger; nav becomes an overlay panel */
  .site-header { align-items: flex-start; padding-top: 20px; gap: 0; }
  .brand img { height: 88px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 20;
    background: rgba(44,42,38,.96);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 28px; margin: 0; }
  .nav a { font-size: 16px; }
  .nav-toggle { z-index: 30; }
  body.nav-open { overflow: hidden; }

  .hero { min-height: max(86vh, 600px); }
  .hero__img { object-position: 42% 50%; }
  .hero__content { align-items: flex-start; text-align: left; padding-bottom: 48px; }

  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 5; }
  .about__body { padding-block: clamp(48px, 8vw, 72px); }

  .packages, .cases, .reviews { grid-template-columns: 1fr; }
  .case h3 { font-size: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 12px; }
  .gallery figcaption { opacity: 1; padding: 28px 12px 10px; font-size: 10px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case__media img, .nav, .nav-toggle span { transition: none; }
}
