@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f4f4f4;
    --color-surface: #ffffff;
    --color-primary: #d4af37;
    /* Metallic Gold */
    --color-primary-dark: #b59025;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --header-height: 80px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-bg-scrolled: rgba(255, 255, 255, 0.98);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Greek Language Font Override */
html[lang="el"] {
    --font-head: Arial, Helvetica, sans-serif;
    --font-body: Arial, Helvetica, sans-serif;
}

html[lang="el"] .info-list li span[style] {
    font-family: Arial, sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
}

body[data-theme="dark"] {
    --color-bg: #0b0b0b;
    --color-bg-alt: #121212;
    --color-surface: #151515;
    --color-text: #f2f2f2;
    --color-text-muted: #e0e0e0;
    --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(12, 12, 12, 0.9);
    --header-bg-scrolled: rgba(8, 8, 8, 0.98);
    --header-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] {
    background-image: url('../images/Light-Mode-Background/Light-Mode-Phalanx.avif');
}

body[data-theme="dark"] .about-text p,
body[data-theme="dark"] .service-card p,
body[data-theme="dark"] .section-subtitle,
body[data-theme="dark"] .contact-info p,
body[data-theme="dark"] .info-list li,
body[data-theme="dark"] .protocol-step p,
body[data-theme="dark"] .assurance-card p,
body[data-theme="dark"] .tier-card ul {
    color: #ededed;
}

body[data-theme="dark"] footer {
    background: #050505;
    color: #f5f5f5;
}

body[data-theme="dark"] .footer-col p,
body[data-theme="dark"] .footer-contact li,
body[data-theme="dark"] .footer-col ul li a,
body[data-theme="dark"] .footer-bottom p {
    color: #dedede;
}

body[data-theme="light"] footer {
    background: #f8f8f8;
    color: #333;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-col h3 {
    color: var(--color-primary-dark);
}

body[data-theme="light"] .footer-col p,
body[data-theme="light"] .footer-contact li,
body[data-theme="light"] .footer-col ul li a {
    color: #555;
}

body[data-theme="light"] .footer-bottom p {
    color: #888;
}

body[data-theme="light"] .footer-logo {
    color: #333;
}

body[data-theme="light"] .footer-col ul li a:hover {
    color: var(--color-primary-dark);
}

body[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: url('../images/Logo/logo.png');
    background-repeat: no-repeat;
    background-position: center -120px;
    background-size: 100% auto;
    /* avoid fixed background which can cause repaint jank on some devices */
    background-attachment: scroll;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Promote header for smoother visual updates during scroll */
header {
    will-change: auto;
}

body * {
    max-width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    right: 30px;
    bottom: 190px;
    transform: none;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: var(--font-head);
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle-label {
    display: none;
}

body[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    color: #111;
}

.theme-toggle:hover {
    transform: scale(1.03);
}

.theme-toggle-icon {
    font-size: 1rem;
    color: var(--color-primary);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: #000;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.5rem;
    font-weight: bold;
    will-change: transform;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Accessibility Button */
.accessibility-toggle {
    position: fixed;
    bottom: 130px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    font-family: var(--font-head);
}

.accessibility-toggle:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.2);
}

/* Phone Button */
.phone-toggle {
    position: fixed;
    bottom: 70px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: #000;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.side-controls-toggle {
    display: none;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    right: -350px;
    top: 100px;
    width: 320px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
}

.accessibility-panel.show {
    right: 30px;
}

.accessibility-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.accessibility-panel-header h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
    width: 30px;
    height: 30px;
}

.accessibility-panel-content {
    padding: 15px;
}

.accessibility-group {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(212, 175, 55, 0.06);
}

.accessibility-group-toggle {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-text);
    padding: 6px 4px;
}

.accessibility-group-toggle::-webkit-details-marker {
    display: none;
}

.accessibility-group-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--color-primary);
    font-size: 0.9rem;
}

