/* Global Reset & Base Layout */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    color: var(--color-slate-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-slate-dark);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--color-blue-primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--color-teal-accent);
}

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

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-premium);
}

.btn-primary {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-teal-accent);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium-hover);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-blue-primary);
    color: var(--color-blue-primary);
}

.btn-secondary:hover {
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium-hover);
}

/* Header & Navigation */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-brand a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-slate-dark);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-slate-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-blue-primary);
    transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-blue-primary);
}

/* Mobile Navigation Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-slate-dark);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu-toggle span:last-child {
    margin-bottom: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-bottom: 1px solid var(--color-gray-border);
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--color-teal-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--color-slate-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--color-slate-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

/* Info Cards & Grids */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 4rem auto 3rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-premium);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium-hover);
    border-color: transparent;
}

.card-icon {
    font-size: 2rem;
    color: var(--color-teal-accent);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--color-slate-muted);
}

.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tabs Component */
.tabs-container {
    background: var(--color-gray-light);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tabs-list {
    display: flex;
    border-bottom: 2px solid var(--color-gray-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-slate-muted);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--color-blue-primary);
}

.tab-btn[aria-selected="true"] {
    color: var(--color-blue-primary);
    border-bottom-color: var(--color-blue-primary);
}

.tab-panel {
    display: none;
    outline: none;
}

.tab-panel.is-active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Contact Form CSS */
.contact-form-container {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-slate-dark);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--color-gray-border);
    border-radius: 4px;
    background-color: var(--color-gray-light);
    color: var(--color-slate-dark);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field-error-message {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-response-alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-response-alert.success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.form-response-alert.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Footer Section */
.site-footer {
    background-color: var(--color-slate-dark);
    color: var(--color-gray-light);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.site-footer h2, 
.site-footer h3,
.site-footer a {
    color: var(--color-white);
}

.site-footer a:hover {
    color: var(--color-teal-accent);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .widget li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.85rem;
}

.copyright {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Simple breadcrumb styling */
.breadcrumbs {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    padding: 1rem 0;
    color: var(--color-slate-muted);
}

.breadcrumbs a {
    color: var(--color-blue-primary);
}

.breadcrumbs span {
    margin: 0 0.5rem;
}
