@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:wght@400&family=Inter:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #253f5c;
    --color-cream: #f5f0e8;
    --color-warm-gray: #948e87;
    --color-beige-muted: #d7cbb5;
    --font-serif: 'Instrument Serif', 'Garamond', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-primary);
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

html, body {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 795px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 60px 20px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.logo-soma {
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-tags {
    display: none;
}

.hero-cta {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--color-cream);
    letter-spacing: 0;
    margin-bottom: 30px;
}

.arrow-down {
    cursor: pointer;
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0;
    margin-top: auto;
}

.arrow-down svg {
    width: 20px;
    height: 50px;
    display: block;
}

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

/* About Section */
.about-section {
    background-color: var(--color-cream);
    padding: 106px 0;
}

.about-container {
    max-width: 1116px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 83px;
}

.about-content {
    display: flex;
    gap: 203px;
    align-items: flex-end;
}

.about-text {
    flex: 0 0 527px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 24px;
    color: var(--color-primary);
}

.about-highlight {
    flex: 0 0 386px;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 32px;
    color: var(--color-primary);
}

.about-image {
    width: 100%;
    height: 619px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Section */
.footer-section {
    background-color: var(--color-warm-gray);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-logo {
    width: 242px;
    height: 36px;
    display: block;
}

/* Form Section */
.form-section {
    background-color: var(--color-cream);
    padding: 80px 20px;
}

.form-container {
    max-width: 713px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 55px;
    color: var(--color-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0;
}

.form-subtitle {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 24px;
    color: #000;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 50px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 32px;
}

.form-input {
    border: none;
    border-bottom: 2px solid var(--color-warm-gray);
    background: transparent;
    padding: 16px 0 12px 0;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 32px;
    color: var(--color-primary);
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: var(--color-primary);
}

.form-input.input-error {
    border-bottom-color: #c00;
    color: #c00;
}

.form-input::placeholder {
    color: var(--color-warm-gray);
    opacity: 0.7;
}

.field-error {
    color: #c00;
    font-size: 14px;
    margin-top: 4px;
    text-align: center;
    animation: shake 0.4s ease;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 0 30px 0;
}

.cf-turnstile {
    transform: scale(1);
    transform-origin: center;
}

.form-button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
    width: 225px;
    margin-top: 50px;
}

.form-button:hover {
    background-color: #1a2f48;
}

.form-button:active {
    transform: scale(0.98);
}

/* Form Content and Success Message */
.form-content,
.success-message {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.form-content.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.success-message {
    display: none;
    opacity: 0;
    visibility: hidden;
}

.success-message:not(.hidden) {
    display: block;
    opacity: 1;
    visibility: visible;
}

.success-content {
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-content h2 {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 55px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0;
}

.success-content p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 24px;
    color: var(--color-primary);
    margin-bottom: 40px;
}

.reset-button {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.36px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 225px;
}

.reset-button:hover {
    background-color: #1a2f48;
}

.reset-button:active {
    transform: scale(0.98);
}

/* Error Message */
.error-message {
    background-color: #fee;
    border-left: 4px solid #c00;
    color: #c00;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    display: none;
}

.error-message:not(.hidden) {
    display: block;
    animation: shake 0.4s ease;
}

.error-message.hidden {
    display: none;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design */

/* Tablets - 768px y menos */
@media (max-width: 1024px) {
    .logo-soma {
        max-width: 350px;
    }

    .about-container {
        gap: 60px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .about-text,
    .about-highlight {
        flex: 0 0 auto;
        width: 100%;
        max-width: 600px;
    }

    .about-image {
        height: 400px;
    }

    .form-container {
        max-width: 90%;
    }

    .footer-logo {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .logo-soma {
        max-width: 280px;
    }

    .hero-cta {
        font-size: 24px;
    }

    .arrow-down svg {
        width: 16px;
        height: 40px;
    }

    .form-title {
        font-size: 36px;
        line-height: 42px;
    }

    .form-subtitle {
        font-size: 16px;
    }

    .form-input {
        font-size: 24px;
        padding: 12px 0 8px 0;
    }

    .form-group {
        margin-bottom: 24px;
    }

    .form-button {
        width: auto;
        padding: 14px 20px;
        font-size: 16px;
        margin-top: 40px;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-text {
        font-size: 16px;
        line-height: 22px;
    }

    .about-highlight {
        font-size: 24px;
        line-height: 28px;
    }

    .footer-section {
        padding: 30px 20px;
    }

    .footer-logo {
        width: 180px;
    }

    .turnstile-wrapper {
        padding: 30px 0 20px 0;
    }
}

/* Mobile - 480px y menos */
@media (max-width: 480px) {
    .hero {
        height: 450px;
    }

    .hero-content {
        padding: 30px 15px;
        gap: 0;
    }

    .logo-soma {
        max-width: 220px;
    }

    .hero-cta {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .arrow-down {
        margin-bottom: 20px;
    }

    .arrow-down svg {
        width: 14px;
        height: 35px;
    }

    .form-section {
        padding: 50px 15px;
    }

    .form-container {
        max-width: 100%;
        padding: 0;
    }

    .form-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 12px;
    }

    .form-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .form-input {
        font-size: 20px;
        padding: 10px 0 6px 0;
        border-bottom-width: 1.5px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-button {
        width: 100%;
        max-width: 180px;
        padding: 12px 20px;
        font-size: 14px;
        margin-top: 30px;
    }

    .about-section {
        padding: 40px 15px;
    }

    .about-container {
        gap: 40px;
    }

    .about-text {
        font-size: 14px;
        line-height: 20px;
    }

    .about-highlight {
        font-size: 20px;
        line-height: 24px;
    }

    .about-image {
        height: 300px;
    }

    .error-message {
        font-size: 14px;
        padding: 12px;
    }

    .success-content h2 {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 15px;
    }

    .success-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .reset-button {
        width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }

    .footer-section {
        padding: 25px 15px;
    }

    .footer-logo {
        width: 150px;
    }

    .turnstile-wrapper {
        padding: 20px 0 15px 0;
    }

    .cf-turnstile {
        transform: scale(0.9) !important;
        transform-origin: center;
    }
}

/* Extra small - 320px y menos */
@media (max-width: 360px) {
    .hero {
        height: 400px;
    }

    .logo-soma {
        max-width: 180px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-input {
        font-size: 18px;
    }

    .about-text {
        font-size: 13px;
    }

    .about-highlight {
        font-size: 18px;
    }

    .footer-logo {
        width: 120px;
    }
}
