/* Acacia Physiotherapy Center — concept by Beans Digital
   Palette taken from the clinic's own site (aphysio.ae):
   leaf #6C8E5B, sage #93A965, plus supporting neutrals. */

:root {
  --leaf: #6C8E5B;
  --leaf-deep: #4E6B40;
  --sage: #93A965;
  --ink: #2E332C;
  --paper: #FBFAF6;
  --linen: #EEEDE4;
  --line: #D8D6C8;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Karla", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--leaf-deep); }

img, iframe { max-width: 100%; }

/* Concept banner */
.concept-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 1rem;
}
.concept-banner a { color: var(--sage); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { flex-shrink: 0; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--leaf-deep);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--linen); }
.site-nav a[aria-current="page"] {
  background: var(--leaf);
  color: var(--white);
}
.nav-book {
  border: 1.5px solid var(--leaf-deep);
  color: var(--leaf-deep);
}

/* Layout */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}
section { padding: 3rem 0; }
.section-linen { background: var(--linen); }

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 48ch;
}
.hero-leaf {
  text-align: center;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--leaf-deep); color: var(--white); }
.btn-primary:hover { background: var(--leaf); }
.btn-ghost { border-color: var(--leaf-deep); color: var(--leaf-deep); }
.btn-ghost:hover { background: var(--linen); }

.hero-note {
  font-size: 0.9rem;
  color: var(--leaf-deep);
  margin-top: 1rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
}
.card h3 { color: var(--leaf-deep); }
.card p { font-size: 0.97rem; margin-bottom: 0; }
.card .leaf-ico { margin-bottom: 0.75rem; }

/* Visit flow */
.flow {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.flow li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem;
  position: relative;
}
.flow li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.flow h3 { margin-bottom: 0.3em; }
.flow p { font-size: 0.95rem; margin: 0; }

/* Photo placeholders */
.photo-slot {
  background: repeating-linear-gradient(135deg, var(--linen), var(--linen) 14px, #E6E4D6 14px, #E6E4D6 28px);
  border: 1.5px dashed var(--sage);
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--leaf-deep);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

/* Quotes */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
blockquote {
  margin: 0;
  background: var(--white);
  border-left: 4px solid var(--sage);
  border-radius: 0 14px 14px 0;
  padding: 1.2rem 1.4rem;
  font-size: 0.97rem;
}
blockquote footer {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--leaf-deep);
}

/* Tables */
.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.hours-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed td { color: #8a4b3a; font-weight: 700; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li { margin-bottom: 0.9rem; }
.contact-list strong { display: block; color: var(--leaf-deep); font-size: 0.85rem; letter-spacing: 0.03em; }
.map-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* FAQ */
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.75rem;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--leaf-deep);
}
details p { margin: 0.75rem 0 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--linen);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer a { color: var(--sage); }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.footer-credit {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #4a4f46;
  font-size: 0.85rem;
  color: #b9bcb2;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1EBE5D;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(46, 51, 44, 0.3);
}
.wa-float:hover { background: #169a4a; }

/* Page intro */
.page-intro { padding: 3rem 0 1rem; }
.page-intro p { font-size: 1.1rem; }

/* Small screens */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-leaf { order: -1; }
  .hero-leaf svg { width: 120px; height: auto; }

  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  /* With JS off the toggle is hidden and the nav stays visible */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { display: block; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
