/* 18. Responsive layout — consolidated alignment/padding system */

/* Compact desktop / laptop */
@media (max-width:1100px){
  :root{--section-space:84px;}
  .container{width:min(calc(100% - 40px),var(--container));}
  .header-row{height:92px;gap:16px;}
  .brand img{width:146px;height:92px;}
  .site-header.is-scrolled .header-row{height:76px;}
  .site-header.is-scrolled .brand img{width:124px;height:74px;}
  .header-actions .btn-header{display:none;}
  .nav-list>li>a,.nav-parent-row>a{padding:12px 8px;font-size:.84rem;}
  .mega-menu{width:min(760px,84vw);}

  .section-head{gap:42px;margin-bottom:42px;}
  .section-head.centered{margin-bottom:42px;}
  .split-grid,.transport-grid{gap:52px;}
  .services-mosaic .service-tile,.services-mosaic .service-tile.featured{grid-column:span 6;}
  .feature-band,.participant-panel{gap:42px;padding:42px 44px;}
  .alternating-features article{gap:44px;}
  .form-layout,.contact-layout{gap:40px;}

  .hero-slider.advanced-slider{height:clamp(500px,calc(100svh - 128px),610px);min-height:500px;max-height:610px;}
  .advanced-slider .hero-copy-card{width:min(620px,100%);padding:24px 27px 26px;}
  .advanced-slider .hero-content h1,.advanced-slider .hero-content h2{font-size:clamp(2.25rem,4.7vw,3.55rem);}
  .advanced-slider .hero-content p{font-size:.98rem;}
  .hero-thumbs{padding-right:285px;gap:7px;}
  .hero-thumb span{display:none;}
  .hero-thumb{justify-content:center;min-height:56px;}

  .page-hero{height:400px;min-height:400px;max-height:400px;}
  .page-hero-copy{width:min(640px,100%);max-width:640px;}
  .page-hero h1{font-size:clamp(2rem,4.4vw,3.15rem);}

  .footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:36px 42px;}
  .footer-grid>div:last-child{grid-column:2/4;}
}

