/*
Theme Name: Profilaxia
Author: Centrul Medical Profilaxia
Description: Temă custom pentru Centrul Medical Profilaxia — clinică medicală Timișoara. Cod curat, fără page builder, orientată pe SEO local și conversie.
Version: 1.1
Requires PHP: 7.4
Text Domain: profilaxia
*/

:root{
  --bg:oklch(0.99 0.002 0);
  --text:oklch(0.22 0.01 30);
  --muted:oklch(0.48 0.012 30);
  --line:oklch(0.9 0.006 40);
  --accent:oklch(0.55 0.15 25);
  --accent-dark:oklch(0.46 0.15 25);
  --accent-soft:oklch(0.95 0.025 25);
  --surface:oklch(0.965 0.005 50);
  --dark:oklch(0.14 0.01 30);
  --dark2:oklch(0.19 0.012 30);
  --dark-line:oklch(0.28 0.012 30);
  --whatsapp:oklch(0.72 0.19 142);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{font-family:'Poppins',sans-serif;color:var(--text);background:var(--bg);}
a{color:var(--accent);text-decoration:none;}
a:hover{color:var(--accent-dark);}
img{max-width:100%;display:block;}
h1,h2,h3,h4{font-family:'Poppins',sans-serif;font-weight:800;margin:0;}
p{margin:0;}
ul{margin:0;padding:0;}
button{font-family:inherit;}
.container{max-width:1240px;margin:0 auto;padding:0 24px;}

/* ---------- Utilities ---------- */
.text-center{text-align:center;}
.text-white{color:white;}
.text-muted{color:var(--muted);}
.max-w-sm{max-width:420px;}
.max-w-md{max-width:640px;margin-left:auto;margin-right:auto;}
.max-w-lg{max-width:680px;}
.max-w-content{max-width:760px;margin-left:auto;margin-right:auto;}
.max-w-narrow{max-width:900px;margin-left:auto;margin-right:auto;}
.mb-1{margin-bottom:8px;}
.mb-2{margin-bottom:12px;}
.mb-3{margin-bottom:16px;}
.mb-4{margin-bottom:24px;}
.mb-5{margin-bottom:32px;}
.mb-6{margin-bottom:40px;}
.mt-3{margin-top:16px;}
.mt-4{margin-top:24px;}
.flex-between{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
.flex-end{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:16px;}
.flex-gap{display:flex;flex-wrap:wrap;gap:12px;}
.h1-page{font-size:clamp(26px,3.2vw,36px);}
.h2-lg{font-size:clamp(22px,2.6vw,28px);}
.h2-md{font-size:22px;}
.h2-sm{font-size:19px;}
.h3-md{font-size:20px;}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:8px;}
.breadcrumb a{color:var(--muted);}
.breadcrumb .separator{margin:0 4px;}

/* ---------- Topbar ---------- */
.topbar{background:var(--dark);color:oklch(0.85 0.006 30);font-size:13px;}
.topbar-inner{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;padding:8px 24px;}
.topbar a{color:oklch(0.85 0.006 30);}
.topbar a:hover{color:white;}
.topbar-left,.topbar-right{display:flex;flex-wrap:wrap;gap:16px;}

/* ---------- Header ---------- */
.site-header{background:var(--bg);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 24px;max-width:1240px;margin:0 auto;position:relative;}
.brand{display:flex;align-items:center;gap:6px;flex-shrink:0;}
.brand a{display:flex;align-items:center;gap:6px;text-decoration:none;}
.brand img{max-height:44px;width:auto;display:block;}
.brand-mark{width:24px;height:24px;position:relative;display:block;}
.brand-mark span{position:absolute;background:var(--accent);border-radius:2px;display:block;}
.brand-mark .v{left:9px;top:1px;width:6px;height:21px;}
.brand-mark .h{left:2px;top:9px;width:21px;height:6px;}
.brand-name{font-weight:800;font-size:17px;letter-spacing:-0.01em;color:var(--text);white-space:nowrap;}

.main-nav{list-style:none;display:flex;gap:9px;flex-wrap:wrap;font-size:12.5px;font-weight:600;flex:1;justify-content:center;min-width:0;margin:0;padding:0;}
.main-nav li{position:relative;list-style:none;}
.main-nav a{color:var(--text);display:block;padding:6px 4px;}
.main-nav a:hover,.main-nav a.current{color:var(--accent);}
.main-nav .sub-menu{display:none;position:absolute;top:100%;left:0;background:white;border:1px solid var(--line);border-radius:10px;padding:8px;min-width:210px;box-shadow:0 12px 30px oklch(0 0 0 / 0.12);z-index:60;list-style:none;flex-direction:column;gap:2px;margin:0;}
.main-nav li:hover > .sub-menu,.main-nav li.sub-menu-open > .sub-menu{display:flex;}
.main-nav .sub-menu a{padding:8px 10px;border-radius:6px;}
.main-nav .sub-menu a:hover{background:var(--surface);}
.main-nav .menu-item-has-children > a::after{content:" \25BE";font-size:9px;}

.header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0;}
.wa-bubble{width:30px;height:30px;border-radius:50%;background:var(--whatsapp);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.wa-bubble .shape-bubble{width:13px;height:13px;}

.nav-toggle{display:none;-webkit-appearance:none;appearance:none;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:white;flex-direction:column;justify-content:center;align-items:center;gap:4px;cursor:pointer;padding:0;margin:0;flex-shrink:0;}
.nav-toggle span{width:16px;height:2px;background:var(--text);display:block;border-radius:1px;}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;font-weight:700;text-decoration:none;cursor:pointer;border:none;font-family:inherit;}
.btn-primary{background:var(--accent);color:white;padding:14px 26px;font-size:16px;}
.btn-primary:hover{background:var(--accent-dark);color:white;}
.btn-outline{background:white;border:1px solid var(--line);color:var(--text);padding:14px 26px;font-size:16px;}
.btn-outline:hover{color:var(--accent);}
.btn-sm{padding:9px 14px;font-size:12.5px;}
.btn-outline-sm{display:inline-block;background:white;border:1px solid var(--line);color:var(--text);padding:10px 18px;font-size:14px;border-radius:8px;font-weight:700;}
.btn-outline-sm:hover{color:var(--accent);}
.btn-block{width:100%;}

