/* Small Towns Little Feet
   Palette and type follow the Farmhouse on Boone reference: white pages,
   linen bands, olive + slate accents, Playfair headings, small tracked sans labels. */

:root {
  --white: #ffffff;
  --linen: #ebe9df;
  --linen-soft: #f5f4ee;
  --olive: #545431;
  --olive-2: #717154;
  --slate: #46696d;
  --sage: #cbd1ca;
  --mist: #c0cece;
  --blush: #f0d6c5;
  --ink: #29291f;
  --muted: #666657;
  --line: #e2e0d6;

  --serif: "Playfair Display", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: Montserrat, Avenir, Corbel, "URW Gothic", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.75 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--olive); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

/* Small tracked interface text, the reference site's signature */
.label, .site-nav a, .btn, .footer-head, .brand-sub, .topbar, .crumbs, .meta {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Top bar + header ------------------------------------------------ */
.topbar { background: var(--olive); color: var(--white); text-align: center; padding: .6rem var(--gutter); letter-spacing: .1em; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.brand-row { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 1.8rem var(--gutter) 1.1rem; text-align: center; }
.brand { text-decoration: none; color: var(--ink); display: inline-block; }
.brand-name { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; color: var(--ink); }
.brand-sub { display: block; color: var(--olive-2); margin-top: .45rem; }
.cart-link { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); color: var(--ink); display: flex; align-items: center; gap: .3rem; text-decoration: none; padding: .5rem; }
.cart-count { background: var(--olive); color: var(--white); font-size: .68rem; min-width: 1.3rem; height: 1.3rem; border-radius: 999px; display: grid; place-items: center; font-weight: 600; }

.site-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.6rem; padding: 0 var(--gutter) 1.1rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--olive); color: var(--olive); }
.site-nav .nav-book { color: var(--slate); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .brand-row { padding-block: 1.2rem .9rem; }
  .nav-toggle {
    display: block; position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%);
    background: none; border: 1px solid var(--line); padding: .45rem .7rem; font: 500 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .brand-name { font-size: 1.55rem; padding-inline: 3.8rem; }
  .brand-sub { font-size: .62rem; }
  .site-nav { display: none; flex-direction: column; align-items: center; gap: 0; padding-bottom: 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; }
}

/* ---- Buttons + forms ------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid var(--olive); background: var(--olive); color: var(--white);
  padding: .95rem 1.7rem; text-decoration: none; cursor: pointer; border-radius: var(--radius); line-height: 1.2;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--olive); color: var(--white); border-color: var(--olive); }
.btn-small { padding: .6rem 1rem; font-size: .66rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-size: .8rem; font-weight: 500; margin-bottom: .35rem; color: var(--ink); }
.field small { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid #cfccbf; border-radius: var(--radius); padding: .8rem .9rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(70, 105, 109, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.flash { max-width: var(--wrap); margin: 1rem auto 0; padding: .9rem 1.2rem; background: var(--linen); border-left: 3px solid var(--olive); }
.flash-error { background: #f7e6de; border-left-color: #a2472b; }

/* ---- Sections -------------------------------------------------------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--linen); }
.band-soft { background: var(--linen-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--muted); }
.crumbs { color: var(--olive-2); margin-bottom: 1.2rem; }
.crumbs a { color: var(--olive-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- Home hero ------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.hero h1 { max-width: 14em; margin-inline: auto; }
.hero .lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--olive-2); max-width: 34em; margin: 0 auto 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.strip figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.strip figure:nth-child(2) { aspect-ratio: auto; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4 / 3; }
}

/* Session cards: image, then centered title (the reference's "Most loved" row) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.card { text-align: center; text-decoration: none; color: var(--ink); display: block; }
.card-img { aspect-ratio: 4 / 5; background: var(--sage); overflow: hidden; margin-bottom: 1.1rem; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .ph { font-family: var(--serif); font-style: italic; color: var(--olive); font-size: 1.2rem; padding: 1rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .92rem; max-width: 22em; margin: 0 auto .7rem; }
.card .label { color: var(--slate); }
.card:hover h3 { color: var(--olive); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 2.4rem; } .card-img { aspect-ratio: 3 / 2; } }

/* Hi, I'm ... */
.intro { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: 960px; margin: 0 auto; }
.intro-photo { width: 300px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sage); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .intro { grid-template-columns: 1fr; text-align: center; } .intro-photo { width: 220px; margin: 0 auto; } }

