/* ============================================================
   St Jean Dental Care — Stylesheet
   "Warm Clinical Elegance"
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Colors — Warm Teal + Coral Palette */
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #14b8a6;

  --color-secondary: #f97316;
  --color-secondary-dark: #ea580c;
  --color-secondary-light: #fb923c;

  --color-accent: #fed7aa;
  --color-accent-light: #ffedd5;

  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;

  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --color-text-light: #a8a29e;
  --color-text-inverse: #ffffff;

  --color-border: #e7e5e4;
  --color-border-light: #f5f5f4;

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-error: #ef4444;

  /* Typography — Outfit + DM Sans */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Font Sizes — Fluid Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.925rem + 0.375vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing — 4px Base Scale */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-6);

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — Subtle, Tactile */
  --shadow-sm: 0 1px 2px 0 rgb(28 25 23 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(28 25 23 / 0.1), 0 2px 4px -2px rgb(28 25 23 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(28 25 23 / 0.1), 0 4px 6px -4px rgb(28 25 23 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(28 25 23 / 0.1), 0 8px 10px -6px rgb(28 25 23 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-modal: 400;

  /* Header Height */
  --header-height: 4.5rem;
}

/* ============================================================
   2. CSS RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
}
h2 {
  font-size: var(--text-3xl);
}
h3 {
  font-size: var(--text-xl);
}

p {
  max-width: 65ch;
}

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

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* Focus Styles — Accessible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ============================================================
   3. LAYOUT — Container & Grid
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--space-16);
}

.section--accent {
  background-color: var(--color-accent-light);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

/* ============================================================
   4. COMPONENTS — Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--font-medium);
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--full {
  width: 100%;
}

/* Button Variants */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
}

.btn--primary:active {
  background-color: var(--color-primary-dark);
}

.btn--secondary {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background-color: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--ghost:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn__icon {
  flex-shrink: 0;
}

/* ============================================================
   5. HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: var(--z-header);
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo */
.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.logo__subtext {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Navigation */
.header__nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-primary);
}

.nav__link--active::after {
  background-color: var(--color-primary);
}

/* Header Actions */
.header__actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Menu Toggle */
.header__menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: var(--space-1);
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.header__menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop Styles */
@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .header__actions {
    display: flex;
  }

  .header__menu-toggle {
    display: none;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-surface);
    padding: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: var(--z-header);
    display: flex;
    flex-direction: column;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    flex: 1;
  }

  .nav__link {
    font-size: var(--text-xl);
  }

  .mobile-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
  }

  .mobile-cta .btn {
    justify-content: center;
  }
}

