/* AgroDrone — LAON-inspired minimal visual */

:root {
    --bg: #141412;
    --bg-alt: #1c1c19;
    --bg-deep: #0a0a09;
    --gold: #c47a4e;
    --gold-light: #dba068;
    --text: #ebe8e3;
    --muted: #8f8a82;
    --line: #2e2e2b;
    --white: #ffffff;
    --font-sans: 'Montserrat', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg picture,
.hero__bg img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero__bg picture img {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    object-fit: cover;
    object-position: center center;
    filter: brightness(1.18) contrast(1.05) saturate(1.06);
    animation: kenBurns 22s ease-out forwards;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.07); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(8, 8, 7, 0.62) 0%,
        rgba(8, 8, 7, 0.38) 18%,
        rgba(8, 8, 7, 0.14) 36%,
        rgba(8, 8, 7, 0.04) 50%,
        transparent 62%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(88px, 12vh, 120px) clamp(24px, 5vw, 64px) 48px;
    max-width: min(520px, 46vw);
    width: 100%;
}

.hero__crest {
    display: inline-flex;
    color: #f5d4a8;
    margin-bottom: 28px;
    transition: opacity 0.25s;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero__crest svg { width: 44px; height: auto; }
.hero__crest:hover { opacity: 0.85; }

.hero__brand {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 5.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 2px 12px rgba(0, 0, 0, 0.65),
        0 4px 32px rgba(0, 0, 0, 0.4);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero__tagline {
    font-size: clamp(0.68rem, 1.4vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.75;
    max-width: 420px;
    margin: 0 0 32px;
    color: #f5f5f3;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.85),
        0 2px 14px rgba(0, 0, 0, 0.55);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 22px;
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both;
}

.hero__nav a {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.85),
        0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.25s, transform 0.25s;
    padding: 6px 0;
}

.hero__nav a:hover {
    color: #f5d4a8;
    transform: translateY(-1px);
}

.hero__menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 10px 12px;
    cursor: pointer;
}

.hero__menu-btn span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--white);
    transition: transform 0.25s, opacity 0.25s;
}

.hero__menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hero__menu-btn.active span:nth-child(2) { opacity: 0; }
.hero__menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ---- Split section ---- */
.split {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: var(--bg-alt);
}

.split--alt {
    min-height: 480px;
    background: var(--bg);
}

.split--alt .split__text {
    background: var(--bg);
}
.split--reverse .split__photo { order: 2; }
.split--reverse .split__text { order: 1; }
.split--reverse .split__divider { order: 1; }

.split__photo {
    overflow: hidden;
    background: var(--bg-deep);
}

.split__photo picture,
.split__photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.split__divider {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.split__divider:hover {
    background: var(--gold-light);
    transform: translate(-50%, -50%) scale(1.06);
}

.split__divider:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.split__divider svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
    animation: bounceDown 2.4s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%       { transform: translateY(5px); opacity: 0.65; }
}

.split__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 8vw, 80px) clamp(40px, 6vw, 72px);
}

.split__icon {
    color: var(--gold);
    margin-bottom: 20px;
}

.split__icon svg { width: 36px; height: 36px; }

.split__step {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 16px;
}

.split__title {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.4;
}

.split__subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-style: italic;
    font-weight: 400;
    color: #b5afa6;
    margin-bottom: 24px;
    line-height: 1.5;
}

.split__body {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.85;
    max-width: 400px;
}

.split__sign {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text);
    margin-top: 32px;
}

/* ---- Section intro ---- */
.section-intro {
    padding: clamp(56px, 8vw, 80px) 24px 0;
    max-width: 720px;
}

.section-intro--center {
    text-align: center;
    margin: 0 auto;
    padding-bottom: 8px;
}

.section-intro__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-intro__label--light { color: var(--gold-light); }

.section-intro h2 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.45;
    color: var(--text);
}

/* ---- Services wrapper ---- */
.services {
    background: var(--bg);
    padding-bottom: clamp(48px, 6vw, 64px);
}

.services .section-intro {
    padding-left: clamp(24px, 5vw, 48px);
}

/* ---- Solutions ---- */
.solutions {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: clamp(48px, 8vw, 72px) 24px clamp(64px, 10vw, 96px);
}

.solutions__wrap {
    max-width: 1080px;
    margin: 0 auto;
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    margin-top: 48px;
}

