/* =========================================================
   OraView — Advanced 3D Dental Imaging Center
   Brand colors: Deep Navy #0A2540 | Cyan Teal #20B2AA
   ========================================================= */

:root {
  --navy: #0A2540;
  --navy-2: #0d2d4f;
  --teal: #20B2AA;
  --teal-dark: #17a099;
  --teal-light: #e6f7f6;
  --ink: #102a43;
  --muted: #52606d;
  --line: #e4e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.15);
  --maxw: 1180px;
  --t: 0.25s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--teal-dark); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--t); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(32,178,170,.35); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline.light { border-color: var(--white); color: var(--white); }
.btn-outline.light:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { flex-shrink: 0; display: flex; align-items: center; }
.brand-mark img { height: 56px; width: 56px; object-fit: contain; display: block; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--navy); }
.brand-name .accent { color: var(--teal); }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 3px; font-weight: 600; }
.brand-tag { font-size: 0.6rem; letter-spacing: 0.1em; color: var(--teal-dark); margin-top: 3px; font-weight: 700; text-transform: uppercase; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--teal-dark); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--t); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(32,178,170,0.12), transparent 60%),
    linear-gradient(180deg, #f7fbff 0%, var(--white) 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 50px; align-items: center; }

.eyebrow {
  display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

.hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.hero .lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 28px; max-width: 600px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-cta.center { justify-content: center; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { font-size: 0.92rem; color: var(--muted); }
.hero-badges strong { color: var(--navy); }

.hero-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.hero-card-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.hero-card-row:last-child { border-bottom: none; }
.h-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.h-val { color: var(--white); font-weight: 500; margin-top: 2px; }
.h-val a { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Tabs (Scan Catalog) ---------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px;
}
.tab {
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 0.9rem;
  padding: 10px 18px; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; cursor: pointer; color: var(--ink); transition: var(--t);
}
.tab:hover { border-color: var(--teal); color: var(--teal-dark); }
.tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }

.panel-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.panel-grid h3 { font-size: 1.5rem; margin-bottom: 12px; }
.panel-grid p { color: var(--muted); margin-bottom: 18px; }

.check-list { list-style: none; }
.check-list li {
  position: relative; padding: 7px 0 7px 28px; color: var(--ink); font-size: 0.95rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px; background: var(--teal-light); color: var(--teal-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.panel-side { display: flex; flex-direction: column; justify-content: center; gap: 20px; align-items: flex-start; }
.panel-note { background: var(--teal-light); padding: 16px 18px; border-radius: 10px; color: var(--navy); font-size: 0.92rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: var(--t);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.feature-ico { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Two-col ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 16px; }
.two-col p { color: var(--muted); margin-bottom: 18px; }

.spec-list { display: grid; gap: 10px; margin-top: 24px; }
.spec-item {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 16px; background: var(--bg-alt); border-radius: 10px;
}
.spec-label { font-weight: 600; color: var(--navy); }
.spec-val { color: var(--muted); text-align: right; }

.safety-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.safety-card h3 { color: var(--white); margin-bottom: 18px; font-size: 1.3rem; }
.safety-card .check-list li { color: rgba(255,255,255,0.92); }
.safety-card .check-list li::before { background: rgba(32,178,170,0.2); color: var(--teal); }
.safety-card .btn { margin-top: 18px; }

/* ---------- Form ---------- */
.referral-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.referral-form label {
  display: block; font-weight: 500; font-size: 0.88rem; color: var(--navy);
  margin-bottom: 16px;
}
.referral-form input, .referral-form select, .referral-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 0.95rem;
  background: var(--white); color: var(--ink); transition: var(--t);
}
.referral-form input:focus, .referral-form select:focus, .referral-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,178,170,0.15);
}
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form-status.success { color: #0a7d32; }
.form-status.error { color: #b3261e; }

/* ---------- Location ---------- */
.loc-info { display: grid; gap: 18px; margin: 26px 0; }
.loc-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--teal-dark); }
.loc-item p { color: var(--muted); margin: 0; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 20px; transition: var(--t);
}
.faq-item[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.faq-item summary {
  font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--navy);
  cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--teal); font-size: 1.4rem; font-weight: 700; transition: var(--t); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 18px; color: var(--muted); }

/* ---------- Machine Section ---------- */
.machine-section { align-items: center; }
.machine-visual {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); background: var(--teal-light);
}
.machine-visual img { width: 100%; display: block; }
.machine-caption {
  padding: 14px 18px; font-size: 0.88rem; color: var(--muted); text-align: center;
  background: var(--white); border-top: 1px solid var(--line); margin: 0;
}
.machine-trust {
  margin-top: 18px; padding: 14px 18px; background: var(--teal-light);
  border-left: 4px solid var(--teal); border-radius: 8px; color: var(--navy);
  font-size: 0.93rem;
}
.machine-note {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  padding: 18px 22px; border-radius: 10px; color: var(--navy); font-size: 0.95rem;
  max-width: 860px; margin: 0 auto; text-align: center;
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white); padding: 56px 0;
}
.cta-inner { text-align: center; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #06182b; color: rgba(255,255,255,0.7); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer .brand-name { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-desc { font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--teal); }
.site-footer p a { color: rgba(255,255,255,0.7); }
.site-footer p a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .panel-grid, .two-col { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { order: -1; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 18px 22px; gap: 14px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-toggle { display: flex; }
  .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 50px; }
  .brand-mark img { height: 44px; width: 44px; }
  .brand-tag { display: none; }
}
