/* ==========================================================
   style.css  -  all colors, fonts and layout for the site

   EASY CHANGES
     Colors .... edit the values in the ":root" block just below
                 (--green, --pink, --grey ... come from the logo)
     Fonts ..... --serif (headings) and --sans (body text), also the
                 Google Fonts <link> near the top of each .html page
     Section styles are grouped below, in this order:
       header . buttons . hero (home) . page banner . quote .
       category cards . photo strip . pills . green band . about page .
       gallery . photo viewer . contact form . footer
   ========================================================== */
/* Finding In Focus Photography — palette pulled from the logo */
:root {
  --green: #6a7852;
  --green-deep: #4d5a38;
  --green-dark: #35402a;
  --pink: #eda3b4;
  --pink-soft: #f7d9e0;
  --grey: #878787;
  --ink: #3b3f36;
  --paper: #f4f3ef;
  --card: #eeeeee;
  --serif: "Playfair Display", "Bodoni MT", Georgia, serif;
  --sans: "Jost", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;

  /* pine-tree silhouette tiles (colour baked in for CSS backgrounds) */
  --pines-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='90' viewBox='0 0 150 90'%3E%3Cg fill='%23f4f3ef'%3E%3Cpath id='p' d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3Cg transform='translate(88 24) scale(.72)'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pines-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='90' viewBox='0 0 150 90'%3E%3Cg fill='%2335402a'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3Cg transform='translate(88 24) scale(.72)'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pines-mid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='90' viewBox='0 0 150 90'%3E%3Cg fill='%23435030'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3Cg transform='translate(88 24) scale(.72)'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration-color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--green-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
em.in { color: var(--pink); font-style: italic; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

/* eyebrow label — echoes "—— PHOTOGRAPHY ——" in the logo */
.eyebrow {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  font-size: .8rem; letter-spacing: .42em; text-transform: uppercase; color: var(--grey); font-weight: 500; margin-bottom: 1rem;
}
.eyebrow::before, .eyebrow::after { content: ""; height: 2px; width: clamp(24px, 8vw, 70px); background: var(--pink); }
.eyebrow.left { justify-content: flex-start; } .eyebrow.left::before { display: none; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 243, 239, .92); backdrop-filter: blur(10px);
  border-bottom: 3px double var(--pink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--green-deep); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand .b1 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.05; display: block; }
.brand .b1 i { color: var(--pink); }
.brand .b2 { font-size: .62rem; letter-spacing: .5em; color: var(--grey); text-transform: uppercase; display: block; margin-top: 2px; }
.nav { display: flex; gap: .3rem; }
.nav a {
  text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 500;
  padding: .55rem .9rem; color: var(--ink); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green); border-color: var(--pink); }
.nav a[aria-current="page"] { color: var(--green-deep); border-color: var(--green); }
.menu-btn { display: none; background: none; border: 1px solid var(--green); color: var(--green-deep); padding: .45rem .7rem; font: inherit; letter-spacing: .15em; font-size: .75rem; text-transform: uppercase; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 3px double var(--pink); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid #ddd; }
}

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font: inherit; font-weight: 500;
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; padding: .95rem 1.8rem;
  background: var(--green); color: #fff; border: 2px solid var(--green); transition: .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: var(--pink); }