/* ---------- Sections ---------- */
.section{padding:64px 24px;}
.section-alt{background:var(--surface);}
.section-sm{padding:48px 24px;}
.section-title{text-align:center;max-width:640px;margin:0 auto 40px;}
.section-title h2{margin-bottom:12px;}
.section-title p{color:var(--muted);font-size:16px;}
.badge{display:inline-flex;align-items:center;gap:8px;background:var(--accent-soft);color:var(--accent-dark);font-weight:700;font-size:13px;padding:6px 14px;border-radius:20px;margin-bottom:20px;}
.badge-dark{background:oklch(0.55 0.15 25 / 0.18);color:oklch(0.72 0.15 25);}

/* ---------- Hero ---------- */
.hero{display:grid;grid-template-columns:minmax(280px,1.1fr) minmax(280px,1fr);gap:48px;align-items:center;padding:clamp(40px,6vw,80px) 24px;max-width:1240px;margin:0 auto;}
.hero h1{font-size:clamp(28px,3.6vw,42px);line-height:1.08;letter-spacing:-0.01em;margin:0 0 20px;}
.hero p.lead{font-size:18px;line-height:1.6;color:var(--muted);margin:0 0 28px;max-width:520px;}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:28px;}
.hero-stats{display:flex;flex-wrap:wrap;gap:28px;font-size:14px;color:var(--muted);}
.hero-stats strong{display:block;font-size:22px;color:var(--text);font-family:'Poppins',sans-serif;font-weight:800;}
.hero-media img,.hero-media .placeholder{width:100%;height:min(480px,60vw);border-radius:20px;object-fit:cover;}
.placeholder{background:repeating-linear-gradient(45deg,var(--surface) 0 10px,var(--bg) 10px 20px);display:flex;align-items:center;justify-content:center;color:var(--muted);font-family:monospace;font-size:13px;text-align:center;padding:12px;border-radius:12px;}

