/* ==========================================================================
   Kirsty Sim Physiotherapy — site stylesheet
   Palette pulled from the practice logo/business card.
   ========================================================================== */

:root {
  --navy: #2c4256;
  --navy-dark: #202f3d;
  --sage: #9fae94;
  --sage-light: #c3cdba;
  --cream: #f7f5f0;
  --cream-dark: #efebe2;
  --gray: #d9d7d2;
  --text: #2c2c2c;
  --text-light: #5c5c5c;
  --radius: 10px;
  --max-width: 1140px;
  --shadow: 0 10px 30px rgba(44, 66, 86, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Jost', Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--text-light); }

a {
  color: var(--navy);
  text-decoration: none;
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: block;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.97);
  border-bottom: 1px solid var(--gray);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg,
.logo .logo-mark { width: 46px; height: 46px; flex-shrink: 0; display: block; }

.logo-text .name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  line-height: 1.1;
}

.logo-text .sub {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--sage);
  text-transform: uppercase;
  font-weight: 600;
}

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

nav.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--navy);
  border-color: var(--sage);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  nav.main-nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--cream);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--gray);
    padding: 20px 0;
  }
  nav.main-nav.open { transform: translateY(0); }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--gray); }
  nav.main-nav a { display: block; padding: 16px 0; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.hero-shape {
  position: absolute;
  top: -10%;
  right: -12%;
  width: 60%;
  max-width: 640px;
  opacity: 0.9;
  z-index: 0;
}
@media (max-width: 860px) {
  .hero-shape { width: 55%; opacity: 0.4; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .hero-photo img { height: 280px; }
}

.hero .tagline {
  color: var(--sage);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.4em;
}

.page-hero {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--gray);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: #fff; }
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
  .page-hero { padding: 48px 0 40px; }
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.service-card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--sage);
}

.service-card .icon svg { width: 100%; height: 100%; }

/* about teaser on home */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .about-teaser { grid-template-columns: 1fr; }
}

.portrait-frame {
  position: relative;
  background: var(--sage-light);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  overflow: hidden;
}
.portrait-frame svg { width: 55%; height: 55%; opacity: 0.5; }
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Photo grid / banner images ---------- */
.photo-card {
  margin: 0;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.photo-card figcaption {
  text-align: center;
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}

.banner-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.banner-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .banner-image img { height: 240px; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  position: relative;
  padding-top: 42px;
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 6px;
  left: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--sage-light);
  line-height: 1;
}
.testimonial-card p.quote {
  font-style: italic;
  color: var(--text);
}
.testimonial-card .attrib {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.placeholder-note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--cream-dark);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--sage-light); }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--navy); }
@media (max-width: 860px) {
  .cta-band { padding: 48px 0; }
}

/* ---------- Contact / map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.info-list .info-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--sage);
  margin-top: 2px;
}
.info-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}
.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}
@media (max-width: 860px) {
  .map-frame iframe { height: 300px; }
}

/* ---------- Services page pricing note ---------- */
.pricing-note {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--sage);
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: var(--sage-light);
  padding: 56px 0 28px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer p, footer a { color: var(--sage-light); font-size: 0.92rem; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
