/* ===========================
   GLOBAL LAYOUT
=========================== */

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.st-section {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.st-section-alt {
    background: #f9fafb;
    border-radius: 1rem;
    text-align: center;
}


/* ===========================
   NAVIGATION BAR
=========================== */

/* Desktop nav layout */
.st-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.st-nav-left {
    display: flex;
    align-items: center;
}

.st-brand {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: #111827;
}

.st-nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.st-nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

    .st-nav-link:hover {
        color: #111827;
    }

.st-nav-cta {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #111827;
}

/* Hamburger button – hidden on desktop */
.st-nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: #111827;
}


/* ===========================
   MOBILE NAVIGATION
=========================== */

@media (max-width: 768px) {

    .st-nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .st-nav-left {
        flex: 1;
    }

    /* Show hamburger */
    .st-nav-toggle {
        display: block;
    }

    /* Hide menu links by default */
    .st-nav-right {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-top: 0.5rem;
        display: none;
    }

        /* When open, show menu links */
        .st-nav-right.is-open {
            display: flex !important;
        }

    .st-nav-link,
    .st-nav-cta {
        padding: 0.25rem 0;
    }
}



/* ===========================
   HERO SECTION
=========================== */

.st-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .st-hero {
        grid-template-columns: 1fr;
    }
}

.st-hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.st-hero-text p {
    font-size: 1rem;
    line-height: 1.7;
}

.st-hero-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.st-hero-note {
    font-size: 0.9rem;
    color: #6b7280;
}


/* ===========================
   BUTTONS
=========================== */

.st-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.st-btn-primary {
    background: #111827;
    color: #ffffff;
}

.st-btn-secondary {
    border: 1px solid #111827;
    color: #111827;
    background: white;
}


/* ===========================
   CARDS + GRID
=========================== */

.st-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: #ffffff;
}

.st-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .st-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ===========================
   CONTACT FORM STYLES
=========================== */

.st-contact h1 {
    margin-bottom: 0.5rem;
}

.st-contact p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Grid layout for name/email fields */
.st-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 700px) {
    .st-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Field wrapper */
.st-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

    /* Make sure labels look consistent */
    .st-form-field label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #374151;
    }

/* Inputs / textarea */
.st-input {
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

/* Ensure Bootstrap .form-control doesn't override */
.st-contact .st-input.form-control {
    border-radius: 0.5rem !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

/* Textarea */
.st-input-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Validation summary */
.st-validation-summary {
    margin-bottom: 0.75rem;
    color: #b91c1c;
    font-size: 0.9rem;
}

/* Success message */
.st-success {
    margin-top: 1rem;
    color: #16a34a;
    font-size: 0.9rem;
}
