/*
Theme Name: Aculosophy v5
Theme URI: https://www.aculosophy.com
Author: Vladimir
Description: Custom WordPress theme for Aculosophy Acupuncture Clinic Mississauga. Includes new-patient funnel (survey, verification, contact form, thank you), About Dali page, full Privacy Policy page, sticky Google review widget, and site-wide footer disclaimer.
Version: 5.0
License: GNU General Public License v2 or later
Text Domain: aculosophy-v5
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --cyan: #1fc4e0;
  --cyan-dark: #15a9c4;
  --green: #1fb96e;
  --green-dark: #169a5b;
  --ink: #2c2c2c;
  --white: #ffffff;
  --overlay: rgba(40, 40, 40, 0.72);
  --overlay-strong: rgba(28, 28, 28, 0.82);
  --field-border: #1fb96e;
  --stage-width: 1040px;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--white);
  line-height: 1.55;
  /* Site-wide background photo of the clinic room, set via Customizer */
  background-color: #d9d9d4;
  background-image: var(--site-bg, none);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Subtle fallback texture when no background image is set */
body.no-bg {
  background-image: linear-gradient(135deg, #eef2f1 0%, #dfe7e6 50%, #cdd9d8 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 30px;
  gap: 20px;
}
.header-left { display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0 48%, #1a1a1a 48% 100%);
  position: relative;
  box-shadow: inset 0 0 0 2px #1a1a1a;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 27%, #1a1a1a 0 9%, transparent 9%),
    radial-gradient(circle at 50% 73%, #fff 0 9%, transparent 9%),
    conic-gradient(from 90deg at 50% 50%, #1a1a1a 0 50%, #fff 50% 100%);
  -webkit-mask: radial-gradient(circle, #000 99%, transparent 100%);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #222;
  letter-spacing: .2px;
}
/* Uploaded WordPress custom logo */
.brand-custom { display: flex; align-items: center; line-height: 0; }
.brand-custom .custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { height: 46px; width: auto; display: block; }
@media (max-width: 720px) { .custom-logo { height: 38px; } }
.header-divider { width: 1px; height: 26px; background: #cfcfcf; }
.about-dali-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: #333;
  transition: color .2s;
}
.about-dali-link:hover { color: var(--cyan-dark); }

.social-row { display: flex; align-items: center; gap: 14px; }
.social-row a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; transition: transform .18s;
}
.social-row a:hover { transform: translateY(-3px) scale(1.05); }
.social-row svg { width: 38px; height: 38px; display: block; }

/* Mobile header */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
@media (max-width: 720px) {
  .header-inner { padding: 12px 16px; flex-wrap: wrap; }
  .brand-name { font-size: 20px; }
  .about-dali-link { font-size: 16px; }
  .social-row { gap: 10px; }
  .social-row a { width: 34px; height: 34px; }
  .social-row svg { width: 32px; height: 32px; }
}

/* =========================================================
   STAGE (dark overlay column over the room photo)
   ========================================================= */
.stage-wrap { width: 100%; padding: 0; }
.stage {
  max-width: var(--stage-width);
  margin: 0 auto;
  background: var(--overlay);
  backdrop-filter: blur(1px);
  padding: 60px 56px;
}
.section-block { padding: 0; }

@media (max-width: 600px) {
  .stage { padding: 40px 22px; }
}

/* =========================================================
   HERO (page 1)
   ========================================================= */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero .stage {
  padding-top: 46px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-photo {
  width: 168px; height: 168px; border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
  transition: transform .25s, box-shadow .25s;
}
.hero-photo-link:hover .hero-photo { transform: scale(1.04); box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  margin: 20px 0 26px;
  letter-spacing: .4px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero h1 .accent { color: var(--cyan); display: block; }
.hero-sub {
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 27px);
  margin: 22px auto 38px;
  max-width: 660px;
  line-height: 1.35;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border: 0; cursor: pointer;
  border-radius: 40px;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-green {
  background: var(--green); color: #fff;
  font-size: 19px; letter-spacing: 1px; text-transform: uppercase;
  padding: 17px 70px;
  box-shadow: 0 8px 22px rgba(31,185,110,.45);
}
.btn-green:hover { background: var(--green-dark); box-shadow: 0 10px 28px rgba(31,185,110,.55); }
.btn-cyan {
  background: var(--cyan); color: #fff;
  font-size: 16px; padding: 13px 30px;
  box-shadow: 0 6px 18px rgba(31,196,224,.4);
}
.btn-cyan:hover { background: var(--cyan-dark); }
.btn-block { width: 100%; }

/* =========================================================
   SERVICES (page 2)
   ========================================================= */
.services { text-align: center; }
.services h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px;
}
.services .lead {
  font-size: clamp(17px, 2vw, 24px); font-weight: 400;
  max-width: 640px; margin: 0 auto 34px; line-height: 1.4;
}
.services h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 26px;
}
.check-list {
  list-style: none; display: inline-flex; flex-direction: column; gap: 12px;
  text-align: left; margin-bottom: 40px;
}
.check-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(18px, 2.2vw, 25px); font-weight: 400;
}
.check-list li::before {
  content: ""; flex: 0 0 26px; width: 26px; height: 26px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334c759' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 6'/%3E%3C/svg%3E");
}

/* =========================================================
   LOCATION + TESTIMONIALS (pages 3 & 4)
   ========================================================= */
.locate { text-align: center; }
.locate-box {
  border-top: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  max-width: 640px; margin: 0 auto 34px; padding: 22px 10px;
}
.locate-box h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px;
}
.locate-box address {
  font-style: normal; font-size: clamp(18px, 2.3vw, 26px); font-weight: 400; line-height: 1.35;
}
.locate h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.8vw, 30px); margin-bottom: 30px;
}

