/*
|--------------------------------------------------------------------------
| Base — Reset & Global Styles
|--------------------------------------------------------------------------
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Typography Helpers
|--------------------------------------------------------------------------
*/

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--blue-600);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--blue-500);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 400;
    color: var(--blue-900);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--text-xl);
    line-height: 1.75;
    color: var(--gray-400);
    max-width: 500px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.section-header-center {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.section-header-center .section-desc {
    margin: 0 auto;
}

/*
|--------------------------------------------------------------------------
| Form Card — Shared form container (careers, contact, register)
|--------------------------------------------------------------------------
*/

.form-section {
    background: var(--gray-50);
}

.form-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-3xl);
    padding: var(--space-3xl) var(--space-2xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
}

.form-card-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.form-card-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 400;
    color: var(--blue-900);
    margin-bottom: var(--space-sm);
}

.form-card-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-400);
    line-height: 1.6;
}

.form-card-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-card-submit {
    align-self: center;
    margin-top: var(--space-md);
}

/* Form feedback — button spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

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

/* ── Toast Notification (shared: admin + public forms) ── */

.ie-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--blue-900);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: var(--text-md);
    font-weight: 500;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(16px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ie-toast.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ie-toast svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ie-toast--success svg {
    color: #22c55e;
}

.ie-toast--error {
    background: #7f1d1d;
    border-left: 4px solid #ef4444;
}

.ie-toast--error svg {
    color: #ef4444;
}

@media (max-width: 640px) {
    .ie-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .back-to-top {
        left: 16px;
        right: auto;
    }
}

/*
|--------------------------------------------------------------------------
| Feature Item — Shared icon+text list item (about, highlights)
|--------------------------------------------------------------------------
*/

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: var(--space-md);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--blue-50);
}

.feature-item-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-lg);
    background: var(--blue-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item-icon svg {
    width: 18px;
    height: 18px;
    color: var(--blue-600);
}

.feature-item h4 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--blue-900);
    margin-bottom: 3px;
}

.feature-item p {
    font-size: var(--text-base);
    color: var(--gray-400);
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Empty State — Shared empty/no-results state (blog, FAQ, track record)
|--------------------------------------------------------------------------
*/

.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-full);
    background: var(--blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-400);
}

.empty-state h3 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    color: var(--blue-900);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--gray-400);
    font-size: var(--text-md);
}

/*
|--------------------------------------------------------------------------
| Link Accent — Shared inline link style (email, phone, map)
|--------------------------------------------------------------------------
*/

.link-accent {
    color: var(--blue-600);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--blue-100);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.link-accent:hover {
    text-decoration-color: var(--blue-600);
}

@media (max-width: 640px) {
    .form-card {
        padding: var(--space-2xl) var(--space-lg);
    }
}

/*
|--------------------------------------------------------------------------
| Back to Top Button
|--------------------------------------------------------------------------
*/

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xl);
    background: var(--blue-600);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(35, 80, 160, 0.3);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/*
|--------------------------------------------------------------------------
| Reveal Animation (IntersectionObserver)
|--------------------------------------------------------------------------
*/

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}