/* ==========================================================================
   Villa Spa Camps - villaspacamps.co.za
   Built to Villa Spa Holiday Resort Brand Identity Guideline v1.0
   Colour, type and watermark rules are locked in this file.
   Edit tokens below only if the brand guideline itself changes.
   ========================================================================== */

:root {
  /* Core palette (guideline 3.2) */
  --sage: #7C9A82;
  --teal: #63949B;
  --sun: #E9DF59;
  --palm: #90C084;
  --bark: #5E5254;
  --mist: #C6D1C1;

  /* Extended working palette (guideline 3.3) */
  --deep-sage: #5D7361;
  --deep-teal: #4A6F74;
  --sand: #F4F6F5;
  --white: #FFFFFF;

  /* Type */
  --script: "Yellowtail", "Brush Script MT", cursive;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  --utility: "Poppins", "Century Gothic", "Segoe UI", sans-serif;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
  --section-y: 72px;
  --radius: 10px;
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--bark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--deep-teal); }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--deep-teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-teal);
  color: var(--white);
  padding: 12px 18px;
  z-index: 200;
  font-family: var(--utility);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 68ch; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--deep-sage);
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h1 { font-size: clamp(30px, 4.6vw, 38px); }
h2 { font-size: clamp(24px, 3.4vw, 28px); }
h3 { font-size: clamp(19px, 2.4vw, 21px); color: var(--deep-teal); }
h4 { font-size: 18px; color: var(--deep-teal); }

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

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--script);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0 0 16px;
}

.section-script {
  font-family: var(--script);
  font-size: clamp(30px, 4.4vw, 42px);
  line-height: 1.15;
  color: var(--deep-sage);
  margin: 0 0 18px;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--deep-teal);
}

.small { font-size: 14px; line-height: 1.6; }
.muted { color: rgba(94, 82, 84, 0.78); }

/* --------------------------------------------------------------------------
   Surfaces
   Watermark rule (guideline 5.6): the sea life pattern only ever sits on a
   sage or deep sage panel, never behind small body copy, tables or forms.
   -------------------------------------------------------------------------- */

.panel-sage {
  background-color: var(--sage);
  background-image: url("../img/sealife-panel.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.panel-deep-sage {
  background-color: var(--deep-sage);
  background-image: url("../img/sealife-panel-deep.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.panel-deep-teal { background-color: var(--deep-teal); color: var(--white); }
.panel-sand { background-color: var(--sand); }
.panel-white { background-color: var(--white); }
.panel-mist { background-color: var(--mist); }

.panel-sage h1, .panel-sage h2, .panel-sage h3,
.panel-deep-sage h1, .panel-deep-sage h2, .panel-deep-sage h3,
.panel-deep-teal h1, .panel-deep-teal h2, .panel-deep-teal h3 { color: var(--white); }

.panel-deep-sage a, .panel-deep-teal a, .panel-sage a { color: var(--white); }

section { padding: var(--section-y) 0; }
section.tight { padding: 44px 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1280px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Logo is placed at full colour on white, never stretched (guideline 2.4) */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.brand-words {
  font-family: var(--utility);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-teal);
  line-height: 1.45;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: var(--deep-teal);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--bark);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--deep-teal); border-bottom-color: var(--mist); }
.site-nav a[aria-current="page"] { color: var(--deep-sage); border-bottom-color: var(--sage); }

.nav-cta {
  font-family: var(--utility) !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--deep-teal);
  color: var(--white) !important;
  padding: 11px 20px !important;
  border-radius: 999px;
  border-bottom: 0 !important;
  white-space: nowrap;
  line-height: 1;
}
.nav-cta[aria-current="page"] { border-bottom: 0 !important; }
.nav-cta:hover { background: var(--teal); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--utility);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--deep-teal); color: var(--white) !important; }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { border-color: var(--white); color: var(--white) !important; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline { border-color: var(--deep-teal); color: var(--deep-teal) !important; background: transparent; }
.btn-outline:hover { background: var(--deep-teal); color: var(--white) !important; }

.btn-compact { padding: 11px 22px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

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

/* Section level headings centre. Paragraphs inside columns stay ranged left,
   which is the brand guideline rule on centring body copy. */
.container > h1,
.container > h2,
.container > .section-script,
.container > .lead,
.container > p.narrow,
.container > table.rates > caption { text-align: center; }

.container > p.narrow,
.container > .lead { margin-left: auto; margin-right: auto; }

.hero,
.page-hero {
  display: flex;
  align-items: center;
  text-align: center;
}
.hero .container,
.page-hero .container { width: 100%; }

.hero { min-height: 62vh; padding: 96px 0 88px; }

.hero-logo-panel {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.hero-logo-panel img { height: 104px; width: auto; }

.hero p.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 21px);
  line-height: 1.5;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.hero .btn-row { justify-content: center; }
.container > .btn-row { justify-content: center; }

.page-hero { min-height: 34vh; padding: 64px 0 60px; }
.page-hero .display { font-size: clamp(34px, 6.4vw, 58px); }
.page-hero p {
  font-family: var(--serif);
  font-size: 19px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Grids and content blocks
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
  margin: 0;
}
.feature-list div {
  padding: 18px 0;
  border-top: 1px solid var(--mist);
}
.feature-list h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; }
.feature-list p { font-size: 16px; margin: 0; }

.block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border-top: 4px solid var(--sage);
}
.block h3 { margin-top: 0; }
.block ul { margin: 0; padding-left: 20px; }
.block li { margin-bottom: 8px; }

