/* ── Hero Section ────────────────────────────── */
#hero {
    background: #0e7a6d;
    color: #fff;
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

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

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    display: block;
    margin-bottom: 0.75rem;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #fff;
}

#hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 520px;
}

.btn-cta {
    display: inline-block;
    background: #d4a017;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: #b8891a;
    color: #fff;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ── Featured Projects Section ──────────────── */
#featured-projects {
    background: #1a1a2e;
    color: #fff;
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.carousel-btn:hover {
    border-color: #d4a017;
    background: rgba(212,160,23,0.15);
}

/* Project Cards */
.project-card {
    flex: 0 0 calc(33.333% - 1.34rem);
    min-width: 260px;
    scroll-snap-align: start;
    text-align: center;
    padding: 2rem 1.5rem;
}

.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(14,122,109,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #0e7a6d;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.project-card p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.read-more {
    color: #d4a017;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more span {
    color: #0e7a6d;
    margin-left: 0.25rem;
}

.read-more:hover {
    color: #e8b72e;
}

/* ── Blog & Contact Sections ────────────────── */
#blog, #contact {
    padding: 3rem 0;
}

.blog-preview {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

/* ── Nav overrides for landing ──────────────── */
header.container nav a {
    color: inherit;
}

/* ── Footer ─────────────────────────────────── */
footer.container {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--pico-muted-border-color);
    margin-top: 0;
}

/* ── Non-landing pages need container on main content ── */
article header h3 {
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    #hero {
        padding: 3rem 0 6rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .project-card {
        flex: 0 0 80%;
    }

    .carousel-btn {
        display: none;
    }
}
