/* ==========================================================================
   عيادات نايل — نظام التصميم المشترك
   ========================================================================== */

:root {
  --blue-900: #1c2d52;
  --blue-800: #243a69;
  --blue-700: #2e4a85;
  --blue-600: #39599e;
  --blue-100: #e7edf8;
  --blue-50: #f3f6fc;
  --green-700: #155536;
  --green-600: #1c6e46;
  --green-100: #e3f1ea;
  --ink: #1a2233;
  --ink-soft: #3f4a5e;
  --muted: #56617a;
  --line: #dde3ee;
  --surface: #ffffff;
  --bg: #f7f9fc;
  --whatsapp: #128c4b;

  --font: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-h1: clamp(1.9rem, 1.4rem + 2.6vw, 3.4rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(28, 45, 82, 0.06), 0 2px 8px rgba(28, 45, 82, 0.05);
  --shadow: 0 6px 24px rgba(28, 45, 82, 0.09);
  --shadow-lg: 0 18px 48px rgba(28, 45, 82, 0.16);
  --space: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  text-align: start;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.35;
  color: var(--blue-900);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid #f2a93b;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--blue-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-900);
  color: #dfe6f5;
  font-size: var(--fs-sm);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.4rem;
}

.topbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  min-width: 0;
}

.topbar li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

.topbar .hours {
  display: none;
}

@media (min-width: 900px) {
  .topbar .hours {
    display: flex;
  }
}

@media (max-width: 559px) {
  .topbar {
    display: none;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(221, 227, 238, 0.9);
  transition: box-shadow 0.25s var(--ease);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--blue-900);
  min-width: 0;
  min-height: 48px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--green-600);
  font-weight: 600;
}

.primary-nav {
  display: none;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background-color 0.2s;
}

.primary-nav a:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.primary-nav a[aria-current="page"] {
  color: var(--blue-700);
}

.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.8rem;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--green-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn {
  display: none;
}

@media (min-width: 640px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  color: var(--blue-900);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

@media (min-width: 1100px) {
  .primary-nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 48, 0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer.is-open .drawer-scrim {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(86vw, 360px);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}

[dir="ltr"] .drawer-panel {
  transform: translateX(-100%);
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.drawer-title {
  font-weight: 700;
  color: var(--blue-900);
}

.drawer nav ul {
  list-style: none;
  padding: 0.75rem;
}

.drawer nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 1rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.drawer nav a:hover {
  background: var(--blue-50);
}

.drawer nav a[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-800);
  border-inline-start: 4px solid var(--green-600);
}

.drawer-foot {
  margin-top: auto;
  padding: 1rem var(--gutter) 1.5rem;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(57, 89, 158, 0.3);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-green {
  background: var(--green-600);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-700);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0d6f3b;
}

.btn-outline {
  border-color: var(--blue-600);
  color: var(--blue-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-600);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--blue-800);
}

.btn-light:hover {
  background: var(--blue-100);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.lead {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(28, 110, 70, 0.55), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(120, 156, 230, 0.35), transparent 50%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.hero .hero-sub {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #cfe0ff;
  margin-bottom: 1.5rem;
}

.hero p {
  color: #e4ebf8;
  max-width: 60ch;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.hero-card h2 {
  color: #fff;
  font-size: var(--fs-h3);
}

.stat-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
}

.stat-list strong {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.2;
  color: #fff;
}

.stat-list span {
  font-size: var(--fs-sm);
  color: #dbe5f7;
}

.hours-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-sm);
}

.hours-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.4rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(28, 110, 70, 0.5), transparent 45%),
    linear-gradient(135deg, var(--blue-900), var(--blue-600));
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}

.page-hero p {
  color: #e4ebf8;
  max-width: 70ch;
  font-size: var(--fs-lg);
  margin: 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
}

.breadcrumb li + li::before {
  content: "‹";
  margin-inline-end: 0.5rem;
  color: #b9c8e6;
}

