/* Vigor Physiotherapy — shared stylesheet */

:root {
  --color-primary: #0f766e;      /* teal */
  --color-primary-dark: #0b5a54;
  --color-primary-light: #ccfbf1;
  --color-accent: #f59e0b;       /* warm amber for CTAs */
  --color-text: #1f2937;
  --color-text-muted: #5b6472;
  --color-bg: #ffffff;
  --color-bg-alt: #f4faf9;
  --color-border: #e2e8e6;
  --radius: 10px;
  --max-width: 1100px;
  --shadow: 0 2px 10px rgba(15, 118, 110, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

.brand small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.main-nav .has-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 230px;
  display: none;
  flex-direction: column;
}

.main-nav .has-submenu.open .submenu {
  display: flex;
}

@media (min-width: 821px) and (hover: hover) and (pointer: fine) {
  .main-nav .has-submenu:hover .submenu {
    display: flex;
  }
}

.submenu a { padding: 8px 10px; font-size: 0.9rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg-alt));
  padding: 56px 0;
}

.hero .container {
  display: grid;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Homepage photo hero */
.hero-photo {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("../images/hero/home.jpg");
  background-size: cover;
  background-position: 70% center;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.82) 0%, rgba(15, 118, 110, 0.76) 44%, rgba(15, 118, 110, 0.34) 66%, rgba(15, 118, 110, 0.24) 100%);
}

.hero-photo .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-photo .hero-text {
  max-width: 500px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hero-photo .eyebrow {
  color: #eafffb;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-photo h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-photo p.lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 55ch;
  font-size: 1.1rem;
}

.hero-photo .hero-actions {
  justify-content: flex-start;
  margin-top: 6px;
}

.hero-photo .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}
.hero-photo .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
.btn-secondary:hover { background: var(--color-primary-light); text-decoration: none; }

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--color-bg-alt); }

h2.section-title {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 8px;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 70ch;
  margin-bottom: 28px;
}

/* Card grid (services, team, etc.) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
  font-size: 1.1rem;
}

.card p { color: var(--color-text-muted); margin-bottom: 0; }

.card .card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Team profiles */
.profile {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.profile:last-child { border-bottom: none; }

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  border: 2px dashed var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.profile-photo.has-photo {
  padding: 0;
  border: 2px solid var(--color-border);
}

.profile-photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h3 { margin: 0 0 4px; color: var(--color-primary-dark); }
.profile .role { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }

/* Info list (contact/fees) */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { font-weight: 600; min-width: 90px; color: var(--color-primary-dark); }

/* Tables (fees) */
table.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.fee-table th, table.fee-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

table.fee-table th {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

table.fee-table tr:last-child td { border-bottom: none; }

.fee-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* Form */
form.enquiry-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.enquiry-success {
  max-width: 560px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.enquiry-success h3 { margin: 0 0 6px; }
.enquiry-success p { margin: 0; }

.form-row { display: grid; gap: 6px; }

label { font-weight: 600; font-size: 0.9rem; }

input, textarea, select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

textarea { min-height: 140px; resize: vertical; }

/* FAQ (details/summary) */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 4px 18px;
  background: var(--color-bg);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  color: var(--color-primary-dark);
}

.faq-item p { color: var(--color-text-muted); }

/* Placeholder image blocks */
/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: #eafffb;
  padding: 36px 0 24px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.site-footer a { color: #eafffb; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.footer-grid h4 { margin: 0 0 10px; font-size: 0.95rem; }

.footer-social {
  text-align: center;
  margin-bottom: 16px;
}

.footer-social a {
  display: inline-flex;
  color: #eafffb;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  color: #b9e6df;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  .main-nav > ul { flex-direction: column; }
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 14px;
  }
  .main-nav .has-submenu.open .submenu { display: flex; }
  .profile { grid-template-columns: 1fr; text-align: left; }
  .profile-photo { width: 120px; height: 120px; }
  section > .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .hero-photo {
    background-position: 62% center;
  }
  .hero-photo::before {
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.55), rgba(15, 118, 110, 0.78));
  }
  .hero-photo .hero-text {
    max-width: 100%;
  }
}
