/* ============================================
   Flagler Aerial Spraying — Styles
   Palette: Emerald Green + Cream
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    --cream-50:    #fdfcf8;
    --cream-100:   #faf8f0;
    --cream-200:   #f5f0e1;
    --cream-300:   #e8e0c8;
    --text-dark:   #1a2e26;
    --text-mid:    #3d5447;
    --text-light:  #6b8f7d;
    --white:       #ffffff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', -apple-system, sans-serif;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

/* --- Section Labels --- */
.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section__desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.8;
}

.section__header {
    margin-bottom: 64px;
}

.section__header--center {
    text-align: center;
}

.section__header--center .section__desc {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--emerald-700);
    color: var(--white);
    border-color: var(--emerald-700);
}

.btn--primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(4, 120, 87, 0.25);
}

.btn--ghost {
    background: transparent;
    color: var(--cream-100);
    border-color: rgba(253, 252, 248, 0.4);
}

.btn--ghost:hover {
    background: rgba(253, 252, 248, 0.1);
    border-color: var(--cream-100);
}

.btn--white {
    background: var(--white);
    color: var(--emerald-800);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--cream-100);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(253, 252, 248, 0.5);
}

.btn--outline-white:hover {
    background: rgba(253, 252, 248, 0.1);
    border-color: var(--white);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 40px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--emerald-800);
    letter-spacing: 0.02em;
}

.nav__logo-icon {
    width: 28px;
    height: 28px;
    color: var(--emerald-700);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
    margin-left: auto;
}

.nav__link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-600);
    transition: width 0.3s var(--ease);
}

.nav__link:hover {
    color: var(--emerald-700);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--emerald-700);
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border: 1.5px solid var(--emerald-200);
    border-radius: 4px;
    transition: all 0.2s;
}

.nav__cta:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-400);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all 0.3s var(--ease);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.88) 0%,
        rgba(4, 120, 87, 0.75) 50%,
        rgba(10, 90, 65, 0.82) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    width: 100%;
}

.hero__greeting {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    font-style: italic;
    color: var(--emerald-200);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero__headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 28px;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(253, 252, 248, 0.8);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 44px;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(253, 252, 248, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll svg {
    width: 20px;
    height: 20px;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Section Spacing --- */
.section {
    padding: 120px 0;
}

/* --- Services --- */
.services {
    background: var(--cream-50);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 6px;
    padding: 40px 32px;
    transition: all 0.35s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(4, 120, 87, 0.08);
    border-color: var(--emerald-200);
}

.card__icon {
    width: 52px;
    height: 52px;
    color: var(--emerald-700);
    margin-bottom: 24px;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.card__body {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
}

/* --- About --- */
.about {
    background: var(--cream-100);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.about__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--emerald-800);
    color: var(--cream-100);
    padding: 20px 28px;
    border-radius: 6px;
}

.about__badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about__text {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.9;
}

.about__stats {
    display: flex;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--cream-200);
    border-bottom: 1px solid var(--cream-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--emerald-700);
    line-height: 1;
}

.stat__label {
    font-size: 0.78rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Process --- */
.process {
    background: var(--cream-50);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.step {
    padding: 0 24px;
    position: relative;
}

.step__number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--emerald-200);
    line-height: 1;
    margin-bottom: 20px;
}

.step__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step__body {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.8;
}

.step__line {
    position: absolute;
    top: 28px;
    right: 0;
    width: calc(100% - 56px);
    height: 1px;
    background: var(--cream-300);
}

.step:last-child .step__line {
    display: none;
}

/* --- Testimonials --- */
.testimonials {
    background: var(--emerald-800);
}

.testimonials .section__label {
    color: var(--emerald-300);
}

.testimonials .section__title {
    color: var(--white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial__quote {
    width: 32px;
    height: 24px;
    color: var(--emerald-400);
    flex-shrink: 0;
}

.testimonial__text {
    font-size: 0.95rem;
    color: rgba(253, 252, 248, 0.85);
    line-height: 1.8;
    flex: 1;
}

.testimonial__footer {
    margin-top: 8px;
}

.testimonial__author {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--emerald-300);
    letter-spacing: 0.04em;
}

/* --- CTA --- */
.cta {
    background: var(--cream-100);
    padding: 100px 0;
}

.cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta__greeting {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.cta__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.cta__desc {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* --- Contact --- */
.contact {
    background: var(--cream-50);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__text {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 40px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__detail dt {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact__detail dd {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.contact__detail a {
    color: var(--emerald-700);
    transition: color 0.2s;
}

.contact__detail a:hover {
    color: var(--emerald-500);
}

/* --- Form --- */
.form {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 6px;
    padding: 40px;
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form__input:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form__input::placeholder {
    color: var(--text-light);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8f7d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--emerald-800);
}

/* --- Footer --- */
.footer {
    background: var(--emerald-900);
    color: var(--cream-100);
    padding: 80px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(253, 252, 248, 0.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--cream-100);
    margin-bottom: 16px;
}

.footer__logo-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-400);
}

.footer__tagline {
    font-size: 0.88rem;
    color: rgba(253, 252, 248, 0.55);
    line-height: 1.8;
    max-width: 280px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(253, 252, 248, 0.65);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--cream-100);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__contact a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--emerald-300);
    transition: color 0.2s;
}

.footer__contact a:hover {
    color: var(--cream-100);
}

.footer__contact p {
    font-size: 0.85rem;
    color: rgba(253, 252, 248, 0.5);
    line-height: 1.7;
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: rgba(253, 252, 248, 0.35);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Menu --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process__steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .step__line {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 248, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 24px;
        gap: 0;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-110%);
        opacity: 0;
        transition: all 0.4s var(--ease);
        pointer-events: none;
    }

    .nav__menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        padding: 16px 0;
        border-bottom: 1px solid var(--cream-200);
        font-size: 0.9rem;
    }

    .nav__link::after {
        display: none;
    }

    .nav__cta {
        margin-top: 16px;
        text-align: center;
        border: none;
        padding: 14px;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__img {
        height: 350px;
    }

    .about__badge {
        right: 16px;
        bottom: -16px;
    }

    .process__steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form {
        padding: 28px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta__actions {
        flex-direction: column;
    }

    .about__stats {
        flex-wrap: wrap;
        gap: 32px;
    }
}
