/* =========================================================
   SR HOSPITAL — Stylesheet
   1. Reset  2. Variables  3. Global  4. Typography  5. Header
   6. Hero  7. Trust  8. About  9. Doctor  10. Services
   11. Why Us  12. Appointment  13. Contact  14. Map
   15. Footer  16. Mobile Bottom Bar  17. Media Queries
   18. Accessibility  19. Reduced Motion
   ========================================================= */

/* 1. RESET ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* 2. VARIABLES ---------------------------------------------
   A deep clinical ink-teal replaces the generic "medical blue"
   card kit; a warm parchment background (rather than cold grey
   or clinical white) gives the site institutional warmth. The
   single warm amber accent is used sparingly, as a seal/mark —
   never as a wash or gradient. */
:root {
  --ink:        #0f2b38;
  --ink-2:      #143b4c;
  --teal:       #0c7a6b;
  --teal-dark:  #075c50;
  --amber:      #b9793a;
  --paper:      #f7f4ec;
  --paper-2:    #efe9db;
  --white:      #ffffff;
  --text:       #1d2b2f;
  --muted:      #5c6b6e;
  --border:     #e3ddcc;
  --border-2:   #cfd8d6;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 43, 56, 0.08);
  --shadow-md: 0 12px 32px rgba(15, 43, 56, 0.12);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* 3. GLOBAL ------------------------------------------------ */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
main { display: block; }
section { padding: var(--space-6) 0; }
.section-alt { background: var(--paper-2); }
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--teal-dark);
}
.section-ink .eyebrow { color: #8fd6c8; }
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-4);
}
.section-head p {
  color: var(--muted);
  margin-top: var(--space-2);
  font-size: 1.05rem;
}
.section-ink .section-head p { color: #c7d6d3; }
.rule {
  width: 44px;
  height: 3px;
  background: var(--amber);
  border: none;
  margin: var(--space-2) 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
.section-ink .btn-outline { color: var(--paper); border-color: rgba(247,244,236,0.35); }
.section-ink .btn-outline:hover { border-color: #8fd6c8; color: #8fd6c8; }
.btn-whatsapp {
  background: #1f8a5f;
  color: var(--white);
}
.btn-whatsapp:hover { background: #176b48; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* 4. TYPOGRAPHY --------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--paper); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text); }
.text-muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* 5. HEADER --------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(15,43,56,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.main-nav { display: flex; }
.main-nav ul { display: flex; gap: var(--space-4); }
.main-nav a {
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--teal-dark); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--amber);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-phone {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-phone svg { flex-shrink: 0; }
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.hamburger:hover { background: var(--paper-2); }
.hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger .bar::before, .hamburger .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.hamburger .bar::before { top: -7px; }
.hamburger .bar::after { top: 7px; }
.hamburger[aria-expanded="true"] .bar { background: transparent; }
.hamburger[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--paper);
  z-index: 99;
  padding: var(--space-3) 1.25rem var(--space-5);
  overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-nav a.active { color: var(--teal-dark); }
.mobile-nav .btn { margin-top: var(--space-3); }

/* 6. HERO ------------------------------------------------- */
.hero {
  padding: var(--space-5) 0 var(--space-6);
  background:
    radial-gradient(circle at 88% 12%, rgba(12,122,107,0.07), transparent 55%),
    var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-5);
  align-items: center;
}
.hero-label {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin-bottom: var(--space-2);
  display: inline-block;
}
.hero h1 { margin-bottom: var(--space-2); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin-bottom: var(--space-3); }
.hero-doctor-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: var(--space-2) 0;
  margin-bottom: var(--space-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-doctor-line strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.hero-doctor-line span { color: var(--muted); font-size: 0.95rem; }
.hero-doctor-line .sep { color: var(--border-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-media { position: relative; }
.doctor-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  box-shadow: var(--shadow-md);
  max-width: 420px;
  margin: 0 auto;
}
.doctor-card img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.doctor-card-tag {
  position: absolute;
  left: 1.5rem;
  bottom: -1.1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.doctor-card-tag strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }

/* image fallback (shown if photo file is missing) */
.img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-2);
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  padding: 1rem;
  aspect-ratio: 4/5;
  border-radius: 8px;
}

/* 7. TRUST -------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: calc(var(--space-5) * -1);
  position: relative;
  z-index: 2;
}
.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.trust-card .icon {
  width: 40px; height: 40px;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.trust-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.trust-card p { color: var(--muted); font-size: 0.92rem; }

/* 8. ABOUT --------------------------------------------------*/
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.about-media img, .about-media .img-fallback {
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.feature-list { margin-top: var(--space-3); display: grid; gap: 0.65rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text); }
.feature-list svg { flex-shrink: 0; color: var(--teal); margin-top: 3px; }

/* 9. DOCTOR --------------------------------------------------*/
.doctor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: center;
}
.doctor-grid .doctor-card { max-width: 100%; }
.doctor-name { font-size: 1.6rem; margin-top: var(--space-2); }
.doctor-cred { color: var(--teal-dark); font-weight: 600; margin-top: 0.3rem; }
.doctor-desc { margin-top: var(--space-3); color: var(--muted); max-width: 55ch; }

/* 10. SERVICES ------------------------------------------------*/
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .icon { width: 38px; height: 38px; color: var(--teal); margin-bottom: var(--space-2); }
.service-card h3 { margin-bottom: 0.4rem; font-size: 1.08rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

/* 11. WHY US -------------------------------------------------*/
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.why-item { display: flex; gap: var(--space-2); }
.why-item .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber);
  min-width: 2ch;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.why-item p { color: #c7d6d3; font-size: 0.93rem; }

/* 12. APPOINTMENT ---------------------------------------------*/
.appointment-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: flex-start;
}
.appointment-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: var(--space-3); }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink-2);
}
.form-row .req { color: var(--amber); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 1rem;
}
.form-row input:focus, .form-row textarea:focus {
  border-color: var(--teal);
  outline: none;
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field-error {
  display: none;
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}
.form-row.has-error input, .form-row.has-error textarea { border-color: #b3261e; }
.form-row.has-error .field-error { display: block; }
.form-success {
  display: none;
  background: #eaf6f0;
  border: 1px solid #b7e0cb;
  color: #1f6b45;
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-3);
}
.form-success.is-visible { display: block; }
.appointment-side { display: flex; flex-direction: column; gap: var(--space-3); }
.side-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,244,236,0.18);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.side-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.side-card p { color: #c7d6d3; font-size: 0.95rem; }
.whatsapp-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: #0f4b39;
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.whatsapp-card svg { flex-shrink: 0; color: #4fd48a; }
.whatsapp-card .btn { margin-top: 0.6rem; }

/* 13. CONTACT --------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
}
.contact-card .icon { width: 34px; height: 34px; color: var(--teal); flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }
.contact-card .btn { margin-top: 0.6rem; }
.hours-card {
  grid-column: 1 / -1;
  background: var(--paper-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
}
.hours-card h3 { margin-bottom: 0.4rem; }
.hours-card p { color: var(--muted); margin-bottom: var(--space-2); }

/* 14. MAP ------------------------------------------------------*/
.location-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-4);
  align-items: stretch;
}
.location-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 220px;
}
.location-photo img, .location-photo .img-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-photo { min-height: 200px; }
}
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}
.map-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background: var(--white);
  padding: var(--space-3);
}
.map-caption p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 640px) {
  .map-embed { height: 260px; }
  .map-caption { flex-direction: column; align-items: flex-start; }
}
.map-placeholder {
  background:
    linear-gradient(135deg, var(--paper-2) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(225deg, var(--paper-2) 25%, transparent 25%) -10px 0/20px 20px,
    linear-gradient(315deg, var(--paper-2) 25%, transparent 25%) 0 0/20px 20px,
    linear-gradient(45deg,  var(--paper-2) 25%, var(--paper) 25%) 0 0/20px 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-3);
}
.map-placeholder svg { width: 46px; height: 46px; color: var(--teal); }
.map-placeholder p { max-width: 40ch; color: var(--muted); }

