/* KLIDC Dental — shared styles v2.0 */
:root {
  --primary: #0e7c86;
  --primary-dark: #0a5f67;
  --accent: #f2b705;
  --dark: #16323a;
  --text: #445a61;
  --bg-light: #f4f9fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(14,124,134,.12);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif; color:var(--text); line-height:1.7; }
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }
.container { width:min(1100px, 92%); margin:0 auto; }

/* Header */
header { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.95); backdrop-filter:blur(8px); box-shadow:0 1px 10px rgba(0,0,0,.06); }
.nav { display:flex; align-items:center; justify-content:space-between; height:72px; }
.logo { font-size:1.35rem; font-weight:800; color:var(--primary); letter-spacing:.5px; }
.logo span { color:var(--accent); }
.logo img { height:58px; width:auto; display:block; }
@media (max-width:820px){ .logo img { height:44px; } }
nav ul { display:flex; gap:24px; list-style:none; align-items:center; }
nav a { font-size:.93rem; font-weight:600; color:var(--dark); transition:color .2s; }
nav a:hover { color:var(--primary); }
.nav-cta { background:var(--primary); color:#fff !important; padding:10px 20px; border-radius:999px; }
.nav-cta:hover { background:var(--primary-dark); }
.nav-toggle { display:none; background:none; border:none; font-size:1.6rem; color:var(--dark); cursor:pointer; }
@media (max-width:820px){
  nav ul { display:none; position:absolute; top:72px; left:0; right:0; background:#fff; flex-direction:column; padding:16px 24px; box-shadow:0 8px 20px rgba(0,0,0,.08); }
  nav ul.open { display:flex; }
  nav a { padding:10px 0; }
  .nav-toggle { display:block; }
}

/* Hero (home) */
.hero { background:linear-gradient(135deg,#0e7c86 0%,#0a5f67 55%,#16323a 100%); color:#fff; padding:90px 0 100px; }
.hero-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:center; }
.hero h1 { font-size:clamp(2rem,4.5vw,3.2rem); line-height:1.2; margin-bottom:20px; font-weight:800; }
.hero h1 span { color:var(--accent); }
.hero p { font-size:1.1rem; opacity:.92; margin-bottom:32px; max-width:520px; }
.hero-btns { display:flex; gap:14px; flex-wrap:wrap; }
.btn { display:inline-block; padding:14px 30px; border-radius:999px; font-weight:700; font-size:1rem; transition:transform .15s, box-shadow .2s; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--accent); color:#16323a; box-shadow:0 6px 20px rgba(242,183,5,.35); }
.btn-ghost { background:rgba(255,255,255,.12); color:#fff; border:1.5px solid rgba(255,255,255,.45); }
.btn-wa { background:#25d366; color:#fff; }
.btn-outline { border:2px solid var(--primary); color:var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.hero-stats { display:flex; gap:40px; margin-top:50px; }
.stat b { display:block; font-size:1.9rem; color:var(--accent); }
.stat small { opacity:.85; font-size:.85rem; }
.hero-card { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:var(--radius); padding:28px; backdrop-filter:blur(4px); }
.hero-card h3 { margin-bottom:14px; font-size:1.05rem; }
.hero-card li { list-style:none; display:flex; gap:10px; margin-bottom:10px; font-size:.95rem; }
.hero-card li::before { content:"✓"; color:var(--accent); font-weight:800; }
@media (max-width:768px){ .hero-grid{ grid-template-columns:1fr; } .hero-stats{ gap:24px; flex-wrap:wrap; } }

/* Subpage hero */
.subhero { background:linear-gradient(135deg,#0e7c86 0%,#0a5f67 60%,#16323a 100%); color:#fff; padding:64px 0 70px; text-align:center; }
.subhero h1 { font-size:clamp(1.8rem,4vw,2.7rem); font-weight:800; margin-bottom:14px; }
.subhero h1 span { color:var(--accent); }
.subhero p { max-width:640px; margin:0 auto 26px; opacity:.92; font-size:1.05rem; }
@media (max-width:600px){ .subhero h1 { font-size:1.5rem; } }

/* Sections */
section { padding:80px 0; }
.sec-head { text-align:center; margin-bottom:50px; }
.sec-head h2 { font-size:clamp(1.6rem,3vw,2.3rem); color:var(--dark); margin-bottom:12px; }
.sec-head p { max-width:640px; margin:0 auto; }
.bg-light { background:var(--bg-light); }

/* Cards */
.grid { display:grid; gap:22px; }
.grid-2 { grid-template-columns:repeat(2,1fr); }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-4{ grid-template-columns:repeat(2,1fr); } .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .grid-4,.grid-3,.grid-2{ grid-template-columns:1fr; } }
.card { background:var(--white); border-radius:var(--radius); padding:28px 24px; box-shadow:var(--shadow); transition:transform .2s; }
.card:hover { transform:translateY(-4px); }
.card .ico { font-size:2rem; margin-bottom:14px; }
.card h3 { color:var(--dark); margin-bottom:8px; font-size:1.1rem; }
.card p { font-size:.92rem; }

/* Steps (process) */
.steps { counter-reset:step; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:20px; }
.step { background:var(--white); border-radius:var(--radius); padding:24px 20px; box-shadow:var(--shadow); position:relative; }
.step::before { counter-increment:step; content:counter(step); position:absolute; top:-14px; left:20px; background:var(--accent); color:#16323a; font-weight:800; width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.95rem; }
.step h4 { color:var(--dark); margin-bottom:6px; font-size:1rem; }
.step p { font-size:.88rem; }

/* Pricing */
.price-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; }
.price-card { background:var(--white); border-radius:var(--radius); padding:28px 22px; box-shadow:var(--shadow); text-align:center; border-top:4px solid var(--primary); }
.price-card.featured { border-top-color:var(--accent); transform:scale(1.02); }
.price-card h3 { color:var(--dark); margin-bottom:10px; }
.price-card .price { font-size:1.6rem; font-weight:800; color:var(--primary); }
.price-card .price small { font-size:.85rem; color:var(--text); font-weight:400; }
.price-card ul { text-align:left; margin:16px 0 20px; padding-left:18px; font-size:.9rem; }
.price-card li { margin-bottom:8px; }

/* Table */
.tbl-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); }
th, td { padding:14px 16px; text-align:left; font-size:.93rem; border-bottom:1px solid #e8eff1; }
th { background:var(--primary); color:#fff; font-weight:600; }
tr:last-child td { border-bottom:none; }

/* FAQ */
.faq details { background:#fff; border-radius:12px; box-shadow:var(--shadow); margin-bottom:12px; padding:18px 22px; }
.faq summary { cursor:pointer; font-weight:700; color:var(--dark); font-size:1rem; }
.faq details p { margin-top:10px; font-size:.93rem; }

/* CTA band */
.cta-band { background:linear-gradient(135deg,var(--accent),#f5c84d); color:#16323a; text-align:center; padding:56px 20px; border-radius:var(--radius); }
.cta-band h2 { font-size:clamp(1.5rem,3vw,2.1rem); font-weight:800; margin-bottom:10px; }
.cta-band p { margin-bottom:22px; font-weight:500; }
.cta-band .btn-primary { background:var(--dark); color:#fff; box-shadow:0 6px 20px rgba(22,50,58,.3); }
.cta-band .btn-wa { box-shadow:0 6px 20px rgba(37,211,102,.4); }

/* About */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.about-photo { width:100%; height:340px; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow); }

/* Clinic tour gallery */
.gallery { gap:20px; }
.g-item { margin:0; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); }
.g-item img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.g-item figcaption { padding:12px 16px; font-size:.9rem; font-weight:600; color:var(--dark); text-align:center; }
.about h3 { color:var(--dark); margin:18px 0 10px; font-size:1.15rem; }
.about ul { padding-left:20px; }
.about li { margin-bottom:8px; }
@media (max-width:768px){ .about-grid{ grid-template-columns:1fr; } }

/* Doctors */
.doc-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:22px; }
.doc { text-align:center; background:var(--white); border-radius:var(--radius); padding:26px 18px; box-shadow:var(--shadow); }
.doc-avatar { width:84px; height:84px; border-radius:50%; margin:0 auto 14px; background:linear-gradient(135deg,var(--primary),var(--accent)); display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.8rem; overflow:hidden; }
.doc-avatar img { width:100%; height:100%; object-fit:cover; object-position:center 20%; border-radius:50%; }
.doc h4 { color:var(--dark); }
.doc small { color:var(--primary); font-weight:600; }

/* Testimonials */
.tst-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; }
.tst { background:var(--white); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.tst .stars { color:var(--accent); margin-bottom:10px; }
.tst p { font-size:.95rem; font-style:italic; }

/* Contact */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:50px; }
.contact-info h3 { color:var(--dark); margin-bottom:20px; }
.contact-info li { list-style:none; margin-bottom:14px; font-size:.98rem; }
.contact-info li b { color:var(--dark); }
form { display:flex; flex-direction:column; gap:14px; }
input, select, textarea { padding:14px 16px; border:1.5px solid #d8e4e6; border-radius:10px; font-size:.98rem; font-family:inherit; background:#fbfdfd; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--primary); }
textarea { resize:vertical; min-height:110px; }
form .btn { border:none; cursor:pointer; text-align:center; }
@media (max-width:768px){ .contact-grid{ grid-template-columns:1fr; } }

/* Footer */
footer { background:var(--dark); color:#9fb6bd; padding:36px 0; text-align:center; font-size:.9rem; }
footer b { color:#fff; }
footer a { color:#cfe6ea; }
footer .fnav { margin-bottom:10px; display:flex; gap:20px; justify-content:center; flex-wrap:wrap; }
footer .fnav a { color:#9fb6bd; font-size:.88rem; }
footer .fnav a:hover { color:#fff; }
footer .privacy-link { display:inline-block; margin-top:8px; font-size:.85rem; color:#7fa0a8; text-decoration:underline; }

/* Floating WhatsApp */
.wa-float { position:fixed; right:22px; bottom:22px; width:58px; height:58px; border-radius:50%; background:#25d366; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 22px rgba(37,211,102,.45); z-index:99; transition:transform .2s; }
.wa-float:hover { transform:scale(1.08); }
.wa-float svg { width:30px; height:30px; fill:#fff; }

/* Privacy section */
#privacy { background:var(--bg-light); padding:40px 0; }
#privacy h2 { color:var(--dark); margin-bottom:14px; font-size:1.3rem; }
#privacy p { font-size:.92rem; max-width:820px; }
