/* Global CSS Variables Architecture */
:root {
    /* Color Palette */
    --color-cirro: #77c1d0;
    --color-cirro-light: rgba(119, 193, 208, 0.15);
    --color-organizer: #14588f;
    --color-accent: #FF6B6B;
    --color-nautical: #2daae1;
    --color-dark: #2e2d2c;
    
    /* System Colors */
    --color-success-bg: #dcfce7;
    --color-success-text: #166534;
    --color-success-border: #bbf7d0;
    
    --color-error-bg: #fee2e2;
    --color-error-text: #991b1b;
    --color-error-border: #fecaca;

    /* Typography */
    --tracking-display: -0.02em;
}

/* Base Document Configuration */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Tweaks */
h1, h2, h3, h4, h5, h6, .font-display {
    font-weight: 600;
    letter-spacing: var(--tracking-display);
}

/* Interactive Elements Base Styles */
input:focus, 
select:focus, 
textarea:focus {
    box-shadow: 0 0 0 4px var(--color-cirro-light);
    outline: none;
}

/* Custom Scrollbar Optimization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color-cirro);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-organizer);
}

/* Hero Section Enhancements */
.hero-shadow {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Interactive Feedback (Forms) */
.form-message-success {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
    display: block;
}

.form-message-error {
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
    display: block;
}

/* UI Elements - Loading Indicator */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Base CSS Components (Using purely CSS matching Tailwind utilities to avoid @apply compilation bugs with internal tools) */
.section-spacing {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}
@media (min-width: 1024px) {
    .section-spacing {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}
.section-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .section-container { max-width: 640px; } }
@media (min-width: 768px) { .section-container { max-width: 768px; } }
@media (min-width: 1024px) { .section-container { max-width: 1024px; } }
@media (min-width: 1280px) { .section-container { max-width: 1280px; } }
@media (min-width: 1536px) { .section-container { max-width: 1536px; } }

.layout-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .layout-split {
        flex-direction: row;
        gap: 4rem;
    }
}

.layout-split-col-1-2 {
    width: 100%;
}
@media (min-width: 1024px) {
    .layout-split-col-1-2 { width: 50%; }
}

.layout-split-col-1-3 {
    width: 100%;
    display: flex;
    justify-content: center;
}
@media (min-width: 1024px) {
    .layout-split-col-1-3 { width: 33.333333%; }
}

.layout-split-col-2-3 {
    width: 100%;
}
@media (min-width: 1024px) {
    .layout-split-col-2-3 { width: 66.666667%; }
}

.heading-primary {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: 2.25rem;
    line-height: 2.5rem;
    color: var(--color-organizer);
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .heading-primary {
        font-size: 3rem;
        line-height: 1;
        margin-bottom: 2rem;
    }
}

.text-body-lg {
    font-size: 1.125rem;
    line-height: 1.625;
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .text-body-lg {
        font-size: 1.25rem;
        line-height: 1.75rem;
        margin-bottom: 2rem;
    }
}

.btn-base, .btn-accent, .btn-cirro, .btn-organizer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    text-align: center;
}
@media (min-width: 1024px) {
    .btn-base, .btn-accent, .btn-cirro, .btn-organizer {
        padding: 1rem 2.5rem;
    }
}
.btn-base:hover, .btn-accent:hover, .btn-cirro:hover, .btn-organizer:hover {
    transform: scale(1.05);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(118, 194, 209, 0.3);
}
.btn-accent:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-accent);
}

.btn-cirro {
    background-color: var(--color-cirro);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(119, 193, 208, 0.4);
}
.btn-cirro:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-cirro);
}

.btn-organizer {
    background-color: var(--color-organizer);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}
.btn-organizer:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--color-organizer);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.feature-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    border: 1px solid #f3f4f6; /* gray-100 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom Transitions & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
    
/* Hide reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

