/* ========================================
   Bright Smile Dental — Essential Tier
   Palette: teal #0e7c86, mint #7fd6c2, air #f7fbfc
   Fonts: IBM Plex Sans Arabic + Noto Kufi Arabic
   ======================================== */

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

:root {
  --teal: #0e7c86;
  --teal-dark: #0a5e65;
  --mint: #7fd6c2;
  --mint-light: #b8ece1;
  --air: #f7fbfc;
  --white: #ffffff;
  --text: #1a2a2e;
  --text-light: #4a6068;
  --border: #d8e8ea;
  --shadow: 0 2px 12px rgba(14,124,134,.10);
  --shadow-lg: 0 8px 32px rgba(14,124,134,.14);
  --radius: 10px;
  --radius-lg: 16px;
  --font-body: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', sans-serif;
  --font-heading: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --max-w: 1120px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--air);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--teal);
}
.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 40px;
  text-align: center;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem;
  color: var(--teal);
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: .92rem; font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.main-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: var(--teal); color: var(--white);
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: .85rem; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
}
.lang-toggle:hover { background: var(--teal-dark); }

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.hamburger span {
  display: block; width: 100%; height: 3px; background: var(--teal);
  border-radius: 2px; position: absolute; left: 0;
  transition: transform .3s, opacity .3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--white); padding: 24px 20px;
  box-shadow: var(--shadow-lg); z-index: 99;
}
.mobile-nav.active { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 18px; }
.mobile-nav a {
  font-size: 1.05rem; font-weight: 500; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--border);
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  padding: 40px 20px; max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  padding: 8px 20px; border-radius: 24px;
  font-size: .88rem; font-weight: 500;
  color: var(--white); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero-sub {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer; transition: all .25s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--white); color: var(--teal);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--mint-light); border-color: var(--mint-light); color: var(--teal-dark); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-full { width: 100%; justify-content: center; }

/* ── Services ── */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--air);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow .3s, transform .3s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 2rem; margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.card p {
  font-size: .92rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 14px;
}
.price {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
}

/* ── About ── */
.about { background: var(--air); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.about-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-text .section-title { text-align: start; }
.about-text p { color: var(--text-light); margin-bottom: 14px; }
.about-highlights {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-highlights li {
  font-size: .95rem; font-weight: 500;
  color: var(--teal);
}

/* ── Testimonials ── */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card { text-align: center; }
.stars {
  color: #f4a623; font-size: 1.2rem;
  margin-bottom: 12px; letter-spacing: 2px;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.8;
}
.testimonial-name {
  font-weight: 600; color: var(--teal);
  font-size: .95rem;
}

/* ── Contact ── */
.contact { background: var(--air); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-item {
  display: flex; gap: 14px; margin-bottom: 20px;
}
.contact-icon { font-size: 1.4rem; }
.contact-item strong {
  display: block; margin-bottom: 2px;
  font-size: .95rem;
}
.contact-item p {
  font-size: .9rem; color: var(--text-light);
  line-height: 1.6;
}
.contact-item a { color: var(--teal); font-weight: 600; }

.contact-form-wrap h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem; margin-bottom: 20px;
  color: var(--teal);
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label {
  display: block; font-size: .88rem; font-weight: 500;
  margin-bottom: 6px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem; font-family: var(--font-body);
  color: var(--text); background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input.error,
.form-group select.error {
  border-color: #e04040;
}
.form-note {
  font-size: .82rem; color: var(--text-light);
  text-align: center; margin-top: 4px;
}

/* ── Footer ── */
.site-footer {
  background: #0a3a3e; color: rgba(255,255,255,.8);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 36px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem;
  color: var(--mint); display: block;
  margin-bottom: 12px;
}
.footer-col p { font-size: .9rem; line-height: 1.7; margin-bottom: 8px; }
.footer-col strong {
  display: block; margin-bottom: 12px;
  color: var(--white); font-size: .95rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.7);
  font-size: .9rem; padding: 3px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 16px 20px; text-align: center;
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: .82rem;
}
.footer-bottom a { color: var(--mint); }

/* ── Mobile Action Bar ── */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--teal);
  padding: 10px 16px;
  z-index: 100;
  justify-content: center; gap: 16px;
}
.mobile-bar-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--white); font-weight: 600;
  font-size: .92rem;
  background: rgba(255,255,255,.15);
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s;
}
.mobile-bar-btn:hover { background: rgba(255,255,255,.25); color: var(--white); }

/* ── CSS Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 80vh; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bar { display: flex; }
  body { padding-bottom: 60px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (min-width: 901px) {
  .mobile-bar { display: none !important; }
}

/* ── RTL/LTR ── */
[dir="ltr"] .hero-badge { direction: ltr; }
[dir="ltr"] .contact-item p,
[dir="ltr"] .footer-col p { direction: ltr; text-align: left; }

/* ── Legal page ── */
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.legal-card h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.legal-card p {
  color: var(--text-light);
  font-size: .95rem;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
