/*
Theme Name: Cotswold Camping
Theme URI: https://cotswold-camping.com
Author: Cotswold Camping
Description: A bespoke, image-led classic WordPress theme for Cotswold Camping.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: cotswold-camping
WPVibe: yes
*/

:root {
  --ink: #17251d;
  --forest: #163c2d;
  --forest-deep: #0d2c20;
  --moss: #63785c;
  --grass: #b7c58f;
  --straw: #e3b85c;
  --clay: #b6633d;
  --cream: #f4f0e6;
  --paper: #fbfaf5;
  --stone: #d9d1c1;
  --white: #fffef9;
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --shadow: 0 24px 70px rgba(13, 44, 32, .14);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 40px));
  --ccc-hero-image: url('campsite.jpg');
  --ccc-yurt-image: url('yurt-field.png');
  --ccc-bar-image: url('bar-trailer.jpg');
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--forest-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-wrap { width: var(--wrap); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(13, 44, 32, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; }
.brand-place { margin-top: 5px; color: var(--grass); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav a:not(.button-link):hover { color: var(--straw); }
.button-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--straw);
  color: var(--forest-deep);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button-link:hover { transform: translateY(-2px); background: #edc870; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.5); }
.button--outline:hover { color: var(--forest-deep); background: var(--white); }
.button--forest { color: var(--white); background: var(--forest); }
.button--forest:hover { color: var(--white); background: var(--forest-deep); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--white); }
.menu-toggle svg { width: 22px; height: 22px; }

.announcement {
  padding: 9px 20px;
  color: var(--forest-deep);
  background: var(--straw);
  text-align: center;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.announcement a { font-weight: 850; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--forest-deep);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 20, .92) 0%, rgba(7, 29, 20, .58) 46%, rgba(7, 29, 20, .05) 82%), var(--ccc-hero-image) center/cover no-repeat;
  transform: scale(1.01);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(8, 31, 22, .35));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 680px;
  padding: 105px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 72px;
  align-items: end;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--straw); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); line-height: .98; letter-spacing: -.035em; }
