/* Base reset-ish */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #0f172a;
    line-height: 1.6;
}

/* Layout utilities */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography helpers */

h1, h2, h3, h4 {
    font-family: "Lora", "Georgia", serif;
    color: #0b1120;
    line-height: 1.25;
}

p {
    font-size: 0.98rem;
    color: #4b5563;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    color: #818cf8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Header / Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

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

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: #e5e7eb;
    text-decoration: none;
}

.logo span {
    color: #a5b4fc;
}

.logo .dot {
    color: #f97316;
}

/* hamburger */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #e5e7eb;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #cbd5f5;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.5);
    background: rgba(15, 23, 42, 0.6);
}

/* Hero */

.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    color: #e5e7eb;
    overflow: hidden;
}

.hero-photo {
    background-image: url("images/hpl-cyclist-1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 3rem;
    align-items: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: #f9fafb;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 32rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-footnote {
    font-size: 0.85rem;
    color: #d1d5db;
}

.hero-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.9));
    border-radius: 1.5rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(129, 140, 248, 0.3);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.6);
}

.hero-card h2 {
    color: #e5e7eb;
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}

.hero-list {
    list-style: none;
    margin-bottom: 1.3rem;
}

.hero-list li {
    position: relative;
    padding-left: 1.3rem;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.45rem;
}

.hero-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #facc15;
}

.hero-note {
    font-size: 0.82rem;
    color: #d1d5db;
}

/* Blog hero overrides */

.blog-hero {
    background: radial-gradient(circle at top left, #1e293b 0, #020617 60%, #020617 100%);
}

.blog-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
    z-index: 1;
}

.blog-hero-text h1 {
    color: #f9fafb;
}

.blog-hero-photo img {
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.7);
    object-fit: cover;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(55, 65, 81, 0.55);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(55, 65, 81, 0.8);
}

.btn.ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 0.7);
}

.btn.wide {
    width: 100%;
}

/* Sections */

.section {
    padding: 4rem 0;
    background: #f9fafb;
}

.section-alt {
    padding: 4rem 0;
    background: #eef2ff;
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-lead {
    font-size: 0.98rem;
    color: #6b7280;
}

/* Split layout */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2rem;
    align-items: start;
}

/* About media */

.about-split {
    align-items: center;
}

.about-media {
    display: flex;
    justify-content: center;
}

.about-photo {
    max-width: 380px;
    width: 100%;
    background: #020617;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 22px 35px rgba(15, 23, 42, 0.6);
}

.about-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-photo figcaption {
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    color: #e5e7eb;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.about-pill-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Cards grid */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

/* service cards with images */

.card-with-image {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-with-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body {
    padding: 1.3rem 1.3rem 1.4rem;
}

.card-body h3 {
    font-size: 1.02rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.card-body ul {
    padding-left: 1.1rem;
}

.card-body li {
    font-size: 0.86rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

/* Pillars */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.pillar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.1rem;
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(129, 140, 248, 0.35);
}

.pillar h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.pillar p {
    font-size: 0.88rem;
}

/* Focus Areas */

.tags-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.tag-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.2rem 1.1rem;
    border: 1px dashed rgba(148, 163, 184, 0.9);
}

.tag-card h3 {
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
}

.tag-card p {
    font-size: 0.86rem;
}

/* Gallery */

.section-gallery {
    background: #f1f5f9;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 180px;
    gap: 1rem;
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #020617;
    border: 1px solid rgba(15, 23, 42, 0.8);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

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

.image-card figcaption {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    color: #e5e7eb;
    font-size: 0.78rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.6rem;
}

.image-card.wide {
    grid-column: span 2;
    grid-row: span 2;
}

.image-card.tall {
    grid-row: span 2;
}

/* CTA */

.section-cta {
    background: radial-gradient(circle at top right, #e0f2fe 0, #eef2ff 35%, #f9fafb 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.cta-note {
    font-size: 0.84rem;
    color: #6b7280;
}

/* Blog list */

.blog-header {
    margin-bottom: 1.5rem;
}

.blog-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.blog-card-link {
    text-decoration: none;
}

.blog-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
    color: #111827;
}

.blog-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
    margin-bottom: 0.55rem;
}

.blog-excerpt {
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.4rem 0;
    border-top: 1px solid rgba(15, 23, 42, 1);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.footer-small {
    color: #6b7280;
}

/* Responsive */

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
    }

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

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

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

    .cta-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }

    .blog-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-hero-photo {
        order: -1;
    }
}

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

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(15, 23, 42, 0.98);
        padding: 0.75rem 1.25rem;
        min-width: 220px;
        border-bottom-left-radius: 1rem;
        border-left: 1px solid rgba(148, 163, 184, 0.4);
        border-bottom: 1px solid rgba(148, 163, 184, 0.4);
        display: none;
    }

    .nav a {
        padding: 0.35rem 0;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-toggle.nav-open span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

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

    .nav-toggle.nav-open span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        padding-top: 3.2rem;
    }

    .hero-card {
        order: 1;
    }

    .section,
    .section-alt {
        padding: 3rem 0;
    }

    .cards-grid,
    .pillars-grid,
    .tags-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .image-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 190px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
