/* ==========================================================================
   client-changes.css
   Styles for the 2026-11 client change requests (items 1.1 - 5.4).
   Kept in a separate file: assets/css/site-inline.css has unbalanced braces
   and must not be appended to until that is repaired.
   ========================================================================== */

/* ---------- 2.5 Home: Emergency Services callout ---------- */
.emergency-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 60rem;
    padding: 1.15rem 1.4rem;
    border-radius: 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ea580c;
}

.emergency-callout-icon {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.emergency-callout-title {
    font-size: 1rem;
    font-weight: 700;
    color: #7c2d12;
    margin: 0 0 0.15rem;
}

.emergency-callout-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #9a3412;
    margin: 0;
}

.emergency-callout-tel {
    display: inline-block;
    margin-left: 0.35rem;
    font-weight: 800;
    color: #c2410c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.emergency-callout-tel:hover {
    color: #7c2d12;
}

@media (max-width: 640px) {
    .emergency-callout {
        align-items: flex-start;
        padding: 1rem;
        gap: 0.75rem;
    }
}

/* ---------- 2.4 Home: Feedback / Suggestion form ---------- */
.feedback-section {
    padding: 4.5rem 0;
    background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 55%, #f5f3ff 100%);
}

.feedback-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.feedback-heading {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    margin: 1rem 0 0.6rem;
}

.feedback-subheading {
    font-size: 1rem;
    color: #475569;
    max-width: 42rem;
    margin: 0 auto;
}

.feedback-card {
    max-width: 46rem;
    margin: 2.25rem auto 0;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 18px 45px -18px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
}

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

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feedback-field--full {
    grid-column: 1 / -1;
}

.feedback-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.feedback-input,
.feedback-textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font-size: 0.94rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.feedback-textarea {
    min-height: 8rem;
    resize: vertical;
}

/* Honeypot: hidden from humans and screen readers, not display:none
   (some bots skip display:none fields). */
.feedback-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.9rem 1.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 10px 22px -10px rgba(22, 163, 74, 0.7);
}

.feedback-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(22, 163, 74, 0.8);
}