.btn.ghost:hover { background: var(--pink); color: var(--green-dark); border-color: var(--pink); }
.btn.pink { background: var(--pink); border-color: var(--pink); color: var(--green-dark); }
.btn.pink:hover { background: #fff; border-color: #fff; color: var(--green-deep); }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(180deg, #5c6a45 0%, #6a7852 55%, #55633f 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(11rem, 20vw, 15rem);
}
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; pointer-events: none; }
.hero::before { height: 200px; background-image: var(--pines-dark); background-size: 230px 138px; background-position: 40px 100%; opacity: .55; }
.hero::after  { height: 150px; background-image: var(--pines-paper); background-size: 170px 102px; background-position: 0 100%; }
.hero .wrap { position: relative; z-index: 2; }
.logo-card {
  width: min(560px, 100%); margin: 0 auto 2rem; background: var(--card); padding: 0;
  box-shadow: 0 25px 60px rgba(20, 28, 12, .45), 0 0 0 1px rgba(255,255,255,.2);
  animation: focusIn 1.6s ease-out both;
}
@keyframes focusIn { from { filter: blur(14px); opacity: .2; transform: scale(1.04); } to { filter: blur(0); opacity: 1; transform: none; } }
.hero p.lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.55rem); max-width: 34ch; margin: 0 auto 1.8rem; color: #fff; }
.hero .cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* page head (inner pages) */
.page-head {
  position: relative; text-align: center; color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(6rem, 10vw, 8rem);
  background: linear-gradient(180deg, #5c6a45, #6a7852);
}
.page-head::before { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: var(--pines-dark) repeat-x 30px 100% / 180px 108px; opacity: .5; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 84px; background: var(--pines-paper) repeat-x 0 100% / 140px 84px; }
.page-head .wrap { position: relative; z-index: 2; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { max-width: 52ch; margin: 0 auto; color: #eef0e8; }
.page-head .eyebrow { color: #dfe4d4; }

section { padding: clamp(3rem, 6vw, 5rem) 0; }
.center { text-align: center; }

/* pull quote */
.quote { text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.8vw, 1.85rem); line-height: 1.55; color: var(--green-deep); }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--pink); margin-bottom: .6rem; }
.quote cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--grey); }

/* viewfinder frame — corner brackets like the logo */
.vf { position: relative; }
.vf::before, .vf::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--pink); opacity: 0; transition: .25s; z-index: 2; pointer-events: none; }
.vf::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.vf::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.vf:hover::before, .vf:hover::after, .vf:focus-visible::before, .vf:focus-visible::after { opacity: 1; inset-inline: auto; }

/* category cards */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cat { display: block; position: relative; text-decoration: none; color: #fff; aspect-ratio: 4/3; overflow: hidden; background: var(--green-deep); border: 8px solid var(--card); outline: 2px solid var(--pink); outline-offset: -2px; box-shadow: 0 12px 30px rgba(40,50,30,.18); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.95); }
.cat:hover img { transform: scale(1.05); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30,38,22,.85)); }
.cat .label { position: absolute; z-index: 3; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; }
.cat .label h3 { color: #fff; font-size: 2rem; margin: 0; }
.cat .label span { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--pink-soft); }
@media (max-width: 700px) { .cats { grid-template-columns: 1fr; } }

