/* ============================================================
   Michael Timmons Photography — stylesheet
   Dark, editorial, high-contrast. Serif display type paired with
   a clean sans body face. Brand palette: Ink & Ivory — near-black
   base, warm ivory text, a small restrained red accent.
   ============================================================ */

:root {
  --bg: #0b0b0a;         /* Ink & Ivory — near-black base */
  --bg-alt: #171614;     /* Ink & Ivory — panel/section background */
  --ink: #f6f1e7;        /* Ink & Ivory — warm ivory, primary text */
  --ink-dim: #a39d8e;    /* Ink & Ivory — warm muted taupe, secondary text */
  --accent: #7a0f14;     /* Ink & Ivory — deep red, solid fills/borders */
  --accent-soft: #b3151c;/* Ink & Ivory — brighter red, text highlights + hover-brighten */
  --line: #262420;
  --max: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.9), rgba(11,11,10,0));
  transition: background 0.3s ease;
}
header.site-header.scrolled {
  background: rgba(11,11,10,0.96);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.logo strong { color: var(--accent-soft); }
nav.main-nav { display: flex; gap: 32px; align-items: center; }
nav.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--bg-alt); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 26px; transition: right 0.3s ease; border-left: 1px solid var(--line);
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(179,21,28,0.14), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero p.lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-credentials {
  display: flex; gap: 28px; margin-top: 48px; flex-wrap: wrap;
}
.hero-credentials div { border-left: 2px solid var(--accent); padding-left: 14px; }
.hero-credentials .num { font-family: var(--serif); font-size: 1.6rem; display: block; }
.hero-credentials .lbl { font-size: 0.78rem; color: var(--ink-dim); }
.hero-visual {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Section shells ---------- */
section { padding: 110px 0; border-top: 1px solid var(--line); }
section.no-border { border-top: none; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--ink-dim); font-size: 1.05rem; }
.bg-alt { background: var(--bg-alt); }

/* ---------- Gallery ---------- */
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 36px; }
.gallery-tabs button {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  padding: 10px 20px; border-radius: 2px; cursor: pointer; font-size: 0.85rem; letter-spacing: 0.02em;
}
.gallery-tabs button.active { color: var(--bg); background: var(--accent-soft); border-color: var(--accent-soft); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-alt); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-empty { color: var(--ink-dim); font-size: 0.9rem; padding: 40px; border: 1px dashed var(--line); text-align: center; }

/* ---------- Lightbox (click a gallery photo to enlarge) ---------- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,6,5,0.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 88vw; max-height: 88vh; object-fit: contain; box-shadow: 0 0 0 1px var(--line); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: none; border: none;
  color: var(--ink); font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--ink); font-size: 3rem; line-height: 1;
  cursor: pointer; padding: 12px 18px; transition: color 0.2s ease;
}
.lightbox-nav:hover { color: var(--accent-soft); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
@media (max-width: 640px) {
  .lightbox-nav { font-size: 2rem; padding: 8px 12px; }
  .lightbox-close { top: 14px; right: 16px; }
}

/* ---------- Offer cards (For Actors) ---------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .offers-grid { grid-template-columns: 1fr; } }
.offer-card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card .tier { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); }
.offer-card h3 { font-size: 1.35rem; margin-bottom: 0; }
.offer-card p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }
.offer-card .price { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-top: auto; padding-top: 10px; }

/* ---------- Experience intro (copy + portrait) ---------- */
.experience-intro {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.experience-intro .section-head-p,
.experience-intro p { color: var(--ink-dim); font-size: 1.05rem; max-width: 60ch; }
.experience-portrait {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.experience-portrait img { width: 100%; height: 100%; object-fit: contain; }
.experience-portrait.img-missing img { display: none; }
.experience-portrait.img-missing::before {
  content: "Add a portrait photo here\A images/portrait/michael-portrait.jpg";
  white-space: pre-line;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
  color: var(--ink-dim);
  font-size: 0.85rem;
  border: 1px dashed var(--line);
}
@media (max-width: 860px) {
  .experience-intro { grid-template-columns: 1fr; }
  .experience-portrait { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------- Credentials / About ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline-item:first-child { border-top: none; }
.timeline-item .when { color: var(--accent-soft); font-size: 0.85rem; letter-spacing: 0.03em; padding-top: 4px; }
.timeline-item h4 { margin-bottom: 6px; font-size: 1.15rem; }
.timeline-item .org { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 10px; display: block; }
.timeline-item p { color: var(--ink-dim); margin: 0; font-size: 0.96rem; }
@media (max-width: 700px) { .timeline-item { grid-template-columns: 1fr; gap: 6px; } }

.press-strip {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.press-strip span { font-size: 0.82rem; color: var(--ink-dim); letter-spacing: 0.02em; }

.studio-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 80px; }
@media (max-width: 860px) { .studio-block { grid-template-columns: 1fr; } }
.studio-block .visual { aspect-ratio: 4/3; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.studio-block .visual img { width: 100%; height: 100%; object-fit: contain; }
.guarantee {
  margin-top: 24px; padding: 18px 20px; border-left: 2px solid var(--accent);
  background: var(--bg-alt); font-size: 0.92rem; color: var(--ink-dim);
}

/* ---------- Behind the Scenes (video embeds) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-alt); border: 1px solid var(--line); overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-dim); }

/* ---------- Pricing ---------- */
.pricing-table { border-top: 1px solid var(--line); }
.pricing-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.pricing-row .name { font-family: var(--serif); font-size: 1.15rem; }
.pricing-row .desc { color: var(--ink-dim); font-size: 0.88rem; margin-top: 4px; }
.pricing-row .price { font-size: 1.15rem; color: var(--accent-soft); white-space: nowrap; padding-left: 20px; }
.pricing-note { color: var(--ink-dim); font-size: 0.85rem; margin-top: 24px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info div { margin-bottom: 22px; }
.contact-info .lbl { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 4px; }
.contact-info .val { font-size: 1.05rem; }
.contact-info .val a:hover { color: var(--accent-soft); }
.social-row { display: flex; gap: 18px; margin-top: 28px; align-items: center; }
.social-row a { display: inline-flex; transition: transform 0.2s ease, opacity 0.2s ease; opacity: 0.85; }
.social-row a:hover { transform: translateY(-2px); opacity: 1; }
.social-row a img { width: 30px; height: 30px; object-fit: contain; display: block; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
form.contact-form input,
form.contact-form textarea {
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink);
  padding: 14px 16px; font-family: var(--sans); font-size: 0.95rem; border-radius: 2px;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--accent); }
form.contact-form .btn { align-self: flex-start; }

footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
