/* ===== Design Tokens ===== */
:root {
  --primary: #1a3b47;
  --accent: #0f6c7a;
  --bg-light: #ffffff;
  --bg-alt: #f4f7f8;
  --bg-muted: #eef2f5;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: #e2e8f0;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.form-page { background: var(--bg-alt); }
body.menu-open { overflow: hidden; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 10px;
  z-index: 2000;
}

.skip-link:focus { top: 0; }

/* ===== Layout ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 80px 0; }
.section-padding-lg { padding: 100px 0; }
.bg-alt { background: var(--bg-alt); border-bottom: 1px solid #e5e7eb; }
.bg-muted { background: var(--bg-muted); }
.bg-white { background: white; }
.main-offset { padding-top: 80px; }
.main-offset-lg { padding-top: 100px; }
.section-border-top { border-top: 1px solid #e5e7eb; }
.text-center { text-align: center; }

.grid-2, .grid-img-left, .grid-img-right { display: grid; gap: 60px; }
.grid-3, .grid-4 { display: grid; gap: 30px; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-img-left { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .grid-img-right { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .grid-img-right .img-block { order: 2; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Header & Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 2%;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  z-index: 1000;
}

.logo img { height: 72px; width: auto; display: block; }

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: #f7f9fc;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.menu-toggle span { height: 2px; width: 24px; background: var(--primary); transition: var(--transition); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav {
  position: fixed;
  top: 80px;
  right: 0;
  width: 100%;
  height: calc(100vh - 80px);
  padding: 10%;
  background: white;
  transform: translateX(100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

nav.open { transform: translateX(0); }
nav ul { list-style: none; padding: 0; margin: 0; }
nav li { margin-bottom: 8px; }
nav a { text-decoration: none; font-size: 32px; color: var(--primary); font-weight: 700; }
nav a.active { color: var(--accent); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  nav { position: static; transform: none; height: auto; width: auto; padding: 0; background: none; margin-left: auto; }
  nav ul { display: flex; gap: 40px; }
  nav a { font-size: 18px; font-weight: 600; color: var(--text-main); transition: var(--transition); }
  nav a:hover { color: var(--accent); }
  nav a.active { position: relative; color: var(--accent); }
  nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
  }
}

/* ===== Hero ===== */
main { padding-top: 80px; }
.main-offset, .main-offset-lg { padding-top: 80px; }
.main-offset-lg { padding-top: 100px; }

.hero { display: grid; grid-template-columns: 1fr; background: white; }
.hero-img { position: relative; width: 100%; }
.hero-img img { width: 100%; height: auto; display: block; }

.hero-content {
  padding: 60px 5%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tagline {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  color: var(--primary);
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.hero-content p { font-size: 20px; color: var(--text-muted); max-width: 500px; margin-bottom: 40px; }

@media (min-width: 1280px) {
  .hero {
    grid-template-columns: minmax(400px, 35%) 1fr;
    align-items: center;
  }
  .hero-content { order: 1; padding: 60px 2% 60px 10%; }
  .hero-img { order: 2; }
}

@media (min-width: 1440px) {
  .hero { grid-template-columns: minmax(400px, 30%) 1fr; }
}

/* ===== Buttons ===== */
.cta-group { display: flex; flex-direction: row; gap: 15px; flex-wrap: wrap; align-items: center; }
.btn-wrapper { display: inline-block; width: auto; text-align: left; }

.btn {
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 16px rgba(15, 108, 122, 0.15);
  display: inline-block;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 108, 122, 0.25);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: none;
}

.btn-primary-eye { background-color: #005EB8; box-shadow: 0 8px 16px rgba(0, 94, 184, 0.15); }
.btn-spaced { margin-top: 15px; }

body.form-page .btn {
  padding: 15px 28px;
  border: none;
  width: 100%;
  font-size: 18px;
  box-shadow: none;
}

/* ===== Content Cards & Sections ===== */
.info-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.info-card h2 { color: var(--primary); margin: 0 0 15px 0; font-size: 24px; }
.info-card p { font-size: 16px; color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }

.info-card-highlight {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(0,0,0,0.03);
}

.info-card-highlight ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  line-height: 2;
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(32px, 4vw, 40px); color: var(--primary); margin: 0; }
.section-header p { color: var(--text-muted); font-size: 18px; max-width: 700px; margin: 15px auto 0; }

.page-header, .page-intro {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-header { margin-bottom: 60px; }
.page-header h1, .page-title { color: var(--primary); font-size: clamp(32px, 4vw, 44px); margin: 0 0 15px 0; line-height: 1.1; }
.page-header p, .page-copy { font-size: 18px; color: var(--text-muted); margin: 0; }
.page-eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }

.intro-container { max-width: 800px; text-align: center; }
.intro-container .page-title { font-size: 40px; }
.lead-copy { font-size: 18px; margin-bottom: 0; }
.cta-title { color: var(--primary); font-size: 32px; margin: 0 0 15px 0; }
.cta-copy { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px auto; }

.card {
  padding: 30px;
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.card h3 { color: var(--primary); margin: 0 0 15px 0; font-size: 24px; }
.card p { color: var(--text-muted); margin: 0; }

.img-block { text-align: center; width: 100%; }
.img-block img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  display: block;
}

.promo-section { padding: 50px 0; }
.feature-card { max-width: 1100px; margin: 0 auto; padding: 35px; border: 1px solid var(--border-color); box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.feature-row { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.feature-content { flex: 1; min-width: 320px; }
.feature-action { flex-shrink: 0; }
.tagline-primary-eye { color: #005EB8; }
.feature-title { margin: 0 0 10px 0; font-size: 26px; color: var(--primary); }
.feature-copy { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.feature-copy-spaced { margin-bottom: 15px; }
.content-title { color: var(--primary); font-size: 36px; margin: 0 0 20px 0; }
.content-copy { font-size: 18px; margin-bottom: 25px; }
.content-copy-final { font-size: 18px; }
.highlight-compact { margin-bottom: 0; padding: 15px 20px; }
.offer-list { list-style: none; padding: 0; margin: 0; }
.offer-item { color: var(--primary); font-weight: 600; }

/* ===== About ===== */
.profile-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
}

.profile-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 108, 122, 0.06);
  border-color: rgba(15, 108, 122, 0.2);
}

.profile-img { width: 100%; aspect-ratio: 1 / 1; margin-bottom: 20px; }
.profile-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.profile-card h3 { font-size: 24px; color: var(--primary); margin: 0 0 5px 0; }
.practitioner-title { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin-bottom: 5px; }
.qualifications { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 15px; }
.bio-text { font-size: 16px; color: var(--text-muted); margin-bottom: 0; flex-grow: 1; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(15, 108, 122, 0.08);
  border-color: rgba(15, 108, 122, 0.3);
}

.service-img { width: 100%; height: 240px; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.service-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.service-card h2 { color: var(--primary); font-size: 22px; margin: 0 0 15px 0; }
.service-card p { color: var(--text-muted); font-size: 15px; margin: 0; }

.partners-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }

@media (min-width: 768px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
}

.partner-heading { color: var(--primary); margin: 0 0 15px 0; font-size: 24px; }
.partner-copy { color: var(--text-muted); margin: 0; font-size: 16px; }
.section-action { text-align: center; padding-top: 60px; }

.links-section h3 { color: var(--primary); font-size: 24px; margin-bottom: 25px; text-align: center; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.resource-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 108, 122, 0.25);
}

.resource-link span { transition: var(--transition); }
.resource-link:hover span { transform: translateX(3px); }

/* ===== Forms & Contact ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .split-layout { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.left-column { display: flex; flex-direction: column; gap: 30px; }
.centered-layout { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }

.details-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.details-card h2 { margin: 0 0 20px 0; color: var(--primary); font-size: 22px; }
.details-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.details-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--text-muted); }
.details-list a { color: var(--accent); text-decoration: none; font-weight: 600; transition: var(--transition); }
.details-list a:hover { color: var(--primary); text-decoration: underline; }

.app-form label, .contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 14px;
}

.app-form input[type="text"],
.app-form input[type="email"],
.app-form input[type="tel"],
.app-form input[type="date"],
.app-form input[type="time"],
.app-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 16px;
  background-color: #f8fafc;
  transition: var(--transition);
}

.app-form input:focus,
.app-form textarea:focus,
.contact-form input:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(15, 108, 122, 0.1);
}

.app-form textarea { resize: vertical; min-height: 120px; }

.app-form input.error-highlight,
.app-form textarea.error-highlight,
.contact-form input.error-highlight,
.contact-form select.error-highlight {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.form-grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.radio-panel {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
}

.radio-group { display: flex; flex-direction: column; gap: 15px; }
.app-form .radio-group { flex-direction: row; gap: 20px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; color: var(--text-main); font-weight: 500; margin: 0; }
.radio-group input[type="radio"] { cursor: pointer; width: 18px; height: 18px; accent-color: var(--accent); }

#booking-fields, #message-fields, #delivery-fields {
  display: none;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

#booking-fields.is-visible, #message-fields.is-visible, #delivery-fields.is-visible { display: block; }

.form-feedback { padding: 20px; border-radius: 8px; margin-top: 25px; font-weight: 500; text-align: center; }
.form-feedback p { margin: 0 0 5px 0; }
.form-feedback.success { background-color: #def7ec; color: #03543f; border: 1px solid #31c48d; }
.form-feedback.error { background-color: #fde8e8; color: #9b1c1c; border: 1px solid #f8b4b4; }
.form-feedback.is-hidden { display: none; }
.feedback-title { font-size: 1.1em; }
.feedback-reference { color: var(--primary); }
.feedback-reference-lg { font-size: 1.2em; }

.honeypot { position: absolute; left: -5000px; }
.label-spaced { margin-top: 10px; }
.radio-panel-title { margin-bottom: 15px; }
.form-section-title { margin: 0 0 15px 0; font-size: 18px; color: var(--primary); }
.form-help { font-size: 13px; color: var(--text-muted); margin: 0 0 15px 0; }
.state-postcode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.recaptcha-note { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 15px; margin-bottom: 0; }

/* ===== Maps ===== */
.map-section { height: 450px; width: 100%; filter: grayscale(0.2) contrast(1.1); }
.map-frame { border: 0; }

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (min-width: 1024px) {
  .map-container { height: 100%; min-height: 600px; }
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
footer { background: #1e293b; color: white; padding: 80px 0 30px; }
body.form-page footer { margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h2, .footer-col h3, .footer-col h4 { margin: 0 0 20px 0; font-size: 18px; color: white; }
.footer-col p { font-size: 16px; color: #cbd5e1; margin: 0 0 8px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 16px; display: inline-block; padding: 8px 0; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-logo { height: 72px; width: auto; margin-bottom: 20px; align-self: flex-start; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-accessibility { margin: 0 0 10px 0; font-size: 14px; color: #94a3b8; }
.footer-copyright { margin: 0; font-size: 16px; color: #cbd5e1; }
