/* contato.css — Contact page */

/* ===========================
   HERO
=========================== */
.ct-hero {
    position: relative;
    height: clamp(340px, 50vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ct-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.05);
    transition: transform 8s ease-out;
    will-change: transform;
}

.ct-hero-bg.loaded {
    transform: scale(1);
}

.ct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 28, 10, 0.42) 0%,
        rgba(27, 94, 32, 0.30) 40%,
        rgba(6, 16, 6, 0.80) 100%
    );
}

.ct-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
    max-width: 640px;
}

.ct-hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--soft-gold);
    margin-bottom: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    animation: ctFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.ct-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
    opacity: 0;
    transform: translateY(16px);
    animation: ctFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

.ct-hero-sub {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    animation: ctFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.7s forwards;
}

@keyframes ctFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   MAIN LAYOUT
=========================== */
.ct-main {
    background: var(--light-gray);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.ct-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

/* ===========================
   FORM CARD
=========================== */
.ct-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ct-form-header {
    margin-bottom: 2rem;
}

.ct-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--soft-gold);
    margin-bottom: 0.5rem;
}

.ct-form-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--dark-green);
    letter-spacing: -0.015em;
    margin-bottom: 0.45rem;
}

.ct-form-header p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* Two-column row */
.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Field wrapper */
.ct-field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-bottom: 1.2rem;
}

.ct-label-text {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.ct-required {
    color: #c62828;
    font-size: 0.8rem;
    line-height: 1;
}

/* Inputs */
.ct-input,
.ct-select,
.ct-textarea {
    width: 100%;
    padding: 0.72rem 1rem;
    font-size: 0.94rem;
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background: var(--white);
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
    line-height: 1.5;
    touch-action: manipulation;
}

.ct-input::placeholder,
.ct-textarea::placeholder {
    color: #b5b5b5;
    font-size: 0.88rem;
}

.ct-input:focus,
.ct-select:focus,
.ct-textarea:focus {
    border-color: var(--moss-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.13);
}

.ct-input.is-error,
.ct-select.is-error,
.ct-textarea.is-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.ct-input.is-valid,
.ct-select.is-valid,
.ct-textarea.is-valid {
    border-color: var(--moss-green);
}

/* Custom select arrow */
.ct-select-wrap {
    position: relative;
}

.ct-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 0.7rem;
}

.ct-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Textarea */
.ct-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.65;
}

/* Field-level error */
.ct-field-error {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.77rem;
    color: #c62828;
    font-weight: 500;
}

.ct-field-error.visible {
    display: flex;
}

.ct-field-error i {
    font-size: 0.68rem;
    flex-shrink: 0;
}

/* Checkbox */
.ct-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.ct-checkbox-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    cursor: pointer;
    accent-color: var(--dark-green);
    margin-top: 2px;
}

.ct-checkbox-label {
    font-size: 0.84rem;
    color: #555;
    line-height: 1.55;
    cursor: pointer;
}

.ct-checkbox-label a {
    color: var(--moss-green);
    text-decoration: underline;
}

/* Submit button */
.ct-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--white);
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--moss-green) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    min-height: 52px;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(27, 94, 32, 0.28);
}

.ct-submit-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(27, 94, 32, 0.34);
}

.ct-submit-btn:active:not(:disabled) {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.ct-submit-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
}

.ct-submit-btn .btn-spinner {
    display: none;
    animation: ctSpin 0.65s linear infinite;
}

@keyframes ctSpin { to { transform: rotate(360deg); } }

.ct-submit-btn.loading .btn-spinner  { display: inline-block; }
.ct-submit-btn.loading .btn-icon,
.ct-submit-btn.loading .btn-text     { display: none; }

.ct-submit-btn.success               { background: linear-gradient(135deg, #256527, #2e7d32); }
.ct-submit-btn.success .btn-icon,
.ct-submit-btn.success .btn-text     { display: none; }
.ct-submit-btn.success .btn-success  { display: inline-flex; align-items: center; gap: 0.45rem; }
.ct-submit-btn .btn-success          { display: none; }

/* Form-level alert */
.ct-form-alert {
    display: none;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 1.25rem;
}

.ct-form-alert.success {
    display: flex;
    background: rgba(46, 125, 50, 0.08);
    border: 1px solid rgba(46, 125, 50, 0.28);
    color: #1b5e20;
}

.ct-form-alert.error {
    display: flex;
    background: rgba(229, 62, 62, 0.07);
    border: 1px solid rgba(229, 62, 62, 0.26);
    color: #c62828;
}

.ct-form-alert > i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===========================
   INFO SIDEBAR
=========================== */
.ct-info-stack {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

/* WhatsApp CTA */
.ct-whatsapp-card {
    background: linear-gradient(145deg, var(--dark-green) 0%, #2e7d32 100%);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    color: var(--white);
    text-align: center;
    box-shadow: 0 8px 28px rgba(27, 94, 32, 0.3);
}

.ct-wa-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.ct-whatsapp-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ct-whatsapp-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.3rem;
    line-height: 1.55;
}

.ct-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--dark-green);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ct-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    color: var(--dark-green);
}

.ct-wa-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* Info cards */
.ct-info-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.045);
}

.ct-info-card h4 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--soft-gold);
    margin-bottom: 1rem;
}

.ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.ct-info-item:last-child {
    margin-bottom: 0;
}

.ct-info-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(46, 125, 50, 0.09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    font-size: 0.88rem;
}

.ct-info-text strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.12rem;
}

.ct-info-text span,
.ct-info-text small {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    display: block;
}

/* Hours */
.ct-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.ct-hours-row:last-child {
    border-bottom: none;
}

.ct-hours-day   { font-size: 0.83rem; color: #555; font-weight: 500; }
.ct-hours-time  { font-size: 0.83rem; color: var(--dark-green); font-weight: 700; }
.ct-hours-closed { font-size: 0.83rem; color: #bbb; font-style: italic; }

/* FAQ link */
.ct-faq-card {
    background: rgba(196, 154, 108, 0.1);
    border: 1px solid rgba(196, 154, 108, 0.28);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: background 0.22s ease, transform 0.22s ease;
}

.ct-faq-card:hover {
    background: rgba(196, 154, 108, 0.18);
    transform: translateY(-2px);
    color: var(--dark-gray);
}

.ct-faq-card:active {
    transform: scale(0.98);
}

.ct-faq-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--soft-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.ct-faq-text strong {
    display: block;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.12rem;
}

.ct-faq-text span {
    font-size: 0.79rem;
    color: #888;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 960px) {
    .ct-grid {
        grid-template-columns: 1fr;
    }

    .ct-info-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ct-whatsapp-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .ct-row {
        grid-template-columns: 1fr;
    }

    .ct-info-stack {
        grid-template-columns: 1fr;
    }

    .ct-form-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}
