/* ==========================================================
   Holderness Technical Services – shared stylesheet
   ========================================================== */
:root {
    --hh: 66px; /* header height – kept in sync by script */
    --primary-navy: #0A1633;
    --dark-blue-bg: #070D1E;
    --accent-red: #E63946;
    --accent-red-dark: #C92A37;
    --card-bg: #101E3D;
    --card-border: #1D325C;
    --text-light: #F8F9FA;
    --text-muted: #B0C0DA;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark-blue-bg);
    color: var(--text-light);
    line-height: 1.6;
}

a { color: inherit; }

/* ---------- Header & Navigation ---------- */
header {
    background-color: rgba(10, 22, 51, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-red);
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    white-space: nowrap;
}

.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { color: var(--text-light); }
.logo-text span { color: var(--accent-red); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.nav-links a {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover { color: var(--accent-red); }

/* Active page tab */
.nav-links a.active {
    background-color: var(--accent-red);
    color: var(--text-light);
    font-weight: 600;
}

.nav-links a.active:hover {
    background-color: var(--accent-red-dark);
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.5);
}

/* Dropdown (Contact) */
.dropdown { position: relative; }

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.55rem;
    margin-left: 0.35rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-navy);
    border: 1px solid var(--card-border);
    border-top: 2px solid var(--accent-red);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    list-style: none;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background-color: var(--card-bg);
    color: var(--accent-red);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero-banner {
    margin-top: var(--hh); /* clear fixed header */
    background-color: #0B1A3D;
    border-bottom: 1px solid var(--card-border);
}

/* Full screen width; height scales with the screen and trims the empty
   floor area at the bottom of the image so the logo stays fully visible */
.hero-banner img {
    display: block;
    width: 100%;
    height: 34vw;
    object-fit: cover;
    object-position: center 18%;
}

@media (max-width: 600px) {
    .hero-banner img { height: auto; }
}

.hero {
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--dark-blue-bg) 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 4.5rem 0;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content { max-width: 820px; }

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ---------- Inner page banner ---------- */
.page-banner {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--dark-blue-bg) 100%);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.page-banner h1 {
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.page-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* ---------- Layout ---------- */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-red);
    margin-top: 0.5rem;
}

.section-title.center { text-align: center; }
.section-title.center::after { margin: 0.5rem auto 0; }

.intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 850px;
    margin-bottom: 3rem;
}

/* ---------- Cards ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem 1.8rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--accent-red);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 22, 51, 0.7);
    border-color: #2B4985;
    border-top-color: var(--accent-red);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Clickable service cards on home page */
a.card { text-decoration: none; color: inherit; }

.card-link {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Feature list block ---------- */
.features-block {
    background-color: var(--card-bg);
    border-radius: 6px;
    padding: 3rem 2rem;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent-red);
}

.features-block > p { color: var(--text-muted); }

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem 2rem;
    margin-top: 1.5rem;
}

.features-list li {
    position: relative;
    padding-left: 1.8rem;
}

.features-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 0.8rem;
    top: 2px;
}

/* ---------- CTA ---------- */
.cta-section {
    text-align: center;
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 6px;
    margin-top: 5rem;
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--accent-red);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
    border: 2px solid var(--accent-red);
}

.btn-primary:hover {
    background-color: var(--accent-red-dark);
    border-color: var(--accent-red-dark);
}

.btn-outline {
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-navy);
}

/* ---------- Contact strip (red bar, as per banner) ---------- */
.contact-strip {
    background-color: #C8101E;
    padding: 1.1rem 2rem;
}

.contact-strip ul {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 2.5rem;
}

.contact-strip a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-strip a:hover { text-decoration: underline; }
.contact-strip svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Footer ---------- */
footer {
    background-color: var(--primary-navy);
    border-top: 1px solid var(--card-border);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-content h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: var(--accent-red);
}

.footer-content ul { list-style: none; }

.footer-content li,
.footer-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.footer-content a { text-decoration: none; }
.footer-content a:hover { color: var(--accent-red); }

.tagline {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light) !important;
}

