/* ============================================================
   Sydney Marlene Photography — Stylesheet
   Mobile-first: base rules target small phones with no media
   query. Each @media (min-width: ...) block layers on a wider
   layout as the viewport grows — nothing is hidden or overridden
   for mobile, mobile IS the default.
   Inspired by Jordan Taylor Photography: image-forward, warm,
   minimal, editorial. Serif display + clean sans body.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Newsreader:ital,wght@0,400;0,500;1,400&family=Archivo:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cream: #fff9ec;
  --cream-deep: #f2ece0;
  --ink: #2b2622;
  --ink-soft: #58514a;
  --sky: #a8c7e4;
  --sky-deep: #90abc4;
  --forest: #354a23;
  --forest-deep: #29391b;
  /* Rust: the tertiary accent — a warm terracotta pulled from the red-rock
     desert in the photos themselves, used sparingly (one moment: the
     pricing amount) rather than throughout like blue and green. */
  --rust: #b5502e;
  --rust-deep: #8f3d21;
  --line: #dbd6ca;
  --white: #ffffff;

  /* Display: a warm, soft-wonk editorial serif for headlines.
     Reading: a true long-form text serif for paragraph copy, so body
     text reads like a magazine feature rather than a web app.
     Utility: a tighter structural grotesque, tracked and capitalized,
     for nav/buttons/form labels — the clickable UI layer.
     Mono: a typewriter face for eyebrows, price tags, and the footer
     colophon — reads like a contact-sheet caption or EXIF stamp,
     grounded in the photographer's own tools rather than decoration. */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --serif-text: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Space Mono', 'SF Mono', 'Courier New', monospace;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

/* Fluid type: clamp() scales smoothly between a mobile floor and a
   desktop ceiling, so no separate breakpoint rules are needed just
   for headline size. */
h1 { font-size: clamp(2.2rem, 9vw, 4.6rem); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 4vw, 1.8rem); }

p { margin: 0 0 1em; font-family: var(--serif-text); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-deep);
  margin-bottom: 0.9em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 5.5vw;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1em 2.2em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  min-height: 44px; /* comfortable tap target */
}
.btn:hover { background: var(--ink); color: var(--cream); }

.btn-solid {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--ink);
}
.btn-solid:hover { background: var(--sky-deep); border-color: var(--sky-deep); color: var(--ink); }

.btn-light {
  border-color: rgba(255,255,255,0.85);
  color: var(--white);
}

/* Rust stays a rare, tertiary color elsewhere on the site — this is
   its one other deliberate appearance, echoing the reference site's
   single consistent accent button color cutting across every
   differently-colored product section. */
.btn-rust { background: var(--rust); border-color: var(--rust); color: var(--white); }
.btn-rust:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 1.4rem 0 0;
}
.site-header.is-solid {
  position: sticky;
  background: var(--cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
}
.site-header.is-solid .logo,
.site-header.page-header .logo { color: var(--ink); }

/* Mobile base: full-screen overlay menu, closed by default */
.nav-links {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: var(--cream);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links.is-open { display: flex; }
.nav-links a { color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: currentColor; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  position: relative;
  z-index: 41;
}
.site-header.is-solid .nav-toggle,
.site-header.page-header .nav-toggle { color: var(--ink); }
.nav-toggle[aria-expanded="true"] { color: var(--ink); }

/* header used on inner pages (no hero image behind it) */
.site-header.page-header { position: relative; background: var(--cream); padding: 1.25rem 0; border-bottom: 1px solid var(--line); }

/* From tablet width up, bump breathing room (no nav-wrap risk here —
   this tier doesn't touch the nav layout itself). */
@media (min-width: 781px) {
  .site-header { padding: 2.2rem 0 0; }
  .site-header.is-solid { padding: 1.1rem 0; }
  .site-header.page-header { padding: 1.6rem 0; }
}

/* The six nav items (including "Portraits & Branding" and "Client
   Gallery") need real room next to the logo, or individual links wrap
   onto a second line and break the even gap between them. Switch to
   horizontal nav only once there's guaranteed space for every link on
   one line — a single breakpoint, so there's no cramped in-between
   tier where spacing looks uneven. */
@media (min-width: 1024px) {
  .logo { font-size: 1.5rem; }
  /* justify-content: space-between alone leaves only whatever room is
     left over between the logo and nav, which can read as cramped —
     this guarantees a real minimum gap regardless of viewport width. */
  .nav-row { gap: 4rem; }
  .nav-links {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    background: none;
    gap: 2.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }
  .nav-links a { color: var(--white); }
  .site-header.is-solid .nav-links a,
  .site-header.page-header .nav-links a { color: var(--ink); }
  .nav-toggle { display: none; }
}

/* ---------- Hero ----------
   Bottle-shop-style hero: a single framed photo on a solid color
   backdrop, cream page around it, name + spec line + CTAs beside it —
   in place of the old full-bleed photo-behind-text treatment. */

.hero-shop { position: relative; padding: 3rem 0; }
.hero-shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 861px) {
  .hero-shop { padding: 4.5rem 0; }
  .hero-shop-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; }
}
.hero-shop-media {
  background: var(--sky);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-shop-media .ph { background: none; max-width: 380px; width: 100%; aspect-ratio: 4/5; }
.hero-brand {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--rust);
  margin-bottom: 0.3em;
}
.spec-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.8em;
}
.spec-line span:not(:first-child)::before { content: "\00b7"; margin: 0 0.7em; }
.hero-cta { display: flex; gap: 1rem; margin-top: 0; flex-wrap: wrap; }
.hero-cta .btn { font-size: 0.85rem; padding: 1.1em 2.4em; }

