/* ==============================================================
   ROCKFORD CAR RENTALS - STATIC BLOG TEMPLATE
   --------------------------------------------------------------
   This stylesheet is intentionally formatted for readability.
   Sections are separated so they can later be moved into a
   larger production site or Flask application.
================================================================ */


/* ==============================================================
   1. VARIABLES / GLOBAL SETTINGS
================================================================ */

:root {
    --color-primary: #17e82d;
    --color-primary-dark: #17e82d;
    --color-dark: #17191d;
    --color-dark-soft: #24272d;
    --color-text: #30343b;
    --color-muted: #6f747c;
    --color-border: #e5e6e8;
    --color-background: #ffffff;
    --color-background-soft: #ffffff;
    --color-white: #ffffff;

    --container-width: 1180px;
    --border-radius: 16px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-dark);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.7rem, 6vw, 5.25rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.container {
    width: min(calc(100% - 40px), var(--container-width));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-muted {
    background: var(--color-background-soft);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #ffffff;
}


/* ==============================================================
   2. BUTTONS / LINKS
================================================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    transition: 0.2s ease;
}

.button:hover {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.button-small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.9rem;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.button-secondary:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-dark);
}

.button-secondary-dark {
    border-color: var(--color-dark);
    background: transparent;
    color: var(--color-dark);
}

.button-secondary-dark:hover {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: var(--color-white);
}

.button-light {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-dark);
}

.button-light:hover {
    border-color: var(--color-background-soft);
    background: var(--color-background-soft);
    color: var(--color-dark);
}

.text-link {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}


/* ==============================================================
   3. HEADER / NAVIGATION
================================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    background: rgb(255, 255, 255);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    color: var(--color-dark);
    font-size: 0.98rem;
}

.brand-text small {
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.72rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--color-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.main-nav > a:not(.button):hover {
    color: var(--color-primary);
}


/* ==============================================================
   4. HERO
================================================================ */

.hero {
    overflow: hidden;
    padding: 105px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(72, 239, 42, 0.444), transparent 28%),
        linear-gradient(135deg, #17191d 0%, #23262c 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: 80px;
}

.hero-copy h1 {
    max-width: 820px;
    margin-bottom: 28px;
    color: var(--color-white);
}

.hero-copy h1 span {
    color: #0beb16d6;
}

.hero-copy > p {
    max-width: 700px;
    margin-bottom: 34px;
    color: #c8cbd0;
    font-size: 1.15rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-card {
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
    color: #d7d9dd;
}

.hero-card h2 {
    margin-bottom: 16px;
    color: var(--color-white);
    font-size: 2rem;
}

.card-label {
    display: inline-block;
    margin-bottom: 16px;
    color: #0beb16d6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.check-list {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin: 10px 0;
    padding-left: 28px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--color-primary);
    content: "✓";
    font-weight: 800;
}

.hero-card .text-link {
    color: #0beb16d6;
}


/* ==============================================================
   5. SECTION HEADINGS
================================================================ */

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 440px;
    margin-bottom: 5px;
    color: var(--color-muted);
}


/* ==============================================================
   6. FEATURED POST
================================================================ */

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.featured-visual {
    min-height: 440px;
    background: linear-gradient(145deg, #25282e, #111317);
}

.road-art {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 440px;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(11, 235, 22, 0.84), transparent 14%),
        linear-gradient(165deg, transparent 48%, rgba(255, 255, 255, 0.06) 49%, rgba(255, 255, 255, 0.06) 53%, transparent 54%),
        linear-gradient(145deg, #333840 0%, #17191d 65%);
}

.road-line {
    position: absolute;
    bottom: -30%;
    width: 12px;
    height: 95%;
    background: rgba(255, 255, 255, 0.75);
    transform: rotate(28deg);
}

.road-line-one {
    left: 30%;
}

.road-line-two {
    left: 50%;
}

.road-line-three {
    left: 70%;
}

.featured-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 55px;
}

.featured-content h3 {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.featured-content p {
    margin-bottom: 28px;
    color: var(--color-muted);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.post-meta span:first-child {
    color: var(--color-primary-dark);
}


/* ==============================================================
   7. POST CARDS
================================================================ */

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

.post-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-white);
    transition: 0.2s ease;
}