.tagline span { color: var(--accent-red); }

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Responsive ---------- */
/* QR code inside the Contact Us dropdown */
.dropdown-qr {
    padding: 0.9rem 1.2rem 0.4rem;
    margin-top: 0.4rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.dropdown-qr img {
    display: block;
    width: 210px;
    height: 210px;
    margin: 0 auto 0.5rem;
    background: #fff;
    border-radius: 6px;
    image-rendering: pixelated;
}

.dropdown-qr span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.dropdown-menu li a.dropdown-save {
    text-align: center;
    color: var(--accent-red);
    font-weight: 600;
}

.dropdown-menu li a.dropdown-save:hover { color: var(--text-light); background-color: var(--accent-red); }

@media (max-width: 1220px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--primary-navy);
        border-bottom: 2px solid var(--accent-red);
        padding: 0.5rem 1rem 1rem;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid var(--card-border);
        border-radius: 0;
    }

    .dropdown-toggle::after { display: none; }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: 0;
    }

    .dropdown-menu li a { padding-left: 2rem; color: var(--text-muted); }
    .dropdown-qr { text-align: left; padding-left: 2rem; border-top: none; }
    .dropdown-qr img { margin: 0 0 0.5rem; width: 200px; height: 200px; }
    .dropdown-menu li a.dropdown-save { text-align: left; }
}

@media (max-width: 768px) {
    nav { padding: 0.8rem 1rem; }
    nav { gap: 0.75rem; }
    .logo { font-size: 0.85rem; gap: 0.5rem; letter-spacing: 0.5px; }
    .logo svg { width: 30px; height: 30px; }
    .menu-toggle { flex-shrink: 0; }
    .hero-content h1 { font-size: 1.8rem; }
    .page-banner { padding: 8rem 1rem 3rem; }
    .page-banner h1 { font-size: 1.8rem; }
    .content-container { padding: 3.5rem 1rem; }
    .hero-container { padding: 0 1rem; }
    .contact-strip ul { flex-direction: column; align-items: center; }
}

@media (max-width: 380px) {
    .logo { font-size: 0.75rem; }
}

/* ---------- Photos ---------- */
.page-banner.has-image {
    background-size: cover;
    background-position: center;
    padding-top: 11rem;
    padding-bottom: 5rem;
}

.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.split .intro { margin-bottom: 0; }

.feature-img {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    border-bottom: 3px solid var(--accent-red);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.feature-img img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-img:hover img { transform: scale(1.03); }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.gallery-item {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.2);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
}

a.lightbox { display: block; cursor: zoom-in; }

/* Home card thumbnails */
.card.has-img { padding-top: 0; overflow: hidden; }

.card-img {
    display: block;
    width: calc(100% + 3.6rem);
    margin: 0 -1.8rem 1.6rem;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

/* Full-size photo viewer */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 8, 20, 0.94);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-overlay p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.lightbox-overlay button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .feature-img img { height: 240px; }
}

@media (max-width: 768px) {
    .gallery { grid-template-columns: 1fr; }
    .card-img { width: calc(100% + 3.6rem); }
}

/* Card photos */
.card-photo {
    display: block;
    margin: 0 -1.8rem 1.6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.card-photo img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-photo img { transform: scale(1.05); }

/* Standards block with photo */
.features-block.with-photo {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.features-block.with-photo .features-list { grid-template-columns: 1fr 1fr; }

.features-photo {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.features-photo img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .features-block.with-photo { grid-template-columns: 1fr; }
    .features-block.with-photo .features-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown   { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes riseIn      { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slowZoom    { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes bannerPan   { from { background-position: 50% 35%; } to { background-position: 50% 65%; } }
@keyframes lineGrow    { from { width: 0; } to { width: 50px; } }
@keyframes pulseGlow   { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); } 50% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); } }

/* Page load */
body              { animation: fadeIn 0.6s ease-out both; }
header            { animation: slideDown 0.6s cubic-bezier(.2,.8,.2,1) both; }

/* Home hero */
.hero-banner      { overflow: hidden; }
.hero-banner img  { animation: fadeIn 1s ease-out both, slowZoom 18s ease-in-out 1s infinite alternate; }
.hero-content > * { animation: riseIn 0.8s cubic-bezier(.2,.8,.2,1) both; }
.hero-content > :nth-child(1) { animation-delay: 0.35s; }
.hero-content > :nth-child(2) { animation-delay: 0.55s; }
.hero-content > :nth-child(3) { animation-delay: 0.75s; }

/* Inner page banners */
.page-banner h1   { animation: riseIn 0.8s cubic-bezier(.2,.8,.2,1) 0.25s both; }
.page-banner p    { animation: riseIn 0.8s cubic-bezier(.2,.8,.2,1) 0.45s both; }
.page-banner.has-image { animation: bannerPan 20s ease-in-out infinite alternate; }

/* Active tab gently pulses once on arrival */
.nav-links a.active { animation: pulseGlow 1.6s ease-out 0.8s 2; }

/* Scroll reveal (only applied when JavaScript is running) */
.anim .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1),
                box-shadow 0.3s ease, border-color 0.3s ease;
}
.anim .reveal.in  { opacity: 1; transform: none; }
.anim .card.reveal.in:hover,
.anim .gallery-item.reveal.in:hover { transform: translateY(-5px); }
.anim .feature-img.reveal  { transform: translateX(40px); }
.anim .feature-img.reveal.in { transform: none; }
.anim .features-list li.reveal { transform: translateX(-20px); }
.anim .features-list li.reveal.in { transform: none; }