/* Steps: this content is a real sequence, so it's numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; text-align: center; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0 auto .9rem; border: 1px solid var(--olive); border-radius: 50%; font-family: var(--serif); font-size: 1.15rem; color: var(--olive); }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); font-size: .93rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Photo grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid a, .grid figure { display: block; margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.grid a:hover img { opacity: .88; }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.empty { text-align: center; padding: 3rem 1rem; background: var(--linen-soft); color: var(--muted); }
.empty h3 { color: var(--ink); }

/* Gallery-code box, styled like the reference's download box */
.code-box { background: var(--blush); padding: clamp(2rem, 5vw, 3.2rem); text-align: center; max-width: 860px; margin: 0 auto; }
.code-form { display: flex; gap: .6rem; max-width: 460px; margin: 1.2rem auto 0; }
.code-form input { flex: 1; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 480px) { .code-form { flex-direction: column; } }

.areas { color: var(--muted); font-size: .92rem; max-width: 760px; margin: 0 auto; text-align: center; }

/* ---- Service pages --------------------------------------------------- */
.svc-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero .lede { font-family: var(--serif); font-size: 1.25rem; line-height: 1.6; color: var(--olive-2); font-style: italic; }
.svc-photo { aspect-ratio: 4 / 5; background: var(--sage); overflow: hidden; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .svc-hero { grid-template-columns: 1fr; } .svc-photo { max-width: 460px; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .7rem 0 .7rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .8rem; height: 1px; background: var(--olive); }

.pricing { display: grid; gap: 1rem; }
.price { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1.5rem; padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); align-items: start; }
.price h3 { margin: 0; font-size: 1.25rem; }
.price .amount { font-family: var(--serif); font-size: 1.5rem; color: var(--olive); }
.price p { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; margin: .3rem 0 .8rem; }
.price .meta { color: var(--olive-2); }
.price .btn { justify-self: start; grid-column: 1 / -1; }

.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.2rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--olive); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---- Portfolio filter ----------------------------------------------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 2rem; }
.filters a { color: var(--muted); text-decoration: none; padding: .3rem 0; border-bottom: 1px solid transparent; }
.filters a[aria-current="true"], .filters a:hover { color: var(--olive); border-bottom-color: var(--olive); }

/* ---- Lightbox -------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; background: rgba(33, 33, 26, .94); display: grid; place-items: center; z-index: 50; padding: 3.5rem 1rem 5rem; }
.lightbox img { max-height: calc(100vh - 9rem); max-width: 100%; width: auto; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 400 2rem/1 var(--serif); padding: .8rem; }
.lb-close { top: .5rem; right: .8rem; font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.lb-prev { left: .4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .4rem; top: 50%; transform: translateY(-50%); }
.lb-bar { position: absolute; bottom: 1.2rem; left: 0; right: 0; display: flex; justify-content: center; gap: 1rem; align-items: center; color: #fff; }
.lb-bar .btn { border-color: #fff; }

/* ---- Client galleries + shop ---------------------------------------- */
.gal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.4rem; }
.gal-list a { text-decoration: none; color: var(--ink); }
.gal-list .cover { aspect-ratio: 4 / 3; background: var(--linen); overflow: hidden; margin-bottom: .8rem; }
.gal-list .cover img { width: 100%; height: 100%; object-fit: cover; }
.gal-list h3 { font-size: 1.2rem; margin-bottom: .2rem; }
.gal-list .meta { color: var(--olive-2); }

