/* 
Theme Name: wpcc
*/
:root {
  --font-sans:    "Nunito",sans-serif;
  --font-serif:   "Fraunces",serif;
  --cream:        #faf6ef;
  --cream-deep:   #f1e9d8;
  --paper:        #ffffff;
  --ink:          #2f2a24;
  --ink-soft:     #6b6357;
  --sage:         #009445;
  --sage-deep:    #4a6144;
  --terracotta:   #c87a55;
  --terracotta-soft: #e3a98c;
  --line:         #e6dcc9;
  --shadow:       0 18px 40px -24px rgba(47, 42, 36, 0.35);
  --shadow-soft:  0 10px 30px -18px rgba(47, 42, 36, 0.25);
  --radius:       10px;
  --radius-sm:    4px;
  --maxw:         1140px;
}

/* ---------- Box sizing ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); text-decoration: none; }
.section .wrap a {
  text-decoration: underline;
}
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1rem; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-generic { min-height: 600px; }
.section { padding: 84px 0; }
.section:nth-of-type(odd) { background: var(--cream-deep); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.98rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.32); color: #fff; transform: translateY(-2px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(250, 246, 239, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 28px; font-family: var(--font-sans); font-weight: bold; font-size: 1.15rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wcc-logo {
  display: block;
  max-width: 50px;
  height: auto;
}
.nav__links {
	display: flex;
	gap: 28px;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}
.nav__links a { color: var(--ink-soft); font-size: 0.95rem; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--terracotta); transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__links .nav__cta { color: #fff; }
.nav__links .nav__cta::after { display: none; }
.nav__links .nav__cta:hover { color: #fff; }
.nav__inner li:last-of-type a {
  background: var(--sage);
  color: #fff;
  padding: 0.8rem 1.2rem;
  display: inline-block;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease-in-out;
  text-box: trim-both cap alphabetic;
}
.nav__inner li:last-of-type a::after {
	display: none;
}
.nav__inner li:last-of-type a:hover {
	background-color: var(--sage-deep);
}
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("images/intro.webp");
  background-size: cover;
  background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1.5%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(47,42,36,0.35) 0%, rgba(47,42,36,0.15) 35%, rgba(47,42,36,0.78) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 64px; }
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta-soft);
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 48ch;
  margin-bottom: 1.6rem;
  opacity: 0.95;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* scroll-reveal helper */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Welcome / About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 1.05rem; }
.about__text p:first-of-type { font-size: 1.18rem; color: var(--ink); }
.about__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.about__img:hover img { transform: scale(1.02); }