.feedback-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.feedback-status {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.feedback-status.is-visible {
    display: block;
}

.feedback-status.is-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.feedback-status.is-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.feedback-note {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

@media (max-width: 640px) {
    .feedback-section {
        padding: 3rem 0;
    }

    .feedback-card {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .feedback-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feedback-heading {
        font-size: 1.6rem;
    }
}

/* ---------- 1.1 Nav: "coming soon" badge on Medical Tourism ---------- */
.nav-soon-badge {
    margin-left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.nav-pill-transparent.active .nav-soon-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ---------- 2.1 Home: link inside a Who We Are highlight bullet ---------- */
.about-highlight-link {
    display: inline-block;
    margin-left: 0.4rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-highlight-link:hover {
    color: #1d4ed8;
}

/* Touch devices: the native resize grip reads as broken UI on a mobile card. */
@media (max-width: 640px) {
    .feedback-textarea {
        resize: none;
    }
}

/* Hero primary CTA dropdown (issue 01)
   The trigger is a real <button> (never navigates) and the menu is moved to
   <body> and positioned position:fixed by JS, so it escapes the hero's
   overflow:hidden and the z-index:10 / z-index:100 stacking of the sections
   that follow. Everything here is scoped to .ortho-cta-dropdown /
   #hero-services-menu — the shared .nav-dropdown* rules in site-inline.css
   (header "Fit for Life" dropdown) are untouched.
   Works at every width: on touch there is no hover, the same click toggles. */
.ortho-hero-buttons .ortho-cta-dropdown {
  position: relative;
  display: inline-block;
}

/* <button> must keep the exact look of the <a> it replaced.
   No font-family/font-size here on purpose: .ortho-btn-primary already sets
   them and a higher-specificity `inherit` would undo that. */
.ortho-cta-dropdown .ortho-btn-primary {
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  line-height: inherit;
}

/* The reference stylesheet pushes the arrow 4px right on hover; that is wrong
   for a chevron on a dropdown toggle. Expanded state wins over hover because
   it carries one more class in the selector. */
.ortho-cta-dropdown .ortho-btn-primary:hover .ortho-btn-arrow {
  transform: none;
}
.ortho-hero-buttons .ortho-cta-dropdown .ortho-btn-primary[aria-expanded="true"] .ortho-btn-arrow {
  transform: rotate(180deg);
}

/* Menu: closed by default, opened only by .is-open (set from JS).
   #id specificity outranks the shared .nav-dropdown__menu rules, so nothing
   in site-inline.css can force display:none / opacity:0 / off-centre here. */
#hero-services-menu {
  position: fixed;
  top: 0;
  left: 0; /* real coordinates are written inline by the script */
  z-index: 2147483000;
  display: block;
  min-width: 15rem;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px); /* fallback for browsers without dvh */
  max-height: calc(100dvh - 24px);
  overflow: auto;
  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 0.4rem;
  /* visibility is deliberately NOT transitioned: closing hides and stops
     intercepting clicks in the same frame aria-expanded flips to "false",
     so the attribute and the real visibility can never disagree. */
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#hero-services-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  #hero-services-menu {
    transform: none;
    transition: none;
  }
  #hero-services-menu.is-open {
    transform: none;
  }
  .ortho-cta-dropdown .ortho-btn-arrow {
    transition: none;
  }
}

/* Single-card contact grid centring (issue 06) */
.contact-grid:has(> .contact-card-premium:only-child) {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BEGIN 2026-11 HEADER: logo size + brand name/tagline visibility ===== */
/* Scope: #main-header only. No other component on the site is touched.

   1) LOGO SIZE — enlarged, aspect-ratio locked, contained inside the header.
   .header-logo is 500x500 with ~248x201 of artwork, so the box is ~2.5x the
   visible mark. Boxes below give a visibly larger mark while the symmetric
   negative margins stop the header from growing. width:auto + the intrinsic
   ratio keep it undistorted; there is no object-fit/crop. */
.logo-container img.header-logo {
    transition: height 0.3s ease;
}
@media (max-width: 1023px) {
    .logo-container img.header-logo {
        height: 64px !important;    /* was locked at 44px -> visible mark 18px => 26px */
        width: auto !important;
        margin-top: -10px !important;
        margin-bottom: -10px !important;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .logo-container img.header-logo {
        height: 92px !important;    /* was 88px -> visible mark 35px => 37px */
        width: auto !important;
        margin-top: -2px !important;
        margin-bottom: -2px !important;
    }
    /* 1024-1279 is the tightest band: absorbing the 4px the taller logo adds
       keeps the row from overflowing by 2px, without wrapping or shrinking any
       nav label (label heights measured identical before/after). */
    #main-header nav { min-width: 0; flex-shrink: 1; }
    #main-header .nav-pill-container { gap: .1rem; }
}
@media (min-width: 1280px) {
    .logo-container img.header-logo {
        height: 100px !important;   /* was 96px -> visible mark 39px => 40px, and the box
                                       still fits the 100.19px header row exactly */
        width: auto !important;
        margin-top: -2px !important;
        margin-bottom: -2px !important;
    }
}

/* 2) BRAND TEXT OVER THE DARK VIDEO HERO (homepage only).
   The hero pages paint a dark video behind a near-transparent header, while
   site-inline.css forces .header-text to #1e293b. On those pages only: add a
   top scrim (fades out on scroll, when the header turns solid white) and flip
   the brand name + tagline to white. Pages without a hero keep the existing
   dark-on-light treatment untouched. */
#main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(180deg,
        rgba(6, 24, 44, 0.55) 0%,
        rgba(6, 24, 44, 0.26) 62%,
        rgba(6, 24, 44, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
body:has(.ortho-hero-section) #main-header::before { opacity: 1; }
body:has(.ortho-hero-section) #main-header.scrolled::before { opacity: 0; }

body:has(.ortho-hero-section) #main-header .group .header-text span {
    color: #ffffff !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
}
body:has(.ortho-hero-section) #main-header .group .header-text p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
}
/* Mobile shows the name only, as a gradient-filled clipped text: over the video
   that fills invisibly. Use solid white there instead. */
body:has(.ortho-hero-section) #main-header .mobile-header-text {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    filter: none !important;
    text-shadow: 0 1px 3px rgba(6, 24, 44, 0.55);
}

/* 3) SHARPNESS — the old 3-layer blue drop-shadow stack on the logo softened
   the mark and bled onto the wordmark. Keep a single restrained shadow. */
#main-header .header-logo {
    filter: drop-shadow(0 2px 6px rgba(6, 24, 44, 0.28)) !important;
    -webkit-filter: brightness(1.02) drop-shadow(0 2px 6px rgba(6, 24, 44, 0.28)) !important;
}
#main-header.scrolled .header-logo {
    filter: drop-shadow(0 1px 3px rgba(6, 24, 44, 0.18)) !important;
    -webkit-filter: none !important;
}

/* Reduced motion: no transitions added by this block. */
@media (prefers-reduced-motion: reduce) {
    .logo-container img.header-logo, #main-header::before { transition: none !important; }
}
/* ===== END 2026-11 HEADER ===== */
