/* Bramble Farm Cottages – site styles.
   Colours and fonts are set once, at the top, so they are easy to change. */
:root {
  --ink: #1f2a24;
  --muted: #5b665f;
  --green: #2f4a3a;
  --green-deep: #1d3226;
  --cream: #f8f4ec;
  --linen: #efe7d8;
  --line: #e0d6c2;
  --brass: #b08d57;
  --brass-ink: #7a5c2a;
  --white: #fff;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 3px;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.005em; margin: 0 0 .5em; color: var(--green-deep); }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--green); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.center { text-align: center; }
.small { font-size: .92rem; color: var(--muted); }
.muted-on-dark { color: rgba(255,255,255,.72); }
.rounded { border-radius: var(--radius); }

/* ---------- announcement ---------- */
.announce { background: var(--brass); color: var(--green-deep); text-align: center; font-size: .95rem; padding: 9px 0; }
.announce p { margin: 0; }
.announce a { color: inherit; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,244,236,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--green-deep); }
.brand-name { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--brass-ink); margin-top: 5px; font-weight: 500; }
.brand-logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-size: .95rem; letter-spacing: .04em; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--green-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--green-deep); content: ""; transition: transform .2s, top .2s, opacity .2s; }
.nav-toggle .bars { top: 22px; left: 12px; right: 12px; }
.nav-toggle .bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; right: 0; }
.nav-check:checked + .nav-toggle .bars { background: transparent; }
.nav-check:checked + .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav-check:checked + .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; display: none; }
  .nav-check:checked ~ .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; text-align: center; }


}

/* ---------- buttons & links ---------- */
.btn { display: inline-block; background: var(--green); color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; padding: 15px 28px; border: 1px solid var(--green); border-radius: var(--radius); cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s, border-color .2s; text-align: center; line-height: 1.2; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-small { padding: 11px 18px; font-size: .82rem; }
.btn-block { display: block; width: 100%; }
.btn-light { background: var(--cream); color: var(--green-deep); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--green-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.link-arrow { font-weight: 500; text-decoration: none; letter-spacing: .03em; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }
.link-quiet { color: var(--muted); font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- type helpers ---------- */
.eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); font-weight: 500; margin-bottom: .9em; }
.eyebrow-light { color: rgba(255,255,255,.88); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.prose p:last-child { margin-bottom: 0; }
.prose-wide { max-width: 62em; }
.section-head { max-width: 46em; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin-inline: auto; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; place-items: center; text-align: center; color: #fff; min-height: clamp(540px, 84vh, 820px); overflow: hidden; background: var(--green-deep); isolation: isolate; }
.hero-img, .hero > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17,28,22,.45) 0%, rgba(17,28,22,.35) 40%, rgba(17,28,22,.66) 100%); }
.hero-plain { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); }
.hero-inner { width: min(100% - 2 * var(--gutter), 860px); padding: 80px 0; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-text { font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 36em; margin: 0 auto 2em; color: rgba(255,255,255,.94); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- highlights ---------- */
.highlights { background: var(--cream); border-bottom: 1px solid var(--line); }
.highlight-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
.highlight-list li { padding: 34px 26px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.highlight-list li:first-child { border-left: 0; }
.highlight-list strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--green-deep); line-height: 1.2; }
.highlight-list span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 700px) { .highlight-list li { border-left: 0; border-top: 1px solid var(--line); padding: 24px 8px; } .highlight-list li:first-child { border-top: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--linen); }
.section-flush { padding-top: clamp(28px, 4vw, 48px); }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); }
.page-head-tight { padding-bottom: 8px; }
.page-head h1 { margin-bottom: .25em; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-media img, .split-media .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.two-col { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 80px); }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 7px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg) translateY(-50%); }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: 0 18px 40px rgba(29,50,38,.12); transform: translateY(-2px); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen); }
.card-media img, .card-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body .eyebrow { margin-bottom: .5em; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { text-decoration: none; color: inherit; }
.card-body p { color: var(--muted); }
.card-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; border-top: 1px solid var(--line); }

/* ---------- band ---------- */
.band { background: var(--green); color: #fff; padding: clamp(44px, 6vw, 68px) 0; }
.band h2 { color: #fff; margin-bottom: .25em; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.band p { margin: 0; color: rgba(255,255,255,.86); max-width: 40em; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }

/* ---------- gallery ---------- */
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 40px; }
@media (min-width: 700px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.teaser-item { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--linen); }
.teaser-item img, .teaser-item .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.teaser-item:hover img { transform: scale(1.05); }
.masonry { columns: 1; column-gap: 14px; }
@media (min-width: 560px) { .masonry { columns: 2; } }
@media (min-width: 960px) { .masonry { columns: 3; } }
.g-item { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: var(--radius); overflow: hidden; background: var(--linen); cursor: zoom-in; position: relative; }
.g-item img { width: 100%; height: auto; transition: transform .5s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.03); }
.g-item[hidden] { display: none; }
.filters { display: none; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters { display: flex; }
.chip { font: 500 .9rem var(--sans); letter-spacing: .03em; background: transparent; color: var(--green-deep); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--green); }
.chip.is-active { background: var(--green); color: #fff; border-color: var(--green); }

/* placeholder (shown until a photo is added) */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--linen), #e4d9c3); color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; aspect-ratio: 4 / 3; width: 100%; }

