/*
  ============================================================
  WOODEN SPA BUSINESS — SHARED STYLESHEET
  ============================================================
  This one CSS file is linked by all 3 pages:
    index.html, about.html, contact.html
  (The gallery lives on the homepage as a section, not a
  separate page.) Editing a colour or style here updates it
  everywhere.

  This is the same styling as the original single-file
  template, with two changes:
  1. The .page / .page.active show/hide rules are gone —
     each page is now its own file, so it's always visible.
  2. The mobile hamburger menu now uses a CSS-only checkbox
     trick instead of JavaScript (see "MOBILE MENU TOGGLE"
     section below).
  ============================================================
*/

/* Makes all elements behave consistently across browsers */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/*
  COLOUR PALETTE
  These are CSS variables — named colours used throughout the file.
  Change the hex value (e.g. #3b2a1a) to change that colour everywhere.
  Use a tool like coolors.co to find nice hex codes.
*/
:root {
  --bark:        #3b2a1a;  /* Very dark brown — dark backgrounds, headings */
  --cedar:       #8b5e3c;  /* Warm mid-brown — main brand/accent colour */
  --cedar-light: #b07d54;  /* Light warm brown — hover states, small accents */
  --cream:       #f5f0e8;  /* Off-white — text on dark backgrounds */
  --warm-white:  #fdfaf5;  /* Very slightly warm white — main page background */
  --fog:         #e8e2d8;  /* Light grey-brown — borders */
  --text-dark:   #2a1e14;  /* Near-black — main body text */
  --text-mid:    #5c4a38;  /* Medium brown — secondary/smaller text */
}

/* Smooth scrolling when jumping to anchors */
html { scroll-behavior: smooth; }

/* Default styles applied to everything on the page */
body {
  font-family: 'Lato', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
}


/* ============================================================
   NAVIGATION BAR
   The fixed bar that stays at the top while you scroll.
   ============================================================ */

nav {
  position: fixed;        /* Sticks to the top of the screen */
  top: 0; left: 0; right: 0;
  z-index: 100;           /* Ensures it sits above all other content */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(253, 250, 245, 0.92); /* Slightly see-through warm white */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(139, 94, 60, 0.15);
  box-shadow: 0 2px 20px rgba(59,42,26,0.06); /* Static subtle shadow (was scroll-triggered via JS) */
}

/* Business name / logo in the top-left of the nav */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--bark);
  letter-spacing: 0.02em;
}


/* The list of navigation links */
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cedar); } /* Active = currently shown page */

/* Special dark pill style for the "Get a Quote" nav button */
.nav-cta {
  background: var(--bark);
  color: var(--cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--cedar) !important; color: var(--cream) !important; }

/*
  MOBILE MENU TOGGLE (pure CSS, no JavaScript)
  ---------------------------------------------
  #menu-toggle is a hidden checkbox placed right after the logo
  in the nav markup. The burger <label for="menu-toggle"> is
  linked to it, so tapping the burger icon toggles the checkbox
  even though the checkbox itself is invisible.
  When checked, the ~ (sibling) selector below reveals .nav-links.
*/
.menu-toggle { display: none; }

/* Hamburger icon — only shown on mobile screens (see responsive section below) */
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--bark); border-radius: 2px; }


/* ============================================================
   PAGE WRAPPER
   Each page's content sits inside <div class="page">.
   72px top padding makes room for the fixed nav bar above it.
   ============================================================ */

.page { padding-top: 72px; }


/* ============================================================
   HOME PAGE — HERO SECTION
   The full-screen section at the very top of the home page.
   Uses a solid dark brown background with a subtle grid texture.
   ============================================================ */

.hero {
  position: relative;
  height: calc(100vh - 72px); /* Full viewport height minus nav bar */
  min-height: 560px;
  display: flex;
  align-items: center;     /* Vertically centres the text block */
  justify-content: space-between; /* Pushes hero-content left, hero-image right */
  overflow: hidden;
  background: var(--bark); /* Solid dark brown — no background image */
}

/*
  Subtle grid texture overlay on the hero.
  This adds faint horizontal/vertical lines over the brown background
  to break up the flat colour and add depth.
  Remove this entire block if you want a completely flat background.
*/
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; /* Doesn't block clicks */
}

/*
  Soft warm glow in the bottom-right corner of the hero.
  Adds a subtle depth effect. Remove if you want it cleaner.
*/
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,94,60,0.25) 0%, transparent 70%);
  pointer-events: none;
}

/* The text content block inside the hero */
.hero-content {
  position: relative;
  z-index: 1;            /* Sits above the ::before and ::after decorative layers */
  max-width: 640px;
  padding: 0 8%;
  animation: fadeUp 1s ease both; /* Animates in on load */
}

/* Slides up and fades in — applied to the hero content */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Photo on the right of the hero, next to the heading */
.hero-image {
  position: relative;
  z-index: 1;              /* Sits above the ::before/::after decorative layers */
  flex: 0 1 40%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  margin-right: 6%;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  animation: fadeUp 1s ease both;
  animation-delay: 0.15s;  /* Slightly after the text */
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The large main heading */
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem); /* Responsive: min 2.4rem, ideal 5vw, max 4rem */
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.4rem;
}
/* <em> inside the heading gets a warmer colour */
.hero h1 em { font-style: italic; color: var(--cedar-light); }

/* Paragraph below the heading */
.hero p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 2.2rem;
  max-width: 480px;
}

/* Holds the two side-by-side buttons */
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Solid brown button */
.btn-primary {
  display: inline-block;
  background: var(--cedar);
  color: var(--cream);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--cedar-light); transform: translateY(-1px); }

