/* ------------------------------------------------------------------
   Cambrose Christmas Tree Farm
   Rebuilt 2026 from the recovered cctf theme stylesheet.
   Palette, type and layout match the original; the Ultimate Addons
   and WordPress dependencies are gone.
   ------------------------------------------------------------------ */

:root {
  /* Palette — recovered from cctf/style.css */
  --primary: #485956;        /* slate green  (was .has-cctf-primary/blue) */
  --gold:    #a67814;        /* ochre        (was .has-cctf-gold)         */
  --red:     #a63446;        /* deep red     (was .has-cctf-red)          */
  --clay:    #ede7d9;        /* warm cream   (was .has-cctf-clay)         */
  --sand:    #ecdaca;        /* header/footer icons + site info           */
  --white:   #fff;

  --font-head: "Playfair Display SC", Palatino, "Palatino Linotype", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;

  /* Spacing — from the original :root */
  --space-h: 25px;
  --space-v: 30px;
  --wide: 1200px;
  --measure: 46rem;

  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--clay);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  clear: both;
  margin: 0 0 .6em;
  font-family: var(--font-head);
  font-weight: normal;
  line-height: 1.2;
}

h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); color: var(--primary); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); color: var(--gold); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover, a:focus-visible { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--primary); padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* Layout helpers ------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--space-h); }
.measure { max-width: var(--measure); }
.center { margin-inline: auto; text-align: center; }

/* Header --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 999;
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-inline: var(--space-h);
  max-width: var(--wide); margin-inline: auto;
}

/* Below the desktop breakpoint the open menu drops below the bar. */
@media (max-width: 899px) {
  .main-navigation { order: 3; width: 100%; }
  .main-navigation.toggled ul { border-top: 1px solid rgba(255,255,255,.15); }
  .main-navigation a { padding: 12px 5px; font-size: 1.05rem; }
}

.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 15px 0 15px 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
  color: var(--sand);
  font-family: var(--font-head); font-size: 1rem;
}
.menu-toggle svg { fill: var(--sand); width: 26px; height: 26px; }

.main-navigation ul {
  display: none;
  list-style: none; margin: 0; padding: 0;
}
.main-navigation.toggled ul { display: block; padding-bottom: 10px; }

.main-navigation a {
  display: block; padding: 10px 15px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-size: 1rem;
}
.main-navigation a:hover,
.main-navigation a:focus-visible { color: var(--sand); background: rgba(255,255,255,.07); }
.main-navigation a[aria-current="true"] { color: var(--gold); }

.contact-details { display: flex; align-items: center; gap: 20px; }
.contact-details a { display: inline-flex; transition: transform .2s; }
.contact-details a:hover { transform: scale(1.2); background: none; }
.contact-details svg { fill: var(--sand); width: 24px; height: 24px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-navigation ul { display: flex; flex-wrap: wrap; }
  .main-navigation a { padding: 30px 15px; font-size: 1.125rem; }
}

/* Sections ------------------------------------------------------- */