/* ---------- Uses cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--cream-deep);
  display: grid; place-items: center; margin-bottom: 12px; color: var(--sage-deep);
}
.card__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card__text { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1rem; flex: 1; }
.card__body .btn { align-self: stretch; justify-content: center; }

/* ---------- Facilities ---------- */
.facilities { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.facilities__img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.facilities__img img { width: 100%; height: 100%; object-fit: cover; }
.fac-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.fac-item {
  display: flex; gap: 14px; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.fac-item:hover { border-color: var(--terracotta-soft); transform: translateX(4px); }
.fac-item__icon { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.fac-item h4 { margin: 0 0 2px; font-size: 1.05rem; }
.fac-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Note / callout ---------- */
.fac-note {
  font-size: 1.1em;
  margin-top: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  background: #fdf3ec;
  border: 1px solid var(--terracotta-soft);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius-sm);
  grid-column: 1 / span 2;
}
.fac-note__icon { color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }
.fac-note h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.fac-note p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.fac-note strong { color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 440px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: attr(data-caption);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff; font-size: 0.9rem;
  background: linear-gradient(0deg, rgba(47,42,36,0.8), rgba(47,42,36,0));
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item:hover::after { opacity: 1; transform: none; }
.gallery__item--wide { grid-column: span 2; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.price:hover { transform: translateY(-4px); }
.price--featured { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(95,122,85,0.12), var(--shadow); position: relative; }
.price--featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: #fff; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price__name { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 6px; }
.price__price { font-family: var(--font-serif); font-size: 2.4rem; color: var(--sage-deep); }
.price__unit { font-size: 0.9rem; color: var(--ink-soft); }
.price__features { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; display: grid; gap: 8px; }
.price__features li { color: var(--ink-soft); font-size: 0.92rem; display: flex; gap: 8px; align-items: start; }
.price__features li svg { color: var(--sage); flex-shrink: 0; margin-top: 3px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact__details { display: grid; gap: 18px; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row .ic { color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }
.contact__row h4 { margin: 0 0 2px; font-size: 1.02rem; }
.contact__row p { margin: 0; color: var(--ink-soft); }
.contact form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft); display: grid; gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: bold; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(95,122,85,0.18);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
.footer { background: #2a2620; color: #d9cfbe; padding: 56px 0 28px; }
.footer a { color: #e7dccb; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.footer p, .footer li { color: #b6ab98; font-size: 0.92rem; }
.footer__brand { display: flex; align-items: center; gap: 28px; margin-bottom: 12px; }
.footer__brand .brand__mark { background: var(--terracotta); }
.footer__brand span { font-family: var(--font-sans); font-size: 1.1rem; color: #fff; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__top > div:nth-child(3) .footer__list {
    gap: 0;
}

.footer__top > div:nth-child(3) .footer__list li:first-child {
  margin-bottom: 8px;
}
.footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.91rem; color: #968b78;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about, .facilities, .contact { grid-template-columns: 1fr; }
  .facilities__img { aspect-ratio: 16 / 10; order: -1; }
  .cards, .pricing { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 360px; }
  .gallery__item--wide { grid-column: span 2; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 1em;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open .nav__links a { width: 100%; text-align: center; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 400px; }
  .gallery__item--wide { grid-column: span 1; }
  .hero { min-height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Print: Word-like A4 document ---------- */
@page {
  size: A4;
  margin: 2cm;
}

@media print {
  .footer,
  .nav__links,
  .nav__toggle,
  .hero__img,
  .hero__overlay,
  .hero__actions,
  .btn,
  button,
  form,
  .contact form,
  .gallery__item::after {
    display: none !important;
  }

  /* Paper setup: Arial, readable size, generous line height */
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  body {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
  }
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Single-column document flow */
  .wrap, .wrap-generic {
    max-width: none;
    width: auto;
    margin: 0;
    padding: 0;
    min-height: 0;
  }
  .section {
    padding: 0 0 1em;
    background: none !important;
  }
  .about,
  .facilities,
  .contact,
  .cards,
  .pricing,
  .footer__top,
  .gallery {
    display: block;
  }
  .hero {
    display: block;
    min-height: 0;
    color: #000;
    overflow: visible;
  }
  .hero__content {
    padding: 0 0 1em;
  }
  .about__img,
  .facilities__img,
  .card__media,
  .gallery__item {
    aspect-ratio: auto;
    overflow: visible;
  }
  .card,
  .price,
  .fac-item,
  .fac-note,
  .contact__details {
    border: 0;
    padding: 0;
    margin-bottom: 1em;
  }

  /* Word-like typography */
  h1, h2, h3, h4 {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000 !important;
    line-height: 1.3;
    margin: 1em 0 0.4em;
    page-break-after: avoid;
  }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; }
  h4 { font-size: 12pt; }
  .hero__title {
    font-size: 22pt;
    color: #000 !important;
    max-width: none;
  }
  .hero__title em {
    color: #000 !important;
  }
  .hero__sub,
  .section-head p,
  .about__text p,
  p, li {
    font-size: 12pt !important;
    color: #000 !important;
  }
  p, ul, ol, blockquote {
    orphans: 3;
    widows: 3;
  }
  h1, h2, h3, h4, img, figure, table {
    page-break-inside: avoid;
  }
  img {
    max-width: 100% !important;
  }

  /* Links read as body text on paper */
  a {
    color: #000 !important;
    text-decoration: none;
  }
  .eyebrow {
    color: #000 !important;
    letter-spacing: normal;
    font-size: 11pt;
  }

  /* Centred branding header: logo above title text */
  .nav {
    display: block !important;
    position: static;
    background: none !important;
    border: 0 !important;
    text-align: center;
    margin-bottom: 18pt;
    padding-bottom: 12pt;
    border-bottom: 1pt solid #999 !important;
  }
  .nav__inner {
    display: block !important;
    height: auto;
  }
  .brand {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6pt;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14pt;
    font-weight: 700;
    color: #000 !important;
  }
  .brand .wcc-logo {
    max-width: 60pt;
    max-height: 60pt;
    width: auto;
    height: auto;
    margin: 0 auto;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/**
 * WP block editor-specifc 
 */
figure.aligncenter {
  display: flex;
  justify-content: center;
}