.shop-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.shop-head .meta { color: var(--olive-2); }
.full-offer { background: var(--linen); padding: 1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot { position: relative; background: var(--linen-soft); }
.shot button.open { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-bar { display: flex; justify-content: space-between; align-items: center; padding: .55rem .6rem; gap: .5rem; font-size: .82rem; }
.shot-bar .num { color: var(--muted); }
.add { background: none; border: 1px solid var(--olive); color: var(--olive); font: 500 .64rem var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .7rem; cursor: pointer; border-radius: var(--radius); }
.add:hover { background: var(--olive); color: #fff; }
.add.in { background: var(--olive); color: #fff; }
.watermark-note { color: var(--muted); font-size: .85rem; margin-top: 1.5rem; text-align: center; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table td { padding: .9rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; }
.cart-table .amt { text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 1.1rem; }
.cart-total { text-align: right; font-family: var(--serif); font-size: 1.5rem; margin-bottom: 2rem; }
.cart-sums { margin-bottom: .2rem; }
.cart-sums td { padding: .45rem .4rem; color: var(--muted); }
.policies h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.policies .lede-sm { color: var(--muted); margin-bottom: 1rem; }
.link-btn { background: none; border: 0; color: var(--slate); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.dl-grid a { display: block; text-decoration: none; color: var(--ink); font-size: .82rem; }
.dl-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: .4rem; }

/* ---- Booking calendar ---------------------------------------------- */
.book-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.types { display: grid; gap: .6rem; }
.type-opt { display: block; border: 1px solid var(--line); padding: 1rem 1.1rem; cursor: pointer; background: var(--white); }
.type-opt input { position: absolute; opacity: 0; }
.type-opt strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.type-opt .meta { color: var(--olive-2); font-size: .64rem; }
.type-opt:has(input:checked) { border-color: var(--olive); background: var(--linen-soft); box-shadow: inset 3px 0 0 var(--olive); }
.type-opt:has(input:focus-visible) { outline: 2px solid var(--slate); outline-offset: 2px; }

.cal { border: 1px solid var(--line); background: var(--white); }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.cal-head h3 { margin: 0; font-size: 1.3rem; }
.cal-nav { background: none; border: 1px solid var(--line); width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .6rem 0; }
.cal-days { padding: 0 .5rem .6rem; gap: 4px; }
.day { aspect-ratio: 1 / .86; border: 0; background: none; font: 400 .95rem var(--sans); color: #b3b1a6; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.day.open { background: var(--linen); color: var(--ink); cursor: pointer; font-weight: 500; }
.day.open::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.day.open:hover { background: var(--sage); }
.day.sel { background: var(--olive); color: var(--white); }
.day.sel::after { background: var(--white); }
.day.today { text-decoration: underline; text-underline-offset: 4px; }
.cal-legend { padding: .6rem 1rem .9rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.cal-status { padding: 2rem 1rem; text-align: center; color: var(--muted); }

.times { margin-top: 1.5rem; }
.times h3 { font-size: 1.2rem; }
.time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.time { border: 1px solid var(--olive); background: var(--white); color: var(--olive); padding: .7rem .4rem; cursor: pointer; font: 500 .9rem var(--sans); border-radius: var(--radius); }
.time:hover { background: var(--linen); }
.time[aria-pressed="true"] { background: var(--olive); color: var(--white); }
.book-form { margin-top: 2rem; padding: 1.6rem; background: var(--linen-soft); border: 1px solid var(--line); }
.book-summary { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 1.2rem; }
.error-box { background: #f7e6de; border-left: 3px solid #a2472b; padding: .8rem 1rem; margin-bottom: 1rem; }

.confirm { max-width: 640px; margin: 0 auto; text-align: center; }
.confirm .when { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--olive); margin: 1rem 0 1.5rem; }
.confirm dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; text-align: left; max-width: 420px; margin: 0 auto 2rem; }
.confirm dt { color: var(--muted); font-size: .85rem; }
.confirm dd { margin: 0; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--olive); color: #e8e7dc; margin-top: 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer a, .site-footer span { display: block; color: #e8e7dc; text-decoration: none; font-size: .9rem; padding: .15rem 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: #fff; font-size: 1.6rem; margin-bottom: .6rem; }
.footer-head { color: #fff; margin-bottom: .6rem; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-legal { text-align: center; font-size: .78rem; color: #c9c8b8; border-top: 1px solid rgba(255, 255, 255, .15); margin: 0; padding: 1.2rem var(--gutter); }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

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