:root {
    --navy: #1e4a7a;
    --navy-dark: #060d18;
    --navy-mid: #0d1f35;
    --navy-light: #2a5f94;
    --gold: #c9a227;
    --gold-hover: #dbb84a;
    --bg: #0a1018;
    --bg-elevated: #111b28;
    --bg-card: #152232;
    --text: #e8edf4;
    --text-muted: #94a8bc;
    --border: rgba(148, 168, 188, 0.14);
    --font: "Open Sans", system-ui, sans-serif;
    --font-heading: "Montserrat", system-ui, sans-serif;
    --max-width: 1140px;
    --header-h: 80px;
    --radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.container.narrow {
    max-width: 820px;
}

.text-center {
    text-align: center;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: var(--header-h);
    background: rgba(10, 16, 24, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}

.logo-img {
    height: clamp(40px, 10vw, 88px);
    width: auto;
    max-width: min(200px, 58vw);
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.25rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    color: var(--text);
}

.hero-slides {
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.hero-slides-track {
    display: flex;
    min-height: 100vh;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 3rem) 1rem 5rem;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide-bg {
    transform: scale(1.06);
}

.hero-slide-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 13, 24, 0.94) 0%, rgba(13, 31, 53, 0.88) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(201, 162, 39, 0.12), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}

.hero-slide.is-active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slides-track {
        transition: none;
    }

    .hero-content {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-controls {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-nav {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 50%;
    background: rgba(6, 13, 24, 0.65);
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-nav:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold);
    color: var(--text);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(148, 168, 188, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot:hover {
    background: rgba(201, 162, 39, 0.7);
}

.hero-dot.is-active {
    background: var(--gold);
    transform: scale(1.15);
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero-lead {
    font-size: 1.05rem;
    max-width: 52ch;
    margin: 0 auto 2rem;
    color: var(--text-muted);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--gold), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-primary:hover {
    background: var(--gold-hover);
}

.btn-gold {
    background: var(--gold);
    color: var(--navy-dark);
}

.btn-gold:hover {
    background: var(--gold-hover);
}

.btn-block {
    width: 100%;
}

.btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.btn.is-loading .btn-label {
    visibility: hidden;
}

.btn.is-loading .btn-spinner {
    display: block;
}

.btn-spinner {
    display: none;
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(6, 13, 24, 0.2);
    border-top-color: var(--navy-dark);
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin: 0 0 1.5rem;
}

.section-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.section-intro {
    color: var(--text-muted);
    max-width: 55ch;
    margin: 0 auto 2.5rem;
}

.section-about {
    position: relative;
    margin-top: clamp(2rem, 5vw, 4.5rem);
    padding-top: 6.5rem;
    padding-bottom: 5rem;
    background:
        linear-gradient(135deg, rgba(6, 13, 24, 0.93) 0%, rgba(13, 31, 53, 0.9) 100%),
        url("../images/aboutus.jpg") center / cover no-repeat;
}

.section-about .container {
    position: relative;
    z-index: 1;
}

.section-services {
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-card {
    grid-column: span 2;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.service-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.service-card__bg--drones {
    object-position: 58% 42%;
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(6, 13, 24, 0.95) 0%,
        rgba(6, 13, 24, 0.72) 45%,
        rgba(6, 13, 24, 0.25) 100%
    );
}

.service-card:hover {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.service-card:hover .service-card__bg {
    transform: scale(1.06);
}

.service-card__inner {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
}

.service-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.75rem;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.service-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Center last row when there are 5 cards (3 + 2) */
.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Promo banners */
.promo {
    padding: 5rem 0;
    color: var(--text);
    background-size: cover;
    background-position: center;
}

.promo-a {
    background-image:
        linear-gradient(90deg, rgba(6, 13, 24, 0.95) 0%, rgba(6, 13, 24, 0.7) 100%),
        url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1600&q=80");
}

.promo-b {
    background-image:
        linear-gradient(90deg, rgba(13, 31, 53, 0.92) 0%, rgba(6, 13, 24, 0.85) 100%),
        url("../images/static.jpg");
}

.promo-copy {
    max-width: 560px;
}

.promo h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
    text-transform: capitalize;
}

.promo p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

/* Stats */
.section-stats {
    position: relative;
    border-block: 1px solid var(--border);
    background:
        linear-gradient(135deg, rgba(6, 13, 24, 0.93) 0%, rgba(13, 31, 53, 0.9) 100%),
        url("https://images.unsplash.com/photo-1519452575417-564c1401ecc0?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.section-stats .container {
    position: relative;
    z-index: 1;
}

.section-stats .section-heading,
.section-stats .section-intro {
    color: var(--text);
}

.section-stats .section-intro {
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.stat-block {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    margin: 0 0 0.25rem;
    line-height: 1;
}

.stat-block h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.5rem;
}

.stat-block p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.section-contact {
    position: relative;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(6, 13, 24, 0.93) 0%, rgba(13, 31, 53, 0.9) 100%),
        url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.section-contact .contact-wrap {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.1;
    margin: 0 0 2rem;
}

.contact-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    font-size: 1rem;
}

.contact-list li {
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

.contact-list a {
    color: var(--text);
}

.contact-list a:hover {
    color: var(--gold);
}

.contact-whatsapp {
    color: #25d366;
}

.contact-whatsapp:hover {
    color: #3ee878;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: #25d366;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
    transform: translateY(-1px);
}

.whatsapp-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    color: #fff;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: background 0.2s, transform 0.15s;
}

.whatsapp-fab:hover {
    background: #1ebe57;
    color: #fff;
    transform: scale(1.05);
}

.whatsapp-fab svg {
    width: 1.65rem;
    height: 1.65rem;
}

.contact-reg {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: var(--text-muted);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--border);
}

/* Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    margin: 0;
    padding: 0;
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: transparent;
}

.contact-modal:not([open]) {
    display: none;
}

.contact-modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

.modal-backdrop {
    position: absolute;
    inset: 0;
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100% - 2rem, 480px);
    margin: 8vh auto;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    max-height: 84vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text);
}

.contact-modal h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 1.25rem;
    padding-right: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    font-size: 0.78rem;
    color: #f87171;
    margin-top: 0.25rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
}

.alert-success {
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: var(--gold-hover);
}

.alert-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #f87171;
    margin-bottom: 1rem;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.recaptcha-notice {
    margin: 0.75rem 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.recaptcha-notice a {
    color: var(--text-muted);
    text-decoration: underline;
}

.recaptcha-notice a:hover {
    color: var(--gold);
}

.modal-details {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.modal-details p {
    margin: 0 0 0.35rem;
}

.modal-details a {
    color: var(--text);
}

.modal-details a:hover {
    color: var(--gold);
}

/* Mobile */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .container {
        width: min(100% - 1.25rem, var(--max-width));
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-about {
        padding-top: 4.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-slides-track {
        display: block;
        transform: none !important;
    }

    .hero-slide {
        display: none;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        padding: calc(var(--header-h) + 2rem) 0.75rem 4.5rem;
    }

    .hero-slide.is-active {
        display: flex;
    }

    .hero-slide .hero-content {
        opacity: 1;
        transform: none;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .hero-lead {
        font-size: 0.95rem;
    }

    .hero-controls {
        bottom: 4.25rem;
        gap: 0.65rem;
    }

    .scroll-hint {
        display: none;
    }

    .service-card {
        min-height: 280px;
    }

    .nav-toggle {
        display: block;
    }

    .header-inner {
        position: relative;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -1rem;
        right: -1rem;
        flex-direction: column;
        gap: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    }

    .nav.is-open {
        display: flex;
    }

    .nav li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .contact-actions {
        flex-direction: column;
        width: 100%;
    }

    .contact-actions .btn {
        width: 100%;
    }

    .whatsapp-fab {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .promo {
        padding: 3.5rem 0;
    }

    .promo h2 {
        font-size: 1.25rem;
    }
}