.solution-card {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.solution-card__num {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

.solution-card h3 {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    line-height: 1.5;
    color: var(--text);
}

.solution-card p {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.8;
}

/* ---- Impact ---- */
.impact {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.impact__bg {
    position: absolute;
    inset: 0;
}

.impact__bg picture,
.impact__bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.impact__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 9, 0.78);
}

.impact__content {
    position: relative;
    z-index: 1;
    padding: 64px 24px;
    width: 100%;
    max-width: 960px;
}

.impact__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-top: 40px;
}

.impact__stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.impact__stat span {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    line-height: 1.5;
}

/* ---- Gallery ---- */
.gallery {
    padding: clamp(64px, 10vw, 96px) 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 1080px;
    margin: 40px auto 0;
}

.gallery__item {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-deep);
}

.gallery__item picture,
.gallery__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery__item:hover img { transform: scale(1.03); }

/* ---- SEO content ---- */
.seo-content {
    padding: clamp(64px, 10vw, 96px) 24px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.seo-content__wrap {
    max-width: 760px;
    margin: 0 auto;
}

.seo-content__text {
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.85;
}

.seo-content__text p + p { margin-top: 16px; }

.seo-content__text strong {
    color: var(--text);
    font-weight: 500;
}

.faq {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}

.faq__title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--text);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
    cursor: pointer;
    padding: 18px 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: '+';
    float: right;
    color: var(--gold);
}

.faq__item[open] summary::after { content: '−'; }

.faq__item p {
    padding: 0 0 18px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.75;
}

.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;
}

/* ---- Contact ---- */
.contact {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: clamp(64px, 10vw, 96px) 24px;
}

.contact__wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.contact__lead {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: #b5afa6;
    margin-top: 16px;
    line-height: 1.6;
}

.contact__list {
    list-style: none;
    margin-top: 48px;
    text-align: left;
}

.contact__list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.contact__list li span {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.contact__list a {
    font-weight: 400;
    text-align: right;
    transition: color 0.25s;
}

.contact__list a:hover { color: var(--gold); }

.contact__list em {
    font-style: normal;
    font-weight: 400;
    color: var(--text);
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.45);
    padding: 28px 24px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__brand {
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
}

.footer__nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__nav a {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.25s;
}

.footer__nav a:hover { color: var(--gold-light); }

/* ---- Mobile nav overlay ---- */
.hero__nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.92);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.hero__nav.open a {
    font-size: 0.85rem;
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero__menu-btn { display: flex; }

    .hero__nav:not(.open) { display: none; }

    .hero {
        align-items: flex-start;
    }

    .hero__content {
        max-width: 100%;
        padding-top: 96px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 8, 7, 0.58) 0%,
            rgba(8, 8, 7, 0.28) 22%,
            rgba(8, 8, 7, 0.06) 42%,
            transparent 58%
        );
    }

    .hero__bg picture img {
        object-position: center 42%;
    }

    .hero__brand {
        letter-spacing: 0.1em;
        font-size: clamp(1.85rem, 9vw, 2.75rem);
    }

    .hero__tagline {
        letter-spacing: 0.12em;
        max-width: 100%;
    }

    .split,
    .split--reverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split--reverse .split__photo,
    .split--reverse .split__text { order: unset; }

    .split__divider {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: -22px auto;
        flex-shrink: 0;
    }

    .split__divider:hover {
        transform: none;
    }

    .split--alt {
        display: flex;
        flex-direction: column;
    }

    .split--alt .split__divider {
        order: 1;
        margin: -22px auto;
    }

    .split__text {
        padding: 48px 28px;
        text-align: center;
        align-items: center;
    }

    .split__body { max-width: 100%; }

    .solutions__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .impact__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__grid { grid-template-columns: 1fr; }

    .contact__list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .contact__list a { text-align: center; }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .hero__bg picture img,
    .hero__crest,
    .hero__brand,
    .hero__tagline,
    .hero__nav,
    .split__divider svg { animation: none; }

    .anim {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gallery__item picture img,
    .gallery__item img { transition: none; }
}

/* ---- Scroll animations ---- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.anim {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.anim--left {
    transform: translateX(-40px);
}

.anim--right {
    transform: translateX(40px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.solution-card,
.gallery__item,
.impact__stat {
    transition-delay: var(--delay, 0s);
}

.gallery__item:hover picture img,
.gallery__item:hover img {
    transform: scale(1.04);
}
