/* ============================================
   Synthesize360 — Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }

/* --- Colors --- */
:root {
    --navy: #1a2332;
    --navy-light: #243044;
    --teal: #2a9d8f;
    --teal-dark: #21867a;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-400: #adb5bd;
    --gray-600: #6c757d;
    --white: #ffffff;
    --red: #dc3545;
    --green: #28a745;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--lg { padding: 16px 40px; font-size: 1.1rem; }
.btn--full { width: 100%; }
.btn--nav {
    padding: 8px 24px;
    background: var(--teal);
    color: var(--white);
    border-radius: 6px;
}
.btn--nav:hover { background: var(--teal-dark); }

/* --- Accent Text --- */
.accent { color: var(--teal); }
.required { color: var(--red); }

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 0 0;
    box-shadow: none;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav--solid {
    background: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav__logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--teal); }

/* Mobile nav toggle */
.nav__toggle-input { display: none; }
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 120px 24px 80px;
}
.hero__inner { width: 100%; }
.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero__tagline {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* --- Sections --- */
.section {
    padding: 100px 0;
}
.section--alt {
    background: var(--gray-50);
}
.section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 16px;
}
.section__subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto 48px;
}

/* --- About --- */
.about__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
}
.about__text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}
.about__stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.stat {
    text-align: center;
    padding: 24px;
    background: var(--gray-50);
    border-radius: 12px;
}
.stat__number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--teal);
}
.stat__label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* --- Service Cards --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 3px solid transparent;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top-color: var(--teal);
}
.card__icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--teal);
}
.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.card__text {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Contact Form --- */
.form { margin-top: 8px; }
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form__field { margin-bottom: 20px; }
.form__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-100);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form__input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}
.form__input::placeholder { color: var(--gray-400); }
.form__textarea { resize: vertical; min-height: 140px; }

/* Honeypot — hidden from humans, multiple techniques */
.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* --- Alerts --- */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
}
.alert--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: var(--gray-400);
    padding: 40px 0;
    text-align: center;
}
.footer__inner { }
.footer__brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.footer__copy {
    font-size: 0.85rem;
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Nav */
    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--navy);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav__toggle-input:checked ~ .nav__links {
        max-height: 300px;
        padding-bottom: 16px;
    }
    .nav { background: var(--navy); }
    .nav__links li { width: 100%; text-align: center; }
    .nav__links a {
        display: block;
        padding: 12px 24px;
    }
    .btn--nav {
        margin: 8px 24px;
        display: block;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about__stats {
        flex-direction: row;
        justify-content: center;
    }

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

    /* Form */
    .form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sections */
    .section { padding: 64px 0; }
    .hero { padding: 100px 24px 64px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .btn--lg { padding: 14px 32px; font-size: 1rem; }
    .about__stats { flex-direction: column; }
    .stat { padding: 16px; }
}