.reviews { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 0 auto; }
.review-card {
  background: #fff; color: #202124; border-radius: 8px;
  padding: 18px 20px; text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.review-head { display: flex; align-items: flex-start; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 18px; font-family: var(--font-display);
}
.review-meta { flex: 1; }
.review-name { font-weight: 600; font-size: 16px; color: #1a73e8; }
.review-sub { font-size: 13px; color: #5f6368; }
.review-stars { color: #fbbc04; letter-spacing: 2px; font-size: 15px; margin: 6px 0 4px; display: inline-block; }
.review-date { font-size: 13px; color: #5f6368; margin-left: 6px; }
.review-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: #1a73e8;
  border: 1px solid #1a73e8; border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: middle;
}
.review-body { font-size: 15px; color: #3c4043; line-height: 1.5; margin-top: 8px; }
.review-google { width: 18px; height: 18px; flex: 0 0 18px; margin-left: auto; }

.testimonial-disclaimer {
  font-style: italic; font-size: 15px; max-width: 640px; margin: 28px auto 30px; line-height: 1.45; opacity: .95;
}

/* =========================================================
   ABOUT DALI (pages 9 & 10)
   ========================================================= */
.about { }
.about .stage { padding-top: 50px; }
.about-head { text-align: center; }
.about-photo {
  width: 200px; height: 200px; object-fit: cover; border-radius: 14px;
  margin: 0 auto 18px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.about-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.25; margin-bottom: 30px;
}
.about-bio p { font-size: clamp(15px, 1.8vw, 18px); font-weight: 400; line-height: 1.6; margin-bottom: 18px; }
.about-family {
  max-width: 520px; margin: 36px auto 0; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.about-family-cap { text-align: center; font-size: 14px; opacity: .8; margin-top: 12px; }
.back-home { display: inline-block; margin-top: 30px; font-weight: 600; color: var(--cyan); }
.back-home:hover { text-decoration: underline; }

/* =========================================================
   PRIVACY POLICY (pages 12-14)
   ========================================================= */
.policy .stage { padding: 54px 56px; }
.policy h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3; margin-bottom: 4px;
}
.policy .updated { font-size: 15px; opacity: .85; margin-bottom: 30px; }
.policy h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 26px 0 8px;
}
.policy p, .policy li { font-size: 15px; font-weight: 400; line-height: 1.6; opacity: .96; }
.policy p { margin-bottom: 12px; }
.policy ol, .policy ul { margin: 0 0 12px 22px; }
.policy li { margin-bottom: 4px; }
.policy a { color: var(--cyan); word-break: break-word; }
.policy a:hover { text-decoration: underline; }

/* =========================================================
   FOOTER (page 11 - on every page)
   ========================================================= */
.site-footer {
  background: var(--white); color: #2b2b2b; padding: 40px 24px 30px; text-align: center;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.site-footer h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 20px; color: #1a1a1a;
}
.site-footer p { font-size: 13.5px; line-height: 1.55; color: #444; margin-bottom: 14px; }
.site-footer a { color: var(--cyan-dark); text-decoration: underline; }

/* =========================================================
   STICKY GOOGLE REVIEW WIDGET (all pages)
   ========================================================= */
.greview-widget {
  position: fixed; left: 18px; bottom: 18px; z-index: 9000;
  background: #fff; color: #202124; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; max-width: 290px;
  border: 1px solid #ececec;
  transition: transform .2s, box-shadow .2s;
  animation: gw-pop .5s ease both;
}
.greview-widget:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.34); }
@keyframes gw-pop { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.gw-logo { width: 38px; height: 38px; flex: 0 0 38px; }
.gw-text { line-height: 1.2; }
.gw-top { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: #3c4043; }
.gw-rating { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.gw-score { font-weight: 700; font-size: 17px; color: #202124; }
.gw-stars { color: #fbbc04; letter-spacing: 1px; font-size: 14px; }
.gw-count { font-size: 12.5px; color: #1a73e8; font-weight: 600; margin-top: 3px; }
.gw-close {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  background: #555; color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  font-size: 13px; line-height: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.greview-widget.hidden { display: none; }
@media (max-width: 480px) {
  .greview-widget { left: 10px; bottom: 10px; padding: 10px 12px; max-width: 230px; }
}

/* =========================================================
   FUNNEL OVERLAY (pages 5-8)
   ========================================================= */
.funnel-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  padding: 30px 16px;
  background-color: #cdcdc8;
  background-image: var(--site-bg, none);
  background-size: cover; background-position: center;
  overflow-y: auto;
}
.funnel-overlay.open { display: flex; }
.funnel-overlay::before {
  content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.35);
}
.funnel-card {
  position: relative; z-index: 1;
  background: #fff; color: #1d1d1d;
  width: 100%; max-width: 720px;
  border-radius: 14px; padding: 48px 50px;
  box-shadow: 0 22px 60px rgba(0,0,0,.4);
  animation: fc-in .35s ease both;
}
@keyframes fc-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.funnel-card.shake { animation: fc-shake .45s; }
@keyframes fc-shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-10px); }
  40%,80% { transform: translateX(10px); }
}
.funnel-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 26px; line-height: 1; color: #999; cursor: pointer;
}
.funnel-close:hover { color: #333; }
.funnel-step { display: none; }
.funnel-step.active { display: block; }

.fs-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.25; color: #1d1d1d; margin-bottom: 26px;
}
/* Step 1 — survey */
.survey-options { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px 10px; }
.survey-options label {
  display: flex; align-items: center; gap: 12px; font-size: 22px; cursor: pointer; color: #222;
}
.survey-options input { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.survey-note { font-size: 15px; color: #555; text-align: center; line-height: 1.5; margin-bottom: 28px; }
.funnel-actions { text-align: center; }

/* Step 2 — captcha */
.captcha {
  border: 1px solid #d3d3d3; border-radius: 6px; max-width: 340px; margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); overflow: hidden;
}
.captcha-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #eee;
}
.captcha-check { width: 24px; height: 24px; border: 2px solid #c0c0c0; border-radius: 3px; cursor: pointer; flex: 0 0 24px; transition: .15s; }
.captcha-check.checked { background: var(--green); border-color: var(--green); }
.captcha-check.checked::after { content: "✓"; color: #fff; display: block; text-align: center; line-height: 22px; font-size: 16px; }
.captcha-label { font-size: 14px; color: #444; }
.captcha-brand { margin-left: auto; font-size: 9px; color: #9aa0a6; text-align: center; line-height: 1.1; }
.captcha-brand .rc { width: 26px; height: 26px; margin: 0 auto 2px; opacity: .8; }
.captcha-body { padding: 14px; display: none; }
.captcha-body.show { display: block; }
.captcha-instruction { font-size: 14px; color: #333; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.captcha-target { width: 64px; height: 64px; border-radius: 6px; flex: 0 0 64px; background: #f1f3f4; display: flex; align-items: center; justify-content: center; }
.captcha-target svg { width: 80%; height: 80%; }
.captcha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.captcha-tile {
  aspect-ratio: 1; border-radius: 4px; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: #f1f3f4; user-select: none; transition: transform .1s;
}
.captcha-tile svg { width: 64%; height: 64%; pointer-events: none; }
.captcha-tile.sel { outline: 4px solid var(--cyan); outline-offset: -4px; }
.captcha-tile.sel::after {
  content: "✓"; position: absolute; top: 4px; left: 6px; color: var(--cyan);
  font-size: 18px; font-weight: 700; text-shadow: 0 0 3px #fff;
}
.captcha-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid #eee; }
.captcha-icons { display: flex; gap: 12px; color: #9aa0a6; font-size: 16px; }
.captcha-verify {
  background: var(--cyan); color: #fff; border: 0; border-radius: 4px;
  padding: 8px 22px; font-size: 14px; cursor: pointer; font-family: var(--font-body);
}
.captcha-verify:hover { background: var(--cyan-dark); }
.captcha-error { color: #d93025; font-size: 13px; text-align: center; margin-top: 10px; min-height: 16px; }

/* Step 3 — contact form */
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-field {
  border: 2px solid var(--field-border); border-radius: 6px;
  display: flex; align-items: center; padding: 0 14px; background: #fff;
}
.lead-field label { font-family: var(--font-display); font-weight: 600; color: #1d1d1d; font-size: 17px; white-space: nowrap; padding: 14px 0; }
.lead-field input {
  flex: 1; border: 0; outline: 0; font-size: 17px; padding: 14px 10px; color: #1d1d1d; background: transparent;
  font-family: var(--font-body);
}
.lead-agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
.lead-agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: 0 0 20px; cursor: pointer; }
.lead-agree label { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #1d1d1d; line-height: 1.4; }
.lead-privacy { text-align: center; margin: 6px 0 4px; }
.lead-privacy a { color: var(--cyan-dark); font-weight: 700; font-size: 17px; text-decoration: underline; }
.lead-form .funnel-actions { margin-top: 8px; }
.btn-green:disabled { background: #9bd9bd; box-shadow: none; cursor: not-allowed; }

/* Step 4 — thank you */
.thanks { text-align: center; }
.thanks h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.6vw, 38px); color: #111; margin-bottom: 30px; }
.thanks-check { width: 120px; height: 120px; margin: 0 auto 36px; }
.thanks-sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.2vw, 22px); color: #1d1d1d; line-height: 1.4; max-width: 480px; margin: 0 auto 30px; }

@media (max-width: 600px) {
  .funnel-card { padding: 36px 22px; }
  .survey-options label { font-size: 19px; }
  .lead-field label { font-size: 15px; }
}

/* =========================================================
   UTIL
   ========================================================= */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.scroll-cta { margin-top: 8px; }
