/*
Theme Name: ImpiloDocters AI Platform
Theme URI: https://impilodocters.co.za/
Author: ImpiloDocters AI
Description: Visual-refresh platform theme for ImpiloDocters AI with real stock photography, patient/doctor platform navigation, WhatsApp access and responsible-AI messaging.
Version: 1.3.0
Text Domain: impilodocters-ai-platform
*/
:root{--blue:#063d78;--blue2:#0b74c9;--green:#0ab878;--green2:#18cf8b;--ink:#143f67;--muted:#67839a;--bg:#f5fbff;--line:#dceaf3;--white:#fff;--dark:#052e5b}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f7fcff,#fff 46%,#f5fbf8);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink)}a{color:var(--blue2)}img{max-width:100%}
.site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.98);backdrop-filter:blur(12px);border-bottom:1px solid #e3edf4;box-shadow:0 4px 18px rgba(6,61,120,.05)}
.site-header-inner{max-width:1320px;margin:auto;padding:10px 20px;display:flex;align-items:center;gap:15px;min-height:76px}.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--blue);min-width:245px}.brand-logo-image{width:54px;height:54px;object-fit:contain;border-radius:10px}.site-brand-text{font-size:18px;font-weight:950;line-height:1.05;white-space:nowrap}.site-brand-text small{display:block;color:#71899d;font-size:9px;letter-spacing:.02em;margin-top:5px;font-weight:700}.brand-ai-badge{font-size:9px;font-weight:950;color:var(--green);border:1px solid #bce9d8;background:#effcf7;border-radius:999px;padding:7px 9px;white-space:nowrap}
.site-nav{display:flex;align-items:center;justify-content:flex-end;gap:2px;margin-left:auto}.site-nav a{padding:10px 8px;text-decoration:none;color:#315a7b;font-size:11px;font-weight:800;border-radius:9px;white-space:nowrap}.site-nav a:hover{background:#eef8ff;color:var(--blue2)}
.site-cta{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#08ac72,#13c889);color:#fff!important;border-radius:999px;padding:13px 19px;text-decoration:none;font-weight:950;box-shadow:0 10px 24px rgba(10,184,120,.22);white-space:nowrap}.header-cta{margin-left:auto}
.platform-main{min-height:70vh}.homepage-wrap{max-width:1320px;margin:0 auto;padding:24px 18px 30px}.hero-visual{display:grid;grid-template-columns:1fr 1.05fr;gap:28px;align-items:stretch}.hero-copy{padding:62px 12px 40px 18px}.eyebrow{display:inline-block;color:#069a72;font-size:11px;font-weight:950;letter-spacing:.11em}.hero-copy h1{font-size:clamp(40px,5vw,68px);line-height:1.02;color:var(--blue);margin:13px 0 18px;max-width:700px}.hero-copy p{font-size:18px;line-height:1.65;color:#55758d;max-width:670px}.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:28px 0}.secondary-cta{padding:12px 18px;border-radius:999px;border:1px solid #cbdfe9;text-decoration:none;color:#0b5b8f;font-weight:850;background:#fff}.trust-row{display:flex;gap:16px;flex-wrap:wrap;color:#5d7b91;font-size:12px;font-weight:800}.hero-photo-card{position:relative;min-height:530px;border-radius:30px;overflow:hidden;box-shadow:0 24px 70px rgba(9,64,112,.16);background:#dff4ef}.hero-photo-card img{width:100%;height:100%;object-fit:cover;object-position:center 30%;display:block}.photo-badge{position:absolute;left:20px;bottom:20px;background:rgba(255,255,255,.95);padding:15px 17px;border-radius:17px;box-shadow:0 12px 30px rgba(0,0,0,.14);display:flex;flex-direction:column;gap:3px}.photo-badge strong{color:#0871a5;font-size:12px;letter-spacing:.08em}.photo-badge span{color:#45667c;font-size:12px}
.quick-strip{margin:24px 0;display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 35px rgba(9,64,112,.07);overflow:hidden}.quick-strip div{padding:19px 18px;border-right:1px solid var(--line)}.quick-strip div:last-child{border-right:0}.quick-strip b{display:block;color:var(--blue);font-size:14px}.quick-strip span{display:block;color:#6b8498;font-size:11px;margin-top:4px}
.visual-grid{display:grid;grid-template-columns:1.25fr .75fr .75fr;gap:18px;margin-top:24px}.visual-card{position:relative;min-height:300px;border-radius:24px;overflow:hidden;background:#083e72;box-shadow:0 14px 38px rgba(9,64,112,.09)}.visual-card.large{grid-row:span 2;min-height:620px}.visual-card.wide{grid-column:2/4}.visual-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}.visual-card:hover img{transform:scale(1.035)}.visual-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 32%,rgba(3,32,61,.82) 100%)}.visual-card>div{position:absolute;left:20px;right:20px;bottom:18px;z-index:2;color:#fff}.visual-card span{font-size:10px;text-transform:uppercase;letter-spacing:.11em;font-weight:950;color:#8ff0cf}.visual-card h2{font-size:22px;line-height:1.15;margin:6px 0 0}
.platform-section{padding:72px 0 25px}.section-heading{text-align:center;max-width:780px;margin:0 auto 30px}.section-heading h2{font-size:42px;line-height:1.08;color:var(--blue);margin:10px 0}.section-heading p{color:#607c91;font-size:16px;line-height:1.6}
.story-section{margin:48px 0;padding:46px;border-radius:28px;background:#fff;border:1px solid var(--line);box-shadow:0 14px 40px rgba(9,64,112,.07);display:grid;grid-template-columns:1.2fr .8fr;gap:35px}.story-copy h2{font-size:40px;line-height:1.08;color:var(--blue);margin:10px 0 16px}.story-copy p{font-size:16px;line-height:1.7;color:#5d788e}.story-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-stats div{padding:24px;border-radius:18px;background:linear-gradient(145deg,#eff9ff,#f0fcf7);border:1px solid #dcecf4}.story-stats strong{display:block;color:var(--green);font-size:27px}.story-stats span{display:block;color:#57738a;font-size:12px;line-height:1.4;margin-top:5px}
.rural-callout{margin:48px 0 20px;border-radius:30px;overflow:hidden;background:linear-gradient(120deg,#063b70,#0873a8);color:#fff;display:grid;grid-template-columns:1fr .82fr;min-height:390px}.rural-callout>div{padding:55px 45px}.rural-callout h2{font-size:38px;line-height:1.08;margin:10px 0 15px}.rural-callout p{color:#d5e7f3;line-height:1.7;max-width:580px}.rural-callout img{width:100%;height:100%;min-height:390px;object-fit:cover}
.problem-section{margin:48px 0 10px;padding:42px;border-radius:28px;background:#063b70;color:#fff;display:grid;grid-template-columns:1.2fr .8fr;gap:35px}.problem-section h2{font-size:36px;line-height:1.12;margin:10px 0 12px}.problem-section p{color:#d4e7f4;line-height:1.7}.problem-card{background:#fff;color:var(--ink);border-radius:20px;padding:26px;align-self:center}.problem-card strong{font-size:17px;color:var(--blue)}.problem-card p{color:#5c7589}
.platform-footer{margin-top:50px;background:var(--dark);color:#fff}.platform-footer-inner{max-width:1320px;margin:auto;padding:40px 22px 24px;display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;gap:35px}.platform-footer h3{margin:0 0 10px;font-size:14px}.platform-footer p,.platform-footer a{color:#bcd1e3;font-size:13px}.platform-footer a{text-decoration:none;display:block;margin:7px 0}.footer-brand{font-size:20px;font-weight:950}.social-icons{display:flex;gap:12px;margin-top:18px}.social{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;transition:transform .2s ease,filter .2s ease;box-shadow:0 7px 18px rgba(0,0,0,.18)}.social:hover{transform:translateY(-3px) scale(1.03);filter:brightness(1.05)}.social svg{width:27px;height:27px;fill:#fff;stroke:none}.social-linkedin{background:#0A66C2}.social-facebook{background:#1877F2}.social-instagram{background:linear-gradient(135deg,#405DE6,#833AB4 30%,#E1306C 62%,#F77737 82%,#FCAF45)}.social-instagram svg{fill:none;stroke:#fff;stroke-width:2}.social-instagram .fill-dot{fill:#fff;stroke:none}.social-whatsapp{background:#25D366}
.footer-tools{max-width:1320px;margin:0 auto;padding:2px 22px 18px;display:flex;justify-content:flex-end}.whatsapp-float{display:inline-flex!important;align-items:center;gap:10px;background:#25D366!important;color:#fff!important;padding:13px 20px;border-radius:999px;font-weight:950;font-size:14px!important;box-shadow:0 10px 24px rgba(37,211,102,.28);text-decoration:none!important}.whatsapp-float svg{width:27px;height:27px;fill:#fff}.whatsapp-float .wa-inner{fill:#25D366}.footer-bottom{max-width:1320px;margin:auto;border-top:1px solid rgba(255,255,255,.14);padding:16px 22px;color:#9bb5ca;font-size:11px;display:flex;justify-content:space-between}
@media(max-width:1150px){.site-nav a{padding-left:6px;padding-right:6px;font-size:10px}.brand-ai-badge{display:none}.site-brand{min-width:220px}.quick-strip{grid-template-columns:repeat(3,1fr)}.quick-strip div:nth-child(3){border-right:0}.quick-strip div:nth-child(4),.quick-strip div:nth-child(5){border-top:1px solid var(--line)}.quick-strip div:nth-child(4){border-right:1px solid var(--line)}}
@media(max-width:950px){.site-header-inner{flex-wrap:wrap}.site-nav{order:3;width:100%;overflow:auto;justify-content:flex-start;margin-left:0}.header-cta{margin-left:auto}.hero-visual{grid-template-columns:1fr}.hero-copy{padding:38px 8px}.hero-photo-card{min-height:470px}.visual-grid{grid-template-columns:1fr 1fr}.visual-card.large{grid-row:auto;min-height:360px}.visual-card.wide{grid-column:1/-1}.story-section,.problem-section{grid-template-columns:1fr}.rural-callout{grid-template-columns:1fr}.rural-callout img{min-height:300px;max-height:420px}.platform-footer-inner{grid-template-columns:1fr 1fr}.footer-tools{justify-content:flex-start}}
@media(max-width:600px){.site-brand{min-width:0}.brand-logo-image{width:48px;height:48px}.site-brand-text{font-size:16px}.site-brand-text small{font-size:8px}.header-cta{order:2;padding:11px 14px;font-size:11px}.site-nav a{white-space:nowrap}.homepage-wrap{padding:14px 12px}.hero-copy h1{font-size:40px}.hero-photo-card{min-height:390px;border-radius:24px}.quick-strip{grid-template-columns:1fr 1fr}.quick-strip div{border-right:0!important;border-bottom:1px solid var(--line)}.quick-strip div:nth-last-child(-n+2){border-bottom:0}.visual-grid{grid-template-columns:1fr}.visual-card.large,.visual-card.wide{grid-column:auto;min-height:340px}.story-section,.problem-section{padding:30px 22px}.story-copy h2,.problem-section h2{font-size:30px}.story-stats{grid-template-columns:1fr}.rural-callout>div{padding:36px 26px}.rural-callout h2{font-size:30px}.section-heading h2{font-size:34px}.platform-footer-inner{grid-template-columns:1fr}.social{width:46px;height:46px}.footer-tools{padding-left:14px;padding-right:14px}.whatsapp-float{width:100%;justify-content:center}.footer-bottom{display:block}}
