/*
 * HomeCure refresh: same navy (#1C2769) and teal (#1F9E86) brand, institutional finish.
 * Naskh headings, Almarai text, 18px body, near-square corners, navy hero block.
 * Loaded after the original stylesheets; !important is needed because the home page uses inline styles.
 */
:root {
  --hc-navy: #1C2769;
  --hc-navy-deep: #141B3D;
  --hc-teal: #1F9E86;
  --hc-teal-light: #7FDCC8;
  --hc-ink: #1A2140;
  --hc-muted: #4A5370;
  --hc-line: #DCE2EC;
  --hc-head: "Noto Naskh Arabic", "Noto Serif", Georgia, serif;
  --hc-text: "Almarai", "Noto Kufi Arabic", Arial, sans-serif;
}
html[lang="en"] { --hc-head: "Noto Serif", Georgia, serif; }

/* ---------- Type: one text family, one heading family ---------- */
body, .home-content, .home-content p, .home-content li, .home-content a, .home-content span, .home-content label,
.home-content button, .home-content input, .home-content select, .home-content textarea,
body:not(.optimised-home) * {
  font-family: var(--hc-text) !important;
}
.home-content { font-size: 18px !important; line-height: 1.8 !important; background: #FFFFFF !important; }
.home-content h1, .home-content h2, .home-content h3,
body:not(.optimised-home) h1, body:not(.optimised-home) h2, body:not(.optimised-home) h3 {
  font-family: var(--hc-head) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}
.home-content strong, .home-content b { font-family: var(--hc-text) !important; }
svg, svg * { font-family: inherit !important; }

/* ---------- Corners: near-square, like the hospital references ---------- */
.home-content a, .home-content button, .home-content input, .home-content select, .home-content textarea, .home-content form,
body:not(.optimised-home) a[class], body:not(.optimised-home) button, body:not(.optimised-home) input,
body:not(.optimised-home) select, body:not(.optimised-home) textarea {
  border-radius: 6px !important;
}

/* ---------- Header ---------- */
.home-header { background: #FFFFFF !important; position: sticky; top: 0; z-index: 30; }
.home-header-inner { min-height: 76px !important; max-width: 1240px !important; }
.home-main-nav a { font-family: var(--hc-text) !important; font-weight: 700 !important; font-size: 16px !important; color: var(--hc-ink) !important; border-bottom: 2px solid transparent; }
.home-main-nav a:hover { color: var(--hc-navy) !important; border-bottom-color: var(--hc-navy); }
.home-header-actions > a[href^="tel:"] {
  border: 1px solid var(--hc-navy); border-radius: 6px; padding: 10px 16px !important; color: var(--hc-navy) !important; font-weight: 700 !important;
}
.emergency-banner { font-size: 15px !important; }

/* ---------- Hero: full-width navy block, white text, the enquiry form as a white card ---------- */
.home-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--hc-navy) 0%, var(--hc-navy-deep) 100%) !important;
  padding-block: 80px 96px !important;
}
.home-hero::after {
  content: ""; position: absolute; inset-inline-start: -120px; bottom: -160px; width: 520px; height: 640px; pointer-events: none;
  background: url("/assets/logo-mark.png") no-repeat center / contain; opacity: 0.05;
}
.home-hero-grid { position: relative; z-index: 1; max-width: 1240px !important; }
.home-hero h1 {
  color: #FFFFFF !important; font-family: var(--hc-head) !important; font-weight: 600 !important;
  font-size: clamp(34px, 4vw, 54px) !important; line-height: 1.4 !important;
}
.home-hero-copy > p:first-child { color: var(--hc-teal-light) !important; font-family: var(--hc-text) !important; font-size: 15px !important; }
.home-hero-copy > p:first-child span { background: var(--hc-teal-light) !important; }
.home-hero-copy p, .home-hero-copy li { color: rgba(255, 255, 255, 0.88) !important; }
.home-hero-copy li svg { color: var(--hc-teal-light) !important; stroke: var(--hc-teal-light) !important; }
.home-hero-copy a {
  color: #FFFFFF !important; border: 2px solid rgba(255, 255, 255, 0.85) !important; background: transparent !important;
  min-height: 52px !important; padding-inline: 26px !important; font-weight: 700 !important; font-size: 17px !important;
}
.home-hero-copy a:hover { background: rgba(255, 255, 255, 0.1) !important; }
.home-hero form {
  border: 0 !important; border-radius: 8px !important;
  box-shadow: 0 24px 60px rgba(8, 12, 40, 0.35) !important;
}
.home-hero form h2 { font-size: 26px !important; color: var(--hc-ink) !important; }
.hc-btn { min-height: 54px !important; font-size: 17px !important; font-weight: 700 !important; background: var(--hc-navy) !important; }
.hc-btn:hover { background: #26339B !important; }

/* ---------- Sections ---------- */
.home-content section h2 { font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.45 !important; }
.home-services { border-block: 0 !important; }
.home-services .hc-row { border-color: var(--hc-line) !important; padding-block: 22px !important; }
.home-services .hc-row h3, .home-services .hc-row strong:first-child { font-size: 21px !important; color: var(--hc-ink) !important; }
.home-services .hc-row a { font-weight: 700 !important; }
.home-steps h3 { color: #FFFFFF !important; font-size: 22px !important; }
.home-faq { background: #F4F6FA !important; }
.home-final-cta h2 { color: #FFFFFF !important; font-size: clamp(30px, 3.4vw, 46px) !important; }
.home-final-cta a { min-height: 54px !important; font-size: 17px !important; font-weight: 700 !important; }
.home-footer { background: #10163A !important; }

/* ---------- Inner pages (services, contact, booking, privacy) ---------- */
body:not(.optimised-home) { font-size: 18px; line-height: 1.85; color: var(--hc-ink); background: #FFFFFF; }
body:not(.optimised-home) h1 { font-size: clamp(36px, 4.2vw, 56px) !important; line-height: 1.35 !important; color: var(--hc-navy-deep) !important; }
body:not(.optimised-home) h2 { font-size: clamp(22px, 2.2vw, 28px) !important; color: var(--hc-ink) !important; }
body:not(.optimised-home) main a[class] { min-height: 52px; font-weight: 700 !important; font-size: 16px !important; }
body:not(.optimised-home) footer { background: #10163A !important; }

body:not(.optimised-home) header nav a { font-size: 15px !important; font-weight: 700 !important; }
.home-main-nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .home-main-nav { gap: 6px 18px !important; flex-wrap: wrap; }
  .home-main-nav a { font-size: 15px !important; padding-block: 6px !important; }
  .home-hero { padding-block: 48px 64px !important; }
  .home-hero::after { display: none; }
  .home-header { position: static; }
}