/* 15. FOOTER -----------------------------------------------------*/
.site-footer { background: var(--ink); color: #c7d6d3; padding: var(--space-5) 0 var(--space-4); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(247,244,236,0.12);
}
.footer-brand { font-family: var(--font-display); color: var(--paper); font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: var(--space-2); font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { display: grid; gap: 0.6rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8ea3a0;
}

/* 16. MOBILE BOTTOM BAR --------------------------------------------*/
.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(15,43,56,0.1);
}
.mobile-bottom-bar ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.mobile-bottom-bar a, .mobile-bottom-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.7rem 0.4rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  width: 100%;
}
.mobile-bottom-bar svg { width: 20px; height: 20px; color: var(--teal); }
.mobile-bottom-bar li + li { border-left: 1px solid var(--border); }

/* scroll-to-top */
.scroll-top-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 95;
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* page hero (inner pages) */
.page-hero { padding: var(--space-5) 0 var(--space-4); background: var(--ink); color: var(--paper); }
.page-hero .eyebrow { color: #8fd6c8; }
.page-hero h1 { color: var(--paper); margin-bottom: var(--space-2); }
.page-hero p { color: #c7d6d3; max-width: 60ch; }

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.2rem;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* 17. RESPONSIVE MEDIA QUERIES -------------------------------------*/
@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .doctor-grid { gap: var(--space-4); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto var(--space-2); }
  .about-grid, .doctor-grid, .appointment-wrap, .contact-grid { grid-template-columns: 1fr; }
  .doctor-grid .hero-media, .doctor-grid .doctor-card { max-width: 380px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: var(--space-5) 0; }
  .trust-grid { grid-template-columns: 1fr; margin-top: var(--space-3); }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-bottom { flex-direction: column; }
  .hero-actions .btn, .hero-actions a { flex: 1 1 100%; }
  .form-two { grid-template-columns: 1fr; }
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 64px; }
  .contact-card { flex-direction: column; }
}

@media (max-width: 380px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.9rem; }
}

/* 18. ACCESSIBILITY --------------------------------------------------*/
:focus { outline-color: var(--amber); }
.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;
}

/* 19. REDUCED MOTION --------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
