/* ==========================================================
   Richard Lane Mobile Massage — site.css
   Used by redesigned pages only (loaded via head-new.php).
   Brand colours are set once below; change them here.
   ========================================================== */

:root {
  --purple:        #6633CC;  /* brand purple (matches print) */
  --purple-dark:   #47248E;  /* hover / headings accent */
  --purple-deep:   #2B1660;  /* footer, strong text */
  --purple-soft:   #F4EFFB;  /* tinted section background */
  --purple-line:   #E2D7F5;  /* borders on tinted areas */
  --ink:           #2A2533;  /* body text */
  --muted:         #5F586B;  /* secondary text */
  --paper:         #FFFFFF;
  --warm:          #FBFAF7;  /* page background */
  --radius:        14px;
  --shadow:        0 1px 2px rgba(43,22,96,.06), 0 8px 24px rgba(43,22,96,.08);
  --font-head:     "Lora", Georgia, "Times New Roman", serif;
  --font-body:     "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap:          1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--warm);
}
img { max-width: 100%; height: auto; border: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--purple-deep); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
a  { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-ghost:hover { background: var(--purple); color: #fff; }
.btn-light { background: #fff; color: var(--purple-deep); }
.btn-light:hover { background: var(--purple-soft); color: var(--purple-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.contact-hint { margin: -12px 0 22px; color: var(--muted); font-size: .97rem; }
.avail-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.avail-number { text-align: center; font-weight: 700; color: var(--purple-deep); margin: 10px 0 0; letter-spacing: .02em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-contact-label { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #B9ADD6; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .6em;
}

/* ---------- Header ---------- */
.site-banner { background: var(--paper); text-align: center; line-height: 0; }
.site-banner img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }
.site-header { background: var(--paper); border-top: 1px solid #ECE7F3; border-bottom: 1px solid #ECE7F3; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
/* Small name in the menu bar: only on phones/tablets, where the banner scrolls away */
.brand { display: none; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--purple-deep); }
.brand-tag { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover, .site-nav a.is-current { color: var(--purple); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--purple-line);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--purple-deep); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

@media (min-width: 981px) {
  .header-inner { justify-content: center; }
  .site-nav { display: flex; align-items: center; gap: 28px; }
  .site-nav ul { display: flex; gap: 20px; }
  .site-nav a.is-current { box-shadow: inset 0 -2px 0 var(--purple); }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .brand { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid #ECE7F3; box-shadow: var(--shadow); padding: 8px 20px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav li a:not(.btn) { display: block; padding: 12px 0; border-bottom: 1px solid #F0ECF6; }
  .header-call { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(102,51,204,.16), transparent 60%),
    linear-gradient(180deg, var(--purple-soft) 0%, var(--warm) 100%);
  padding: 64px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-list li { position: relative; padding-left: 26px; font-weight: 600; color: var(--purple-deep); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Availability card ---------- */
.avail-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-top: 5px solid var(--purple); }
.avail-title { font-size: 1.35rem; margin-bottom: 16px; }
.avail-list { list-style: none; margin: 0 0 16px; padding: 0; }
.avail-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 10px; background: var(--purple-soft); margin-bottom: 8px;
}
.avail-day strong { color: var(--purple-deep); }
.avail-day span { color: var(--muted); font-size: .92rem; margin-left: 4px; }
.avail-time { font-weight: 700; color: var(--purple); text-align: right; }
.avail-item.is-unavailable { background: #F3F2F5; }
.avail-item.is-unavailable .avail-time { color: var(--muted); font-weight: 600; }
.avail-empty { background: var(--purple-soft); padding: 14px; border-radius: 10px; }
.avail-note { font-size: .92rem; color: var(--muted); }
.avail-more { display: block; text-align: center; margin-top: 12px; font-weight: 700; text-decoration: none; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--purple-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p:last-child { color: var(--muted); }

.feature-grid, .service-grid, .quote-grid, .price-grid { display: grid; gap: 20px; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--purple-soft); color: var(--purple); margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* About + guarantee */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--paper);
}
.guarantee {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 28px;
  background: var(--paper); border: 2px solid var(--purple); border-radius: var(--radius); padding: 20px 22px;
}
.guarantee h3 { margin-bottom: .25em; }
.guarantee p { color: var(--muted); margin: 0; }
.guarantee-badge { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--purple); color: #fff; }
.guarantee-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid #ECE7F3; border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.service-card p { color: var(--muted); flex: 1; }
.service-card-alt { background: var(--purple-soft); border-color: var(--purple-line); }
.card-link { font-weight: 700; color: var(--purple); }

/* Prices */
.price-grid { grid-template-columns: repeat(3, 1fr); max-width: 860px; margin: 0 auto; }
.price-card { background: var(--paper); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); }
.price-card p { margin: 0; }
.price-length { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.price-amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: var(--purple-deep); line-height: 1.2; margin: 6px 0 !important; }
.price-sub { font-size: .9rem; color: var(--muted); }
.price-card-feature { background: var(--purple); }
.price-card-feature .price-length, .price-card-feature .price-amount { color: #fff; }
.price-notes { max-width: 640px; margin: 32px auto 20px; padding: 0; list-style: none; }
.price-notes li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
.price-notes li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }

/* Testimonials */
.quote-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 32px; }
.quote { margin: 0; background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--purple-line); }
.quote blockquote { margin: 0 0 16px; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.5; color: var(--purple-deep); }
.quote figcaption { font-weight: 700; color: var(--purple); }

/* Areas */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.area { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--purple-line); }
.area h3 { font-size: 1.1rem; color: var(--purple); }
.area p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Long-form copy */
.prose { max-width: 760px; }
.prose p { color: var(--ink); }

/* Final CTA */
.cta-band { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; opacity: .9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-deep); color: #DCD3EE; padding: 56px 0 24px; font-size: .97rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.footer-name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; }
.footer-phone { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.footer-nav li { padding: 4px 0; }
.footer-nav a { color: #DCD3EE; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; }
.footer-base p { margin: 0; font-size: .88rem; color: #B9ADD6; }

/* Phone call bar (phones only) */
.call-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 52px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-grid, .area-grid, .price-grid, .footer-inner { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .call-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(255,255,255,.96); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(43,22,96,.12);
  }
  .call-bar { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .call-bar .btn { width: 100%; background-color: var(--paper); }
  .call-bar .btn-primary { background: var(--purple); }
  .cta-actions { justify-content: center; width: 100%; }
  .cta-actions .btn { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}