/* ---------- Grids ---------- */
.grid{display:grid;gap:16px;}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px;}
.grid-2-fixed{grid-template-columns:minmax(280px,1.1fr) minmax(280px,1fr);gap:48px;}
.grid-2-sidebar{grid-template-columns:minmax(280px,1.3fr) minmax(240px,0.9fr);gap:40px;}
.grid-2-book{grid-template-columns:minmax(280px,0.85fr) minmax(320px,1fr);gap:56px;}
.grid-2-map{grid-template-columns:minmax(280px,0.9fr) minmax(280px,1.1fr);gap:40px;align-items:stretch;}
.grid-profile{grid-template-columns:220px 1fr;gap:32px;align-items:start;}

/* ---------- Cards ---------- */
.card{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit;}
.card p{flex:1;font-size:14px;color:var(--muted);}
.card h3{font-size:17px;}
.icon-badge{width:40px;height:40px;border-radius:10px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;}
.dept-card{border-radius:20px;padding:32px;border:1px solid var(--line);}
.dept-card-preventiva{background:linear-gradient(160deg,oklch(0.97 0.02 25),oklch(0.99 0.002 0));}
.dept-card-asistenta{background:linear-gradient(160deg,oklch(0.965 0.005 50),oklch(0.99 0.002 0));}
.dept-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:20px;}
.dept-icon-accent{background:var(--accent);}
.dept-icon-dark{background:var(--text);}
.dept-card h2{font-size:22px;margin-bottom:12px;}
.dept-card p{color:var(--muted);font-size:15px;line-height:1.65;margin-bottom:20px;}
.step-card{background:white;border-radius:14px;padding:26px;}
.step-num{width:36px;height:36px;border-radius:50%;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:14px;font-family:'Poppins',sans-serif;}
.step-card h3{font-size:17px;margin-bottom:6px;}
.step-card p{color:var(--muted);font-size:14px;}
.team-card{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;}
.team-card img,.team-card .placeholder{width:100%;height:220px;border-radius:12px;object-fit:cover;}
.team-card h3{font-size:16px;margin:14px 0 2px;}
.team-card .role{color:var(--accent);font-weight:700;font-size:14px;margin-bottom:10px;}
.review-card{background:white;border-radius:14px;padding:26px;}
.review-card p{font-size:15px;line-height:1.6;color:var(--text);margin-bottom:16px;}
.review-card .author{font-weight:700;font-size:14px;color:var(--text);}
.review-widget{margin-bottom:24px;}
.review-summary{text-align:center;margin:8px 0 32px;color:var(--muted);font-size:15px;font-weight:600;}
.stars{color:var(--accent);font-size:18px;}

