/* Jerome Unique Engineering Limited — shared header and responsive layout fixes */
:root {
    --jue-navy: #081627;
    --jue-navy-soft: #102b46;
    --jue-blue: #0284c7;
    --jue-blue-bright: #0ea5e9;
    --jue-text: #1e293b;
    --jue-muted: #64748b;
    --jue-line: #dbe3ec;
}

html { scroll-padding-top: 94px; }
body { overflow-x: clip; }
img, picture, video, canvas, svg { max-width: 100%; }
img { height: auto; }
main, section, article, aside, footer, header, nav { min-width: 0; }
main p, main li, .footer-column p { overflow-wrap: anywhere; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* Slim information strip */
.topbar { position: relative; z-index: 1002; background: #081627; color: #e2e8f0; font-size: .78rem; line-height: 1.35; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 7px; }
.topbar-location, .topbar-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.topbar-contact { justify-content: flex-end; }
.topbar a { color: #f8fafc; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #7dd3fc; }
.topbar-separator { color: #64748b; }

/* Brand and primary navigation */
.site-header { position: sticky; top: 0; z-index: 1001; background: rgba(255,255,255,.98); border-bottom: 1px solid #e2e8f0; box-shadow: 0 5px 20px rgba(8,22,39,.06); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 88px; padding-block: 10px; }
.site-brand { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; min-width: 0; color: var(--jue-navy); text-decoration: none; }
.site-brand:hover { color: var(--jue-navy); }
.site-brand__logo { display: block; flex: 0 0 auto; width: 62px !important; height: 62px !important; max-width: 62px !important; object-fit: contain; border-radius: 4px; }
.site-brand__copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.08; letter-spacing: .045em; }
.site-brand__copy strong { color: #0b2442; font-size: 1rem; font-weight: 900; letter-spacing: .055em; }
.site-brand__copy > span { margin-top: 4px; color: #334155; font-size: .76rem; font-weight: 800; letter-spacing: .09em; }
.site-brand__copy small { margin-top: 6px; color: #64748b; font-size: .64rem; font-weight: 600; letter-spacing: .035em; }
.header-controls { display: flex; align-items: center; justify-content: flex-end; gap: 15px; min-width: 0; }
.header-navigation-wrap { display: flex; align-items: center; gap: 15px; min-width: 0; }

#site-navigation.site-navigation { display: block; margin: 0; padding: 0; max-width: none; }
#site-navigation .navigation-list { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: clamp(8px, .9vw, 15px); margin: 0; padding: 0; list-style: none; }
#site-navigation .navigation-item { position: relative; margin: 0; padding: 0; list-style: none; }
#site-navigation .nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 8px 0; color: #24364b; font-size: .76rem; line-height: 1.25; font-weight: 750; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
#site-navigation .nav-link:hover, #site-navigation .nav-link.is-active, #site-navigation .nav-link[aria-current="page"] { color: var(--jue-blue); border-bottom-color: var(--jue-blue); }
#site-navigation .dropdown-indicator { font-size: .75em; color: #64748b; }
#site-navigation .dropdown-menu { position: absolute; top: calc(100% - 1px); left: -14px; z-index: 1010; display: none; min-width: 210px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 14px 32px rgba(8,22,39,.15); }
#site-navigation .has-dropdown:hover > .dropdown-menu,
#site-navigation .has-dropdown:focus-within > .dropdown-menu { display: block; }
#site-navigation .dropdown-menu li { margin: 0; padding: 0; list-style: none; }
#site-navigation .dropdown-link { display: block; padding: 10px 12px; color: #24364b; font-size: .85rem; line-height: 1.4; border-radius: 5px; }
#site-navigation .dropdown-link:hover { color: var(--jue-blue); background: #f1f7fb; }
.header-cta { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 14px; color: #fff; background: var(--jue-blue); border: 1px solid var(--jue-blue); border-radius: 5px; font-size: .76rem; line-height: 1.25; font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.header-cta:hover { color: #fff; background: #0369a1; transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 42px; padding: 9px; flex: 0 0 auto; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; }
.menu-toggle span { width: 21px; height: 2px; display: block; background: var(--jue-navy); border-radius: 2px; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* Controlled hero image/text balance */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 330px; padding: 48px 0; overflow: hidden; color: #fff; background-color: #0a2038; background-image: linear-gradient(90deg, rgba(5,18,34,.92) 0%, rgba(5,18,34,.76) 52%, rgba(5,18,34,.38) 100%), url('/assets/images/hero/home-hero-jue-ship.jpg'); background-size: cover; background-position: center 45%; background-repeat: no-repeat; border-bottom: 4px solid var(--jue-blue); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; }
.hero .eyebrow { color: #bae6fd; background: rgba(255,255,255,.08); border-left-color: #38bdf8; }
.hero h1 { max-width: 850px; margin: 0 0 14px; color: #fff; font-size: clamp(1.85rem, 3.7vw, 3.1rem); font-weight: 850; line-height: 1.12; letter-spacing: -.025em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .hero-description { max-width: 750px; margin: 0; color: #eef7ff; font-size: clamp(.98rem, 1.3vw, 1.1rem); font-weight: 500; line-height: 1.65; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero .btn { min-height: 46px; padding: 11px 20px; font-size: .9rem; }
.hero .btn--white { color: #0b2442; background: #fff; border-color: #fff; }
.hero .btn--white:hover { color: #0b2442; background: #eaf4fb; border-color: #eaf4fb; }

/* Scale content photos to support the written information */
main img:not(.site-brand__logo), main picture, main video { max-width: 100%; }
.service-image-container, .about-image-container, .gallery-image-container { width: 100%; min-width: 0; overflow: hidden; border-radius: 8px; }
.service-image-container img, .about-image-container img, .gallery-image-container img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.gallery-image-container { aspect-ratio: 4 / 3; background: #eef2f6; }
.gallery-image-container img { height: 100%; max-height: none; }
.card-image-slot { max-width: 100%; }
.card-image-slot img { width: 100%; height: 100%; object-fit: cover; }
main .card > img, main .card .img-fluid { display: block; max-width: 100%; max-height: 300px; object-fit: cover; }
main img.img-fluid.rounded.shadow { width: 100%; max-height: 340px; object-fit: cover; }
video { max-width: 100%; }

/* Safer grid defaults; preserve tidy columns on medium screens */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); min-width: 0; }
.grid:not(.grid--2):not(.grid--3):not(.grid--4) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid > *, .card, .card-content, .service-content, .about-content { min-width: 0; }
.card { height: 100%; }
.card p { line-height: 1.65; }

/* Hero sections on inner pages: let copy determine height instead of cutting it off */
main#main-content > section.page-hero,
main#main-content > section[style*="height: 180px"],
main#main-content > section[style*="height: 160px"],
main#main-content > section[style*="height: 200px"] { height: auto !important; min-height: 185px; padding-block: 26px !important; }
main#main-content > section.page-hero h1,
main#main-content > section[style*="height: 180px"] h1,
main#main-content > section[style*="height: 160px"] h1,
main#main-content > section[style*="height: 200px"] h1 { max-width: 100%; font-size: clamp(1.55rem, 3.2vw, 2.35rem) !important; line-height: 1.16 !important; overflow-wrap: anywhere; }
main#main-content > section.page-hero p,
main#main-content > section[style*="height: 180px"] p,
main#main-content > section[style*="height: 160px"] p,
main#main-content > section[style*="height: 200px"] p { max-width: 850px; }

/* Forms and media should never create horizontal page movement */
input, select, textarea, button { max-width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-width: 0; }
textarea { resize: vertical; }
iframe { max-width: 100%; }
main table { max-width: 100%; }

/* Professional, usable footer */
.site-footer { margin-top: 0; color: #cbd5e1; background: #07111e; border-top: 4px solid #0284c7; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(135px, .8fr)) minmax(220px, 1.1fr); gap: clamp(22px, 3vw, 44px); padding-block: 44px 38px; }
.footer-brand__link { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: .83rem; line-height: 1.35; letter-spacing: .025em; font-weight: 800; text-decoration: none; }
.footer-brand__link:hover { color: #bae6fd; }
.footer-brand__link img { width: 58px; height: 58px; object-fit: contain; border-radius: 4px; background: #fff; }
.footer-brand p, .footer-column p { margin: 14px 0 0; color: #aebdcd; font-size: .88rem; line-height: 1.7; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-column h2 { margin: 4px 0 7px; color: #fff; font-size: .96rem; line-height: 1.3; }
.footer-column a { color: #cbd5e1; font-size: .86rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-column a:hover { color: #7dd3fc; text-decoration: underline; }
.footer-contact p { margin: 0 0 2px; }
.footer-bottom { border-top: 1px solid rgba(203,213,225,.16); background: #050c15; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.footer-bottom p { margin: 0; color: #94a3b8; font-size: .78rem; line-height: 1.5; }

@media (min-width: 1181px) {
    .header-navigation-wrap { display: flex !important; }
    .menu-toggle { display: none !important; }
}

@media (max-width: 1180px) {
    .header-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; min-height: 78px; }
    .site-brand__logo { width: 56px !important; height: 56px !important; max-width: 56px !important; }
    .site-brand__copy strong { font-size: .92rem; }
    .site-brand__copy > span { font-size: .69rem; }
    .site-brand__copy small { font-size: .6rem; }
    .header-controls { display: contents; }
    .menu-toggle { display: flex; grid-column: 2; grid-row: 1; }
    .header-navigation-wrap { grid-column: 1 / -1; display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 7px 0 9px; }
    .header-navigation-wrap.is-open { display: flex; }
    #site-navigation.site-navigation { width: 100%; }
    #site-navigation .navigation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 5px; width: 100%; }
    #site-navigation .navigation-item { min-width: 0; }
    #site-navigation .nav-link { display: flex; justify-content: flex-start; min-height: 42px; padding: 10px 11px; white-space: normal; font-size: .86rem; border: 1px solid #e2e8f0; border-radius: 5px; }
    #site-navigation .dropdown-menu { position: static; min-width: 0; margin: 3px 0 0; box-shadow: none; }
    #site-navigation .has-dropdown:hover > .dropdown-menu, #site-navigation .has-dropdown:focus-within > .dropdown-menu { display: block; }
    .header-cta { width: 100%; min-height: 44px; }
    .hero { min-height: 300px; padding-block: 40px; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .container { width: min(1200px, calc(100% - 32px)); }
    .topbar { font-size: .71rem; }
    .topbar-inner { min-height: 34px; gap: 7px; }
    .topbar-location, .topbar-contact { gap: 6px; }
    .topbar-contact a:last-child, .topbar-contact .topbar-separator { display: none; }
    .header-main { min-height: 72px; padding-block: 8px; }
    .site-brand { gap: 8px; }
    .site-brand__logo { width: 50px !important; height: 50px !important; max-width: 50px !important; }
    .site-brand__copy strong { font-size: .82rem; }
    .site-brand__copy > span { margin-top: 3px; font-size: .61rem; }
    .site-brand__copy small { margin-top: 4px; font-size: .55rem; }
    #site-navigation .navigation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: 0; padding: 38px 0 40px; background-image: linear-gradient(90deg, rgba(5,18,34,.91), rgba(5,18,34,.72)), url('/assets/images/hero/home-hero-jue-ship.jpg'); background-position: 56% center; }
    .hero h1 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
    .hero .hero-description { font-size: .96rem; line-height: 1.6; }
    .hero .hero-actions { gap: 9px; margin-top: 20px; }
    .hero .btn { flex: 1 1 180px; }
    main#main-content > section.page-hero,
    main#main-content > section[style*="height: 180px"],
    main#main-content > section[style*="height: 160px"],
    main#main-content > section[style*="height: 200px"] { min-height: 170px; padding: 24px 0 !important; }
    main#main-content > section.page-hero > .container,
    main#main-content > section[style*="height: 180px"] > .container,
    main#main-content > section[style*="height: 160px"] > .container,
    main#main-content > section[style*="height: 200px"] > .container { padding-inline: 16px !important; }
    main#main-content > section.page-hero h1,
    main#main-content > section[style*="height: 180px"] h1,
    main#main-content > section[style*="height: 160px"] h1,
    main#main-content > section[style*="height: 200px"] h1 { font-size: clamp(1.45rem, 6vw, 2rem) !important; }
    .grid--2, .grid--3, .grid--4, .grid[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .service-image-container img, .about-image-container img { max-height: 300px; }
    .footer-main { gap: 26px 20px; padding-block: 34px; }
    .footer-bottom__inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (max-width: 560px) {
    html { scroll-padding-top: 80px; }
    body { font-size: 15px; line-height: 1.65; }
    .container { width: min(1200px, calc(100% - 28px)); }
    .topbar-inner { flex-direction: column; align-items: flex-start; padding-block: 7px; }
    .topbar-location { gap: 6px; }
    .topbar-contact { padding-left: 21px; }
    .site-brand__logo { width: 46px !important; height: 46px !important; max-width: 46px !important; }
    .site-brand__copy strong { font-size: .77rem; }
    .site-brand__copy > span { font-size: .57rem; letter-spacing: .055em; }
    .site-brand__copy small { font-size: .51rem; letter-spacing: 0; }
    .menu-toggle { width: 41px; height: 40px; }
    #site-navigation .navigation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    #site-navigation .nav-link { min-height: 40px; padding: 9px; font-size: .82rem; }
    .hero { padding-block: 32px 34px; }
    .hero .eyebrow { font-size: .68rem; letter-spacing: .09em; }
    .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2rem); }
    .hero .hero-actions { align-items: stretch; flex-direction: column; }
    .hero .btn { width: 100%; flex: auto; }
    .section { padding-block: 42px; }
    main .section { padding-block: 42px !important; }
    .section-heading { margin-bottom: 28px; }
    h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
    h2 { font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
    .grid--2, .grid--3, .grid--4, .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    .grid { gap: 18px; }
    .card { padding: 22px; }
    .card-image-slot { margin: -22px -22px 18px; }
    main .card > img, main .card .img-fluid { max-height: 250px; }
    .service-image-container img, .about-image-container img, .gallery-image-container img { max-height: 260px; }
    .gallery-image-container { aspect-ratio: 4 / 3; }
    .footer-main { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .footer-brand p, .footer-column p { max-width: 42rem; }
    .footer-bottom__inner { padding-block: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Video showcase uses bounded frames rather than oversized fixed-height blocks */
.media-page-hero { position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; min-height: 200px; background: #081627; }
.media-page-hero > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.media-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,18,34,.88), rgba(5,18,34,.6)); }
.media-hero-copy { position: relative; z-index: 1; padding-block: 26px; }
.media-hero-copy h1, .media-hero-copy p { color: #fff; }
.media-hero-copy h1 { max-width: 850px; font-size: clamp(1.65rem, 3.4vw, 2.6rem); line-height: 1.15; }
.media-hero-copy p:last-child { max-width: 800px; margin-bottom: 0; }
.video-library-grid { align-items: stretch; }
.video-card { overflow: hidden; padding: 0; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; max-height: 340px; overflow: hidden; background: #081627; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #081627; }
.video-card .card-content { padding: 22px 24px 25px; }
.video-card .card-content p { margin: 0; }
.gallery-image-container img.img-fluid { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* Utility classes used throughout the PHP templates (no external CSS framework required) */
.section-light { background: var(--color-background); }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.mx-auto { margin-inline: auto; }
.max-w-800 { max-width: 800px; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-2 { margin-top: .5rem !important; }
.my-4 { margin-block: 1.5rem !important; }
.my-3 { margin-block: 1rem !important; }
.py-5 { padding-block: 3rem !important; }
.small { font-size: .875rem; }
.rounded { border-radius: 8px; }
.shadow { box-shadow: var(--shadow-small); }
.img-fluid { max-width: 100%; height: auto; }
.badge { display: inline-block; padding: .28em .62em; border-radius: 4px; font-size: .72rem; font-weight: 750; line-height: 1.35; vertical-align: middle; }
.bg-primary { background: #0284c7; }
.bg-secondary { background: #64748b; }
.bg-success { background: #15803d; }
.bg-info { background: #0e7490; }
.bg-warning { background: #f59e0b; }
.text-white { color: #fff; }
.text-dark { color: #1e293b; }

@media (max-width: 760px) {
    .mb-5 { margin-bottom: 2rem !important; }
    .py-5 { padding-block: 2rem !important; }
}
@media (max-width: 560px) {
    .mb-5 { margin-bottom: 1.6rem !important; }
    .mb-4 { margin-bottom: 1.1rem !important; }
}
main#main-content > section.page-hero { height: auto; min-height: 180px; padding-block: clamp(30px, 4vw, 52px) !important; }
@media (max-width: 560px) {
    main#main-content > section.page-hero { min-height: 165px; padding-block: 26px !important; }
}


/* October 2026 refinement: compact small-phone header and minimal footer */
.header-menu-contact { display: none; }
.footer-identity { min-width: 0; }
.footer-tagline { margin: 7px 0 0; color: #aebdcd; font-size: .78rem; line-height: 1.4; }
.footer-contact-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 20px; min-width: 0; }
.footer-contact-links a, .footer-legal a { color: #cbd5e1; font-size: .84rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact-links a:hover, .footer-legal a:hover { color: #7dd3fc; text-decoration: underline; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px; }
.footer-brand__link img { width: 44px; height: 44px; }
.footer-brand__link { font-size: .78rem; }
.footer-bottom__inner { align-items: center; }
.footer-legal { display: flex; align-items: center; gap: 9px; }
.footer-legal a { font-size: .76rem; color: #94a3b8; }

@media (max-width: 760px) {
    .topbar-location { display: none; }
    .topbar-inner { min-height: 29px; justify-content: center; gap: 0; padding-block: 4px; }
    .topbar-contact { width: 100%; justify-content: center; gap: 0; }
    .topbar-contact .topbar-separator,
    .topbar-contact a:last-child { display: none; }
    .topbar-contact a:first-child { font-size: .72rem; letter-spacing: .01em; }
    .header-menu-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
    .header-menu-contact a { display: block; min-width: 0; padding: 9px 10px; color: #244057; background: #f3f7fb; border: 1px solid #e0e8f0; border-radius: 5px; font-size: .78rem; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
    .header-menu-contact a:hover { background: #e8f4fb; color: #0369a1; }
    .footer-main { gap: 18px; padding-block: 24px; }
    .footer-bottom__inner { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 24px); }
    .topbar-inner { min-height: 27px; padding-block: 3px; }
    .header-main { grid-template-columns: minmax(0, 1fr) 40px; gap: 9px; min-height: 62px; padding-block: 7px; }
    .site-brand { width: 100%; max-width: 100%; gap: 7px; overflow: hidden; }
    .site-brand__logo { width: 42px !important; height: 42px !important; max-width: 42px !important; }
    .site-brand__copy { min-width: 0; overflow: hidden; letter-spacing: .01em; }
    .site-brand__copy strong { font-size: .73rem; letter-spacing: .035em; line-height: 1.15; white-space: nowrap; }
    .site-brand__copy > span { margin-top: 3px; font-size: .52rem; letter-spacing: .045em; line-height: 1.2; white-space: nowrap; }
    .site-brand__copy small { display: none; }
    .menu-toggle { width: 40px; height: 40px; padding: 8px; border-radius: 7px; }
    .header-navigation-wrap { padding: 6px 0 10px; gap: 10px; }
    #site-navigation .navigation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    #site-navigation .nav-link { align-items: center; min-height: 42px; padding: 9px 10px; font-size: .8rem; line-height: 1.25; }
    #site-navigation .dropdown-menu { padding: 4px; }
    #site-navigation .dropdown-link { padding: 9px; font-size: .79rem; }
    .header-menu-contact { gap: 6px; }
    .header-menu-contact a { font-size: .73rem; padding: 8px; }
    .header-cta { min-height: 44px; padding: 10px 12px; font-size: .82rem; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 22px; }
    .footer-contact-links { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 6px; }
    .footer-contact-links a { font-size: .8rem; }
    .footer-bottom__inner { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 12px; }
    .footer-bottom p { font-size: .73rem; }
}

@media (max-width: 360px) {
    .site-brand { gap: 6px; }
    .site-brand__logo { width: 38px !important; height: 38px !important; max-width: 38px !important; }
    .site-brand__copy strong { font-size: .68rem; letter-spacing: .02em; }
    .site-brand__copy > span { font-size: .48rem; letter-spacing: .025em; }
    .header-main { grid-template-columns: minmax(0, 1fr) 38px; column-gap: 7px; }
    .menu-toggle { width: 38px; height: 38px; }
    .header-menu-contact { grid-template-columns: minmax(0, 1fr); }
}


/* Final header simplification — 23 October 2026
   Keep only the company brand and one menu button in the header on every screen size. */
.topbar { display: none !important; }
.site-header { top: 0; }
.header-main {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding-block: 10px;
}
.site-brand {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 54px);
    gap: 10px;
    overflow: hidden;
}
.site-brand__copy { overflow: hidden; }
.site-brand__copy strong,
.site-brand__copy > span { white-space: nowrap; }
.site-brand__copy small { display: none !important; }
.header-controls {
    position: static;
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
}
.menu-toggle {
    display: flex !important;
    width: 44px;
    height: 42px;
    margin: 0;
    align-items: center;
    justify-content: center;
}
.header-navigation-wrap {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    z-index: 1020;
    display: none !important;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 36px rgba(8,22,39,.18);
}
.header-navigation-wrap.is-open { display: flex !important; }
#site-navigation.site-navigation { display: block; width: 100%; }
#site-navigation .navigation-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 0;
}
#site-navigation .navigation-item { width: 100%; }
#site-navigation .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    white-space: normal;
    font-size: .88rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
/* Show child links inside the hamburger panel so touch users do not need hover. */
#site-navigation .dropdown-menu {
    position: static;
    display: block;
    min-width: 0;
    margin: 4px 0 5px 9px;
    padding: 3px 4px 4px 10px;
    border: 0;
    border-left: 2px solid #dbe3ec;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#site-navigation .dropdown-link {
    display: block;
    margin: 3px 0;
    padding: 8px 10px;
    font-size: .81rem;
    background: #f7fafc;
    border-radius: 5px;
}

/* Simple footer contact block; no duplicate page-navigation links. */
.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-block: 25px;
}
.footer-identity { flex: 0 1 auto; min-width: 0; }
.footer-contact-panel {
    display: grid;
    flex: 1 1 560px;
    justify-items: start;
    gap: 8px;
    min-width: 0;
    max-width: 680px;
}
.footer-office-address,
.footer-registration {
    margin: 0;
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.footer-office-address strong { color: #fff; }
.footer-contact-links {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px 18px;
    width: 100%;
}
.footer-contact-links a {
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.footer-contact-links a:hover { color: #7dd3fc; text-decoration: underline; }
.footer-registration { color: #94a3b8; font-size: .75rem; }

@media (max-width: 760px) {
    .header-main { min-height: 66px; padding-block: 8px; }
    .site-brand { gap: 8px; }
    .site-brand__logo { width: 46px !important; height: 46px !important; max-width: 46px !important; }
    .site-brand__copy strong { font-size: .78rem; }
    .site-brand__copy > span { margin-top: 3px; font-size: .57rem; letter-spacing: .045em; }
    .footer-main { align-items: flex-start; flex-direction: column; gap: 15px; padding-block: 22px; }
    .footer-contact-panel { flex: 1 1 auto; width: 100%; }
    .footer-contact-links { gap: 7px 14px; }
    .footer-bottom__inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media (max-width: 360px) {
    .header-main { min-height: 60px; }
    .site-brand { gap: 6px; }
    .site-brand__logo { width: 38px !important; height: 38px !important; max-width: 38px !important; }
    .site-brand__copy strong { font-size: .68rem; letter-spacing: .02em; }
    .site-brand__copy > span { font-size: .48rem; letter-spacing: .025em; }
    .menu-toggle { width: 38px; height: 38px; }
}
