/* Flying Squirrels Photography
   Palette pulled from the logo: warm cream paper, pine-ink black-green, leaf green lettering. */

:root {
  --cream: #fdf7df;
  --cream-deep: #f5ecc9;
  --paper: #fffcf0;
  --ink: #0b1f16;
  --pine: #0e2a1e;
  --pine-soft: #1d4031;
  --leaf: #2b7a32;
  --leaf-dark: #1f5f25;
  --muted: #4f5d52;
  --line: #e2d7ae;
  --error: #a63a1f;

  --font-display: "Fraunces", Georgia, serif;
  --font-label: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lora", Georgia, serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 30, .06), 0 8px 24px rgba(14, 42, 30, .08);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--leaf-dark); text-underline-offset: 3px; }
a:hover { color: var(--leaf); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--pine);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1,
.hero-title { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, .hero-title em { font-style: italic; font-weight: 400; color: var(--leaf); }

p { margin: 0 0 1em; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 2.5rem); }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--leaf);
  margin-bottom: .9em;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--pine); color: var(--cream);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--pine);
  border: 2px solid var(--pine);
  padding: 1em 1.8em .85em;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--leaf-dark); border-color: var(--leaf-dark); color: var(--cream); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--pine); }
.btn-ghost:hover { background: var(--pine); border-color: var(--pine); }
.btn-small { padding: .75em 1.3em .6em; font-size: .78rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 247, 223, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(14, 42, 30, .06); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--pine); }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--leaf-dark); }
.brand-sub { font-family: var(--font-label); font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; color: var(--leaf); }

.site-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--pine);
  padding: .4em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-color: var(--leaf); }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 11px; width: 24px; height: 2px;
  background: var(--pine); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -8px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(14, 42, 30, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: .9em 0; border-bottom: 1px solid var(--line); }
  .site-nav li .btn { margin-top: 1rem; text-align: center; display: block; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-title { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--pine); margin: 0 0 .5em; }

/* The big logo shows until assets/img/hero.jpg exists; then the photo takes over (main.js adds .has-photo). */
.hero-media { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.hero-logo-img { width: 100%; }
.hero-photo,
.hero-badge { display: none; }
.hero.has-photo .hero-logo-img { display: none; }
.hero.has-photo .hero-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.hero.has-photo .hero-badge {
  display: block; position: absolute; left: -18px; bottom: 28px;
  width: 112px; height: 112px; border-radius: 50%;
  border: 5px solid var(--cream); box-shadow: var(--shadow);
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-media { order: -1; max-width: 320px; }
  .hero.has-photo .hero-badge { width: 84px; height: 84px; left: -8px; }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

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

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--cream-deep); }
.section-flush { padding-top: 0; }
.section-pine { background: var(--pine); color: #e9e6cf; }
.section-pine h2,
.section-pine h3 { color: var(--cream); }
.section-pine .eyebrow { color: #9fd3a2; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.section-head p:last-child { color: var(--muted); }
.section-note { text-align: center; margin-top: 2.5rem; color: var(--muted); }

/* ---------- Photo slots (real image, or a placeholder when the file is missing) ---------- */

.photo-slot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), transparent 60%),
    repeating-linear-gradient(135deg, rgba(14, 42, 30, .05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #e7dfb8, #cfd8b6);
}
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-slot.is-empty img { display: none; }
.placeholder-label { display: none; }
.photo-slot.is-empty .placeholder-label {
  display: flex; align-items: center; justify-content: center;
  position: absolute; inset: 0;
  font-family: var(--font-label);
  text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 600;
  color: var(--pine-soft);
  text-align: center; padding: 1rem;
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-area { font-style: italic; color: var(--muted); }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; width: 100%; margin-inline: auto; }
}

/* ---------- Session cards ---------- */

.rate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2.5rem;
  background: var(--pine); color: #d6dcc4;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.rate .eyebrow { color: #9fd3a2; margin-bottom: .2em; }