[dir="ltr"] .breadcrumb li + li::before {
  content: "›";
}

.breadcrumb a {
  color: #fff;
}

.breadcrumb [aria-current="page"] {
  color: #cfdcf3;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  min-width: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c7d3ea;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--blue-100);
  color: var(--blue-700);
}

.icon-badge svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge.green {
  background: var(--green-100);
  color: var(--green-600);
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231c6e46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.check-list .en {
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* ---------- About / split ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.quote-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  background: linear-gradient(145deg, var(--blue-50), var(--green-100));
  border: 1px solid var(--line);
}

.quote-panel .big {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.quote-panel .motto {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--green-700);
}

/* ---------- Pillars (social mission) ---------- */
.pillars {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pillars li {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
  text-align: center;
  min-width: 0;
}

.pillars strong {
  display: block;
  font-size: var(--fs-h3);
  color: var(--blue-700);
  margin-bottom: 0.3rem;
}

.pillars span {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

/* ---------- Doctors ---------- */
.doctor-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
}

.avatar.derm {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
}

.doctor-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.2em;
}

.doctor-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.tag {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--blue-100);
  color: var(--blue-800);
}

.tag.green {
  background: var(--green-100);
  color: var(--green-700);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-bar button {
  min-height: 48px;
  padding-inline: 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-bar button:hover {
  border-color: var(--blue-600);
  color: var(--blue-700);
}

.filter-bar button[aria-pressed="true"] {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

[hidden] {
  display: none !important;
}

/* ---------- Tabs ---------- */
.tabs [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tabs [role="tab"] {
  min-height: 48px;
  padding-inline: 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: #fff;
}

/* ---------- Partners ---------- */
.partner-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .partner-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .partner-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.partner-list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.5;
  min-width: 0;
}

.partner-list small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--muted);
  direction: ltr;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(120deg, var(--green-700), var(--green-600) 45%, var(--blue-700));
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: minmax(0, 1.6fr) auto;
  }
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #eaf5ef;
  margin: 0;
}

/* ---------- Media ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.media.logo-wide {
  aspect-ratio: 1600 / 503;
}

/* ---------- Articles / News ---------- */
.post {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-meta time {
  font-weight: 700;
  color: var(--green-700);
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  box-shadow: var(--shadow-sm);
}

.article h3 {
  margin-top: 1.5em;
}

.age-table {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-block: 1.25rem;
}

@media (min-width: 760px) {
  .age-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.age-table > div {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--blue-600);
  padding: 1.1rem 1.25rem;
  background: var(--blue-50);
}

.age-table h4 {
  margin-bottom: 0.3em;
}

.age-table p {
  margin: 0;
  font-size: var(--fs-sm);
}

.note {
  border-radius: var(--radius);
  background: var(--green-100);
  border-inline-start: 4px solid var(--green-600);
  padding: 1rem 1.25rem;
  color: var(--green-700);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding-block: 0.75rem;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  color: var(--ink-soft);
  padding-bottom: 1rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}

.contact-item .icon-badge {
  margin: 0;
  flex: none;
}

.contact-item h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.15em;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  font-weight: 700;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.field label {
  font-weight: 700;
  color: var(--blue-900);
  font-size: var(--fs-sm);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 1rem;
  border: 1px solid #b9c3d6;
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5f6b82;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(57, 89, 158, 0.2);
}

.field .hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.5em;
  font-weight: 700;
  color: var(--green-700);
  margin: 0;
}

.form-status.is-error {
  color: #b42318;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.hours-table th,
.hours-table td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.hours-table th {
  color: var(--blue-900);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-900);
  color: #c9d4ea;
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
}

.site-footer h2 {
  color: #fff;
  font-size: var(--fs-lg);
  margin-bottom: 1rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer .brand-tag {
  color: #9fdcbc;
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s, transform 0.2s;
}

.social a:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

/* ---------- Floating actions ---------- */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-800);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-float {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
