@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #FFFEF2;
    --text-color: #124e20;
    --accent-color: #0e5030;
    --border-color: #dee4df;
    
    --font-heading: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

.main-layout {
    width: 100%;
}

/* Sticky Group: HERO + RECADO */
.sticky-group {
    position: relative;
    width: 100%;
}

/* Sticky Column */
.sticky-column {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    background: #FFFEF2;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Scroll Column */
.scroll-column {
    width: 100%;
}

.container-left {
    width: 50%;
    padding: 31px 40px 60px 39px;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    width: 100%;
    background-color: var(--bg-color);
}

.logo-container {
    padding-top: 31px;
    padding-left: 80px;
    margin-bottom: 60px;
}

.logo-container img {
    height: 47px;
    width: auto;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
    padding-left: 80px;
    padding-right: 60px; /* Safety margin before the image */
}

.hero-header-group {
    width: fit-content;
    margin-bottom: 32px;
}

.headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(28px, 2.5vw, 48px); /* Adjusted scaling to prevent overlap */
    line-height: 1.1;
    color: var(--accent-color);
    margin-bottom: 24px;
    white-space: nowrap; /* Keeps each phrase on one line */
}

.subheadline {
    font-size: 16px;
    width: 100%;
}

.cta-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 16px 32px;
    border-radius: 1000px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cta-note {
    font-size: 12px;
    max-width: 380px;
    opacity: 0.8;
}

/* Recado Section */
.recado-section {
    width: 100%;
    background-color: #ebeee1;
    padding: 40px 0;
}

.recado-content {
    max-width: 640px;
    padding-left: 80px; /* Aligns with hero content */
}

.recado-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 28px;
    color: #0d451a;
    margin-bottom: 24px;
}

.recado-body {
    font-size: 14px;
    line-height: 1.6;
    color: #124e20;
}

.recado-body p {
    margin-bottom: 12px;
}

.signature {
    margin-top: 32px;
    line-height: 1.4;
}

/* Form Section */
.form-section {
    width: 100%;
    background-color: #FFFEF2;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
}

.form-container {
    max-width: 560px;
    width: 100%;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 600;
    color: #124E20;
    margin-bottom: 16px;
    line-height: normal;
}

.form-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #124E20;
    margin-bottom: 40px;
    line-height: 20px;
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center; /* Centers the button */
}

.form-group {
    width: 100%; /* Ensures inputs still span full width */
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    border: 1px solid rgba(18, 78, 32, 0.14);
    background: rgba(255, 255, 255, 0.80);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.form-group input::placeholder {
    color: rgba(18, 78, 32, 0.80);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: #fff;
    padding: 16px 32px;
    border-radius: 1000px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    text-align: center;
    margin-top: 12px;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    width: 100%;
    background-color: #FFFEF2;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(18, 78, 32, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.email-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.footer-email {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-email:hover {
    opacity: 0.8;
}

.copy-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    position: relative;
}

.copy-btn:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    white-space: nowrap;
}

.tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(18, 78, 32, 0.1);
    border: 1px solid rgba(18, 78, 32, 0.05);
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(18, 78, 32, 0.15);
    transform: translateY(-2px);
}

.social-icon svg {
    display: block;
}

/* Responsive */
@media (max-width: 968px) {
    .sticky-group {
        display: flex;
        flex-direction: column;
    }

    .scroll-column, .hero-section {
        display: contents; /* Neutral wrappers for ordering */
    }

    .logo-container {
        order: 1;
        padding: 40px 24px 20px;
        background-color: var(--bg-color);
    }

    .sticky-column {
        order: 2;
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .sticky-container {
        height: auto;
        padding: 20px 24px;
    }

    .image-wrapper {
        border-radius: 20px;
        aspect-ratio: 1/1;
        height: auto;
    }

    .container-left {
        order: 3;
        padding: 40px 24px;
        background-color: var(--bg-color);
        width: 100%;
    }

    .hero-text, .recado-content {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
    }

    .recado-section {
        order: 4;
    }

    .recado-content {
        padding: 40px 24px;
    }
    
    .headline {
        font-size: 32px;
        white-space: normal;
    }

    .hero-header-group {
        width: 100%;
    }

    .subheadline {
        max-width: 100%;
    }
    
    .form-title {
        font-size: 32px;
    }

    .form-section {
        padding: 60px 24px;
        order: 5;
    }

    .site-footer {
        order: 6;
    }

    .email-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .footer-email {
        font-size: 18px;
    }
}