.hero h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(4.2rem, 8.2vw, 7.8rem); font-weight: 580; }
.hero h1 em { display: block; color: var(--straw); font-style: italic; font-weight: 420; }
.hero-lead { max-width: 650px; margin: 0 0 34px; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  align-self: end;
  padding: 26px;
  background: rgba(244, 240, 230, .94);
  color: var(--forest-deep);
  border-radius: var(--radius) var(--radius) 0 var(--radius);
  box-shadow: var(--shadow);
}
.hero-note span { display: block; margin-bottom: 7px; color: var(--clay); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero-note strong { display: block; font-family: var(--display); font-size: 2.15rem; line-height: 1.05; }
.hero-note p { margin: 12px 0 0; font-size: .88rem; line-height: 1.55; }

.section { padding: 112px 0; }
.section--cream { background: var(--cream); }
.section--forest { color: var(--white); background: var(--forest-deep); }
.section--forest .section-copy, .section--forest .lede { color: rgba(255,255,255,.74); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-kicker { margin: 0 0 14px; color: var(--clay); font-size: .75rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.section--forest .section-kicker { color: var(--straw); }
.section-title { margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 520; }
.section-title em { color: var(--clay); font-style: italic; font-weight: 420; }
.section--forest .section-title em { color: var(--straw); }
.lede { max-width: 720px; margin: 0; color: #425148; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 84px; align-items: center; }
.photo-frame { position: relative; }
.photo-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--clay); border-radius: var(--radius); }
.photo-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius) var(--radius) 100px var(--radius); box-shadow: var(--shadow); }
.photo-credit { position: relative; z-index: 2; margin: 9px 0 0; color: #68736c; font-size: .7rem; }
.photo-credit a { color: inherit; }
.intro-copy h2 { margin-bottom: 26px; font-size: clamp(3rem, 5.7vw, 5.3rem); font-weight: 520; }
.intro-copy > p { color: #425148; font-size: 1.08rem; }
.tick-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.tick-list li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.tick-list svg { width: 25px; height: 25px; margin-top: 2px; color: var(--clay); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  min-height: 340px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid rgba(23, 37, 29, .08);
  border-radius: 20px;
  transition: transform .24s ease, box-shadow .24s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-number { color: var(--clay); font-family: var(--display); font-size: 3.2rem; font-style: italic; }
.feature-card h3 { margin: 18px 0 12px; font-size: 2rem; font-weight: 560; line-height: 1.05; }
.feature-card p { margin: 0; color: #526057; font-size: .95rem; }
.feature-card--dark { background: var(--forest); color: var(--white); }
.feature-card--dark p { color: rgba(255,255,255,.72); }
.feature-card--dark .feature-number { color: var(--straw); }

.farm-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.farm-copy h2 { font-size: clamp(3rem, 5.5vw, 5.4rem); font-weight: 520; }
.farm-copy p { max-width: 620px; }
.farm-card {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 160px 24px 24px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.24);
}
.farm-card img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.farm-label { position: absolute; right: 18px; bottom: 18px; max-width: 240px; padding: 18px 20px; background: var(--straw); color: var(--forest-deep); border-radius: 14px; font-weight: 750; line-height: 1.4; }

.coming-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; }
.coming-main, .coming-side { border-radius: var(--radius); overflow: hidden; }
.coming-main { min-height: 600px; padding: 48px; color: var(--white); background: linear-gradient(rgba(13,44,32,.32), rgba(13,44,32,.86)), var(--ccc-yurt-image) center/cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; }
.coming-main .tag, .coming-side .tag { align-self: flex-start; display: inline-flex; margin-bottom: auto; padding: 7px 12px; border-radius: 999px; background: var(--straw); color: var(--forest-deep); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.coming-main h3 { max-width: 620px; margin: 18px 0 15px; font-size: clamp(3rem, 5vw, 5rem); font-weight: 520; }
.coming-main p { max-width: 620px; margin: 0; color: rgba(255,255,255,.83); }
.coming-side { padding: 40px; display: flex; flex-direction: column; justify-content: space-between; background: var(--clay); color: var(--white); }
.coming-side--image { min-height: 600px; background: linear-gradient(rgba(13,44,32,.18), rgba(13,44,32,.88)), var(--ccc-bar-image) center/cover no-repeat; }
.coming-side-content { margin-top: auto; }
.coming-side .tag { margin-bottom: 60px; background: var(--white); }
.coming-side h3 { margin-bottom: 18px; font-size: 3rem; font-weight: 520; }
.coming-side p { color: rgba(255,255,255,.84); }

.location-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: stretch; }
.location-copy h2 { margin-bottom: 22px; font-size: clamp(3rem, 5.5vw, 5.2rem); font-weight: 520; }
.location-copy p { max-width: 560px; color: #425148; }
.location-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0; }
.location-fact { padding: 20px; border: 1px solid var(--stone); border-radius: 16px; background: var(--white); }
.location-fact strong { display: block; color: var(--clay); font-family: var(--display); font-size: 2rem; font-weight: 550; line-height: 1; }
.location-fact span { display: block; margin-top: 7px; color: #526057; font-size: .82rem; line-height: 1.4; }
.map-card { min-height: 620px; overflow: hidden; border: 1px solid var(--stone); border-radius: var(--radius); background: #dfe8df; box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 620px; min-height: 620px; display: block; border: 0; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; color: #526057; background: var(--white); font-size: .78rem; }
.map-caption a { color: var(--clay); font-weight: 800; white-space: nowrap; }
.way-graphic { margin: 20px 0 0; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; background: var(--cream); box-shadow: var(--shadow); }
.way-graphic svg { display: block; width: 100%; height: auto; }
.way-graphic img { display: block; width: 100%; height: auto; }
.way-graphic figcaption { padding: 12px 16px 14px; color: #526057; background: var(--white); font-size: .76rem; }

.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.visit-item { padding: 34px 32px 34px 0; border-right: 1px solid rgba(255,255,255,.18); }
.visit-item + .visit-item { padding-left: 32px; }
.visit-item:last-child { border-right: 0; }
.visit-item svg { width: 34px; height: 34px; margin-bottom: 28px; color: var(--straw); }
.visit-item h3 { margin-bottom: 12px; font-size: 2rem; font-weight: 520; }
.visit-item p { margin: 0; color: rgba(255,255,255,.7); }

.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 78px; }
.faq-intro { position: sticky; top: 118px; align-self: start; }
.faq-intro h2 { margin-bottom: 20px; font-size: clamp(3rem, 5.6vw, 5.4rem); font-weight: 520; }
.faq-list { border-top: 1px solid var(--stone); }
.faq-item { border-bottom: 1px solid var(--stone); }
.faq-question { width: 100%; padding: 25px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: var(--ink); text-align: left; font-family: var(--display); font-size: 1.45rem; cursor: pointer; }
.faq-question svg { width: 22px; height: 22px; flex: 0 0 auto; transition: transform .2s ease; }
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 44px 26px 0; color: #526057; }
.faq-item.is-open .faq-answer { display: block; }
.faq-answer p { margin: 0; }

.enquiry { padding: 120px 0; color: var(--white); background: var(--forest); }
.enquiry-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 82px; align-items: start; }
.enquiry-copy h2 { margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6rem); font-weight: 520; }
.enquiry-copy > p { color: rgba(255,255,255,.74); }
.small-print { margin-top: 28px; color: rgba(255,255,255,.57); font-size: .78rem; }
.enquiry-form { padding: 38px; background: var(--cream); color: var(--ink); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.16); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #b9b4a9; border-radius: 10px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(227,184,92,.35); border-color: var(--forest); }
.checkbox { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .78rem; line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.form-status { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-weight: 700; }
.form-status--success { background: #dce9d8; color: #174221; }
.form-status--error { background: #f6d8cf; color: #6c281c; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 64px 0 28px; color: rgba(255,255,255,.75); background: #091f17; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; padding-bottom: 50px; }
.footer-brand .brand { color: var(--white); }
.footer-brand p { max-width: 420px; margin: 20px 0 0; }
.footer-col h2 { margin-bottom: 16px; color: var(--straw); font-family: var(--sans); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--straw); }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; }

.content-shell { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 120px; }
.content-shell h1 { margin-bottom: 26px; font-size: clamp(3.3rem, 7vw, 6rem); font-weight: 540; }
.content-shell h2 { margin-top: 50px; font-size: 2.4rem; }
.content-shell h3 { margin-top: 34px; font-size: 1.75rem; }
.content-shell p, .content-shell li { color: #425148; font-size: 1.05rem; }
.content-shell a { color: var(--clay); font-weight: 700; }
.post-list { display: grid; gap: 30px; }
.post-card { padding: 30px 0; border-bottom: 1px solid var(--stone); }
.post-card h2 { margin: 0 0 12px; font-size: 2.5rem; }
.post-meta { color: #748078; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.not-found { min-height: 65vh; display: grid; place-content: center; text-align: center; }
.not-found .code { color: var(--clay); font-family: var(--display); font-size: 7rem; font-style: italic; line-height: 1; }

@media (max-width: 960px) {
  .hero-grid, .intro-grid, .farm-grid, .coming-grid, .location-grid, .faq-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-note { max-width: 390px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:last-child { grid-column: 1 / -1; }
  .farm-card, .farm-card img { min-height: 500px; }
  .faq-intro { position: static; }
}

@media (max-width: 760px) {
  :root { --wrap: min(1180px, calc(100% - 28px)); }
  .header-inner { min-height: 70px; }
  .brand-name { font-size: 1.15rem; }
  .site-header .button-link { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: fixed; inset: 70px 0 auto; padding: 28px 22px 34px; display: none; flex-direction: column; align-items: stretch; gap: 0; color: var(--white); background: var(--forest-deep); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-nav .mobile-cta { display: inline-flex; margin-top: 20px; border: 0; }
  .hero { min-height: 740px; }
  .hero::before { background: linear-gradient(rgba(7,29,20,.44), rgba(7,29,20,.94)), var(--ccc-hero-image) center/cover no-repeat; }
  .hero-grid { min-height: 650px; padding: 78px 0 36px; }
  .hero h1 { font-size: clamp(3.8rem, 18vw, 5.2rem); }
  .section, .enquiry { padding: 78px 0; }
  .intro-grid { gap: 56px; }
  .photo-frame { margin-right: 16px; }
  .photo-frame::before { inset: 16px -16px -16px 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:last-child { grid-column: auto; }
  .coming-main { min-height: 510px; padding: 30px; }
  .coming-side, .coming-side--image { min-height: 460px; padding: 30px; }
  .map-card { min-height: 500px; }
  .map-card iframe { height: 500px; min-height: 500px; }
  .map-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
  .location-facts { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-item, .visit-item + .visit-item { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .visit-item:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .enquiry-form { padding: 24px 19px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Hero montage */
.hero { background: var(--forest-deep); }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { z-index: 1; background: linear-gradient(90deg, rgba(7,29,20,.9) 0%, rgba(7,29,20,.54) 46%, rgba(7,29,20,.12) 84%); }
.hero::after { z-index: 1; }
.hero-grid { z-index: 2; }
@media (max-width: 760px) { .hero::before { background: linear-gradient(rgba(7,29,20,.45), rgba(7,29,20,.94)); } }