/* A signature detail borrowed directly from the reference: a small
   rotated tag along the hero's edge. Desktop only — no room for it
   once the layout stacks to one column. */
.side-tag {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  display: none;
}
@media (min-width: 1180px) {
  .side-tag { display: block; }
}

/* Full-bleed color-block sections, one per service — direct-bleed
   backgrounds edge to edge like the reference's per-product sections,
   alternating the photo side left/right. */
.shop-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 861px) {
  .shop-block-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .shop-block-grid.reverse .shop-block-media { order: 2; }
}
.shop-block-media { aspect-ratio: 4/5; }
.bg-sky-block { background: var(--sky); }

.page-hero {
  position: relative;
  height: 40vh;
  min-height: 260px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(40,45,35,0.45);
  z-index: 1;
}
.page-hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-content { position: relative; z-index: 2; padding-bottom: 0; text-align: center; width: 100%; }
.page-hero .eyebrow { color: var(--cream); }
.page-hero h1 { color: var(--white); text-shadow: 0 1px 24px rgba(0,0,0,0.25); }

@media (min-width: 781px) {
  .page-hero { height: 46vh; min-height: 320px; }
}

/* ---------- Photo frames ---------- */
/* .ph is the sizing/cropping frame used everywhere a photo appears
   (hero, cards, gallery grid, bio portrait). It sets the aspect ratio
   via the selectors below; a real <img> inside is cropped to fill via
   object-fit. If a slot has no image yet, the gradient background and
   .ph-label (still defined further down) show through as a build-time
   placeholder — see README.md "Adding or swapping photos". */

.ph {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #dce8ee 0%, #e9e2d2 50%, #b9c8ae 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Only stretch to 100% height inside a container with a definite height
   (the full-bleed hero media layer). Everywhere else, aspect-ratio alone
   determines height — combining height:100% with aspect-ratio inside an
   auto-sized grid/flex parent causes the box to overflow its row. */
.hero-media .ph {
  height: 100%;
}
.hero-media .ph-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 200px;
  font-size: 0.6rem;
  opacity: 0.85;
  background: rgba(250,246,240,0.55);
}
.ph-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(43,38,34,0.55);
  border: 1px dashed rgba(43,38,34,0.35);
  padding: 0.6em 0.9em;
  text-align: center;
  max-width: 80%;
}

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }
.section-tight { padding: 2.75rem 0; }
.bg-deep { background: var(--cream-deep); }
.bg-ink { background: var(--forest); color: var(--cream); }
.bg-ink h2, .bg-ink h3 { color: var(--cream); }