/* Tablet / mobile navigation */
@media (max-width:920px){
  :root{--section-space:74px;}
  .container{width:min(calc(100% - 32px),var(--container));}
  .topbar-inner{height:34px;gap:14px;}
  .topbar-contact{gap:12px;}
  .topbar-contact .topbar-email{display:none;}
  .topbar-phone-group a:last-child{display:inline-flex!important;}

  .header-row{height:84px;justify-content:space-between;gap:14px;}
  .brand{min-width:0;}
  .brand img{width:134px;height:84px;}
  .site-header.is-scrolled .header-row{height:72px;}
  .site-header.is-scrolled .brand img{width:114px;height:70px;}
  .header-actions{margin-left:auto;flex:0 0 auto;}
  .menu-toggle{display:flex;margin-left:auto;flex:0 0 48px;width:48px;height:48px;z-index:250;}
  .mobile-nav-close{display:grid;place-items:center;position:absolute;top:18px;right:18px;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;}
  .mobile-nav-close .icon{width:20px;}
  .main-nav{position:fixed;top:0;right:0;width:min(380px,88vw);height:100dvh;margin:0;background:#fff;z-index:200;padding:80px 18px 28px;transform:translateX(105%);transition:transform .3s ease;overflow-y:auto;overscroll-behavior:contain;box-shadow:-10px 0 34px rgba(7,31,49,.13);}
  .main-nav.is-open{transform:translateX(0);}
  .nav-list{display:block;width:100%;}
  .nav-list>li{border-bottom:1px solid var(--line);}
  .nav-list>li>a,.nav-parent-row>a{padding:14px 10px;font-size:.98rem;}
  .nav-parent-row{justify-content:space-between;gap:8px;}
  .nav-parent-row>a{flex:1;}
  .submenu-toggle{width:48px;height:48px;flex:0 0 48px;}
  .mega-menu{position:static;width:100%;display:none;grid-template-columns:1fr;opacity:1;visibility:visible;pointer-events:auto;transform:none!important;border:0;box-shadow:none;padding:0 0 12px;background:transparent;}
  .has-dropdown.is-open .mega-menu{display:grid;}
  .mega-intro{display:none;}
  .mega-menu ul{padding:0 0 0 8px;}
  .mega-menu li a{font-size:.88rem;padding:11px 10px;}
  body.body-menu-open{overflow:hidden;}
  .body-menu-open:before{content:none!important;display:none!important;}

  .section-head,.split-grid,.transport-grid,.final-cta-grid,.feature-band,.service-intro,.participant-panel,.form-layout,.contact-layout{grid-template-columns:1fr;}
  .section-head{display:grid;align-items:start;gap:14px;margin-bottom:38px;}
  .section-head p{margin:0;max-width:680px;}
  .section-head.centered{display:block;margin-bottom:38px;}
  .section-head.centered p{margin-top:14px;}
  .split-grid,.transport-grid,.service-intro{gap:36px;}
  .split-copy{max-width:none;}
  .service-intro.reverse .service-intro-copy{order:0;}
  .service-intro figure{order:0;}

  .hero-slider.advanced-slider{height:clamp(520px,calc(100svh - 118px),610px);min-height:520px;max-height:610px;}
  .advanced-slider .hero-content{justify-content:flex-start!important;align-items:flex-start;padding-top:42px!important;padding-bottom:146px!important;}
  .advanced-slider .hero-copy-card{width:min(590px,100%);max-width:590px;margin:0;padding:21px 24px 23px;text-align:left;}
  .advanced-slider .hero-kicker{font-size:.64rem;margin-bottom:10px;padding:6px 9px;}
  .advanced-slider .hero-content h1,.advanced-slider .hero-content h2{font-size:clamp(2rem,6.3vw,3.05rem);margin-bottom:10px;}
  .advanced-slider .hero-content p{font-size:.93rem;line-height:1.5;margin-bottom:12px;}
  .advanced-slider .hero-actions{gap:8px;margin-top:0;}
  .advanced-slider .hero-actions .btn{min-height:43px;padding:10px 14px;font-size:.78rem;}
  .hero-thumbs{grid-template-columns:repeat(5,1fr);padding-right:0;bottom:78px;gap:6px;}
  .hero-thumb{min-height:48px;padding:7px 6px;border-radius:11px;}
  .hero-thumb b{font-size:.68rem;}
  .advanced-slider .hero-controls{bottom:20px;justify-content:flex-end;}
  .advanced-slider .slide-progress{display:block;width:100px;margin-left:10px;}

  .page-hero{height:380px;min-height:380px;max-height:380px;}
  .page-hero-inner{padding-top:30px;padding-bottom:32px;gap:16px;}
  .page-hero-copy{width:min(600px,100%);max-width:600px;padding:20px 23px 22px;}
  .page-hero .breadcrumbs ol{font-size:.7rem;line-height:1.3;}
  .page-hero .eyebrow{font-size:.64rem;margin-bottom:9px;}
  .page-hero h1{font-size:clamp(1.9rem,6vw,2.8rem);margin-bottom:9px;}
  .page-hero p{font-size:.91rem;line-height:1.48;}

  .values-wrap{min-height:auto;}
  .values-photo{width:100%;height:450px;}
  .values-panel{position:relative;right:auto;top:auto;transform:none;width:90%;margin:-78px auto 0;padding:38px 40px;}
  .values-wrap:hover .values-panel{transform:none;}
  .process-timeline{grid-template-columns:repeat(2,1fr);gap:34px 0;}
  .process-timeline:before{display:none;}
  .principle-grid{grid-template-columns:repeat(2,1fr);}
  .alternating-features{gap:54px;}
  .alternating-features article{grid-template-columns:1fr;gap:24px;}
  .alternating-features article:nth-child(even) div{order:0;}
  .vacancy-grid{grid-template-columns:1fr;}
  .service-list-card,.service-list-card:nth-child(even){grid-template-columns:1fr;}
  .service-list-card:nth-child(even) .service-list-image{order:0;}
  .service-list-image img{min-height:270px;max-height:370px;}
  .service-list-copy{padding:32px 30px 34px;}
  .detail-grid{grid-template-columns:1fr;gap:16px;}
  .related-grid{grid-template-columns:1fr 1fr;}
  .feature-band,.participant-panel{gap:28px;padding:36px 38px;}
  .form-layout,.contact-layout{gap:30px;}
  .form-aside,.contact-details{position:static;}

  .footer-grid{grid-template-columns:1fr 1fr;gap:34px 40px;}
  .footer-grid>div:last-child{grid-column:auto;}

  .mobile-quick-actions{position:fixed;left:0;right:0;bottom:0;z-index:145;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:62px;background:#fff;border-top:1px solid rgba(9,47,76,.12);box-shadow:0 -8px 26px rgba(7,31,49,.12);padding-bottom:env(safe-area-inset-bottom,0px);transition:transform .25s ease;}
  .mobile-quick-actions a{min-width:0;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 5px;font-size:.71rem;line-height:1.15;font-weight:850;text-align:center;border-right:1px solid rgba(9,47,76,.09);}
  .mobile-quick-actions a:last-child{border-right:0;}
  .mobile-quick-actions .icon{width:20px;height:20px;}
  .mobile-quick-actions .mqa-call{color:#fff;background:var(--brand-primary-dark);}
  .mobile-quick-actions .mqa-map{color:#fff;background:var(--brand-secondary);}
  .mobile-quick-actions .mqa-whatsapp{color:#102a3d;background:var(--brand-lime);}
  .mobile-quick-actions a:focus-visible{outline:3px solid #ffba43;outline-offset:-4px;}
  body{padding-bottom:calc(62px + env(safe-area-inset-bottom,0px));}
  .body-menu-open .mobile-quick-actions{transform:translateY(110%);}
}

/* Phones */
@media (max-width:700px){
  :root{--section-space:64px;}
  body{font-size:16px;}
  .container{width:min(calc(100% - 24px),var(--container));}
  .topbar-inner{height:32px;justify-content:center;}
  .topbar-contact{display:none;}
  .provider-mark{font-size:.69rem;gap:8px;}
  .header-row{height:76px;gap:10px;}
  .brand img{width:116px;height:74px;}
  .site-header.is-scrolled .header-row{height:68px;}
  .site-header.is-scrolled .brand img{width:104px;height:66px;}
  .menu-toggle{width:46px;height:46px;flex-basis:46px;}
  .main-nav{width:min(360px,94vw);padding:76px 16px 24px;}
  .mobile-nav-close{top:15px;right:15px;}

  h2{font-size:clamp(1.85rem,8vw,2.65rem);}
  .lead{font-size:1.05rem;}
  .section-head{display:block;margin-bottom:32px;}
  .section-head p{margin-top:12px;}
  .section-head.centered{margin-bottom:32px;}

  .hero-slider.advanced-slider{height:clamp(480px,calc(100svh - 108px),580px)!important;min-height:480px!important;max-height:580px!important;}
  .advanced-slider .hero-overlay{background:linear-gradient(90deg,rgba(5,28,44,.92),rgba(5,28,44,.64));}
  .advanced-slider .hero-content{justify-content:center!important;padding-top:20px!important;padding-bottom:70px!important;}
  .advanced-slider .hero-copy-card{width:100%!important;max-width:540px;margin:0!important;padding:17px 18px 19px;border-radius:17px;}
  .advanced-slider .hero-kicker{font-size:.59rem;line-height:1.25;margin-bottom:8px;padding:5px 8px;}
  .advanced-slider .hero-content h1,.advanced-slider .hero-content h2{font-size:clamp(1.85rem,8.2vw,2.55rem);line-height:1.07;margin-bottom:8px;}
  .advanced-slider .hero-content p{font-size:.87rem;line-height:1.45;margin-bottom:10px;max-width:500px;}
  .advanced-slider .hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:7px;}
  .advanced-slider .hero-actions .btn{flex:0 1 auto;min-height:41px;padding:9px 12px;font-size:.74rem;}
  .hero-thumbs{display:none;}
  .advanced-slider .hero-controls{bottom:15px;justify-content:flex-start;align-items:center;}
  .advanced-slider .slide-progress{width:84px;margin-left:7px;}
  .slider-nav>button{height:38px;min-width:38px;}
  .pause-toggle{padding:0 11px!important;}
  .slider-counter{height:38px;font-size:.72rem;}

  .page-hero{height:350px;min-height:350px;max-height:350px;padding:0;}
  .page-hero-inner{padding-top:22px;padding-bottom:24px;gap:13px;}
  .page-hero-copy{width:100%;max-width:560px;padding:17px 18px 19px;border-radius:16px;}
  .page-hero .breadcrumbs ol{font-size:.66rem;gap:6px;}
  .page-hero .eyebrow{font-size:.59rem;margin-bottom:7px;letter-spacing:.11em;}
  .page-hero h1{font-size:clamp(1.68rem,7.8vw,2.35rem);line-height:1.08;margin-bottom:7px;}
  .page-hero p{font-size:.84rem;line-height:1.43;}

  .trust-grid{grid-template-columns:1fr 1fr;}
  .trust-grid>div{justify-content:flex-start;border-bottom:1px solid var(--line);padding:15px 11px;}
  .trust-grid>div:nth-child(2){border-right:0;}
  .services-mosaic{display:block;}
  .service-tile,.service-tile.featured{margin-bottom:15px;}
  .service-body{padding:21px 21px 23px;}
  .process-timeline{grid-template-columns:1fr;gap:24px;}
  .process-timeline li{text-align:left;padding:0 0 0 76px;min-height:68px;}
  .process-timeline li>span{position:absolute;left:0;top:0;margin:0;width:56px;height:56px;}
  .values-photo{height:360px;}
  .values-panel{width:94%;padding:28px 24px;margin-top:-52px;}
  .area-grid,.why-grid,.principle-grid{grid-template-columns:1fr;}
  .area-grid article,.why-grid article,.principle-grid article,.vacancy-grid article{padding:27px 24px;}
  .why-grid .icon{margin-bottom:20px;}
  .testimonial-controls{margin-top:16px;justify-content:flex-start;}
  .testimonial>p{font-size:1.42rem;}
  .testimonial footer{margin-top:22px;}
  .feature-band,.participant-panel{padding:29px 24px;}
  .service-list-image img{min-height:210px;max-height:300px;}
  .service-list-copy{padding:26px 22px 28px;}
  .detail-card{padding:25px 23px;}
  .related-grid{grid-template-columns:1fr;}
  .related-card{padding:20px;}
  .form-grid{grid-template-columns:1fr;gap:16px;}
  .form-card{padding:25px 19px;}
  .form-grid fieldset{padding:17px 14px;}
  .form-switcher{gap:5px;padding:5px;}
  .form-switcher a{flex:1 1 calc(50% - 5px);padding:9px 8px;}
  .contact-cards>a,.contact-cards>div{padding:16px;}
  .map-section{height:310px;}
  .modal{padding:10px;}
  .modal-panel{padding:32px 18px 22px;max-height:94vh;}

  .final-cta.section{padding:58px 0;}
  .final-cta-grid{gap:22px;}
  .cta-actions{gap:9px;}
  .site-footer{padding-top:50px;}
  .footer-grid{grid-template-columns:1fr;gap:30px;}
  .footer-bottom{display:grid;grid-template-columns:1fr;gap:8px;margin-top:36px;padding:18px 0;text-align:left;}
  .footer-bottom div{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;}
}

/* Small phones */
@media (max-width:430px){
  :root{--section-space:56px;}
  .container{width:min(calc(100% - 20px),var(--container));}
  .provider-mark{font-size:.66rem;}
  .header-row{height:72px;}
  .brand img{width:108px;height:70px;}
  .site-header.is-scrolled .header-row{height:64px;}
  .site-header.is-scrolled .brand img{width:98px;height:62px;}
  .menu-toggle{width:44px;height:44px;flex-basis:44px;}
  .main-nav{width:100vw;max-width:none;padding:72px 14px 22px;box-shadow:none;}
  .mobile-nav-close{top:14px;right:14px;width:42px;height:42px;}

  .hero-slider.advanced-slider{height:clamp(470px,calc(100svh - 104px),550px)!important;min-height:470px!important;max-height:550px!important;}
  .advanced-slider .hero-content{padding-top:14px!important;padding-bottom:62px!important;}
  .advanced-slider .hero-copy-card{padding:15px 15px 17px!important;}
  .advanced-slider .hero-content h1,.advanced-slider .hero-content h2{font-size:clamp(1.62rem,8.3vw,2.15rem);}
  .advanced-slider .hero-content p{font-size:.83rem;}
  .advanced-slider .hero-actions .btn{flex:1 1 138px;min-width:0;}
  .advanced-slider .slide-progress{width:66px;}
  .slider-counter{padding-inline:4px;}

  .page-hero{height:340px;min-height:340px;max-height:340px;}
  .page-hero-inner{padding-top:18px;padding-bottom:20px;gap:11px;}
  .page-hero-copy{padding:15px 15px 17px;}
  .page-hero h1{font-size:clamp(1.55rem,8vw,2.08rem);}
  .page-hero p{font-size:.81rem;}

  .trust-grid{grid-template-columns:1fr;}
  .trust-grid>div{border-right:0;}
  .process-timeline li{padding-left:70px;}
  .values-photo{height:320px;}
  .values-panel{width:96%;padding:24px 19px;}
  .area-grid article,.why-grid article,.principle-grid article,.vacancy-grid article{padding:24px 20px;}
  .participant-panel,.feature-band{padding:25px 20px;}
  .form-actions .btn,.final-cta .btn{width:100%;}
  .footer-phone-list{display:grid;gap:3px;}
  .footer-phone-list>span{display:none;}
  .mobile-quick-actions a{font-size:.68rem;}
}

/* Very narrow phones */
@media (max-width:350px){
  .container{width:min(calc(100% - 16px),var(--container));}
  .advanced-slider .hero-actions{display:grid;grid-template-columns:1fr;width:100%;}
  .advanced-slider .hero-actions .btn{width:100%;}
  .advanced-slider .hero-copy-card{padding:14px 13px 15px!important;}
  .page-hero-copy{padding:14px 13px 15px;}
  .form-switcher a{flex-basis:100%;}
}

@media (min-width:921px){.mobile-quick-actions{display:none!important;}}

@media (hover:none),(pointer:coarse){
  .service-tile:hover,.service-list-card:hover,.principle-grid article:hover,.vacancy-grid article:hover,.area-grid article:hover,.detail-card:hover,.contact-cards>a:hover,.contact-cards>div:hover,.why-grid article:hover,.process-timeline li:hover,.related-card:hover{transform:none;}
  .section-interactive:hover .eyebrow{transform:none;}
  .section-interactive:before,.section-interactive:after{display:none;}
}

@media (prefers-reduced-motion:reduce){
  .main-nav,.mobile-quick-actions{transition:none;}
}
