/* عيادات د. عادل العماري — shared styles */
:root {
  --red: #C8102E;
  --red-dark: #9B0C24;
  --red-soft: #FCE8EB;
  --navy: #103460;
  --navy-deep: #0A2444;
  --navy-mid: #1A4A7A;
  --ink: #1A2332;
  --muted: #5A6B7D;
  --line: #E4E9F0;
  --paper: #ffffff;
  --wash: #F5F7FA;
  --wash-navy: #F0F4F8;
  --whatsapp: #128C7E;
  --whatsapp-dark: #0E6E63;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(16, 52, 96, 0.08);
  --shadow-sm: 0 4px 14px rgba(16, 52, 96, 0.06);
  --header-h: 7.5rem;
  --max: 1120px;
  --focus: 0 0 0 3px rgba(200, 16, 46, 0.35);
}

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

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

html[lang="ar"] body {
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[lang="en"] body {
  font-family: "Inter", "Tajawal", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 1.0625rem;
  min-height: 100vh;
}

html[lang="ar"] .en { display: none !important; }
html[lang="en"] .ar { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--red);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* Header */
.topbar {
  height: 4px;
  background: var(--red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}
.wordmark:hover { color: var(--navy); }

.wordmark-logo {
  display: block;
  height: 6rem;
  width: auto;
  flex-shrink: 0;
}

.footer-brand .wordmark-logo {
  box-sizing: content-box;
  height: 5rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.4rem;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wordmark-brand {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--navy);
}

.wordmark-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

.header-tools {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--wash);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  min-height: 2.25rem;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.85rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}
.site-nav a:not(.btn):hover { color: var(--red); }
.site-nav a.is-active:not(.btn) {
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { color: #fff; }
.btn:active { transform: translateY(1px); }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-deep); color: #fff; }

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--wash-navy); }

.btn-lg { padding: 0.9rem 1.45rem; font-size: 1.02rem; }

.icon-svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--wash-navy) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner, .section-inner, .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.7rem;
}

.hero h1 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  font-weight: 800;
}

.hero .title-line {
  margin: 0 0 1.15rem;
  color: var(--navy-mid);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
}

.lead {
  margin: 0 0 1.6rem;
  color: var(--ink);
  font-size: 1.08rem;
  max-width: 40rem;
}

html[lang="ar"] .lead, html[lang="ar"] .prose p { line-height: 1.85; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  display: grid;
  gap: 0.3rem;
}
.hero-meta strong { color: var(--navy); font-weight: 700; }

/* Portrait slot */
.portrait-wrap { display: flex; justify-content: center; }

.portrait-slot {
  margin: 0;
  width: min(100%, 22rem);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #1A4A7A 0%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}

.portrait-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}

.portrait-slot picture,
.portrait-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 12%;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
}