.section-head { max-width: 42em; margin-bottom: 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (min-width: 781px) {
  section { padding: 6.5rem 0; }
  .section-tight { padding: 4rem 0; }
  .section-head { margin-bottom: 3rem; }
}

/* Intro / welcome — single column on mobile, side-by-side from tablet up */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.welcome-grid .ph { aspect-ratio: 4/5; }
@media (min-width: 861px) {
  .welcome-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
}

/* Service cards — stacked on mobile, 2-up from tablet */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 781px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
.service-card { display: block; }
.service-card .ph { aspect-ratio: 4/5; margin-bottom: 1.2rem; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card .price-tag {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-deep);
  margin-bottom: 0.6em;
}
.service-card .more { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* Gallery grid — 1 col on phones, 2 on small tablets, 3 from desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-grid .ph { aspect-ratio: 4/5; }
.gallery-grid .tall { aspect-ratio: 4/5; }
.gallery-grid .wide { aspect-ratio: 4/5; }
@media (min-width: 521px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .gallery-grid .wide { grid-column: span 2; aspect-ratio: 8/5; }
}
@media (min-width: 781px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .gallery-grid .tall { aspect-ratio: 4/6; }
}

/* Pricing block */
.pricing-card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 2rem;
}
.pricing-card .amount {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--rust);
  margin-bottom: 0.2em;
}
.pricing-card ul {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
}
.pricing-card li {
  padding: 0.6em 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.pricing-card li:first-child { border-top: none; }
@media (min-width: 781px) {
  .pricing-card { padding: 3rem; }
  .pricing-card .amount { font-size: 3.2rem; }
}

.custom-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin: 2rem 0 2.5rem;
}
@media (min-width: 781px) {
  .custom-pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin: 2.5rem 0 3rem; }
}
.custom-pricing-card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--white);
}
.custom-pricing-card h4 { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-deep); margin-bottom: 0.8em; }

/* Two column text */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 781px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* About bio grid */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.bio-grid .ph { aspect-ratio: 4/5; }
@media (min-width: 861px) {
  .bio-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; }
  .bio-grid .ph { position: sticky; top: 2rem; }
}

.fact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.fact-list li { font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.7em; }
.fact-list li strong { display: block; font-family: var(--serif); font-size: 1rem; margin-bottom: 0.15em; }
@media (min-width: 481px) {
  .fact-list { grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
}
@media (min-width: 781px) {
  .fact-list { margin-top: 2rem; }
}

/* Contact — form first, full-width and readable; everything else
   (email, socials, client gallery) follows as one row at the bottom. */
.contact-form-block { max-width: 640px; }
.what-to-expect { margin-top: 2.5rem; }

.contact-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 701px) {
  .contact-bottom-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.contact-bottom-grid h4,
.what-to-expect h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-deep);
  margin-bottom: 0.5em;
}

form.inquiry { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.3rem; }
@media (min-width: 561px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem; /* 16px minimum keeps iOS Safari from auto-zooming on focus */
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky-deep);
}
.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: -0.3rem;
}

.social-row { display: flex; gap: 1.4rem; margin-top: 0.4rem; flex-wrap: wrap; }
.social-row a { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

/* Gallery CTA banner */
.gallery-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 701px) {
  .gallery-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--cream-deep);
  padding: 3rem 0 2rem;
}
/* The closing CTA lives inside the footer color-block itself, echoing
   the reference site's centered newsletter block above its link grid —
   repurposed here as the final booking prompt instead. */
.footer-cta { text-align: center; padding-bottom: 2.5rem; }
.footer-cta h2 { color: var(--cream); }
.footer-cta p { max-width: 34em; margin: 0 auto 1.8rem; color: rgba(250,246,240,0.75); }
@media (min-width: 781px) {
  .footer-cta { padding-bottom: 3.5rem; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,246,240,0.15);
}
@media (min-width: 781px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
  .site-footer { padding: 4rem 0 2.2rem; }
}
.site-footer .logo { color: var(--cream); font-size: 1.3rem; }
.site-footer h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; font-size: 0.9rem; }
.site-footer a:hover { color: var(--sky); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: rgba(250,246,240,0.5);
}
@media (min-width: 561px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; gap: 0.8rem; font-size: 0.72rem; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Scroll reveal ---------- */
/* Applied via JS to each section as the page loads, then flipped to
   is-visible by an IntersectionObserver the first time it scrolls into
   view — a single fade-and-rise per section rather than animating
   individual elements, so it reads as one deliberate reveal instead of
   scattered motion. main.js skips this entirely when the visitor has
   requested reduced motion. */
section.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
section.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