.section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--clay  { background: var(--clay); }
.section--cream { background: #efe6dc; }
.section--white { background: var(--white); }
.section--green { background: var(--primary); color: var(--clay); }
.section--green h2 { color: var(--clay); }
.section--green h3 { color: var(--sand); }
.section--green a { color: var(--sand); }

.section > .wrap > h2 { margin-bottom: 1em; }

/* Hero ----------------------------------------------------------- */

.home-hero {
  position: relative;
  background: var(--clay);
  padding-block: clamp(2rem, 1rem + 5vw, 4.5rem);
  overflow: hidden;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../images/branch-light.png");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: 0% -20%;
  opacity: .9;
  pointer-events: none;
}
.home-hero > .wrap { position: relative; z-index: 2; }

.home-hero__grid {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .home-hero__grid { grid-template-columns: 3fr 2fr; }
}

.home-hero h1 { margin: 0; line-height: normal; font-size: 40px; }

.hero-h1-cambrose       { color: var(--primary); }
.hero-h1-christmas-tree { color: var(--gold); text-align: center; }
.hero-h1-farm           { color: var(--primary); text-align: right; transform: translateX(-20%); }

@media (min-width: 600px) { .home-hero h1 { font-size: 55px; } }
@media (min-width: 900px) { .home-hero h1 { font-size: 65px; } }

.home-hero p.intro { color: var(--primary); font-size: 1.25rem; }
@media (min-width: 900px) { .home-hero p.intro { font-size: 1.375rem; } }

.fir-branch { margin: 1em; }
@media (max-width: 879px) {
  .fir-branch { width: 35%; margin-inline: auto; }
}

/* Image rows with tinted covers ---------------------------------- */

.image-row {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .image-row { grid-template-columns: repeat(3, 1fr); }
}

.cover {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: var(--primary);
}
@media (min-width: 760px) { .cover { min-height: 340px; } }

.cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* The original theme's two image treatments.
   The original put `filter` and `mix-blend-mode` on the same pseudo-element,
   which creates a stacking context and makes the overlay paint opaque in
   current browsers. Same visual result, split across the two elements. */
.cover { isolation: isolate; }

.cover.green-tone img { filter: saturate(.15); }
.cover.green-tone::after {
  content: ""; display: block; position: absolute; inset: 0;
  background-color: rgba(65, 112, 112, .6);
  mix-blend-mode: saturation;
}

.cover.clay-tone img { filter: saturate(.75); }
.cover.clay-tone::after {
  content: ""; display: block; position: absolute; inset: 0;
  background-color: var(--clay);
  mix-blend-mode: color;
}

/* Prices — photographic background, as on the original ----------- */

.section--photo {
  position: relative;
  background-color: var(--primary);
  background-image: url("../images/IMG_3604.jpg");
  background-size: cover;
  background-position: center;
  color: var(--clay);
}
.section--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(72, 89, 86, .82);
}
.section--photo > .wrap { position: relative; z-index: 2; }
.section--photo h2 { color: var(--clay); }
.section--photo h3 { color: var(--sand); }

/* Two-column text + image --------------------------------------- */

.split {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-image { grid-template-columns: 3fr 2fr; }
}

.decoration { margin-inline: auto; max-width: 380px; }

/* Definition-style lists (opening times, tree types) ------------- */

.hours { margin: 0 0 1.1em; }
.hours div { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.hours dt { font-family: var(--font-head); min-width: 8.5rem; }
.hours dd { margin: 0; }

.tree-types { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 760px) { .tree-types { grid-template-columns: repeat(3, 1fr); } }

.notes { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-top: 2.5rem; }
@media (min-width: 700px) { .notes { grid-template-columns: repeat(3, 1fr); } }

/* Benefit list (environment) ------------------------------------ */

.benefits { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: .4rem; }
.benefits li { font-family: var(--font-head); font-size: 1.2rem; }
.benefits li::before { content: "— "; color: var(--gold); }

/* Address / contact blocks -------------------------------------- */

.contact-block address { font-style: normal; }
.contact-block a { color: var(--red); }

/* what3words reference — the /// prefix is part of their notation */
.w3w { margin-top: .9em; }
.w3w a { white-space: nowrap; font-weight: 500; }

/* Footer --------------------------------------------------------- */

.site-footer {
  background: var(--primary);
  color: var(--white);
  padding-top: var(--space-v);
  border-top: 3px solid var(--gold);
}
.site-footer h3 { color: var(--sand); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sand); }

.footer-widgets {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 2rem;
  padding-inline: var(--space-h);
  max-width: var(--wide); margin-inline: auto;
}
.footer-widgets > * { flex-basis: 33.33%; min-width: 220px; }

@media (max-width: 760px) {
  .footer-widgets { flex-direction: column; padding-inline: 20px; }
}

.site-info {
  color: var(--sand);
  padding: 25px var(--space-h) 35px;
  max-width: var(--wide); margin-inline: auto;
  font-size: .95rem;
}
@media (max-width: 760px) { .site-info { padding-inline: 20px; } }

/* Scroll offset so anchors clear the sticky header --------------- */
[id] { scroll-margin-top: calc(var(--header-h) + 10px); }
