/*
Theme Name: Broadstone at Christmas
Theme URI: https://broadstoneatchristmas.co.uk
Author: Ingenio IT
Description: A bespoke festive event theme for Broadstone, Dorset.
Version: 1.0.0
Text Domain: broadstone-christmas
*/

:root {
  --ink: #10231f;
  --navy: #071d2c;
  --pine: #0e493d;
  --pine-dark: #072e28;
  --berry: #a9243f;
  --berry-dark: #79152b;
  --gold: #e9bd63;
  --gold-soft: #f6dfaa;
  --cream: #fffaf0;
  --snow: #f7fbfa;
  --muted: #5b6d68;
  --line: rgba(14, 73, 61, .14);
  --shadow: 0 18px 50px rgba(7, 29, 44, .14);
  --radius: 22px;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.6; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--berry); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.04em; }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--berry); color: #fff; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--berry-dark); box-shadow: 0 10px 24px rgba(121,21,43,.25); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.button--ghost:hover { background: rgba(255,255,255,.12); }
.button--gold { background: var(--gold); color: var(--navy); }
.button--gold:hover { background: #f2cc7d; }
.text-link { color: var(--berry); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.announcement { background: var(--berry); color: white; font-size: .86rem; font-weight: 700; text-align: center; }
.announcement .wrap { display: flex; justify-content: center; gap: 9px; padding-block: 9px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7,29,44,.95); color: white; backdrop-filter: blur(12px); }
.nav-row { min-height: 92px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand__mark { width: 70px; height: 70px; flex: 0 0 70px; display: grid; place-items: center; filter: drop-shadow(0 4px 12px rgba(233,189,99,.2)); transition: transform .25s ease, filter .25s ease; }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-1deg); filter: drop-shadow(0 6px 18px rgba(233,189,99,.42)); }
.brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand__text { font-family: var(--serif); font-size: 1.32rem; line-height: 1; text-shadow: 0 1px 14px rgba(0,0,0,.28); }
.brand__text small { display: block; margin-top: 4px; color: var(--gold-soft); font-family: var(--sans); font-size: .56rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: white; font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--gold); }

.hero { position: relative; min-height: min(790px, 88vh); display: grid; align-items: center; overflow: hidden; background: var(--navy); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,20,31,.94) 0%, rgba(5,20,31,.74) 38%, rgba(5,20,31,.18) 73%, rgba(5,20,31,.08) 100%), linear-gradient(0deg, rgba(5,20,31,.45), transparent 40%), var(--hero-image) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 100px; background: linear-gradient(transparent, var(--cream)); }
.hero__content { position: relative; z-index: 2; max-width: 780px; padding: 100px 0 150px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(4rem, 9vw, 8.8rem); letter-spacing: -.065em; }
.hero h1 span { display: block; color: var(--gold-soft); font-size: .54em; font-style: italic; letter-spacing: -.03em; }
.hero__intro { max-width: 630px; margin-bottom: 30px; color: #f3f6f5; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 18px; color: #cddad6; font-size: .83rem; }

.quick-plan { position: relative; z-index: 3; margin-top: -78px; }
.quick-plan__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick-card { position: relative; padding: 28px 30px 30px; text-decoration: none; }
.quick-card + .quick-card { border-left: 1px solid var(--line); }
.quick-card__icon { font-size: 1.55rem; }
.quick-card small { display: block; margin: 14px 0 5px; color: var(--berry); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.quick-card strong { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.quick-card p { margin: 9px 0 0; color: var(--muted); font-size: .92rem; }
.quick-card:hover { background: var(--snow); }

.section { padding: 110px 0; }
.section--snow { background: var(--snow); }
.section--dark { position: relative; overflow: hidden; background: var(--navy); color: white; }
.section--dark::before { content: "✦"; position: absolute; top: -150px; right: -40px; color: rgba(233,189,99,.08); font-size: 34rem; line-height: 1; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 70px; margin-bottom: 55px; }
.section-head p { margin: 0 0 10px; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card { position: relative; min-height: 440px; display: flex; flex-direction: column; justify-content: end; padding: 32px; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: white; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; }
.event-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--card-image, linear-gradient(135deg,var(--pine),var(--navy))) center/cover no-repeat; transform: scale(1.01); transition: transform .45s ease; }
.event-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, rgba(5,20,31,.88) 75%); }
.event-card:hover::before { transform: scale(1.05); }
.event-card__tag { align-self: start; margin-bottom: auto; padding: 7px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.event-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 2.25rem; }
.event-card p { margin: 0; color: #dfe8e5; }
.event-card__arrow { margin-top: 20px; color: var(--gold-soft); font-weight: 900; }

.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; }
.history-number { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; color: var(--gold); }
.history-number__value { display: block; font-family: var(--serif); font-size: clamp(7rem, 18vw, 14rem); line-height: .92; }
.history-number__label { display: block; color: white; font-family: var(--sans); font-size: .85rem; font-weight: 900; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; }
.story-copy p { color: #cedbd7; }
.story-copy .fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fact { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.fact strong { display: block; color: var(--gold-soft); font-size: 1.4rem; }
.fact span { color: #c9d7d3; font-size: .83rem; }

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.visit-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.visit-card h3 { font-family: var(--serif); font-size: 1.8rem; }
.visit-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.status { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--pine); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa56f; box-shadow: 0 0 0 5px rgba(47,165,111,.12); }

.cta { padding: 85px 0; background: var(--pine); color: white; }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.cta h2 { margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.cta p { max-width: 650px; margin: 0; color: #d5e4df; }
.site-footer { background: #04141e; color: #c7d4d1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; padding-block: 68px 46px; }
.site-footer h3 { color: white; font-family: var(--serif); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom { padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom a { color: var(--gold-soft); font-weight: 800; text-underline-offset: 3px; }

.page-hero { padding: 100px 0 75px; background: var(--navy); color: white; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(3.4rem, 8vw, 7rem); }
.page-main { min-height: 45vh; padding: 85px 0 110px; }
.prose { max-width: 800px; font-size: 1.08rem; }
.prose h2 { margin-top: 60px; font-size: 2.8rem; }
.prose h3 { margin-top: 36px; font-family: var(--serif); font-size: 1.8rem; }
.prose a { color: var(--berry); }
.notice { margin: 28px 0; padding: 22px 24px; border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0; background: #fff4d8; }
.wp-block-button__link { background: var(--berry); }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 18px 20px 25px; background: var(--navy); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; }
  .quick-plan__grid, .event-grid { grid-template-columns: 1fr; }
  .quick-card + .quick-card { border-left: 0; border-top: 1px solid var(--line); }
  .section-head, .story-grid, .visit-grid, .cta__inner, .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .event-card { min-height: 360px; }
  .story-copy .fact-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .announcement { font-size: .75rem; }
  .brand__text { font-size: 1rem; }
  .brand__mark { width: 56px; height: 56px; flex-basis: 56px; }
  .nav-row { min-height: 76px; }
  .hero { min-height: 760px; }
  .hero::before { background: linear-gradient(90deg, rgba(5,20,31,.93), rgba(5,20,31,.48)), var(--hero-image) 64% center/cover no-repeat; }
  .hero__content { padding-top: 85px; }
  .hero h1 { font-size: clamp(3.4rem, 19vw, 5.2rem); }
  .section { padding: 78px 0; }
  .quick-card { padding: 24px; }
}

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