/* Transparent button with a white border — used on dark backgrounds */
.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(245,240,232,0.5);
  color: var(--cream);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--cream); background: rgba(255,255,255,0.08); }


/* ============================================================
   SHARED — SECTION STYLES
   Used across many sections on all pages.
   ============================================================ */

section { padding: 5rem 8%; } /* Breathing room around section content */

/* Small uppercase coloured label above a heading — e.g. "Our Range" */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 0.75rem;
}

/* Large section heading */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  color: var(--bark);
  margin-bottom: 1rem;
}


/* ============================================================
   HOME — TESTIMONIAL STRIP
   Dark background with a customer quote.
   ============================================================ */

.testimonial-strip { background: var(--bark); padding: 4rem 8%; text-align: center; }
.testimonial-strip blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--cream);
  max-width: 760px;
  margin: 0 auto 1.2rem;
  line-height: 1.5;
}
.testimonial-strip cite { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cedar-light); }


/* ============================================================
   SHARED — CTA (CALL TO ACTION) BAND
   Brown strip with a heading and a button.
   Used on Home, Gallery, and implicitly on other pages.
   ============================================================ */

.cta-band { background: var(--cedar); padding: 4rem 8%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--cream); }

/* Light cream button — used on dark/brown backgrounds */
.btn-light { display: inline-block; background: var(--cream); color: var(--bark); padding: 0.85rem 2rem; text-decoration: none; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; white-space: nowrap; transition: background 0.2s; }
.btn-light:hover { background: #fff; }


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* Banner photo at the top of the About page */
.about-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;     /* Vertically centres the text block */
  overflow: hidden;
  background: var(--bark); /* Solid dark brown — no background image */
}

.about-hero h1 { 
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); 
  padding: 0 8%;
}

.about-body { background: var(--warm-white); }

/* Story text on left, photo on right */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-text p { font-weight: 300; color: var(--text-mid); margin-bottom: 1.2rem; }
.about-img img { width: 100%; border-radius: 4px; }

/* Three value cards in a row */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.value-card { padding: 2rem; background: var(--cream); border-radius: 4px; border-left: 3px solid var(--cedar); }
.value-card h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--bark); margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.88rem; color: var(--text-mid); font-weight: 300; }


/* ============================================================
   GALLERY GRID
   Used in the "Our Work" section on the homepage.
   ============================================================ */

/*
  Photo grid — 3 columns.
  Add class "tall" to an item to make it span 2 row heights.
  Add class "wide" to an item to make it span 2 column widths.
*/
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.gallery-grid .tall { grid-row: span 2; }    /* Double height */
.gallery-grid .wide { grid-column: span 2; } /* Double width */
.gallery-item { overflow: hidden; border-radius: 3px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; min-height: 220px; }
.gallery-item:hover img { transform: scale(1.03); } /* Zooms slightly on hover */


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;     /* Vertically centres the text block */
  overflow: hidden;
  background: var(--bark); /* Solid dark brown — no background image */
}

.contact-hero h1 { 
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); color: var(--cream); 
  padding: 0 8%;
}

.contact-body { background: var(--warm-white); }

/* Contact info on left (narrower), form on right (wider) */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }

.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--bark); margin-bottom: 1.2rem; }

/* Each contact row: icon circle + text */
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-icon { width: 36px; height: 36px; background: var(--cedar); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 0.85rem; flex-shrink: 0; }
.contact-detail p      { font-size: 0.9rem; color: var(--text-mid); font-weight: 300; }
.contact-detail strong { display: block; color: var(--bark); font-weight: 700; margin-bottom: 0.1rem; }

/* Enquiry form box */
.contact-form { background: var(--cream); padding: 2.5rem; border-radius: 4px; }
.contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--bark); margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } /* Two fields side by side */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid rgba(139,94,60,0.25); border-radius: 2px; background: var(--warm-white); color: var(--text-dark); font-family: 'Lato', sans-serif; font-size: 0.92rem; transition: border-color 0.2s; outline: none; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cedar); } /* Highlights brown on click */
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit { width: 100%; background: var(--bark); color: var(--cream); border: none; padding: 0.9rem; font-family: 'Lato', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: background 0.2s; }
.form-submit:hover { background: var(--cedar); }


/* ============================================================
   FOOTER
   Dark bar at the bottom of every page.
   ============================================================ */

footer { background: var(--text-dark); padding: 3.5rem 8% 2rem; }

/* Three columns: brand description, page links, contact details */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(245,240,232,0.55); margin-top: 0.8rem; font-weight: 300; max-width: 280px; line-height: 1.7; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cedar-light); margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; font-size: 0.88rem; color: rgba(245,240,232,0.65); margin-bottom: 0.5rem; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--cream); }

/* Very bottom strip with copyright */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(245,240,232,0.35); }


/* ============================================================
   RESPONSIVE STYLES
   Adjusts the layout for smaller screens (tablets and phones).
   These rules only activate when the screen is narrow enough.
   ============================================================ */

/* Tablet (≤ 900px wide): switch multi-column layouts to single column */
@media (max-width: 900px) {
  .hero-image { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .tall { grid-row: span 1; }
  .gallery-grid .wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤ 640px wide): everything goes single column, mobile menu appears */
@media (max-width: 640px) {
  section { padding: 3.5rem 5%; }
  .values-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Nav links hide by default; toggled open by the hidden checkbox + burger label */
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--warm-white); padding: 1.5rem 5%; gap: 1.2rem; border-bottom: 1px solid var(--fog); }
  .menu-toggle:checked ~ .nav-links { display: flex; } /* Shown when burger is tapped (CSS-only) */
  .burger { display: flex; }
  .cta-band { flex-direction: column; text-align: center; }
  .products-header { flex-direction: column; }
}
