@media (max-width: 1199.98px) {
    :root { --header-height: 74px; }
    .site-header { top: 8px; right: 10px; left: 10px; height: var(--header-height); border-radius: 18px; background: transparent; box-shadow: none; }
    .site-header.scrolled { top: 8px; height: 66px; background: rgba(3,20,38,.82); border-color: rgba(255,255,255,.08); box-shadow: 0 8px 30px rgba(3,20,38,.12); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
    .site-header.scrolled .brand-logo-light { opacity: 1; }
    .site-header.scrolled .brand-logo-dark { opacity: 0; }
    .site-header.scrolled .menu-toggle { background: rgba(255,255,255,.10); color: var(--white); }
    .site-header.scrolled .brand-logo { width: 140px; }
    .navbar-brand { width: 150px; }
    .hero h1 { font-size: clamp(3.5rem, 7.5vw, 5.8rem); }
    .trust-bar { grid-template-columns: repeat(3, 1fr); }
    .trust-item { border: 1px solid rgba(0,60,130,.08); }
    .service-featured { grid-column: span 12; }
    .service-medium { grid-column: span 6; }
    .service-small { grid-column: span 4; }
    .services-why { grid-template-columns: 1fr; gap: 30px; }
    .institutional-copy { padding-right: 30px; }
    .values { grid-template-columns: repeat(2, 1fr); }
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
    .sector-card { height: 390px; }
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .project-card:first-child { grid-column: 1 / -1; min-height: 500px; }
    .project-card { min-height: 470px; }
    .quick-actions { right: 8px; }
}

@media (max-width: 991.98px) {
    .section { padding: 100px 0; }
    .hero { min-height: 820px; }
    .hero-media { background-position: 63% center; }
    .hero-overlay { background: rgba(3,20,38,.48); }
    .hero-overlay::before { width: 72%; background: rgba(3,20,38,.68); }
    .hero-note { display: none; }
    .hero-content { padding-top: calc(var(--header-height) + 40px); }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
    .section-heading > p { max-width: 620px; }
    .institutional-card { grid-template-columns: 1fr; }
    .institutional-image { min-height: 470px; margin: -28px 20px 0 -28px; }
    .institutional-copy { padding: 45px 35px 55px; }
    .stats-row > div { padding: 10px 25px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-intro { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    html { scroll-padding-top: 84px; }
    body { padding-bottom: 18px; }
    .container { padding-right: 20px; padding-left: 20px; }
    :root { --header-height: 72px; }
    .site-header { top: 6px; right: 6px; left: 6px; height: var(--header-height); border-radius: 16px; }
    .site-header.scrolled { top: 6px; height: 64px; }
    .site-header .navbar { padding: 0 10px; }
    .brand-logo { width: 135px; }
    .hero { min-height: 750px; margin: 0 5px; border-radius: 0 0 28px 28px; }
    .hero-media { background-position: 58% center; }
    .hero-overlay { background: rgba(3,20,38,.64); }
    .hero-overlay::before { width: 100%; background: rgba(3,20,38,.30); }
    .hero-content { padding-top: calc(var(--header-height) + 40px); padding-bottom: 45px; }
    .hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); line-height: .94; }
    .hero-copy > p { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .scroll-cue { display: none; }
    .trust-wrap { margin-top: -24px; }
    .trust-bar { padding: 8px 8px 14px; gap: 7px; grid-template-columns: repeat(2, 1fr); border-radius: 22px; box-shadow: 0 22px 45px rgba(3,20,38,.18); }
    .trust-item { min-height: 100px; padding: 12px 9px; gap: 8px; border-radius: 15px; box-shadow: 0 5px 0 rgba(3,20,38,.26), 0 10px 16px rgba(3,20,38,.12); transform: translateY(-2px); }
    .trust-item i { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; font-size: 1.08rem; }
    .trust-item strong { font-size: .78rem; }
    .trust-item span { font-size: .67rem; }
    .section { padding: 82px 0; }
    .section-heading { margin-bottom: 36px; }
    .section-heading h2, .clients-heading h2 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
    .services-grid { grid-template-columns: 1fr; }
    .service-featured, .service-medium, .service-small { grid-column: auto; grid-row: auto; }
    .service-featured, .service-medium, .service-small { min-height: 430px; }
    .service-featured .card-image, .service-medium .card-image, .service-small .card-image { height: 100%; }
    .card-image { height: 100%; }
    .card-body { right: 10px; bottom: 10px; left: 10px; min-height: 150px; padding: 28px 63px 22px 21px; }
    .services-why { padding: 34px 24px; border-radius: 21px; }
    .services-reasons { grid-template-columns: 1fr; }
    .service-reason { min-height: 0; display: flex; gap: 15px; align-items: center; }
    .service-reason img { width: 58px; height: 60px; margin: 0; flex: 0 0 58px; }
    .institutional-section { padding-top: 0; }
    .institutional-card { padding: 10px; border-radius: 28px; }
    .institutional-image { min-height: 360px; margin: -25px 14px 0 -18px; border-radius: 20px; }
    .institutional-copy { padding: 36px 19px 38px; }
    .institutional-copy h2 { font-size: 2.65rem; }
    .values { grid-template-columns: 1fr 1fr; gap: 12px 5px; }
    .institutional-copy .btn { width: 100%; }
    .section-heading.compact { align-items: flex-start; }
    .sectors-grid { grid-template-columns: 1fr; }
    .sector-card { height: 350px; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card:first-child { grid-column: auto; }
    .project-card, .project-card:first-child { min-height: 430px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-row > div { min-height: 160px; padding: 22px; border-bottom: 1px solid var(--border); }
    .stats-row > div:nth-child(2) { border-right: 0; }
    .stats-row > div:nth-last-child(-n+2) { border-bottom: 0; }
    .stats-row strong { font-size: 3.4rem; }
    .clients-heading { margin-bottom: 40px; text-align: left; }
    .client-logo { width: 170px; height: 86px; }
    .cta-section { padding-top: 10px; }
    .cta-card { min-height: 620px; border-radius: 28px; }
    .cta-content { padding: 65px 27px; }
    .cta-content h2 { font-size: 3.4rem; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
    .cta-benefits { align-items: flex-start; flex-direction: column; gap: 12px; }
    .site-footer { padding: 70px 0 45px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px 25px; }
    .footer-intro, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
    .quick-actions { top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: auto; width: 60px; height: 60px; transform: none; padding: 0; display: block; border: 0; border-radius: 50%; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .quick-actions-toggle { position: relative; z-index: 3; width: 60px; height: 60px; padding: 0; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; background: var(--flaire-navy); color: var(--blue-light); box-shadow: 0 14px 32px rgba(3,20,38,.28); font-size: 1.45rem; }
    .quick-plus { position: absolute; top: -3px; right: -3px; width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--white); border-radius: 50%; background: var(--blue); color: var(--white); font-size: .65rem; transition: transform .3s ease, background-color .3s ease; }
    .quick-actions.is-open .quick-plus { transform: rotate(45deg); background: var(--flaire-blue-light); }
    .quick-actions-menu { position: absolute; right: 70px; bottom: 0; width: min(360px, calc(100vw - 92px)); min-height: 60px; padding: 4px; display: flex; flex-direction: row; justify-content: space-around; overflow: hidden; border: 1px solid rgba(255,255,255,.10); border-radius: 17px; background: rgba(3,20,38,.96); box-shadow: 0 16px 38px rgba(3,20,38,.28); opacity: 0; pointer-events: none; transform: translateX(18px) scaleX(.18); transform-origin: right center; transition: opacity .28s ease, transform .34s cubic-bezier(.22,.8,.3,1); }
    .quick-actions.is-open .quick-actions-menu { opacity: 1; pointer-events: auto; transform: none; }
    .quick-actions a { width: 33.333%; min-height: 52px; padding: 5px 3px; font-size: .63rem; }
    .quick-actions a { color: rgba(255,255,255,.78); }
    .quick-actions a i { color: var(--blue-light); }
    .quick-actions a:hover { background: rgba(255,255,255,.08); color: var(--white); }
    .quick-actions a + a { border-top: 0; border-left: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 379.98px) {
    :root { --header-height: 70px; }
    .hero h1 { font-size: 2.75rem; }
    .eyebrow { letter-spacing: .1em; }
    .trust-item { min-height: 82px; }
    .card-body { padding-right: 65px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-intro, .footer-grid > div:last-child { grid-column: auto; }
}
