*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-deep: #1a3d2b;
    --green-mid: #2e6b47;
    --green-light: #4e9d69;
    --green-pale: #b8ddc8;
    --earth: #c8a96e;
    --earth-light: #f0e4cc;
    --cream: #faf7f2;
    --white: #ffffff;
    --text-dark: #1a2e22;
    --text-muted: #5a7a65;
    --shadow: rgba(30, 70, 45, 0.15);
}

html,
body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── Background ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(78, 157, 105, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 100%, rgba(200, 169, 110, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(184, 221, 200, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Grain texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Layout ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    padding: 3.5rem 3rem 3rem;
    max-width: 620px;
    width: 100%;
    box-shadow:
        0 4px 6px var(--shadow),
        0 20px 60px rgba(30, 70, 45, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Logo / Brand ── */
.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
    animation: fadeDown 0.7s 0.1s ease both;
}

.brand-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.brand-row img{
    width: 50px;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-name span {
    color: var(--green-light);
}

/* ── Illustration ── */
.illustration-wrap {
    margin: 0 auto 2rem;
    width: 110px;
    height: 110px;
    animation: fadeDown 0.7s 0.2s ease both;
}

/* ── Headlines ── */
.headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 5vw, 2.4rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    animation: fadeDown 0.7s 0.3s ease both;
}

.subheadline {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    animation: fadeDown 0.7s 0.25s ease both;
}

.description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto 2.2rem;
    animation: fadeDown 0.7s 0.4s ease both;
}

/* ── Progress bar ── */
.progress-section {
    margin-bottom: 2.2rem;
    animation: fadeDown 0.7s 0.45s ease both;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.progress-track {
    height: 6px;
    background: var(--earth-light);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--green-mid), var(--green-light), var(--earth));
    border-radius: 99px;
    animation: fillBar 2.2s 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeDown 0.7s 0.5s ease both;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-pale), transparent);
}

.divider-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Buttons ── */
.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    animation: fadeDown 0.7s 0.55s ease both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 99px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    white-space: nowrap;
}

.btn-email {
    background: var(--green-deep);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(26, 61, 43, 0.28);
}

.btn-email:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 61, 43, 0.32);
}

.btn-whatsapp {
    background: var(--earth-light);
    color: var(--green-deep);
    border: 1.5px solid rgba(78, 157, 105, 0.25);
    box-shadow: 0 2px 10px rgba(30, 70, 45, 0.08);
}

.btn-whatsapp:hover {
    background: var(--green-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 157, 105, 0.2);
}

.btn svg {
    flex-shrink: 0;
}

/* ── Footer ── */
footer {
    margin-top: 2.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    opacity: 0.8;
    animation: fadeDown 0.7s 0.65s ease both;
}

/* ── Floating leaves ── */
.leaves-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    opacity: 0;
    animation: floatLeaf linear infinite;
}

.leaf svg {
    display: block;
}

/* ── Keyframes ── */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fillBar {
    from {
        width: 0%;
    }

    to {
        width: 72%;
    }
}

@keyframes floatLeaf {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }

    10% {
        opacity: 0.35;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: translateY(-105vh) rotate(360deg);
    }
}

@keyframes spinnerRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(0.7);
    }
}

/* ── Spinner ── */
.spinner-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    animation: fadeDown 0.7s 0.35s ease both;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--green-pale);
    border-top-color: var(--green-light);
    border-radius: 50%;
    animation: spinnerRing 1s linear infinite;
    flex-shrink: 0;
}

.spinner-text {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--green-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dot {
    display: inline-block;
    animation: pulse-dot 1.4s ease infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .card {
        padding: 2.5rem 1.5rem 2rem;
        border-radius: 20px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }
}