/* Hide mobile CTA on desktop */
@media (min-width: 768px) {
  .mobile-cta {
    display: none;
  }
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: var(--space-16);
  background-image: url("../images/hero.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.85) 0%,
    rgba(28, 25, 23, 0.75) 100%
  );
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content {
  max-width: 650px;
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-6);
  color: var(--color-text-inverse);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 50ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Ghost button override for hero */
.hero .btn--ghost {
  color: var(--color-text-inverse);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .hero__content {
    max-width: 700px;
  }
}

/* Fallback for mobile (iOS doesn't support background-attachment: fixed) */
@supports (-webkit-touch-callout: none) {
  .hero {
    background-attachment: scroll;
    background-size: cover;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* ============================================================
   7. PLACEHOLDERS
   ============================================================ */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background-color: var(--color-border-light);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-muted);
}

.placeholder__icon {
  opacity: 0.5;
}

.placeholder__text {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.placeholder--hero {
  width: 100%;
  aspect-ratio: 4/3;
  max-width: 500px;
}

.placeholder--tech {
  width: 100%;
  aspect-ratio: 16/9;
}

.placeholder--doctor {
  width: 280px;
  height: 350px;
}

.placeholder--map {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 200px;
}

/* ============================================================
   8. TRUST BAR
   ============================================================ */
.trust-bar {
  background-color: var(--color-surface);
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8) var(--space-12);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-bar__icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

.trust-bar__text {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
}

/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background-color: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.service-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================================
   10. TECHNOLOGY SECTION
   ============================================================ */
.technology__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .technology__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tech-card__image {
  width: 100%;
  overflow: hidden;
  background-color: #f0ede8;
  position: relative;
}

.tech-card__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
  padding: var(--space-4);
  mix-blend-mode: multiply;
}

.tech-card:hover .tech-card__image img {
  transform: scale(1.03);
}

.tech-card__content {
  padding: var(--space-8);
}

.tech-card__title {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.tech-card__subtitle {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.tech-card__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.tech-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tech-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.tech-card__features li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ============================================================
   11. DOCTOR SECTION
   ============================================================ */
.doctor__inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .doctor__inner {
    grid-template-columns: auto 1fr;
  }
}

.doctor__image {
  display: flex;
  justify-content: center;
}

.doctor__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.doctor__name {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.doctor__credentials {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.doctor__bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: var(--leading-relaxed);
}

.doctor__quote {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  padding-left: var(--space-6);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-8);
}

/* ============================================================
   12. CONTACT SECTION
   ============================================================ */
.contact__grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact__block-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.contact__address {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.contact__hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.contact__hours-row dt {
  color: var(--color-text);
}

.contact__hours-row dd {
  color: var(--color-text-muted);
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact__link:hover {
  color: var(--color-primary);
}

.contact__link-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Contact Form */
.contact__form {
  background-color: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form__group {
  margin-bottom: var(--space-5);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--color-text-light);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px;
  padding-right: var(--space-10);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__privacy {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-text-inverse);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   14. ANIMATIONS
   ============================================================ */

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Hero Entrance Animations */
.hero__title {
  animation: fadeInUp 0.8s ease-out both;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero__actions {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Trust Bar Animation */
.trust-bar__item {
  animation: fadeInUp 0.6s ease-out both;
}

.trust-bar__item:nth-child(1) {
  animation-delay: 0.4s;
}
.trust-bar__item:nth-child(2) {
  animation-delay: 0.5s;
}
.trust-bar__item:nth-child(3) {
  animation-delay: 0.6s;
}

/* Scroll-Triggered Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animations */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.animate-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(8) {
  transition-delay: 0.7s;
  opacity: 1;
  transform: translateY(0);
}
.animate-stagger.is-visible > *:nth-child(9) {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}

/* Section Header Animations */
.section__header.animate-on-scroll.is-visible .section__title {
  animation: fadeInUp 0.6s ease-out both;
}

.section__header.animate-on-scroll.is-visible .section__subtitle {
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

/* ============================================================
   15. ENHANCED MICRO-INTERACTIONS
   ============================================================ */

/* Service Card Enhanced Hover */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon svg {
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1);
}

/* Tech Card Hover */
.tech-card {
  transition: all var(--transition-base);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Button Ripple Effect (subtle) */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease-out,
    height 0.4s ease-out;
}

.btn:active::after {
  width: 200px;
  height: 200px;
}

/* Contact Link Hover */
.contact__link {
  position: relative;
}

.contact__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.contact__link:hover::after {
  width: 100%;
}

/* Form Input Focus Glow */
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  box-shadow:
    0 0 0 3px rgba(13, 148, 136, 0.15),
    0 0 20px rgba(13, 148, 136, 0.1);
}

/* ============================================================
   16. VISUAL FLOURISHES
   ============================================================ */

/* Technology Section Gradient */
.technology {
  position: relative;
}

.technology::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, rgba(13, 148, 136, 0.05), transparent);
  pointer-events: none;
}

/* Doctor Section Decorative Element */
.doctor {
  position: relative;
}

.doctor::before {
  content: "";
  position: absolute;
  top: var(--space-16);
  left: 0;
  width: 100px;
  height: 100px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
  pointer-events: none;
}

/* Placeholder Gradient Shimmer */
.placeholder {
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================================
   17. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll,
  .animate-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   18. UTILITIES
   ============================================================ */
.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;
}
