/**
 * Casvade Homepage Stylesheet
 * Version: 2.0 — Refined
 * Brand Colors: Primary Green #2E7D32, Accent Gold #FFC107
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --dark-green: #1B5E20;
    --accent-gold: #FFC107;
    --light-green-bg: #E8F5E9;
    --white: #FFFFFF;
    --dark-grey: #333333;
    --error-red: #D32F2F;
    --success-green: #388E3C;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
    font-family: Georgia, serif;
    color: var(--primary-green);
    line-height: 1.2;
}

h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    border-radius: 2px;
    margin: 0 auto 32px;
}

/* ===== FLOATING NAVBAR ===== */
.navbar {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 12px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--dark-grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    background: var(--light-green-bg);
    color: var(--primary-green);
}

.nav-cta {
    background: var(--accent-gold) !important;
    color: var(--dark-grey) !important;
    padding: 10px 22px !important;
    font-weight: bold !important;
}

.nav-cta:hover {
    background: #FFD54F !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.35) !important;
    transform: translateY(-1px);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--light-green-bg) 0%, var(--white) 60%);
    text-align: center;
    padding: 140px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 120%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 65%);
    z-index: 0;
    animation: drift 20s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 60%);
    z-index: 0;
    animation: drift 15s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--primary-green);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    font-weight: 900;
}

.hero-subheadline {
    font-size: 28px;
    color: var(--dark-grey);
    margin-bottom: 36px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--dark-grey);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out 0.6s forwards;
}

.btn-primary:hover {
    background-color: #FFD54F;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.btn-submit {
    background-color: var(--primary-green);
    color: var(--white);
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== THREE PILLARS SECTION ===== */
.pillars {
    background-color: var(--white);
}

.pillars h2 {
    text-align: center;
}

.pillars-subtitle {
    text-align: center;
    color: #666;
    font-size: 17px;
    margin-bottom: 48px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.pillar-card {
    text-align: center;
    padding: 40px 28px 36px;
    background-color: var(--white);
    border: 1px solid rgba(46, 125, 50, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.2);
}

.pillar-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.pillar-card h3 {
    color: var(--primary-green);
    margin-bottom: 12px;
}

.pillar-card p {
    color: var(--dark-grey);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== TRUST STATEMENT SECTION ===== */
.trust {
    background: linear-gradient(180deg, var(--light-green-bg) 0%, #F1F8F2 100%);
}

.trust-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.trust-content>p {
    font-size: 17px;
    line-height: 1.8;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    background-color: var(--white);
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 15px;
    color: var(--primary-green);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.08);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.1);
}

/* ===== EMAIL SIGNUP SECTION ===== */
.signup {
    background-color: var(--white);
}

.signup-content {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.signup-content h2 {
    font-size: 30px;
}

.signup-form {
    margin-top: 36px;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-grey);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    background: #FAFAFA;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}

.form-input.error {
    border-color: var(--error-red);
}

.form-input.valid {
    border-color: var(--primary-green);
}

.optional-label {
    font-weight: normal;
    font-size: 12px;
    color: #9E9E9E;
    margin-left: 4px;
}

.field-hint {
    font-size: 12px;
    color: #9E9E9E;
    margin-top: 6px;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.field-hint.hint-error {
    color: var(--error-red);
}

.field-hint.hint-valid {
    color: var(--success-green);
}

.field-disclaimer {
    font-size: 11px;
    color: #BDBDBD;
    font-style: italic;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
}

.signup-intro {
    font-size: 17px;
    color: var(--dark-grey);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.checkbox-group label {
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
    font-size: 15px;
    line-height: 1.5;
}

.privacy-text {
    font-size: 13px;
    color: #757575;
    margin-top: 16px;
    text-align: center;
}

.privacy-text a {
    color: inherit;
    text-decoration: underline;
}

.secondary-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 16px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    color: var(--light-green);
    border-bottom-color: var(--light-green);
}

/* ===== MESSAGES ===== */
.message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.message-success {
    background-color: #C8E6C9;
    color: var(--success-green);
    border: 2px solid var(--success-green);
}

.message-error {
    background-color: #FFCDD2;
    color: var(--error-red);
    border: 2px solid var(--error-red);
}

.message-info {
    background-color: #E3F2FD;
    color: #1976D2;
    border: 2px solid #1976D2;
}

.hidden {
    display: none !important;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, var(--dark-green) 0%, #143F18 100%);
    color: var(--white);
    padding: 48px 20px 28px;
    text-align: center;
}

.footer-logo {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    margin: 16px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin: 0 16px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-email {
    font-size: 14px;
    margin-top: 20px;
}

.footer-email a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
}

.footer-email a:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-size: 12px;
    margin-top: 24px;
    opacity: 0.7;
}

/* ===== HONEYPOT (HIDDEN) ===== */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: 120px 20px 80px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 22px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    section {
        padding: 60px 0;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }

    .nav-links .nav-text {
        display: none;
    }

    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 24px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 15px;
    }

    .hero {
        padding: 80px 16px 50px;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        left: 8px;
        right: 8px;
        padding: 10px 16px;
    }
}

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}