/* ---------- Icon shapes (pure CSS, no SVG) ---------- */
.ic-generic{width:40px;height:40px;border-radius:10px;background:var(--dark2);flex-shrink:0;display:flex;align-items:center;justify-content:center;}
.shape-pin{width:14px;height:14px;background:white;border-radius:50% 50% 50% 0;transform:rotate(45deg);}
.shape-ring{width:16px;height:16px;border:3px solid white;border-radius:50%;box-sizing:border-box;}
.shape-bubble{width:16px;height:16px;background:white;border-radius:50% 50% 50% 4px;}
.shape-rect{width:16px;height:12px;background:white;border-radius:2px;}
.cross{width:22px;height:22px;position:relative;display:block;}
.cross span{position:absolute;background:white;border-radius:2px;display:block;}
.cross .v{left:8px;top:0;width:6px;height:22px;}
.cross .h{left:0;top:8px;width:22px;height:6px;}
.cross-sm{width:16px;height:16px;position:relative;display:block;}
.cross-sm span{position:absolute;background:var(--accent-dark);border-radius:1px;display:block;}
.cross-sm .v{left:6px;top:0;width:4px;height:16px;}
.cross-sm .h{left:0;top:6px;width:16px;height:4px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--dark);color:oklch(0.7 0.01 30);padding:48px 24px 24px;}
.site-footer a{color:oklch(0.7 0.01 30);}
.site-footer a:hover{color:white;}
.footer-bar{background:var(--dark2);border-radius:16px;padding:24px 28px;display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;align-items:center;margin-bottom:40px;}
.footer-bar a{color:white;font-weight:700;}
.footer-bar-address{display:flex;gap:12px;align-items:center;}
.footer-bar-address .dot{width:38px;height:38px;border-radius:50%;background:var(--accent);flex-shrink:0;}
.footer-bar-contacts{display:flex;gap:24px;flex-wrap:wrap;font-size:15px;}
.footer-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px;padding-bottom:32px;}
.footer-cols h4{color:white;font-size:14px;margin-bottom:12px;}
.footer-cols p{font-size:14px;line-height:1.9;}
.footer-brand{font-weight:800;font-size:19px;color:white;font-family:'Poppins',sans-serif;}
.footer-bottom{border-top:1px solid var(--dark-line);padding-top:20px;font-size:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;align-items:center;}
.footer-bottom-links{display:flex;gap:16px;}
.social-row{display:flex;gap:10px;}
.social-circle{width:32px;height:32px;border-radius:50%;background:var(--dark2);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:white;text-decoration:none;}

/* ---------- Booking ---------- */
.booking{background:var(--dark);padding:72px 24px;}
.booking-grid{display:grid;grid-template-columns:minmax(280px,0.85fr) minmax(320px,1fr);gap:56px;max-width:1240px;margin:0 auto;}
.booking h2{color:white;font-size:clamp(24px,2.8vw,32px);margin-bottom:14px;}
.booking p.lead{color:oklch(0.7 0.01 30);font-size:16px;line-height:1.6;margin-bottom:32px;max-width:420px;}
.booking-contacts{display:flex;flex-direction:column;gap:16px;}
.booking-contact{display:flex;gap:14px;align-items:flex-start;}
.booking-contact a,.booking-contact p{color:white;font-weight:700;font-size:15px;margin:0;}
.booking-contact .sub{color:oklch(0.6 0.01 30);font-size:13px;font-weight:400;}
.booking-form{background:white;border-radius:20px;padding:36px;box-shadow:0 24px 60px oklch(0 0 0 / 0.35);}
.booking-form h3{font-size:20px;margin-bottom:4px;}
.booking-form .sub{color:var(--muted);font-size:14px;}
.cta-banner{background:var(--dark);padding:48px 24px;}
.cta-banner h2{color:white;font-size:24px;}

/* ---------- Forms ---------- */
.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;}
label.field{font-size:13px;font-weight:700;color:var(--text);display:block;margin-bottom:12px;}
.field input,.field select,.field textarea{display:block;width:100%;margin-top:6px;padding:12px;border-radius:8px;border:1px solid var(--line);font-size:15px;font-family:inherit;background:white;}
.field textarea{resize:vertical;}
.mini-form .field{margin-bottom:12px;}
.form-note{margin-top:8px;font-size:12px;color:oklch(0.6 0.012 30);text-align:center;}
.form-note-light{margin-top:8px;font-size:13px;color:var(--muted);}

/* ---------- Map ---------- */
.map-section{display:grid;grid-template-columns:minmax(280px,0.9fr) minmax(280px,1.1fr);gap:40px;align-items:stretch;max-width:1240px;margin:0 auto;padding:64px 24px;}
.map-info-card{background:var(--surface);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px;}
.map-info-card p.label{font-weight:700;font-size:14px;}
.map-info-card p.value{color:var(--muted);font-size:14px;}
.map-section iframe{width:100%;min-height:280px;border:0;border-radius:16px;}

/* ---------- Sidebar (single specialitate) ---------- */
.aside-stack{display:flex;flex-direction:column;gap:20px;}
.aside-box{border-radius:16px;padding:24px;}
.aside-box-surface{background:var(--surface);}
.aside-box-accent{background:var(--accent-soft);}
.aside-box-white{background:white;border:1px solid var(--line);}
.aside-box h3{font-size:16px;margin-bottom:14px;}
.aside-box-accent h3{color:var(--accent-dark);margin-bottom:8px;}