/* featured strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.strip a { display: block; aspect-ratio: 1; overflow: hidden; background: #ddd; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* services pills */
.pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.pills li { padding: .55rem 1.2rem; border: 2px solid var(--pink); color: var(--green-deep); font-size: .82rem; letter-spacing: .15em; text-transform: uppercase; background: #fff8; }

/* forest band */
.band { background: var(--green); color: #fff; position: relative; padding: clamp(4rem, 8vw, 6rem) 0 clamp(7rem, 12vw, 9rem); text-align: center; overflow: hidden; }
.band h2 { color: #fff; }
.band::before { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: var(--pines-dark) repeat-x 30px 100% / 200px 120px; opacity: .5; }
.band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 100px; background: var(--pines-paper) repeat-x 0 100% / 150px 90px; }
.band .wrap { position: relative; z-index: 2; }
.band p { max-width: 52ch; margin-inline: auto; color: #eef0e8; }

/* about page */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 auto; text-align: center; }
.fact { background: var(--card); border: 1px solid #e0e0e0; border-top: 4px solid var(--pink); padding: 1.4rem .6rem; }
.fact b { display: block; font-family: var(--serif); font-size: 2.3rem; color: var(--green); line-height: 1.1; font-weight: 500; }
.fact span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.story { padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid #ddd; }
.story:last-of-type { border: 0; }
.story h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--pink); margin-top: .5rem; }
.story-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.pine { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.15em; margin-right: .4rem; }

/* gallery */
.tabs { display: flex; justify-content: center; gap: .6rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.tab {
  font: inherit; cursor: pointer; background: transparent; color: var(--green-deep); border: 2px solid var(--green);
  text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; font-weight: 500; padding: .85rem 1.8rem; transition: .2s;
}
.tab:hover { border-color: var(--pink); }
.tab[aria-selected="true"] { background: var(--green); color: #fff; }
.tab small { opacity: .75; letter-spacing: .1em; margin-left: .4rem; }
.tab-note { text-align: center; color: var(--grey); max-width: 56ch; margin: -.8rem auto 2rem; font-style: italic; font-family: var(--serif); }
.grid { columns: 3 280px; column-gap: 14px; }
.grid a { display: block; break-inside: avoid; margin-bottom: 14px; background: #ddd; overflow: hidden; cursor: zoom-in; position: relative; }
.grid img { width: 100%; height: auto; opacity: 0; filter: blur(10px); transform: scale(1.02); transition: opacity .7s, filter .9s, transform .9s; }
.grid img.loaded { opacity: 1; filter: blur(0); transform: none; }
.grid a:hover img.loaded { transform: scale(1.03); }
.empty { text-align: center; color: var(--grey); padding: 3rem 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(28, 33, 22, .96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb figure { margin: 0; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lb img { max-width: 94vw; max-height: 84vh; object-fit: contain; background: #222; box-shadow: 0 10px 50px rgba(0,0,0,.5); animation: focusIn .6s ease-out; }
.lb .count { color: #cfd5c2; font-size: .75rem; letter-spacing: .3em; margin-top: .8rem; text-transform: uppercase; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; padding: .6rem 1rem; opacity: .8; line-height: 1; }
.lb button:hover { opacity: 1; color: var(--pink); }
.lb .x { top: .5rem; right: .8rem; } .lb .prev { left: .4rem; top: 50%; transform: translateY(-50%); } .lb .next { right: .4rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb .prev, .lb .next { top: auto; bottom: .5rem; transform: none; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side h2 { margin-bottom: .6rem; }
.contact-side ul { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-side li { padding: .55rem 0 .55rem 1.6rem; position: relative; }
.contact-side li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px; border: 2px solid var(--pink); border-radius: 50%; }
form.contact { background: var(--card); padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid #ddd; outline: 2px solid var(--pink); outline-offset: -10px; padding: clamp(2rem, 4vw, 2.8rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--green-deep); font-weight: 500; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #c9c9c9; border-radius: 0; padding: .8rem .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pink); border-color: var(--green); }
.field textarea { min-height: 150px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; display: none; border-left: 4px solid var(--green); background: #fff; }
.form-status.show { display: block; } .form-status.err { border-color: #b4505f; }

/* footer */
.site-footer { position: relative; background: var(--green-dark); color: #d6dccb; padding: 5rem 0 2rem; text-align: center; margin-top: 3rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; background: var(--pines-paper) repeat-x 0 0 / 150px 90px; transform: scaleY(-1); opacity: 0; }
.site-footer .treeline { position: absolute; left: 0; right: 0; top: -58px; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='90' viewBox='0 0 150 90'%3E%3Cg fill='%2335402a'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3Cg transform='translate(88 24) scale(.72)'%3E%3Cpath d='M40 10L58 38H50L66 62H56L72 86H8L24 62H14L30 38H22Z'/%3E%3Crect x='38' y='86' width='4' height='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat-x 20px 100% / 100px 60px; }
.site-footer .brand-f { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.site-footer .brand-f i { color: var(--pink); }
.site-footer small { display: block; letter-spacing: .5em; text-transform: uppercase; font-size: .65rem; color: var(--pink); margin: .3rem 0 1.4rem; }
.site-footer nav { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.site-footer nav a { color: #d6dccb; text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; }
.site-footer nav a:hover { color: var(--pink); }
.site-footer .copy { font-size: .8rem; color: #a5ae98; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grid img { opacity: 1; filter: none; }
}

/* about page portrait (floats right next to "My Start"; stacks on phones) */
.portrait { float: right; width: min(260px, 45%); margin: .3rem 0 1rem 1.8rem; border: 8px solid var(--card); outline: 2px solid var(--pink); outline-offset: -2px; box-shadow: 0 12px 30px rgba(40,50,30,.18); }
.portrait img { width: 100%; }
@media (max-width: 560px) { .portrait { float: none; margin: 0 auto 1.5rem; width: min(300px, 80%); } }
.story::after { content: ""; display: table; clear: both; }

/* contact page location line */
.location { font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--grey); margin: 0; }

/* hidden forest critters (placed by js/critters.js) */
.critter { position: absolute; display: block; line-height: 0; cursor: default; transform-origin: 50% 100%; }
.critter svg { width: 100%; height: auto; display: block; }
.critter.flip svg { transform: scaleX(-1); }
.critter.hop { animation: hop .6s ease-out; }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-6deg); } 60% { transform: translateY(0) rotate(3deg); } 100% { transform: none; } }
