/*
Theme Name: PhysioFlow
Theme URI: https://physioflow.pk
Author: PhysioFlow
Description: Simple one-page, white and green theme for the PhysioFlow physiotherapy clinic. Contact details are edited in Appearance > Customize > Clinic Details.
Version: 1.0.6
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: physioflow
*/

:root {
  --green: #80C51C;
  --green-d: #5E9A10;
  --green-dd: #447408;
  --mint: #F1F9E6;
  --mint-2: #E2F2C8;
  --navy: #1D303F;
  --ink: #26343F;
  --grey: #62727E;
  --line: #E4ECDD;
  --white: #fff;
  --wa: #25D366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(29, 48, 63, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-d); text-decoration: none; }
h1, h2, h3 { font-family: 'Poppins', 'Inter', sans-serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.section { padding: 84px 0; }
.section.alt { background: var(--mint); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); margin-bottom: 10px; }
.lead { color: var(--grey); font-size: 1.08rem; max-width: 620px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--navy); box-shadow: 0 8px 20px rgba(128, 197, 28, .35); }
.btn-primary:hover { background: #8fd22a; }
.btn-outline { background: #fff; color: var(--green-dd); border-color: var(--green); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-wa:hover { background: #20bd5a; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--navy); }
.brand img { width: 48px; height: 48px; }
.brand span { color: var(--green-d); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.main-nav a:hover { color: var(--green-d); }
.main-nav .btn { padding: 10px 22px; font-size: .92rem; color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--mint) 0%, #fff 100%); padding: 72px 0 84px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--green-d); }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; font-weight: 500; font-size: .94rem; }
.ticks li::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--green); color: var(--navy); font-size: .72rem; font-weight: 700; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--mint-2); }
.hero-art img { position: relative; width: min(380px, 80%); filter: drop-shadow(0 20px 30px rgba(29, 48, 63, .15)); }

/* Stats */
.stats { margin-top: -44px; position: relative; z-index: 2; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 10px; text-align: center; }
.stats-in div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: 'Poppins', sans-serif; font-size: 1.9rem; color: var(--green-d); line-height: 1.2; }
.stats span { font-size: .88rem; color: var(--grey); }

/* Services */
.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--mint); color: var(--green-d); display: grid; place-items: center; margin-bottom: 18px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; }
.card p { color: var(--grey); font-size: .95rem; margin: 0; }

/* About */
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-art { background: var(--mint-2); border-radius: 28px; aspect-ratio: 1; display: grid; place-items: center; }
.about-art img { width: 58%; }
.about-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about-list li { padding-left: 34px; position: relative; font-weight: 500; }
.about-list li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--navy); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* Steps */
.steps .card { text-align: center; }
.steps .num { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 16px; }

/* Conditions */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.chips span { background: #fff; border: 1px solid var(--line); padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: .94rem; }

/* Contact */
.brand-name { font-weight: 700; }
.contact { background: linear-gradient(180deg, var(--mint) 0%, var(--mint-2) 100%); color: var(--ink); }
.contact .lead { color: var(--grey); }
.contact-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; margin-top: 44px; align-items: start; }
.info-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.info-list small { display: block; color: var(--grey); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.info-list a, .info-list b { color: var(--navy); font-weight: 600; }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 240px; border: 0; }

.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 34px; box-shadow: 0 20px 50px rgba(29, 48, 63, .12); border: 1px solid var(--line); }
.form-card h3 { color: var(--navy); font-size: 1.4rem; }
.form-card > p { color: var(--grey); font-size: .94rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #FAFDF6; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(128, 197, 28, .2); }
.field textarea { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-card .btn { width: 100%; font-size: 1.05rem; padding: 16px; }
.note { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; font-size: .95rem; }
.note.ok { background: var(--mint-2); color: var(--green-dd); }
.note.err { background: #FDE8E4; color: #A33B22; }
.privacy { font-size: .8rem; color: var(--grey); text-align: center; margin: 12px 0 0; }

/* Footer */
.site-footer { background: #14222D; color: #9FB1BD; padding: 28px 0; font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer a { color: var(--green); }

/* Floating WhatsApp (mobile) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-in, .about-in, .contact-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 60%); }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-in { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stats-in div:nth-child(3) { border-left: 0; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; border: 0; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .hero-cta .btn { width: 100%; }
}

/* Conditions grid */
.cond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; text-align: left; }
.cond-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--green); }
.cond-card h3 { margin: 0 0 2px; }
.cond-card small { display: block; color: var(--green-d); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.cond-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cond-card li { position: relative; padding-left: 22px; font-size: .94rem; color: var(--ink); }
.cond-card li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: var(--mint-2); color: var(--green-dd); font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.cond-note { margin-top: 30px; color: var(--grey); font-weight: 500; }
@media (max-width: 900px) { .cond-grid { grid-template-columns: 1fr; } }

/* Meet the doctor */
.doctor-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.doctor-photo img, .doctor-ph { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); display: block; margin-inline: auto; border: 6px solid #fff; outline: 2px solid var(--mint-2); }
.doctor-ph { background: linear-gradient(135deg, var(--mint-2), var(--green)); color: #fff; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-size: 5rem; font-weight: 700; }
.doctor-role { color: var(--green-d); font-weight: 600; margin-bottom: 18px; }
.doctor-quote { margin: 0 0 20px; padding: 6px 0 6px 22px; border-left: 4px solid var(--green); }
.doctor-quote p { font-size: 1.08rem; color: var(--ink); font-style: italic; margin-bottom: 8px; }
.doctor-quote footer { color: var(--grey); font-weight: 600; font-size: .92rem; }
.doctor-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 24px; }
.doctor-tags li { background: var(--mint); color: var(--green-dd); border: 1px solid var(--mint-2); padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
@media (max-width: 900px) { .doctor-in { grid-template-columns: 1fr; gap: 30px; } .doctor-photo img, .doctor-ph { max-width: 280px; } }

/* Doctor photo: small round, LinkedIn style (overrides earlier rule) */
.doctor-in { grid-template-columns: 200px 1fr; gap: 44px; align-items: center; }
.doctor-photo img, .doctor-ph { width: 180px; height: 180px; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: center top; border: 5px solid #fff; outline: 3px solid var(--green); box-shadow: var(--shadow); }
.doctor-ph { font-size: 3rem; }
@media (max-width: 900px) { .doctor-in { grid-template-columns: 1fr; text-align: center; } .doctor-photo img, .doctor-ph { width: 150px; height: 150px; max-width: none; } .doctor-quote { text-align: left; } .doctor-tags { justify-content: center; } }