/* Red underline draws in under section titles */
.anim .section-title.reveal::after       { width: 0; transition: width 0.7s ease 0.3s; }
.anim .section-title.reveal.in::after    { width: 50px; }

/* Buttons: slight lift */
.btn-primary, .btn-outline { transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; }
.btn-primary:hover, .btn-outline:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35); }

/* Photo viewer fade */
.lightbox-overlay.open      { animation: fadeIn 0.25s ease-out; }
.lightbox-overlay.open img  { animation: riseIn 0.35s cubic-bezier(.2,.8,.2,1); }

/* Respect users who turn animations off */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Contact section with QR code ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
    padding: 3.5rem 3rem;
}

.contact-grid .btn-row { justify-content: flex-start; }

.contact-list {
    list-style: none;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.7rem;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.7rem;
}

.contact-list span {
    min-width: 80px;
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding-top: 0.15rem;
}

.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-red); }

.qr-card {
    background: var(--primary-navy);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--accent-red);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.qr-card img {
    display: block;
    width: 270px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1.2rem;
    image-rendering: pixelated;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qr-card .qr-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.qr-card .qr-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.3rem;
}

.qr-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.btn-small {
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
}

/* =========================================================
   Home: "Putting You in Control" interactive hero
   ========================================================= */
.hero-interactive {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

/* red glow that follows the mouse */
.hero-interactive::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 75%) var(--my, 40%), rgba(230, 57, 70, 0.16), transparent 70%);
    pointer-events: none;
    transition: background 0.1s linear;
}

/* faint circuit grid */
.hero-interactive::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(176, 192, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(176, 192, 218, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 40%, #000 70%, transparent);
    pointer-events: none;
}

.hero-interactive .hero-container {
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--accent-red) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem !important;
    margin-bottom: 0.8rem !important;
}

.hero-content h1.motto {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.4rem;
    letter-spacing: 1px;
}

.motto-you {
    color: var(--accent-red);
    display: inline-block;
}

.motto-control {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #fff 0%, #fff 40%, #E63946 50%, #fff 60%, #fff 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    animation: shine 4s ease-in-out 1.5s infinite;
}

.motto-control::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 4px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    animation: underline 0.8s cubic-bezier(.2,.8,.2,1) 1.2s forwards;
}

@keyframes shine     { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes underline { to { transform: scaleX(1); } }

.hero-content > :nth-child(4) { animation-delay: 0.95s; }

@media (max-width: 560px) {
    .hero-interactive { padding: 3.5rem 0; }
}

.hero-interactive .hero-content { max-width: 1000px; }
.hero-interactive .hero-content > p:not(.eyebrow) { max-width: 820px; }

/* ---------- Showcase (decorative panels) ---------- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background:
        radial-gradient(ellipse at 80% 50%, rgba(61, 220, 120, 0.12), transparent 60%),
        var(--card-bg);
}

.showcase .intro { margin-bottom: 1.5rem; }
.showcase .features-list { grid-template-columns: 1fr 1fr; margin-top: 0; }

.showcase-pics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: end;
}

.showcase-img {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 30px rgba(61, 220, 120, 0.18), 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-img img { display: block; width: 100%; height: auto; }
.showcase-img:hover { transform: translateY(-6px); box-shadow: 0 0 45px rgba(61, 220, 120, 0.35), 0 16px 34px rgba(0, 0, 0, 0.5); }
.showcase-img:first-child { transform: translateY(-1.5rem); }
.showcase-img:first-child:hover { transform: translateY(calc(-1.5rem - 6px)); }

@media (max-width: 900px) {
    .showcase { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .showcase .features-list { grid-template-columns: 1fr; }
    .showcase-img:first-child, .showcase-img:first-child:hover { transform: none; }
}

/* ---------- Accreditations ---------- */
.accreditations {
    background: var(--primary-navy);
    border-top: 1px solid var(--card-border);
    padding: 3rem 2rem 3.5rem;
}

.accred-inner { max-width: 1200px; margin: 0 auto; text-align: center; }

.accred-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.accred-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent-red);
    margin: 0.6rem auto 0;
}

