/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #13305a;
    --primary-dark: #1b4a86;
    --primary-color: #1f74b8;
    --sky: #4aa3de;
    --green: #3a9a47;
    --green-dark: #2e7d39;
    --text-dark: #1b2733;
    --text-light: #566574;
    --bg-light: #f2f6f9;
    --bg-white: #ffffff;
    --border-color: #dce4eb;
    --shadow-sm: 0 1px 2px 0 rgba(15, 35, 60, 0.06);
    --shadow-md: 0 4px 10px -2px rgba(15, 35, 60, 0.12);
    --shadow-lg: 0 12px 24px -6px rgba(15, 35, 60, 0.16);
    --shadow-xl: 0 22px 40px -10px rgba(15, 35, 60, 0.22);
    --radius: 12px;
    --nav-height: 76px;
    --transition: all 0.3s ease;
    --font-display: 'Barlow Semi Condensed', 'Inter', 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--primary-color);
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 2000;
}

.skip-link:focus {
    left: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-full {
    height: 34px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--navy);
}

.btn-nav {
    padding: 0.5rem 1.1rem;
    background: var(--navy);
    color: var(--bg-white);
    font-size: 0.9375rem;
}

.btn-nav:hover {
    background: var(--primary-color);
}

.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 80px) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    background:
        linear-gradient(180deg, rgba(10, 30, 60, 0.35) 0%, rgba(10, 30, 60, 0.55) 55%, rgba(10, 30, 60, 0.85) 100%),
        url('assets/photos/hero-river.jpg') center / cover no-repeat;
}

.hero-content {
    max-width: 720px;
    animation: fadeInUp 0.8s ease;
}

.hero-eyebrow,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-eyebrow {
    color: #bfe3ff;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.25rem;
    opacity: 0.95;
    line-height: 1.75;
}

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

.hero-stats {
    margin-top: 5rem;
    background: rgba(10, 30, 60, 0.55);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.stat:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.85;
}

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

/* Section Styles */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* Reveal-on-scroll (only when JS is running) */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

/* Services */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    border-top-color: var(--green);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image img.img-bottom {
    object-position: center bottom;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-body {
    padding: 1.75rem 2rem 2rem;
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.service-lede {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.feature-groups {
    display: grid;
    gap: 1rem;
}

.feature-groups h4 {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    font-size: 0.975rem;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.8rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.service-features ul {
    list-style: none;
    margin-top: 0.2rem;
}

.service-features ul li {
    color: var(--text-light);
    font-size: 0.925rem;
    padding: 0.15rem 0 0.15rem 1.1rem;
}

.service-features ul li::before {
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 2px;
    border-radius: 0;
    background: var(--text-light);
}

.service-card-cta {
    background: linear-gradient(145deg, var(--navy), var(--primary-color));
    border: none;
    color: white;
    justify-content: center;
}

.service-card-cta h3 {
    color: white;
}

.service-card-cta p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.service-card-cta .cta-divider {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1rem 0.75rem;
    color: white;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(10, 30, 60, 0.75));
}

/* Banner */
.banner {
    height: 45vh;
    min-height: 260px;
    background: url('assets/photos/mountains-banner.jpg') center / cover no-repeat;
    background-attachment: fixed;
}

/* About */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.eyebrow {
    color: var(--green);
    margin-bottom: 0.5rem;
}

.about-text .section-title {
    margin-bottom: 1.25rem;
}

.about-highlight {
    display: inline-block;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg-light);
    border-left: 4px solid var(--green);
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
}

.about-text > p:last-child {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-photo-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-photo-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.story {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 3rem 3.5rem;
}

.story-title {
    font-size: 2.25rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.story-body p {
    margin-bottom: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.story-quote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--primary-dark);
    border-left: 4px solid var(--sky);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 0 0 1.25rem;
}

.story-body .story-note {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--text-light);
}

.story-body .story-closing {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Team */
.team {
    background: var(--bg-light);
}

.team-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2rem 1.5rem;
}

.team-member {
    text-align: center;
}

.team-member img,
.team-avatar {
    width: 100%;
    max-width: 180px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-white);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(145deg, var(--primary-dark), var(--sky));
}

.team-member h3 {
    font-size: 1.25rem;
    color: var(--navy);
}

/* Contact */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    background: url('assets/photos/contact-stream.jpg') center / cover no-repeat;
    opacity: 0.08;
}

.contact .container {
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
    align-items: start;
}

.contact-info > p {
    color: var(--text-light);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1.75rem;
}

.contact-list li {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: 600;
    color: var(--navy);
}

.contact-list a {
    text-decoration: none;
    font-weight: 500;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 116, 184, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d8f3dc;
    color: #1b5e20;
    display: block;
}

.form-message.error {
    background: #fde2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--navy);
    color: white;
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-brand address {
    font-style: normal;
    line-height: 1.8;
    opacity: 0.85;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.bbb {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.bbb img {
    height: 50px;
    width: auto;
    background: white;
    border-radius: 6px;
    padding: 3px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0.75;
    font-size: 0.9375rem;
}

/* 404 */
.not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-light);
}

.not-found img {
    height: 40px;
    width: auto;
    margin: 0 auto 2rem;
}

.not-found p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1060px) {
    .nav-menu {
        gap: 1.25rem;
    }

    .logo-full {
        height: 28px;
    }
}

@media (max-width: 968px) {
    .about-intro,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3.25rem;
    }

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

    .banner {
        background-attachment: scroll;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 50px);
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.075rem;
    }

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

    .stat,
    .stat:first-child {
        padding: 1rem 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .stat:first-child {
        border-top: none;
    }

    .section-title {
        font-size: 2.1rem;
    }

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

    .feature-groups,
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feature-groups > div + div {
        margin-top: 1rem;
    }

    .story {
        padding: 2rem 1.5rem;
    }

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

    .contact-form {
        padding: 1.75rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

    .contact-list li {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
