/* =============================================================
   Maclean Photo + Video — Design System
   Elegant, editorial, warm-neutral. Fast, dependency-free.
   -------------------------------------------------------------
   BRAND FONT: replace the @font-face block below with your own
   font file (drop it in /assets/fonts) to match your logo.
   ============================================================= */

/* ---- Brand display font ------------------------------------
   The logo/headings use "Fraunces" (loaded from Google Fonts in
   each page's <head>) — a free, legally-clean editorial serif
   chosen as a close match to the logo's Freight Big Pro.

   TO USE GENUINE FREIGHT BIG PRO (requires a license — it's
   included free with Adobe Creative Cloud via Adobe Fonts):
     1. Add "Freight Big Pro" to a Web Project at fonts.adobe.com
     2. Paste the Adobe <link> kit into each page's <head>
        (next to the Google Fonts link)
     3. Set  --font-display: "freight-big-pro", Georgia, serif;  below
   Do NOT self-host the .otf files from a free-download site —
   that copy is unlicensed for a commercial website.
------------------------------------------------------------- */

/* ---------------------------- Tokens ---------------------------- */
:root {
  /* Palette — warm, timeless, wedding-editorial */
  --bone:        #F7F3EC;   /* page background */
  --cream:       #EFE9DE;   /* alt sections */
  --ink:         #23201C;   /* primary text */
  --ink-soft:    #5A544C;   /* secondary text */
  --line:        #DED6C7;   /* borders / rules */
  --accent:      #8A7A5C;   /* muted olive/bronze */
  --accent-deep: #6B5D43;
  --white:       #FFFFFF;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 7vw, 6rem);
  --fs-h1:   clamp(2.25rem, 5vw, 4rem);
  --fs-h2:   clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3:   clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.8125rem;

  /* Spacing / layout */
  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 2px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: 300;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.01em; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------- Utilities ------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--ink { background: #5b5346; color: var(--bone); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.section--ink .eyebrow { color: #cbb98f; }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); font-weight: 300; }
.section--ink .lead { color: #d8d1c4; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--light { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--light:hover { background: transparent; color: var(--bone); }
.section--ink .btn--ghost { color: var(--bone); border-color: var(--bone); }
.section--ink .btn--ghost:hover { background: var(--bone); color: var(--ink); }

/* Text link with underline animation */
.tlink { position: relative; letter-spacing: 0.05em; }
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------------------- Header (centered logo) ------------ */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 1.1rem var(--gutter); min-height: 96px;
  color: var(--bone);
}
.site-header.is-solid {
  position: fixed;
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  animation: slidedown .4s var(--ease);
}
@keyframes slidedown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* Brand mark centered in the header */
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; line-height: 0; z-index: 2; }
.brand .logo { height: 62px; width: auto; display: block; }
.brand .logo--dark { display: none; }
.site-header.is-solid .brand .logo--light { display: none; }
.site-header.is-solid .brand .logo--dark { display: block; }

.nav { display: flex; align-items: center; width: 100%; gap: clamp(0.7rem, 1.5vw, 1.5rem); }
.nav a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.nav a.is-current { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nav .btn { padding: 0.7em 1.35em; background: transparent; color: var(--ink); border-color: var(--ink); }
.nav .btn:hover { background: var(--ink); color: var(--bone); }
.site-header:not(.is-solid) .nav .btn { background: transparent; color: var(--bone); border-color: var(--bone); }
.site-header:not(.is-solid) .nav .btn:hover { background: var(--bone); color: var(--ink); }
@media (min-width: 861px) {
  /* split the six links three-per-side around the centered logo */
  .nav > a:nth-child(3) { margin-right: auto; }
}

.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 0.25rem; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------------------------- Hero ------------------------------ */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  color: var(--bone); overflow: hidden;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.42), rgba(20,18,15,.12) 34%, rgba(20,18,15,.42)); }
.hero__inner { position: relative; z-index: 2; padding-block: 8rem 4rem; }
.hero h1 { font-size: var(--fs-hero); font-weight: 500; max-width: 14ch; }
.hero .eyebrow { color: #e7dcc4; }
.hero__cta { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn--ghost { color: var(--bone); border-color: var(--bone); }
.hero .btn--ghost:hover { background: var(--bone); color: var(--ink); }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.65rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; }
/* Centered hero variant (logo-centered look) */
.hero--center .hero__inner { text-align: center; }
.hero--center .hero__inner > * { margin-inline: auto; }
.hero--center h1 { max-width: none; }
.hero--center .lead { max-width: 52ch; }
.hero--center .hero__cta { justify-content: center; }
.hero__subline { margin-top: 1.5rem; font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase; color: #e7dcc4; }

/* ---------------------------- Sections -------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.measure { max-width: 60ch; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); display: block; font-weight: 500; }
.stat span { font-size: var(--fs-small); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

/* Gallery grid */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.g-tall  { grid-column: span 4; aspect-ratio: 4/5; }
.g-wide  { grid-column: span 8; aspect-ratio: 16/10; }
.g-half  { grid-column: span 6; aspect-ratio: 3/2; }
.g-third { grid-column: span 4; aspect-ratio: 4/5; }

/* Masonry portfolio (preserves each photo's real proportions) */
.masonry { column-count: 3; column-gap: clamp(0.5rem, 1.2vw, 1rem); }
.masonry figure { margin: 0 0 clamp(0.5rem, 1.2vw, 1rem); break-inside: avoid; overflow: hidden; }
.masonry img { width: 100%; height: auto; display: block; transition: transform .8s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .masonry { column-count: 2; } }
@media (max-width: 520px) { .masonry { column-count: 1; } }

/* Home "Selected Work" — tight photo-collage grid, no gaps.
   Outer columns = 2 tall portrait cells each; middle column = 4 stacked
   landscape cells (matches his reference screenshot exactly). */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-template-areas:
    "a c g"
    "a d g"
    "b e h"
    "b f h";
  gap: 0;
  aspect-ratio: 1;
}
.feature-grid figure { margin: 0; overflow: hidden; }
.feature-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-grid .fg-a { grid-area: a; }
.feature-grid .fg-b { grid-area: b; }
.feature-grid .fg-c { grid-area: c; }
.feature-grid .fg-d { grid-area: d; }
.feature-grid .fg-e { grid-area: e; }
.feature-grid .fg-f { grid-area: f; }
.feature-grid .fg-g { grid-area: g; }
.feature-grid .fg-h { grid-area: h; }
/* No mobile override: the grid uses fr units so it scales down cleanly on its own,
   keeping all 3 columns equal height (cropped cells) at every screen size. */

/* Portfolio category chooser (Weddings / Engagements) */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.5vw, 1.5rem); }
.category-tile {
  position: relative; display: block; aspect-ratio: 4/5; overflow: hidden;
  border-radius: 2px;
}
.category-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.category-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0) 45%, rgba(20,18,15,.78) 100%);
  transition: background .4s var(--ease);
}
.category-tile:hover img { transform: scale(1.05); }
.category-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  text-align: center; padding: 0 1.5rem clamp(1.75rem, 4vw, 2.75rem);
  color: var(--bone);
}
.category-tile__label h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 500; margin: 0 0 0.5rem; }
.category-tile__label span { font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9; }
@media (max-width: 700px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-tile { aspect-ratio: 4/5; }
}

