/* ==========================================================================
   سمايل كلينيك — Base Stylesheet
   Design tokens, reset, typography and shared layout utilities.
   Component-specific styles live in components.css.
   Breakpoint overrides live in responsive.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Loaded via <link rel="preconnect"> + <link rel="stylesheet"> in
   index.html <head> — faster than an @import, which blocks CSS parsing.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   2. Design tokens — colors, radii, shadows, fonts
   -------------------------------------------------------------------------- */
:root {
  /* -----------------------------------------------------------------------
     Radius scale
     ----------------------------------------------------------------------- */
  --radius: 0.625rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.375rem;
  --radius-4xl: 1.5rem;

  /* -----------------------------------------------------------------------
     Color system — OKLCH palette
     ----------------------------------------------------------------------- */
  --color-background: oklch(1 0 0);
  --color-foreground: oklch(0.33 0.075 252);

  --color-card: oklch(1 0 0);
  --color-card-foreground: oklch(0.24 0.035 250);

  --color-primary: oklch(0.33 0.075 252);
  --color-primary-foreground: oklch(0.985 0.005 240);

  --color-secondary: oklch(0.965 0.012 235);
  --color-secondary-foreground: oklch(0.33 0.075 252);

  --color-muted: oklch(0.968 0.008 235);
  --color-muted-foreground: oklch(0.52 0.026 250);

  --color-accent: oklch(0.62 0.098 205);
  --color-accent-foreground: oklch(0.99 0.005 220);
  --color-accent-soft: oklch(0.955 0.028 205);

  /* -----------------------------------------------------------------------
     Gold — retained for luxury accent elements
     ----------------------------------------------------------------------- */
  --color-gold: oklch(0.68 0.075 75);
  --color-gold-foreground: oklch(0.3 0.045 70);
  --color-gold-soft: oklch(0.96 0.018 80);

  /* -----------------------------------------------------------------------
     Destructive
     ----------------------------------------------------------------------- */
  --color-destructive: oklch(0.577 0.245 27.325);
  --color-destructive-foreground: oklch(0.984 0.003 247.858);

  /* -----------------------------------------------------------------------
     WhatsApp
     ----------------------------------------------------------------------- */
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1fb955;
  --color-whatsapp-foreground: #fff;

  /* -----------------------------------------------------------------------
     Borders & inputs
     ----------------------------------------------------------------------- */
  --color-border: oklch(0.918 0.012 240);
  --color-input: oklch(0.918 0.012 240);
  --color-ring: oklch(0.62 0.098 205);

  /* -----------------------------------------------------------------------
     Surfaces
     ----------------------------------------------------------------------- */
  --color-surface: oklch(0.982 0.006 235);
  --color-surface-soft: oklch(0.968 0.008 235);

  /* -----------------------------------------------------------------------
     Shadows
     ----------------------------------------------------------------------- */
  --shadow-card:
    0 1px 2px oklch(0.33 0.075 252 / 0.05),
    0 10px 28px -6px oklch(0.33 0.075 252 / 0.09);

  --shadow-hover:
    0 4px 8px oklch(0.33 0.075 252 / 0.06),
    0 22px 48px -10px oklch(0.33 0.075 252 / 0.14);

  --shadow-soft:
    0 20px 60px -20px oklch(0.33 0.075 252 / 0.18);

  /* -----------------------------------------------------------------------
     Typography
     ----------------------------------------------------------------------- */
  --font-display: "Cairo", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, sans-serif;

  /* -----------------------------------------------------------------------
     Layout
     ----------------------------------------------------------------------- */
  --container-max: 80rem;
  --container-padding: 1.25rem;
}



/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--color-border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

iframe {
  border: 0;
}

/* Default keyboard-focus ring for interactive elements. .btn and form
   fields define their own focus-visible treatment in components.css,
   which — being a class selector — naturally takes precedence here. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1,
h2{
  font-family: ui-sans-serif ;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}


h3,
h4 {
  font-family:'Tajawal';
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.eyebrow__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.text-muted {
  color: var(--color-muted-foreground);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: hidden until keyboard-focused. */
.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.625rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

main {
  flex: 1 1 auto;
}

.section {
  padding-block: 4.5rem;
}

.section--bordered {
  border-block: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.section--border-top {
  border-block-start: 1px solid var(--color-border);
}

.section-heading {
  max-width: 42rem;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading__title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--color-foreground);
}

.section-heading__desc {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 2rem;
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   6. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: currentColor;
  /* color: var(--color-foreground);; */
}

.icon--sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon--md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* --------------------------------------------------------------------------
   7. Motion
   -------------------------------------------------------------------------- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise-in 0.5s ease-out both;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 1s linear infinite;
}

section[id],
:target {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise,
  .spin {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Scroll reveal — class is only ever added by JS (see initScrollReveal),
   so content stays fully visible if scripting is unavailable. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  order: 1;
      margin-top: 10px;
  opacity: 1;
  transform: none;
}
