/* ============================================================
   Dr. Saleh Albakri — Implant Dentistry
   Design system: premium clinical. Petrol ink + teal + soft gold.
   Mobile-first. No frameworks.
   ============================================================ */

:root {
  --ink: #0a1f2e;
  --ink-2: #12354a;
  --teal: #0ea5a5;
  --teal-dark: #0b7f80;
  --teal-deep: #095f60;
  --teal-soft: #e6f7f6;
  --gold: #c9a227;
  --bg: #f6fafa;
  --surface: #ffffff;
  --text: #22333f;
  --text-soft: #5b6f7c;
  --line: #e3edee;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 31, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 46, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* fixed header must not cover anchor targets */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }

p { margin: 0 0 1em; }

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

:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary { background: var(--teal-dark); color: #fff; box-shadow: 0 8px 24px rgba(11, 127, 128, 0.35); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }

.btn-wa { background: var(--wa); color: var(--ink); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
.btn-wa:hover { background: #1fb857; transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  padding: 0.9rem 0;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 18px rgba(10, 31, 46, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.25s ease;
  line-height: 1.1;
}
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}
.scrolled .logo { color: var(--ink); }
.scrolled .logo small { color: var(--teal-dark); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}
.main-nav a:not(.btn):hover { color: var(--teal); }
.scrolled .main-nav a:not(.btn) { color: var(--text); }
.scrolled .main-nav a:not(.btn):hover { color: var(--teal-dark); }
.main-nav .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

.lang-switch {
  display: inline-flex;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 800;
}
.scrolled .lang-switch { border-color: var(--line); }
.lang-switch a {
  padding: 0.6rem 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}
.scrolled .lang-switch a { color: var(--text-soft); }
.lang-switch a.active { background: var(--teal-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.7rem;
  margin: -0.3rem;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  margin: 5.5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  background:
    linear-gradient(160deg, rgba(10, 31, 46, 0.96) 0%, rgba(10, 31, 46, 0.82) 45%, rgba(11, 127, 128, 0.55) 100%),
    var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-size: cover;
  background-position: center 25%;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 165, 0.35), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: #7fe0dc; }
.hero .lead {
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.45;
  color: #eafffe;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin: 0 0 1.4rem;
  max-width: 620px;
}
.hero-statement strong { color: #7fe0dc; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a9e8e5;
  background: rgba(14, 165, 165, 0.16);
  border: 1px solid rgba(127, 224, 220, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}
.hero-badge svg { width: 15px; height: 15px; }

.trust-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trust-chips span {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.trust-chips svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

.card.featured { position: relative; border: 2px solid var(--teal); }
.card .tag {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--teal);
  opacity: 0.35;
  z-index: -1;
}
.about-body .checklist { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0.75rem; }
.about-body .checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 600; }
.about-body .checklist svg { width: 21px; height: 21px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ---------- Tech (dark) ---------- */
.tech { background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff; }
.tech h2, .tech h3 { color: #fff; }
.tech .section-head p { color: rgba(255, 255, 255, 0.72); }
.tech-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tech-photo img {
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tech-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.15rem; }
.tech-list li { display: flex; gap: 1rem; }
.tech-list .icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(14, 165, 165, 0.18);
  color: #7fe0dc;
}
.tech-list .icon svg { width: 23px; height: 23px; }
.tech-list h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.tech-list p { color: rgba(255, 255, 255, 0.7); font-size: 0.93rem; margin: 0; }

/* ---------- Journey steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--teal-soft);
  -webkit-text-stroke: 1.5px var(--teal);
  line-height: 1;
  display: block;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-soft); font-size: 0.93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--teal-soft); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.contact-info a,
.contact-info .row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.contact-info .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}
.contact-info .icon svg { width: 21px; height: 21px; }

.lead-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-lg);
}
.lead-form h3 { margin-bottom: 0.3rem; }
.lead-form > p { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 800; margin-bottom: 0.35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal);
  background: #fff;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 1px;
}
.field textarea { resize: vertical; min-height: 90px; }
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 1.2rem;
  padding: 0.35rem 0;
}
.consent input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; accent-color: var(--teal-dark); }
.lead-form .btn { width: 100%; }
.form-note { text-align: center; font-size: 0.78rem; color: var(--text-soft); margin-top: 0.8rem; }
.wa-fallback {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--text);
}
.wa-fallback a { font-weight: 700; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); padding: 3.2rem 0 2.5rem; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 2.4rem; }
.site-footer .logo { color: #fff; margin-bottom: 0.7rem; display: inline-block; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #7fe0dc; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.disclaimer { font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); margin-top: 1.2rem; }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -6px 24px rgba(10, 31, 46, 0.14);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
}
.mobile-cta svg { width: 21px; height: 21px; }
.mobile-cta .cta-wa { background: var(--wa); color: var(--ink); }
.mobile-cta .cta-main { background: var(--teal-dark); color: #fff; }

/* ---------- WhatsApp float (desktop) ---------- */
.wa-float {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Language suggestion pill ---------- */
.lang-suggest {
  position: fixed;
  top: 4.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 1.5rem);
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.lang-suggest a {
  background: var(--teal-dark);
  color: #fff;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.lang-suggest span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-suggest button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}
@media (max-width: 480px) {
  .lang-suggest { font-size: 0.78rem; gap: 0.5rem; padding-left: 0.9rem; }
  .lang-suggest a { padding: 0.35rem 0.8rem; }
}

/* ---------- Reveal animation (JS-gated: full content without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover, .btn:active, .wa-float:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .tech-grid .tech-photo { order: -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 105;
    overflow-y: auto;
    padding: 5rem 1.5rem 2rem;
  }
  .nav-open .main-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.3s ease;
  }
  body.nav-open { overflow: hidden; }
  .main-nav a:not(.btn) { color: var(--ink) !important; font-size: 1.25rem; }
  .lang-switch { border-color: var(--line); }
  .lang-switch a { color: var(--text-soft); }

  /* Privacy pages: simple inline nav, not the overlay */
  .main-nav--inline {
    position: static;
    transform: none;
    visibility: visible;
    flex-direction: row;
    background: none;
    padding: 0;
    overflow: visible;
  }
  .main-nav--inline a:not(.btn) { font-size: 0.95rem; }

  .mobile-cta { display: grid; }
  .wa-float { display: none; }
  .hero { min-height: auto; padding-top: 6.5rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .site-footer { padding-bottom: 7rem; }
}