.wrap-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* Cards / packages */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
}
.card--feature { border-color: var(--accent); box-shadow: 0 20px 50px -30px rgba(35,32,28,.4); }
.card h3 { font-size: var(--fs-h3); }
.card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; margin: 0.25rem 0 0.75rem; }
.card .price small { font-size: 0.9rem; color: var(--ink-soft); }
.card ul { list-style: none; padding: 0; margin: 1rem 0 1.75rem; }
.card li { padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.card li:first-child { border-top: 0; }
.card .btn { margin-top: auto; text-align: center; }
.badge { align-self: flex-start; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white); background: var(--accent); padding: 0.35em 0.9em; margin-bottom: 1rem; }

/* Package tabs (Photo / Video / Photo + Video) */
.pkg-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem;
  border-bottom: 1px solid var(--line); margin-bottom: 2.5rem;
}
.pkg-tabs button {
  font-family: inherit; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 0.9em 0.25em; margin-bottom: -1px; cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.pkg-tabs button:hover { color: var(--ink); }
.pkg-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.pkg-panel + .pkg-panel { margin-top: 2.5rem; }
.pkg-panel__note { text-align: center; margin: 1.75rem auto 0; max-width: 60ch; font-size: 0.95rem; color: var(--ink-soft); }
/* Once the tabs are live, JS hides inactive panels, so their stacked spacing is no longer needed */
.js-tabs-ready .pkg-panel + .pkg-panel { margin-top: 0; }
.js-tabs-ready .pkg-panel__title { display: none; }

/* Testimonial */
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.35; font-style: italic; }
.quote cite { display: block; margin-top: 1.5rem; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 1.75rem; color: var(--ink-soft); max-width: 68ch; }

/* Location chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.chip { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line); padding: 0.5em 1em; color: var(--ink-soft); }
.section--ink .chip { color: var(--bone); border-color: rgba(247,243,236,.4); }

/* Contact */
.form { display: grid; gap: 1.25rem; }
.form label { display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; font-weight: 300; padding: 0.9rem 1rem;
  background: var(--white); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: #5B5346; color: var(--bone); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #ddcda3; margin-bottom: 1.25rem; }
.site-footer a { color: #d8d1c4; font-size: 0.95rem; }
.site-footer a:hover { color: var(--bone); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: var(--fs-small); color: #d8d1c4; }
.footer-brand-col { max-width: 34ch; margin-inline: auto; }
.footer-brand__name { font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: 0.01em; text-transform: lowercase; text-align: center; }
.footer-brand__name .logo { height: 66px; width: auto; display: block; margin-inline: auto; }
.footer-brand__sub { font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase; margin-top: 0.4rem; color: #ddcda3; text-align: center; }
.social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; border-radius: 50%; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------------------------- Placeholder art ------------------- */
.ph { background: linear-gradient(135deg, #cfc4ad, #a9987a 55%, #837152); position: relative; }
.ph::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.75); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; text-align: center; padding: 1rem;
}

/* ---------------------------- Reveal on scroll ------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Responsive ------------------------ */
@media (max-width: 860px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 6; }
  .form .row2 { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--bone); color: var(--ink);
         flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.75rem; padding: 3rem;
         transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.5); }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 0.9rem; }
  .nav-toggle { display: block; z-index: 60; }
  .site-header { min-height: 72px; }
  .brand .logo { height: 46px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 1; aspect-ratio: 4/5; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