.monogram {
  width: 6.2rem;
  height: 6.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(200, 16, 46, 0.85);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.portrait-hint {
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.95;
}
.portrait-note {
  font-size: 0.78rem;
  opacity: 0.7;
  max-width: 14rem;
  line-height: 1.5;
}

/* Sections */
.section { }
.section-wash { background: var(--wash); }
.section-navy {
  background: var(--navy-deep);
  color: #fff;
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-intro { color: rgba(255,255,255,0.86); }
.section-navy .clinic-card p { color: var(--ink); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
}

h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 800;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cred-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.cred-card .num {
  color: var(--red);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.cred-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.areas-grid .area-card { grid-column: span 2; }
.areas-grid .area-card:nth-child(n+4) { grid-column: span 3; }

.area-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.area-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.area-icon svg { width: 1.3rem; height: 1.3rem; }
.area-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.area-card h3 { margin: 0 0 0.2rem; }

.clinic-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.clinic-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
}

.section-navy .clinic-card h3 { color: var(--navy); }

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.info-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.info-ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--wash-navy);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-ico svg { width: 1.1rem; height: 1.1rem; }

.info-list .lbl {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.info-list .val {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.info-list a.val:hover { color: var(--red); }
.info-list p { margin: 0; }

.note-16 {
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--wash);
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* About */
.about-hero .hero-inner { align-items: start; }

.bio-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.bio-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.bio-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.bio-list li:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.bio-list li:first-child { padding-top: 0.2rem; }

.bio-k {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.bio-v {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.55;
}

.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  border-inline-start: 3px solid var(--red-soft);
  padding-inline-start: 1.15rem;
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1.15rem - 6.5px);
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.timeline .when {
  display: block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.88rem;
}
.timeline p { margin: 0.1rem 0 0; color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.88);
  border-top: 4px solid var(--red);
}

.footer-inner {
  padding-top: 2.4rem;
  padding-bottom: 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffd4db; }

.footer-brand .wordmark-brand { color: #fff; }
.footer-brand .wordmark-sub { color: rgba(255,255,255,0.7); }
.footer-brand .wordmark { margin-bottom: 0.8rem; }
.footer-brand p { margin: 0; font-size: 0.95rem; }

.foot-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.disclaimer {
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.copy {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4);
  text-decoration: none;
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; }
.wa-float svg { width: 1.85rem; height: 1.85rem; }

/* Utilities */
.nowrap { white-space: nowrap; }

.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;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .clinic-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cred-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 2rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
  .portrait-slot { width: min(100%, 20rem); }
  .about-hero .portrait-wrap { order: -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    inset-inline: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 0.75rem 0.5rem; }
  .site-nav .btn { width: 100%; margin-top: 0.35rem; }
  .areas-grid, .cred-grid { grid-template-columns: 1fr; }
  .areas-grid .area-card,
  .areas-grid .area-card:nth-child(n+4) { grid-column: auto; }
  .header-inner { padding: 0.6rem 1rem; min-height: 5.7rem; }
  .hero-inner, .section-inner, .footer-inner { padding-inline: 1rem; }
  .wordmark { gap: 0.4rem; }
  .wordmark-logo { height: 4.5rem; }
  .wordmark-brand { font-size: 0.86rem; line-height: 1.25; }
  .wordmark-sub { display: none; }
  .footer-brand .wordmark-logo { height: 4.25rem; }
  .portrait-slot { width: min(100%, 16.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-float { transition: none; }
}


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

/* Photo bands & galleries */
.robot-band {
  background: var(--navy-deep);
  color: #fff;
}
.robot-band h2 { color: #fff; }
.robot-band .eyebrow { color: #ffd4db; }
.robot-band p { color: rgba(255,255,255,0.88); }

.robot-band-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2.2rem;
  align-items: center;
}

.band-photo {
  margin: 0;
}
.band-photo img,
.photo-card img,
.clinic-photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}
.band-photo img { aspect-ratio: 3 / 2; }
.photo-card img { aspect-ratio: 3 / 2; }

.band-photo figcaption,
.photo-card figcaption,
.clinic-photo-card figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}
.robot-band figcaption { color: rgba(255,255,255,0.72); }
.section-navy figcaption { color: rgba(255,255,255,0.78); }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.photo-card { margin: 0; }

.about-gallery {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.about-gallery .gallery-team {
  grid-row: 1 / span 2;
}
.about-gallery .gallery-team img {
  aspect-ratio: 4 / 5;
  height: 100%;
}

.clinic-grid-3 {
  grid-template-columns: 1.15fr 0.7fr 0.9fr;
}
.clinic-photo-card {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
}
.clinic-photo-card img {
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  .robot-band-inner,
  .about-gallery,
  .clinic-grid-3 {
    grid-template-columns: 1fr;
  }
  .about-gallery .gallery-team { grid-row: auto; }
  .about-gallery .gallery-team img { aspect-ratio: 4 / 5; max-height: 32rem; width: 100%; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .clinic-photo-card { max-width: 20rem; }
}

@media (max-width: 560px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* News page and homepage teaser */
.page-hero .hero-inner {
  display: block;
  padding-top: 2.4rem;
  padding-bottom: 1.8rem;
}
.page-hero h1 {
  max-width: 40rem;
}

.news-article {
  max-width: none;
}
.news-article .prose {
  max-width: 44rem;
}
.news-lead {
  margin: 0 0 1.25rem;
}
.news-lead img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 16px;
}
.news-lead figcaption {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 500;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 0;
}
.news-gallery .photo-card img {
  aspect-ratio: 4 / 3;
  object-position: center 35%;
}

.news-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  max-width: 52rem;
}
.news-card:hover { color: inherit; }
.news-card:hover h3 { color: var(--red); }
.news-card .news-card-media {
  margin: 0;
  background: var(--wash-navy);
  flex: 0 0 42%;
  max-width: 42%;
}
.news-card .news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}
.news-card .news-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.news-card .eyebrow { margin: 0; }
.news-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}
.news-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.news-card .more {
  margin-top: 0.7rem;
  color: var(--red);
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .news-card { flex-direction: column; max-width: 28rem; }
  .news-card .news-card-media { flex: auto; max-width: none; }
  .news-gallery { grid-template-columns: 1fr; }
  .news-gallery .photo-card { max-width: 24rem; }
}
@media (max-width: 560px) {
  .news-gallery { grid-template-columns: 1fr; }
}


/* Social links (footer + contact) */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  background: rgba(255,255,255,0.07);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.social-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.social-links svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.social-links--on-light {
  margin: 0;
}

.social-links--on-light a {
  color: var(--navy);
  border-color: var(--line);
  background: var(--wash-navy);
}

.social-links--on-light a:hover,
.social-links--on-light a:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.social-heading {
  margin: 1.25rem 0 0.65rem;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .social-links a { transition: none; }
}