.accessibility-option {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-only {
    display: none;
}

.accessibility-option label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.accessibility-btn {
    padding: 8px 12px;
    background: var(--color-primary);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 2px solid var(--color-primary);
    padding: 20px;
    z-index: 1300;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s ease;
}

.cookies-banner.show {
    bottom: 0;
}

.cookies-banner.hidden {
    display: none;
}

body.cookies-visible .scroll-to-top {
    bottom: 140px;
}

body.cookies-visible .phone-toggle {
    bottom: 190px;
}

body.cookies-visible .accessibility-toggle {
    bottom: 250px;
}

body.cookies-visible .theme-toggle {
    bottom: 310px;
}

body.cookies-visible .language-selector {
    bottom: 370px;
}

.cookies-content {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.cookies-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookies-actions {
    display: flex;
    gap: 10px;
}

.cookies-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Language Selector */
.language-selector {
    position: fixed;
    bottom: 250px;
    right: 30px;
    z-index: 999;
}

.language-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: var(--font-head);
}

.lang-flag {
    width: 22px;
    height: 22px;
    display: inline-block;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.language-toggle:hover {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.2);
}

.language-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 0;
}

.language-menu.show {
    display: flex;
}

.lang-option {
    padding: 10px 15px;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.lang-option .lang-flag {
    margin-right: 8px;
    flex-shrink: 0;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-primary);
}

/* Print Button */
.print-button {
    position: fixed;
    bottom: 180px;
    right: 30px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.print-button:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* High Contrast Mode */
body.high-contrast {
    --color-bg: #000;
    --color-bg-alt: #111;
    --color-surface: #1a1a1a;
    --color-text: #fff;
    --color-text-muted: #fff;
    --color-primary: #ffff00;
}

body.high-contrast * {
    border-color: #ffff00 !important;
}


h2,
h3,
h4,
.logo span {
    font-family: var(--font-head);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-gold {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    will-change: transform, box-shadow;
}

.btn-gold:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-text);
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 15px auto 0;
}

body[data-theme="light"] .section-title {
    color: #111;
    text-shadow: none;
}

body[data-theme="dark"] #about .section-title,
body[data-theme="dark"] #contact .section-title {
    color: #f7f3e8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95),
                 0 0 18px rgba(0, 0, 0, 0.7);
}

.section-subtitle {
    text-align: center;
    color: #fff;
    max-width: 720px;
    margin: -30px auto 50px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 4px;
}

body[data-theme="light"] .section-subtitle {
    color: #333;
    text-shadow: none;
    background: rgba(244, 244, 244, 0.9);
}

/* News Carousel */
.news-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 14px;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    display: grid;
    gap: 24px;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    padding: 24px;
    min-height: 360px;
    contain: content;
}

.carousel-media {
    background: #0b0b0b;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}


.news-card {
    width: 100%;
    min-height: 240px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.55), rgba(20, 20, 20, 0.65));
    color: #f7f7f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.news-card.has-image {
    color: #f7f7f7;
}

.news-card.has-image .news-url {
    color: #e6e6e6;
}

.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
    z-index: 0;
}

.news-card > * {
    position: relative;
    z-index: 1;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.news-url {
    font-size: 1.1rem;
    color: #e6e6e6;
    letter-spacing: 0.5px;
}

.carousel-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.carousel-content p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(0, 0, 0, 0.75);
    color: var(--color-primary);
    font-size: 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    will-change: transform, background;
}

.carousel-btn:hover {
    transform: scale(1.05);
    background: rgba(212, 175, 55, 0.2);
}

.carousel-dots {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.6);
    background: transparent;
    cursor: pointer;
}

.carousel-dot.is-active {
    background: var(--color-primary);
}

body[data-theme="dark"] .carousel-slide {
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .carousel-content h3 {
    color: #f5f5f5;
}

body[data-theme="dark"] .carousel-content p {
    color: #d8d8d8;
}

body[data-theme="light"] .carousel-media {
    background: #f3f3f3;
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .news-card {
    background: #ffffff;
    color: #111;
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .news-card.has-image {
    color: #f7f7f7;
    border-color: rgba(255, 255, 255, 0.25);
}

body[data-theme="light"] .news-card.has-image .news-url {
    color: #e6e6e6;
}

body[data-theme="light"] .news-url {
    color: #333;
}

@media (max-width: 900px) {
    .news-carousel {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        justify-self: center;
    }

    .carousel-btn.prev {
        order: 2;
    }

    .carousel-btn.next {
        order: 3;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
    }
}

/* Elite Tiers */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.tier-card {
    background: var(--color-surface);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    contain: layout style;
}

.tier-card.featured {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 1));
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-6px);
}