/* ---------- cottage page ---------- */
.cottage-hero { padding-top: 12px; }
.cottage-hero img, .cottage-hero .ph { width: 100%; aspect-ratio: 16 / 9; max-height: 620px; object-fit: cover; }
.cottage-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .cottage-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 64px; } }
.cottage-grid .prose { font-size: 1.1rem; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; }
.facts h2 { font-size: 1.7rem; }
.facts dl { margin: 0 0 8px; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.facts .ticks { margin: 20px 0 26px; font-size: .98rem; }

/* ---------- local area ---------- */
.place-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; margin: 32px 0 28px; }
.place-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.section-tint .place-list li { background: var(--cream); }
.place-list h3 { font-size: 1.45rem; margin-bottom: .3em; }
.place-list h3 a { color: inherit; text-decoration-color: var(--brass); }
.place-list p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- contact ---------- */
.enquiry { display: grid; gap: 18px; }
.enquiry label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.enquiry input, .enquiry textarea { font: inherit; padding: 13px 14px; border: 1px solid #cfc4ad; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.enquiry input:focus, .enquiry textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.enquiry .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.map { margin-top: 64px; }
.map iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; filter: saturate(.85); }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.88); padding-top: 64px; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.site-footer a:hover { text-decoration-color: var(--brass); color: #fff; }
.site-footer .btn { text-decoration: none; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--green-deep); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: #fff; margin-bottom: .3em; }
.footer-h { font: 500 .78rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1em; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding: 22px 0 28px; font-size: .88rem; color: rgba(255,255,255,.62); }
.footer-base p { margin: 0; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(12,20,16,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; transition: opacity .2s; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb img { max-width: 100%; max-height: 84vh; width: auto; height: auto; object-fit: contain; background: #111; }
.lb figcaption { color: rgba(255,255,255,.85); font-size: .95rem; text-align: center; min-height: 1.4em; padding: 0 12px; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; }
.lb button:hover { background: rgba(255,255,255,.12); }
.lb .lb-close { position: absolute; top: 8px; right: 8px; font-size: 2.2rem; z-index: 2; }
.lb-count { position: absolute; top: 22px; left: 22px; color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .08em; }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 1fr; }
  .lb .lb-prev, .lb .lb-next { position: absolute; bottom: 14px; top: auto; background: rgba(0,0,0,.35); }
  .lb .lb-prev { left: 12px; } .lb .lb-next { right: 12px; }
  .lb img { max-height: 76vh; }
}


/* ---------- preview-only additions (no JavaScript) ---------- */
.nav-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-check:focus-visible + .nav-toggle { outline: 3px solid var(--brass); outline-offset: 3px; }
.nav-toggle { cursor: pointer; }
.g-item img { aspect-ratio: auto 4 / 3; }
.g-section { margin-bottom: 64px; }
.g-section h2 { margin-bottom: .6em; }
.g-section:last-child { margin-bottom: 0; }
.filters { margin: 28px 0 0; }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.lbx { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(12,20,16,.95); align-items: center; justify-content: center; }
.lbx:target { display: flex; }
.lbx-bg { position: absolute; inset: 0; cursor: zoom-out; }
.lbx img { position: relative; max-width: min(92vw, 1500px); max-height: 82vh; width: auto; height: auto; object-fit: contain; background: #111; }
.lbx-x, .lbx-p, .lbx-n { position: absolute; color: #fff; text-decoration: none; font-size: 2.6rem; line-height: 1; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; z-index: 2; }
.lbx-x:hover, .lbx-p:hover, .lbx-n:hover { background: rgba(255,255,255,.14); color: #fff; }
.lbx-x { top: 8px; right: 8px; font-size: 2.2rem; }
.lbx-p { left: 8px; top: 50%; margin-top: -32px; }
.lbx-n { right: 8px; top: 50%; margin-top: -32px; }
.lbx-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .9rem; letter-spacing: .08em; margin: 0; }
@media (max-width: 640px) {
  .lbx-p, .lbx-n { top: auto; bottom: 8px; margin-top: 0; background: rgba(0,0,0,.35); }
  .lbx-c { bottom: 28px; }
}