/* ---------- Doctor slider ---------- */
.slider{position:relative;padding:0 6px;}
.slider-track{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px;scrollbar-width:none;list-style:none;margin:0;}
.slider-track::-webkit-scrollbar{display:none;}
.slider-item{flex:0 0 96px;scroll-snap-align:start;text-align:center;}
.slider-item img,.slider-item .placeholder{width:52px;height:52px;border-radius:50%;object-fit:cover;margin:0 auto;}
.slider-item .name{margin-top:8px;font-weight:700;font-size:13px;}
.slider-item .role{margin:0;font-size:11px;color:var(--muted);}
.slider-item a.profile-link{font-size:12px;font-weight:700;}
.slider-nav{position:absolute;top:26px;width:26px;height:26px;border-radius:50%;background:white;border:1px solid var(--line);cursor:pointer;font-size:15px;line-height:1;}
.slider-nav.prev{left:-14px;}
.slider-nav.next{right:-14px;}

/* ---------- Price table ---------- */
.price-table{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:32px;}
.price-table .head{background:var(--surface);padding:16px 24px;}
.price-table .head h2{font-size:18px;}
.price-row{display:flex;justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--line);font-size:15px;}
.price-row:last-child{border-bottom:none;}
.price-row strong{font-weight:700;}
.price-row-box{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;}
.price-note{font-size:13px;color:var(--muted);}

/* ---------- Profile (single medic) ---------- */
.profile-photo{width:100%;height:220px;object-fit:cover;border-radius:16px;}
.profile-role{color:var(--accent);font-weight:700;font-size:16px;margin-bottom:20px;}
.profile-content{font-size:16px;line-height:1.7;color:var(--text);}

/* ---------- Table of contents / post content ---------- */
.toc-box{background:var(--surface);border-radius:14px;padding:20px 24px;margin-bottom:28px;}
.toc-box .toc-title{font-weight:700;margin-bottom:10px;}
.toc-box ul{list-style:none;display:flex;flex-direction:column;gap:6px;margin:0;padding:0;}
.toc-box .toc-lvl-3{padding-left:16px;font-size:14px;}
.post-content h2{margin-top:32px;margin-bottom:12px;font-size:22px;}
.post-content h3{margin-top:24px;margin-bottom:10px;font-size:18px;}
.post-content p{margin-bottom:16px;line-height:1.7;}
.post-card{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden;color:inherit;text-decoration:none;display:block;}
.post-card img,.post-card .placeholder{width:100%;height:190px;object-fit:cover;}
.post-card .body{padding:20px;}
.post-card .date{margin-bottom:8px;font-size:13px;color:var(--muted);}
.post-card h2,.post-card h3{font-size:18px;margin-bottom:8px;}
.post-card p{font-size:14px;color:var(--muted);line-height:1.55;}

/* ---------- Responsive ---------- */
@media (max-width:700px){
  .hero,.booking-grid,.map-section,.grid-2-fixed,.grid-2-sidebar,.grid-2-book,.grid-2-map{grid-template-columns:1fr !important;}
  .grid-profile{grid-template-columns:140px 1fr;}
}

@media (max-width:880px){
  .nav-toggle{display:flex;order:2;}
  .header-actions{order:3;}
  .main-nav{
    display:none;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    position:absolute;
    top:100%;
    left:0;
    background:white;
    border:1px solid var(--line);
    border-radius:0 0 12px 12px;
    padding:12px;
    gap:2px;
    box-shadow:0 12px 30px oklch(0 0 0 / 0.12);
  }
  .main-nav.is-open{display:flex;}
  .main-nav li{width:100%;}
  .main-nav a{padding:10px 8px;}
  .main-nav .sub-menu{display:none;position:static;border:none;box-shadow:none;padding-left:14px;min-width:0;}
  .main-nav li.sub-menu-open > .sub-menu{display:flex;}
}