.programme {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 5px solid var(--teal);
}
.programme .grade {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep-sage);
  display: block;
  margin-bottom: 6px;
}
.programme h3 { margin: 0 0 10px; }
.programme ul { padding-left: 18px; margin: 12px 0 0; font-size: 16px; }

/* Day-by-day shape of the camp week: a genuine sequence, so it is numbered */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--mist);
}
.timeline li:last-child { border-bottom: 1px solid var(--mist); }
.timeline .when {
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-sage);
  padding-top: 3px;
}
.timeline h3 { margin: 0 0 4px; font-size: 19px; }
.timeline p { margin: 0; font-size: 16px; }

/* Tables and rate panels never carry the watermark (guideline 5.7) */
table.rates {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
table.rates th {
  background: var(--deep-sage);
  color: var(--white);
  text-align: left;
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 18px;
  font-weight: 500;
}
table.rates td { padding: 14px 18px; border-top: 1px solid var(--mist); vertical-align: top; }
table.rates tr:nth-child(even) td { background: rgba(198, 209, 193, 0.28); }

.note {
  border-left: 4px solid var(--teal);
  background: rgba(198, 209, 193, 0.35);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.5;
  color: var(--white);
  margin: 0 0 14px;
}
.quote-by {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border-top: 4px solid var(--sage);
}
.review-card .stars { color: var(--sun); letter-spacing: 3px; font-size: 18px; margin-bottom: 10px; }
.review-card .stars span { color: var(--deep-sage); }
.review-card p { font-size: 16px; }
.review-card .who {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-teal);
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 24px; }
.post-card .date {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sage);
}
.post-card h3 { margin: 8px 0 10px; }
.post-card p { font-size: 16px; }

/* --------------------------------------------------------------------------
   Gallery
   Image slots are image01 to image18, video slots video01 to video03.
   Replace the files in assets/gallery and keep the file names.
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { opacity: 0.92; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-item video { width: 100%; display: block; background: var(--deep-sage); aspect-ratio: 16 / 9; }
.video-item .video-label { padding: 14px 18px; font-size: 15px; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 111, 116, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 6px; }
.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.16);
  color: var(--white);
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Carousel (teacher and facilitator accommodation)
   -------------------------------------------------------------------------- */

.carousel { position: relative; margin-top: 28px; }

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  background: var(--mist);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.carousel-slide .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(74, 111, 116, 0.86), rgba(74, 111, 116, 0));
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep-teal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.car-btn:hover { background: var(--white); }
.car-prev { left: 12px; }
.car-next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--mist);
  cursor: pointer;
}
.carousel-dots button.is-active { background: var(--deep-teal); }

@media (max-width: 560px) {
  .car-btn { width: 38px; height: 38px; font-size: 20px; }
  .carousel-slide .caption { font-size: 13px; padding: 10px 12px; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border-top: 4px solid var(--teal);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sage);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--bark);
  padding: 12px 14px;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: var(--sand);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); background: var(--white); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.honeypot { position: absolute; left: -9999px; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.28); }
.contact-list li:first-child { border-top: 0; }
.contact-list .label {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  color: rgba(255,255,255,0.85);
}
.contact-list a { color: var(--white); }

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  display: block;
}

/* --------------------------------------------------------------------------
   Footer (identical on every page)
   -------------------------------------------------------------------------- */

.site-footer { padding: 58px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 34px;
  padding-bottom: 44px;
}

.footer-logo-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo-panel img { height: 78px; width: auto; }

.footer-tag { font-family: var(--script); font-size: 26px; color: var(--white); }

.site-footer h4 {
  font-family: var(--utility);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 14px;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 16px; }
.site-footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.site-footer a:hover { border-bottom-color: var(--white); color: var(--white); }
.site-footer p { font-size: 16px; color: var(--white); }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding: 18px 0 22px;
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}

/* Contact strip: sage band carrying the sea life watermark, guideline 5.5 */
.contact-strip {
  background-color: var(--sage);
  background-image: url("../img/sealife-strip.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  padding: 18px var(--gutter);
  text-align: center;
}
.contact-strip p {
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.contact-strip a { color: var(--white); text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; }
.contact-strip .sep { opacity: 0.75; padding: 0 6px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --section-y: 54px; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-bottom: 14px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav li { width: 100%; border-top: 1px solid var(--mist); }
  .site-nav a { display: block; padding: 13px 0; border-bottom: 0; }
  .nav-cta { display: inline-block; margin: 14px 0 4px; }
  .header-inner { flex-wrap: wrap; }
  .brand img { height: 62px; }

  .grid-2, .grid-3, .grid-4, .feature-list, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .video-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 58px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-strip p { font-size: 13px; line-height: 1.9; }
}

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

@media print {
  .site-header, .nav-toggle, .lightbox { display: none !important; }
  body { background: #fff; }
}
