/* =========================
   GLOBAL RESET & BASE
========================= */

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden; /* prevents side scroll */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.5;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #003366;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 100000;
  text-decoration: none;
}
.skip-link:focus {
  left: 10px;
}

/* =========================
   HEADER LAYOUT
========================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 15px 30px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;

  /* STICKY HEADER */
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* Logo */
.logo img {
  max-height: 90px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
}

.main-nav ul li a:hover {
  color: #00509e;
}

/* Right-side actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* CTA Button (Works for desktop + mobile) */
.cta-button {
  background-color: #003366;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cta-button:hover {
  background-color: #00509e;
}

/* Language selector */
.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pointer-icon { font-size: 16px; }

.lang-select select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  background: #fff;
}

/* =========================
   MOBILE HAMBURGER MENU
========================= */

/* Hamburger button */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #003366;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 14px 16px;
}

.mobile-menu.is-open { display: block; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.mobile-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 700;
  padding: 10px 10px;
  border-radius: 10px;
}

.mobile-nav a:hover {
  background: #f6f8fb;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-cta {
  width: 100%;
  text-align: center;
}

/* Prevent background scroll when menu open (optional) */
body.menu-open {
  overflow: hidden;
}

/* Responsive header behavior */
@media (max-width: 900px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .logo img {
    max-height: 70px;
  }
}

/* =========================
   MAIN + SECTION WRAPPERS
========================= */

main {
  display: block;
}

.section {
  padding: 70px 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 30px;
  color: #0b1b2b;
}

.section-subtitle {
  margin: 0 0 26px;
  color: #4b5b6b;
  max-width: 70ch;
}

/* =========================
   HERO SECTION (Upgrade)
========================= */

.hero {
  min-height: 72vh;
  background-image: url('/images/backgrounds/hero-clean.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #ffffff;
  padding: 40px 12px;
  position: relative;
}

/* Dark overlay so text reads clean */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(7, 26, 48, 0.70),
    rgba(7, 26, 48, 0.40)
  );
}

.hero-text {
  position: relative; /* above overlay */
  max-width: 900px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}

.hero-text h1 {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.96;
}

/* Mobile hero sizing */
@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
    padding: 28px 12px;
  }

  .hero-text {
    width: calc(100% - 24px);
    margin: 0 12px;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.2;
  }
}

/* =========================
   HOMEPAGE “BUSY” SECTIONS
   (services cards using your images)
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  border: 1px solid rgba(10,30,50,.10);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.service-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.service-body {
  padding: 14px 14px 16px;
}

.service-body h3 {
  margin: 0 0 8px;
  color: #0b1b2b;
  font-size: 18px;
}

.service-body p {
  margin: 0;
  color: #4b5b6b;
  font-size: 14px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-img {
    height: 200px;
  }
}

/* Image mapping (your exact filenames) */
.service-img.physiotherapy { background-image: url('/images/services/physiotherapy.webp'); }
.service-img.chiropractic  { background-image: url('/images/services/chiropractic.webp'); }
.service-img.massage       { background-image: url('/images/services/massage.webp'); }
.service-img.acupuncture   { background-image: url('/images/services/acupuncture.webp'); }
.service-img.kinesiology   { background-image: url('/images/services/kinesiology.webp'); }

/* Simple “chips” section for conditions treated (nice + busy) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10,30,50,.10);
  color: #4b5b6b;
  font-weight: 600;
  font-size: 14px;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 20px;
  text-align: center;
  background-color: #f8f8f8;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  color: #555;
}

/* final safety */
.hero-text, .site-header, .mobile-menu {
  overflow-wrap: anywhere;
}/* =========================
   HOMEPAGE WOW STYLES (for your index.php)
   Paste at bottom of styles.css
========================= */

:root{
  --ink:#0b1b2b;
  --muted:#4b5b6b;
  --soft:#f5f8fb;
  --brand:#0b3a66;
  --brand2:#1aa6a6;
  --radius:18px;
  --shadow:0 12px 30px rgba(0,0,0,.08);
}

/* generic helpers */
.lead{ color: var(--muted); font-size: 16px; max-width: 70ch; }
.section-head{ margin-bottom: 22px; }
.section-head p{ color: var(--muted); max-width: 70ch; }

.section-soft{ background: var(--soft); }

/* Watermark background section (subtle) */
.section-watermark{
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    url("/images/backgrounds/watermark.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 2-column layout */
.grid-2{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}
@media(max-width: 900px){
  .grid-2{ grid-template-columns: 1fr; }
}

/* Card */
.card{
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(10,30,50,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card h3{ margin-top: 0; }

/* ticks list */
.ticks{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.ticks li{ margin: 10px 0; }

/* =========================
   HERO (matches your HTML)
========================= */

.hero{
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding: 70px 0;
  overflow: hidden;
  background:
    url("/images/backgrounds/hero-clean.webp") center/cover no-repeat;
}

/* your hero overlay div */
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7,26,48,.78),
    rgba(7,26,48,.38)
  );
}

/* content */
.hero-inner{
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  color: #fff;
}

.hero-eyebrow{
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-weight: 700;
  font-size: 14px;
}

.hero-title{
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  font-weight: 900;
}

.hero-subtitle{
  margin: 0 0 20px;
  max-width: 70ch;
  font-size: 16px;
  opacity: .96;
}

/* trust pills */
.hero-trust{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  opacity: .95;
}
.hero-trust span{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 700;
  font-size: 13px;
}

/* =========================
   BUTTONS (matches your HTML)
========================= */

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary{
  background: var(--brand2);
  color: #052a2a;
}

.btn-ghost{
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
}

.btn-ghost-dark{
  background: rgba(11,58,102,.10);
  color: var(--brand);
  border: 1px solid rgba(11,58,102,.25);
}

/* =========================
   SERVICES GRID (matches your HTML)
========================= */

.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card{
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(10,30,50,.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}

.service-img{
  height: 180px;
  background-size: cover;
  background-position: center;
}

.service-body{
  padding: 14px 14px 16px;
}

.service-body h3{
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 18px;
}

.service-body p{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-link{
  color: var(--brand);
  font-weight: 900;
}

@media(max-width: 900px){
  .service-grid{ grid-template-columns: 1fr; }
  .service-img{ height: 210px; }
}

/* =========================
   CTA BOX (final section)
========================= */

.cta-box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;

  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(10,30,50,.10);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.80);
}

.cta-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile tightening */
@media(max-width: 600px){
  .hero{ padding: 48px 0; }
  .hero-eyebrow{ font-size: 13px; }
  .hero-subtitle{ font-size: 15px; }
}
/* =========================
   FOOTER UPGRADE
========================= */

.site-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e5e5e5;
  padding: 28px 18px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-name {
  margin: 0;
  font-weight: 600;
  color: #222;
}

.footer-tagline {
  margin: 6px 0 0;
  font-size: 14px;
  color: #666;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social img {
  width: 22px;
  height: 22px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile footer */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