body[data-theme="dark"] .tier-card.featured {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(21, 21, 21, 1));
    border-color: rgba(212, 175, 55, 0.6);
}

body[data-theme="dark"] .tier-card.featured .tier-badge {
    color: var(--color-primary);
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--color-primary-dark);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.tier-card ul {
    margin: 20px 0 30px;
    text-align: left;
    color: var(--color-text-muted);
}

.tier-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tier-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* Protocol */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.protocol-step {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 35px 28px;
    box-shadow: var(--shadow-card);
    contain: layout style;
}

.protocol-step p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.step-index {
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

/* Assurance */
.assurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.assurance-card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 30px 26px;
    box-shadow: var(--shadow-card);
    contain: layout style;
}

.assurance-card p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.assurance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
}

.assurance-metrics h4 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 22px 28px;
    box-shadow: var(--shadow-card);
    contain: layout style;
}

.faq-item summary {
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-text);
    list-style: none;
    position: relative;
    padding-right: 24px;
    font-size: 1.35rem;
    line-height: 1.7;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-primary);
    font-size: 1.4rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 12px;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.2rem;
}

/* Header */
/* Top Bar */
.top-bar {
    width: 100%;
    padding: 8px 0;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

.top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: 100%;
    gap: 20px;
}

.top-bar-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-bar-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.top-bar-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.call-now-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.call-now-btn:hover {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.top-bar-phone {
    color: var(--color-text);
    font-weight: 600;
}

.top-bar-socials {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-decoration: none;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.social-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    contain: layout style;
}

header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: var(--header-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 2px;
    flex-shrink: 0;
}


.logo img {
    height: 50px;
    width: auto;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-call-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #111;
    font-weight: 700;
    opacity: 1;
}

body[data-theme="dark"] nav a {
    color: #f5f5f5;
}

nav a:hover,
nav a.active {
    color: var(--color-primary);
}

.nav-call-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
    text-transform: uppercase !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.menu-icon {
    font-size: 1.6rem;
    color: var(--color-primary);
    line-height: 1;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    contain: layout style paint;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    margin-bottom: 40px;
    color: #f0f0f0;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.phalanx-iso {
    margin-top: 40px;
    padding: 24px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.phalanx-iso-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.phalanx-iso-header h3 {
    font-size: 1.4rem;
    color: var(--color-text);
}

.phalanx-iso-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.phalanx-iso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.phalanx-iso-card {
    border-radius: 10px;
    padding: 18px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(140deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.phalanx-iso-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.phalanx-iso-code {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.phalanx-iso-name {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.phalanx-iso-cta {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-item {
    background: var(--color-surface);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.bg-darker {
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-surface);
    padding: 40px 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    contain: layout style paint;
}

.service-card:hover {
    border-bottom-color: var(--color-primary);
    transform: translateY(-5px);
}

.service-card[data-service="manned-guarding"] {
    background-image: url('../images/manned guarding/manned-Guarding.avif');
}

.service-card[data-service="electronic-systems"] {
    background-image: url('../images/Electronic Systems/Screenshot 2026-02-02 203227.avif');
}

.service-card[data-service="vip-protection"] {
    background-image: url('../images/VIP Protection/Screenshot 2026-02-02 202637.avif');
}

.service-card[data-service="mobile-patrols"] {
    background-image: url('../images/Mobile patrols/side-view-security-man-checking-area.avif');
}

.service-card[data-service="event-security"] {
    background-image: url('../images/Event Security/female-wedding-planner-working-ceremony.avif');
}

.service-card[data-service="control-center"] {
    background-image: url('../images/24-7 Control Centre/Screenshot 2026-02-02 203258.avif');
}

.service-card[data-service="drone-surveillance"] {
    background-image: url('../images/Drone-Surveilance/sunset-silhouette-drone-captures-nature-beauty-mid-air-generated-by-ai.avif');
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

body[data-theme="light"] .service-card h3 {
    color: #111;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.95);
}

.service-card p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 4px;
}

body[data-theme="light"] .service-card p {
    color: #222;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.92);
}

/* Service Modal */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal.active {
    display: flex;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.service-modal-content {
    position: relative;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.service-modal-close:hover {
    background: var(--color-primary);
    color: #000;
    transform: rotate(90deg);
}

.service-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.service-modal-image {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0b0b;
    height: 100%;
    min-height: 400px;
}

.service-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-theme="light"] .service-modal-image {
    background: #f3f3f3;
}

.service-modal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-modal-details h2 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

.service-modal-details p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

#modal-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#modal-features h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

#modal-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#modal-features li {
    position: relative;
    padding-left: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

#modal-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .service-modal-body {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 20px;
    }

    .service-modal-image {
        min-height: 300px;
    }

    .service-modal-content {
        max-height: 85vh;
    }

    .service-modal-details h2 {
        font-size: 1.6rem;
    }

    .service-modal-details p {
        font-size: 1rem;
    }

    #modal-features li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-modal {
        padding: 10px;
    }

    .service-modal-body {
        padding: 25px 15px;
    }

    .service-modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--color-surface);
    padding: 50px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-card);
}

.contact-info h3 {
    color: var(--color-text);
    margin-bottom: 20px;
}

.info-list {
    margin-top: 30px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.info-list span {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.phone-number {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.phone-number-simple {
    font-family: Tahoma, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-primary);
}

.info-list .social-link-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.info-list .social-icon-inline {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* No filter in dark mode for social icons - keep original colors */

.info-list .social-link-item a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list .social-link-item a:hover {
    color: var(--color-primary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--color-text);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body[data-theme="dark"] .contact-form-title {
    color: #f7f3e8;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

body[data-theme="dark"] .contact-form input,
body[data-theme="dark"] .contact-form textarea {
    background: #0f0f0f;
    border-color: rgba(255, 255, 255, 0.14);
    color: #f2f2f2;
}

body[data-theme="dark"] .contact-form input::placeholder,
body[data-theme="dark"] .contact-form textarea::placeholder {
    color: #bdbdbd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    padding: 80px 0 30px;
    background: #111;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: #fff;
}

.footer-logo img {
    height: 40px;
    filter: none;
    opacity: 1;
    background: transparent;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-socials .social-link {
    justify-content: flex-start;
}

.footer-socials .social-icon {
    width: 48px;
    height: 48px;
}

.footer-socials .social-name {
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.footer-partners-title {
    color: var(--color-primary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partners-marquee {
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

body[data-theme="light"] .partners-marquee {
    border-color: rgba(0, 0, 0, 0.1);
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 22s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    min-width: 100%;
    justify-content: space-between;
    flex: 0 0 100%;
}

.partners-group img {
    height: 64px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

.partners-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 25%;
    flex: 0 0 25%;
    padding: 0 12px;
}

.partners-item img {
    max-width: 140px;
    width: 100%;
}

.partners-name {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}


@keyframes partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 992px) {
    html {
        scroll-behavior: auto;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: #fff;
        color: var(--color-text);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    body[data-theme="dark"] nav {
        background: #111;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav li {
        width: min(320px, 90%);
    }

    nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--color-text);
        text-align: left;
    }

    nav a:focus-visible,
    nav a:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.2);
        color: var(--color-text);
    }

    .nav-call-btn {
        text-align: center;
        font-weight: 700;
        letter-spacing: 1px;
        border: none;
    }

    nav .btn,
    nav .btn-gold {
        box-shadow: none;
    }

    nav .nav-call-btn {
        background: transparent;
        color: var(--color-text);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    body[data-theme="dark"] nav .nav-call-btn {
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .top-bar-socials {
        display: none;
    }

    .nav-socials {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: min(320px, 90%);
        margin-top: 8px;
    }

    .nav-socials .social-link {
        justify-content: flex-start;
    }

    .nav-socials .social-icon {
        width: 32px;
        height: 32px;
    }

    .nav-socials .social-name {
        font-size: 0.95rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .news-carousel,
    .carousel-viewport,
    .carousel-track {
        overflow: hidden;
    }

    .carousel-viewport {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .carousel-viewport::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container,
    .section,
    .news-carousel,
    .carousel-viewport,
    .carousel-track,
    .carousel-slide,
    .contact-wrapper,
    .cookies-banner {
        max-width: 100%;
        overflow-x: hidden;
    }

    img,
    svg,
    video,
    canvas,
    iframe {
        max-width: 100%;
        height: auto;
    }
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    nav {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: #fff;
        color: var(--color-text);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: none;
    }

    body[data-theme="dark"] nav {
        background: #111;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav li {
        width: min(320px, 90%);
    }

    nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 8px;
        background: transparent;
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: var(--color-text);
        text-align: left;
    }

    nav a:focus-visible,
    nav a:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--color-text);
    }

    .nav-call-btn {
        text-align: center;
        font-weight: 700;
        letter-spacing: 1px;
        border: none;
    }

    nav .btn,
    nav .btn-gold {
        box-shadow: none;
    }

    nav .nav-call-btn {
        background: transparent;
        color: var(--color-text);
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    body[data-theme="dark"] nav .nav-call-btn {
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .top-bar-socials {
        display: none;
    }

    .nav-socials {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: min(320px, 90%);
        margin-top: 8px;
    }

    .nav-socials .social-link {
        justify-content: flex-start;
    }

    .nav-socials .social-icon {
        width: 32px;
        height: 32px;
    }

    .nav-socials .social-name {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero h1 {
        font-size: 2.5rem;
        background: none;
        -webkit-text-fill-color: #fff;
        color: #fff;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .phalanx-iso {
        padding: 20px;
    }

    .tiers-grid,
    .protocol-grid,
    .assurance-grid {
        grid-template-columns: 1fr;
    }

    #tiers,
    #assurance,
    #services {
        overflow-x: hidden;
        touch-action: pan-y;
    }

    .tiers-grid,
    .assurance-grid,
    .services-grid {
        max-width: 100%;
        overflow-x: hidden;
    }

    .tier-card,
    .assurance-card,
    .service-card {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .tier-card.featured {
        transform: none;
    }

    .assurance-metrics {
        grid-template-columns: 1fr;
    }

    .mobile-only {
        display: flex;
    }

    .phone-toggle {
        display: flex;
        right: 20px;
        bottom: 72px;
        padding: 0;
        line-height: 1;
    }

    .side-controls-toggle {
        position: fixed;
        right: 20px;
        bottom: 196px;
        display: flex;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.8);
        color: var(--color-primary);
        border: 2px solid var(--color-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1200;
        font-size: 1.1rem;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .side-controls-toggle.is-expanded {
        transform: rotate(180deg);
    }

    .side-controls {
        position: fixed;
        right: 20px;
        bottom: 240px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        z-index: 1200;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .side-controls.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .side-controls .theme-toggle,
    .side-controls .accessibility-toggle {
        position: static;
        transform: none;
    }

    .language-selector {
        right: 20px;
        bottom: 140px;
        width: 44px;
        display: flex;
        justify-content: flex-end;
    }

    .language-toggle,
    .phone-toggle {
        width: 44px;
        height: 44px;
    }

    .theme-toggle,
    .accessibility-toggle,
    .language-toggle,
    .phone-toggle,
    .scroll-to-top {
        width: 44px;
        height: 44px;
    }
}

/* Mobile-first refinements (320px–480px)
   Why: prioritize primary actions, enlarge tap targets, and remove desktop-only layout density. */
@media (max-width: 480px) {
    :root {
        --header-height: 64px;
    }

    body {
        font-size: 16px;
        line-height: 1.7;
        background-attachment: scroll;
        background-position: center 120px;
    }

    .container {
        width: 100%;
        padding: 0 18px;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .top-bar-socials {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-bar-phone {
        display: none;
    }

    header {
        height: var(--header-height);
    }

    .header-container {
        gap: 10px;
    }

    header .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .logo {
        flex: 0 0 auto;
        max-width: none;
        gap: 8px;
        margin-left: 0;
        margin-right: auto;
    }

    header .logo {
        margin-left: 0;
    }

    .logo img {
        width: auto;
        height: auto;
        max-height: 56px;
        object-fit: contain;
    }

    .logo span {
        display: none;
    }

    .hamburger {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        margin-left: auto;
    }

    nav {
        width: 88%;
        padding: 90px 20px 30px;
        justify-content: flex-start;
    }

    nav ul {
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    nav a {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
        font-size: 0.95rem;
        text-align: left;
        border-radius: 6px;
        background: transparent;
        color: var(--color-text);
    }

    .nav-call-btn {
        width: 100%;
        text-align: center;
        padding: 12px 14px !important;
    }

    .hero {
        min-height: 88vh;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
        min-height: 44px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 36px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin: -20px auto 36px;
    }

    .about-grid,
    .services-grid,
    .tiers-grid,
    .protocol-grid,
    .assurance-grid,
    .contact-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-text p {
        font-size: 1rem;
        padding: 16px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 220px;
        padding: 28px 22px;
    }

    .service-card p {
        font-size: 1rem;
    }

    .tier-card,
    .protocol-step,
    .assurance-card,
    .faq-item {
        padding: 24px 20px;
    }

    .faq-item summary {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 1rem;
    }

    .news-carousel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }

    .carousel-viewport {
        grid-column: 1 / -1;
    }

    .carousel-btn.prev {
        grid-column: 1;
        justify-self: start;
    }

    .carousel-btn.next {
        grid-column: 2;
        justify-self: end;
    }

    .carousel-dots {
        grid-column: 1 / -1;
    }

    .carousel-slide {
        padding: 18px;
        min-height: auto;
    }

    .news-card {
        min-height: 180px;
        padding: 18px;
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
    }

    .contact-wrapper {
        padding: 28px 20px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
        min-height: 48px;
        border-radius: 6px;
    }

    .contact-form textarea {
        min-height: 140px;
        resize: vertical;
    }

    .btn,
    .cookies-actions .btn {
        min-height: 44px;
    }

    .cookies-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        left: 12px;
        right: 12px;
        border-radius: 12px;
    }

    .cookies-banner.show {
        bottom: 12px;
    }

    .cookies-actions {
        flex-direction: column;
        width: 100%;
    }

    .theme-toggle,
    .accessibility-toggle,
    .language-toggle,
    .scroll-to-top,
    .phone-toggle {
        width: 44px;
        height: 44px;
        right: 30px;
    }

    .accessibility-panel {
        width: calc(100% - 24px);
        right: -110%;
        top: 80px;
        max-height: 70vh;
        overflow: auto;
    }

    .accessibility-panel.show {
        right: 12px;
    }

    .mobile-only {
        display: flex;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .theme-toggle:hover,
    .accessibility-toggle:hover,
    .language-toggle:hover,
    .scroll-to-top:hover,
    .carousel-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .fade-in-left,
    .fade-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animations (Simple CSS classes handled by JS IntersectionObserver) */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Service Card Staggered Animation */
.service-card:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4) {
    transition-delay: 0.3s;
}

.service-card:nth-child(5) {
    transition-delay: 0.4s;
}

.service-card:nth-child(6) {
    transition-delay: 0.5s;
}

.service-card:nth-child(7) {
    transition-delay: 0.6s;
}

@media (max-width: 768px) {
    .partners-group {
        gap: 0;
    }

    .partners-track {
        animation-duration: 18s;
    }

    .partners-group img {
        height: 48px;
    }

    .partners-item {
        width: 25%;
        padding: 0 8px;
    }

    .partners-item img {
        max-width: 96px;
    }

    .partners-name {
        font-size: 0.65rem;
    }
}

/* Greek Language Typography - Elegant & Authoritative */
html[lang="el"] {
    --font-head: 'Cormorant Garamond', 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', 'Inter', serif;
}

html[lang="el"] h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 3.5rem;
}

html[lang="el"] h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 2.8rem;
}

html[lang="el"] h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 2rem;
}

html[lang="el"] h4,
html[lang="el"] h5,
html[lang="el"] h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

html[lang="el"] body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.8;
}

html[lang="el"] .tier-card h3 {
    font-size: 2.1rem;
    font-weight: 700;
}

html[lang="el"] .tier-card ul li {
    font-size: 1.2rem;
    font-weight: 500;
}

html[lang="el"] .section-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 3rem;
}

html[lang="el"] p {
    font-size: 1.2rem;
}

html[lang="el"] .hero h1 {
    font-size: 4rem;
}

html[lang="el"] .hero p {
    font-size: 1.4rem;
}