/* ============================================================
   MERIVALE SPA & WELLNESS — Shared Stylesheet
   Palette: WCAG 2.1 AAA compliant, solid colours only
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --green:      #1f5c42;   /* 8.3:1 AAA */
  --body:       #1a1a1a;   /* 17.7:1 AAA */
  --muted:      #3d3d3d;   /* 10.7:1 AAA */
  --amber:      #7a5200;   /* 8.1:1 AAA */
  --white:      #ffffff;
  --off-white:  #f5f2ee;
  --light-bg:   #ede8e0;
  --border:     #c8c0b4;
  --green-dark: #174733;
  --amber-dark: #5e3f00;
}

/* ── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Calibri, 'Gill Sans', 'Gill Sans MT', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--body);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--amber);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Header / Nav ──────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
}
.site-logo .logo-sub {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}
.site-logo:hover, .site-logo:focus { text-decoration: none; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}
.nav-links a {
  display: block;
  padding: 24px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--body);
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
  text-decoration: none;
}
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-bottom: none !important;
  border-radius: 3px;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--body);
  border-radius: 2px;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  background: var(--green);
  padding: 96px 24px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: Calibri, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green); text-decoration: none; }
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); text-decoration: none; color: var(--white); }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 80px 24px; }
.section-sm { padding: 56px 24px; }
.section-alt { background: var(--off-white); }
.section-green { background: var(--green); }
.section-amber { background: var(--amber); }
.section-dark { background: var(--body); }

.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 760px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { max-width: 560px; margin: 0 auto; }

/* ── Feature strip ─────────────────────────────────────── */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
}
.feature-item {
  text-align: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.feature-item span { font-size: 0.85rem; color: var(--muted); }

/* ── Service cards ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: 3px;
  padding: 28px 24px;
}
.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 16px; }
.service-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.price-big {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.price-detail { font-size: 0.82rem; color: var(--muted); }

/* ── Testimonials ──────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  padding: 24px;
  border-radius: 0 3px 3px 0;
}
.testimonial-stars { color: var(--amber); font-size: 1rem; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--green); }

/* ── Info band ─────────────────────────────────────────── */
.info-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.info-band-item {
  padding: 36px 28px;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}
.info-band-item:last-child { border-right: none; }
.info-band-item .info-icon { font-size: 1.8rem; margin-bottom: 10px; }
.info-band-item strong {
  display: block;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.75;
}
.info-band-item span {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  line-height: 1.4;
}

/* ── CTA Banner ────────────────────────────────────────── */
.cta-banner {
  background: var(--amber);
  padding: 56px 24px;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 28px; }
.cta-phone-big {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 8px;
  text-decoration: none;
}
.cta-phone-big:hover { text-decoration: underline; color: var(--white); }
.cta-sub { font-size: 0.88rem; color: rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ── Two-col layouts ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.img-block {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 24px;
}

/* ── Perks list ────────────────────────────────────────── */
.perks-list { list-style: none; margin: 20px 0 28px; }
.perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}
.perks-list li:last-child { border-bottom: none; }
.perks-list .check {
  color: var(--green);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.6;
}

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero {
  background: var(--green);
  padding: 64px 24px 56px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ── Full services table ───────────────────────────────── */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.price-table caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
  padding: 0 0 16px;
  color: var(--body);
}
.price-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--green);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--off-white); }
.price-table .td-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.price-table .td-name { font-weight: 700; color: var(--body); }
.price-table .td-desc { color: var(--muted); font-size: 0.88rem; }

/* ── Contact form ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 3px;
  font-family: Calibri, sans-serif;
  font-size: 1rem;
  color: var(--body);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,92,66,0.15);
}
textarea { min-height: 120px; resize: vertical; }

.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-details li:last-child { border-bottom: none; }
.contact-details .c-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-details .c-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 2px;
}
.contact-details .c-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--body);
}
.contact-details small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--body);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.footer-brand .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-family: Calibri, sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-col ul a:hover { color: var(--white); }
.footer-col p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ── Utility ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.82); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--green); padding: 12px 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-bottom: none; }
  .nav-links .nav-cta { margin: 12px 24px 0; display: block; text-align: center; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .hero { padding: 64px 24px; }
  .section { padding: 56px 20px; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(2) { border-right: none; }
  .info-band { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