.accred-logos {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.accred-logos li {
    background: #fff;
    border-radius: 8px;
    width: 230px;
    height: 130px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accred-logos li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.25);
}

.accred-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.accred-logos a:focus-visible { outline: 3px solid var(--accent-red); outline-offset: 6px; border-radius: 4px; }

.accred-logos img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 560px) {
    .accred-logos li { width: 100%; max-width: 280px; height: 120px; }
}


/* =========================================================
   Device fine-tuning (desktop, laptop, tablet, phone)
   ========================================================= */

/* Laptops 1151–1400px: compact tabs so the full menu fits */
@media (min-width: 1221px) and (max-width: 1400px) {
    nav { padding: 0.8rem 1rem; gap: 1rem; }
    .logo { font-size: 0.95rem; gap: 0.5rem; }
    .logo svg { width: 32px; height: 32px; }
    .nav-links { gap: 0.15rem; }
    .nav-links a { font-size: 0.74rem; padding: 0.5rem 0.45rem; letter-spacing: 0.3px; }
}

/* Touch screens: open the Contact Us menu with a tap */
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

/* Phones & tablets */
@media (max-width: 1220px) {
    .nav-links { max-height: calc(100vh - var(--hh)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .menu-toggle { min-width: 44px; min-height: 44px; }
}

@media (max-width: 768px) {
    /* bigger, easier tap targets */
    .logo { min-height: 44px; }
    .contact-list a { display: inline-block; padding: 0.55rem 0; }
    .contact-strip a { min-height: 44px; padding: 0.4rem 0.6rem; }
    .footer-content li { margin-bottom: 0.15rem; }
    .footer-content li a { display: inline-block; padding: 0.55rem 0; }
    .contact-list li { align-items: center; min-height: 44px; }
    .btn-row .btn-primary, .btn-row .btn-outline { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
    .page-banner { padding-top: calc(var(--hh) + 3.5rem); }
    .page-banner.has-image { padding-top: calc(var(--hh) + 4rem); padding-bottom: 3.5rem; }
    .section-title { font-size: 1.5rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .card { padding: 2rem 1.4rem; }
    .card-photo { margin: 0 -1.4rem 1.4rem; }
    .card-img { width: calc(100% + 2.8rem); margin: 0 -1.4rem 1.4rem; }
    .features-block { padding: 2.2rem 1.4rem; }
    .cta-section { padding: 3rem 1.4rem; }
    .showcase { padding: 2rem 1.2rem; }
    .accreditations { padding: 2.5rem 1rem 3rem; }
}

/* Small phones (iPhone SE / 320–380px) */
@media (max-width: 380px) {
    nav { padding: 0.7rem 0.75rem; gap: 0.5rem; }
    .logo { font-size: 0.7rem; letter-spacing: 0.3px; gap: 0.4rem; }
    .logo svg { width: 26px; height: 26px; }
    .logo-text { white-space: normal; line-height: 1.15; }
    .logo-text span { display: block; }
    .hero-content h1.motto { font-size: 2.1rem; }
    .page-banner h1 { font-size: 1.55rem; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn-primary, .btn-row .btn-outline { width: 100%; }
    .contact-list li { flex-direction: column; gap: 0.1rem; align-items: flex-start; }
    .qr-card { padding: 1.5rem 1rem; }
}

/* iPhone notch / home bar safe areas */
@supports (padding: max(0px)) {
    nav { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
    footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
}

/* Large screens: keep line lengths comfortable */
@media (min-width: 1700px) {
    .content-container, .hero-container, .footer-content, .accred-inner { max-width: 1320px; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    max-width: 760px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-top: 3px solid var(--accent-red);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 1.1rem 1.25rem;
    color: var(--text-light);
    display: none;
    gap: 1rem;
    align-items: center;
}
.cookie-banner.open { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }
.cookie-banner strong { color: var(--text-light); margin-right: 0.35rem; }
.cookie-buttons { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-btn {
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    background: var(--accent-red);
    border: 2px solid var(--accent-red);
    color: var(--text-light);
}
.cookie-btn:hover { background: var(--accent-red-dark); border-color: var(--accent-red-dark); }
.cookie-settings-link { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
    .cookie-banner.open { flex-direction: column; align-items: stretch; }
    .cookie-buttons .cookie-btn { flex: 1; }
}