.post-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.post-card-image {
    display: flex;
    align-items: end;
    min-height: 210px;
    padding: 24px;
    background: var(--color-dark);
}

.post-card-image span {
    padding: 7px 10px;
    border-radius: 6px;
    background: var(--color-white);
    color: var(--color-dark);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.image-one {
    background: linear-gradient(145deg, #26392736, #000000);
}

.image-two {
    background: linear-gradient(145deg, #26392736, #000000);
}

.image-three {
    background: linear-gradient(145deg, #26392736, #000000);
}

.post-card-body {
    padding: 28px;
}

.post-card-body h3 {
    min-height: 62px;
    margin-bottom: 16px;
}

.post-card-body p {
    color: var(--color-muted);
}


/* ==============================================================
   8. ABOUT
================================================================ */

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
}

.about-grid h2 {
    margin-bottom: 0;
}

.about-copy {
    font-size: 1.08rem;
}

.about-copy p {
    color: var(--color-muted);
}

.about-copy .button {
    margin-top: 12px;
}


/* ==============================================================
   9. CTA
================================================================ */

.cta-section {
    padding: 72px 0;
    background: var(--color-primary);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-inner h2 {
    margin-bottom: 10px;
    color: var(--color-white);
}

.cta-inner p {
    margin-bottom: 0;
    color: #ffe1d7;
}


/* ==============================================================
   10. FOOTER
================================================================ */

.site-footer {
    padding-top: 70px;
    background: #111317;
    color: #aeb2b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding-bottom: 55px;
}

.brand-footer .brand-text strong {
    color: var(--color-white);
}

.footer-description {
    max-width: 390px;
    margin-top: 22px;
}

.footer-grid h3 {
    margin-bottom: 18px;
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a,
.footer-grid > div:not(:first-child) p {
    display: block;
    margin: 8px 0;
    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 75px;
    border-top: 1px solid #2a2d32;
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}


/* ==============================================================
   11. ARTICLE PAGE
================================================================ */

.article-header {
    padding: 90px 0 70px;
    background: var(--color-background-soft);
}

.article-container {
    max-width: 820px;
}

.article-header .text-link {
    display: inline-block;
    margin-bottom: 55px;
}

.article-meta {
    margin-bottom: 22px;
}

.article-header h1 {
    margin-bottom: 25px;
    font-size: clamp(2.6rem, 6vw, 4.7rem);
}

.article-lead {
    color: var(--color-muted);
    font-size: 1.25rem;
}

.article-body {
    padding-top: 70px;
    padding-bottom: 100px;
    font-size: 1.08rem;
}

.article-body h2 {
    margin-top: 50px;
    margin-bottom: 18px;
    font-size: 2rem;
}

.article-body p {
    color: #4d5259;
}

.article-callout {
    margin-top: 60px;
    padding: 36px;
    border-left: 5px solid var(--color-primary);
    border-radius: 10px;
    background: var(--color-background-soft);
}

.article-callout h3 {
    margin-bottom: 10px;
}

.article-callout .button {
    margin-top: 12px;
}


/* ==============================================================
   12. RESPONSIVE DESIGN
================================================================ */

@media (max-width: 900px) {
    .main-nav > a:not(.button) {
        display: none;
    }

    .hero-grid,
    .featured-post,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 50px;
    }

    .featured-visual,
    .road-art {
        min-height: 300px;
    }

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

    .about-grid {
        gap: 35px;
    }

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

    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 28px), var(--container-width));
    }

    .section {
        padding: 70px 0;
    }

    .site-header {
        position: static;
    }

    .header-inner {
        min-height: 70px;
    }

    .brand-text small {
        display: none;
    }

    .main-nav {
        gap: 10px;
    }

    .hero {
        padding: 75px 0;
    }

    .hero-card {
        padding: 28px;
    }

    .section-heading,
    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-content {
        padding: 32px 26px;
    }

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

    .post-card-body h3 {
        min-height: auto;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-grid > div:last-child {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 20px 0;
    }
}