.rate-amount { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4rem); line-height: 1; color: var(--cream); margin: 0; }
.rate-includes { list-style: none; margin: 0; padding: 0; flex: 1 1 260px; }
.rate-includes li { padding: .3em 0 .3em 1.6em; position: relative; font-size: 1.05rem; }
.rate-includes li::before { content: "\2713"; position: absolute; left: 0; color: #9fd3a2; font-weight: 600; }
.btn-light { background: var(--cream); border-color: var(--cream); color: var(--pine); }
.btn-light:hover { background: #9fd3a2; border-color: #9fd3a2; color: var(--pine); }

/* Flex (not grid) so an odd last row stays centered. */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.card {
  flex: 1 1 290px; max-width: calc((100% - 3rem) / 3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem .75rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.card:hover { transform: translateY(-3px); }
.card p { color: var(--muted); }
.card-link {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--font-label); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
@media (max-width: 1000px) { .card { max-width: calc((100% - 1.5rem) / 2); } }
@media (max-width: 680px) { .card { max-width: none; } }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }
.gallery .photo-slot img { transition: transform .5s; }
.gallery .photo-slot:hover img { transform: scale(1.03); }

@media (max-width: 800px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: .75rem; }
}
@media (max-width: 480px) {
  .gallery { grid-auto-rows: 140px; }
}

/* ---------- Instagram ---------- */

.ig-feed > :not(script) { margin-bottom: 2rem; } /* whitespace and comments make :empty unreliable */
.ig-follow { text-align: center; margin: 0; }
.ig-follow .btn { display: inline-flex; align-items: center; gap: .6em; }
.ig-follow svg { margin-top: -.15em; }

/* ---------- Process ---------- */

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.steps li { position: relative; }
.steps p { color: #cfd5bd; font-size: 1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  border: 1.5px solid #9fd3a2; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.35rem; color: #9fd3a2;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */

.booking { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.booking-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.booking-intro > p:not(.eyebrow) { color: var(--muted); }
.booksy-btn { margin: .25rem 0 1.75rem; }
.booking-alt { color: var(--muted); }

.contact-card {
  margin-top: 2rem; padding: 1.5rem 1.5rem .5rem;
  border-left: 3px solid var(--leaf);
  background: var(--cream-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow-wrap: anywhere; /* long email address on narrow phones */
}

@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .booking-intro { position: static; }
}

.booking-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.15rem; }
.field label {
  display: block; margin-bottom: .4rem;
  font-family: var(--font-label); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--pine);
}
.req { color: var(--leaf); }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d9cfa6;
  border-radius: 10px;
  padding: .7rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(43, 122, 50, .18); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin: .35rem 0 0; min-height: 0; }
.field-error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }

.form-success { text-align: center; padding: 2rem 0; }
.form-success img { margin: 0 auto 1.25rem; border-radius: 50%; }
.form-success p { color: var(--muted); }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  padding: 0 1.5rem;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2rem 1.15rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--pine);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-label); font-size: 1.5rem; color: var(--leaf); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: .5rem; }

/* ---------- Service pages ---------- */

.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 5vw, 3.5rem); text-align: center; }
.page-hero .lede { margin-inline: auto; max-width: 40em; }
.page-hero .hero-actions { justify-content: center; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; font-family: var(--font-label); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb li + li::before { content: "\203A"; margin-right: .5rem; }
.breadcrumb a { text-decoration: none; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-strip .photo-slot { aspect-ratio: 4 / 5; }
@media (max-width: 700px) {
  .photo-strip { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .photo-strip .photo-slot:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
}

.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }
.prose li::marker { color: var(--leaf); }

.related { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* ---------- Lightbox ---------- */

.photo-slot.is-zoomable { cursor: zoom-in; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(4, 14, 9, .94); color: var(--cream);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 3.5rem 4.5rem 2.5rem; display: flex; flex-direction: column; align-items: center; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { margin-top: .9rem; font-size: .95rem; color: #cfd5bd; text-align: center; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(253, 247, 223, .12); color: var(--cream);
  font-size: 2rem; line-height: 1;
}
.lightbox button:hover { background: rgba(253, 247, 223, .25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { display: none; }
@media (max-width: 600px) {
  .lightbox figure { padding: 4rem .75rem 2rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.not-found img { margin: 0 auto 1.5rem; border-radius: 50%; }
.not-found .hero-actions { justify-content: center; }

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

.site-footer { background: var(--ink); color: #c9cfb8; padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { border-radius: 50%; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--cream); margin: 0; }
.footer-tag { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; margin: .25rem 0 0; color: #9fd3a2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--cream); text-decoration: none; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.footer-links a:hover { color: #9fd3a2; }
.copyright { width: 100%; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(253, 247, 223, .12); font-size: .85rem; color: #8f9884; }
