/* ========================================
   Sarallo Weather Consulting LLC
   ======================================== */

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

:root {
    --navy: #1a2744;
    --navy-light: #243352;
    --blue: #2c6fbb;
    --blue-light: #3a8fd4;
    --slate: #475569;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --white: #ffffff;
    --gold: #c9a84c;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

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

a:hover {
    color: var(--blue-light);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 39, 68, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo:hover {
    color: var(--gray-200);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.btn-nav {
    background: var(--blue);
    padding: 8px 20px;
    border-radius: 6px;
    color: var(--white) !important;
}

.btn-nav:hover {
    background: var(--blue-light);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2744 0%, #1e3a5f 40%, #2c5f8a 70%, #1a2744 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(44, 111, 187, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--blue-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 111, 187, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   Sections (shared)
   ======================================== */

.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-line {
    width: 50px;
    height: 3px;
    background: var(--blue);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-text .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.about-text p {
    color: var(--slate);
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: var(--gray-100);
    border-left: 4px solid var(--blue);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.highlight-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--slate);
    line-height: 1.5;
}

/* ========================================
   Services Section
   ======================================== */

.services-section {
    background: var(--gray-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--blue);
}

.service-icon {
    width: 44px;
    height: 44px;
    color: var(--blue);
    margin-bottom: 20px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ========================================
   Qualifications Section
   ======================================== */

.qualifications-section {
    background: var(--white);
}

.quals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.qual-category h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.qual-item h4 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.qual-item p {
    font-size: 0.92rem;
    color: var(--slate);
    margin-bottom: 4px;
}

.qual-detail {
    font-size: 0.85rem !important;
    color: var(--gray-600) !important;
    font-style: italic;
    margin-top: 8px !important;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.92rem;
    color: var(--slate);
    margin-bottom: 8px;
    line-height: 1.6;
}

.expertise-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.5;
}

/* ========================================
   Experience / Timeline
   ======================================== */

.experience-section {
    background: var(--gray-100);
}

.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--blue);
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background: var(--blue);
}

.timeline-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 2px;
}

.timeline-org {
    font-size: 0.92rem;
    color: var(--slate);
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-content p:last-child {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background: var(--navy);
    color: var(--white);
}

.contact-section .section-header h2 {
    color: var(--white);
}

.contact-section .section-line {
    background: var(--gold);
}

.contact-section .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin: 0 auto 16px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.contact-card a,
.contact-card p {
    color: var(--white);
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: var(--gold);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: #141e33;
    padding: 24px 0;
    text-align: center;
}

.footer p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quals-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--navy);
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-marker {
        left: -32px;
    }

    .hero-content {
        padding: 100px 16px 60px;
    }
}
