/* ==========================================
   TripFuelPlanner — Design System & Styles
   ========================================== */

/* ---------- Custom Properties ---------- */
:root {
    --primary: #0D7377;
    --primary-dark: #0A5C5F;
    --primary-light: #10908F;
    --secondary: #F4845F;
    --secondary-dark: #E06840;
    --accent: #F0B429;
    --dark: #1A2332;
    --dark-lighter: #243044;
    --text: #334155;
    --text-light: #64748B;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --gradient-primary: linear-gradient(135deg, #0D7377 0%, #10908F 50%, #0A5C5F 100%);
    --gradient-hero: linear-gradient(135deg, #0D7377 0%, #F4845F 100%);
    --gradient-footer: linear-gradient(135deg, #1A2332 0%, #0D2137 50%, #1A2332 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.highlight {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(13, 115, 119, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 115, 119, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ---------- Section Shared ---------- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13, 115, 119, 0.1);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Scroll animation */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo — prevent flex shrink so it stays crisp */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 40px;
    width: auto;
    display: block;
}

/* Nav & Dropdown — DESKTOP ONLY (min-width: 769px). Mobile overrides in @media (max-width: 768px) below. */
@media (min-width: 769px) {
    /* Hide mobile nav header (cloned logo) and CTA on desktop — prevents duplicate logo */
    .mobile-nav-header,
    .mobile-nav-cta {
        display: none !important;
    }

    .main-nav {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-link {
        padding: 8px 16px;
        font-family: var(--font-heading);
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--white);
        border-radius: var(--radius-sm);
        transition: all var(--transition);
        position: relative;
    }

    .site-header.scrolled .nav-link {
        color: var(--dark);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--secondary);
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 3px;
        background: var(--secondary);
        border-radius: 2px;
    }

    .has-dropdown {
        position: relative;
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .chevron-icon {
        transition: transform var(--transition);
    }

    .has-dropdown.open .chevron-icon {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 240px;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        z-index: 100;
    }

    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(4px);
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 16px;
        font-size: 0.9rem;
        color: var(--text);
        border-radius: var(--radius-sm);
        transition: all var(--transition);
    }

    .dropdown-menu li a:hover {
        background: rgba(13, 115, 119, 0.08);
        color: var(--primary);
        padding-left: 20px;
    }
}

/* Header CTA */
.header-cta {
    padding: 10px 24px;
    font-size: 0.88rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

.site-header.scrolled .mobile-toggle .bar {
    background: var(--dark);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s ease;
}

.slide.active .slide-bg {
    transform: scale(1.08);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.82) 0%, rgba(13, 115, 119, 0.55) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    color: var(--white);
    max-width: 700px;
}

.slide-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(244, 132, 95, 0.25);
    border: 1px solid rgba(244, 132, 95, 0.4);
    color: #FFD0BC;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
    animation: fadeInUp 0.6s ease both;
}

.slide-content h1,
.slide-content .slide-heading {
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s 0.1s ease both;
}

.slide-content .highlight {
    background: linear-gradient(135deg, #F4845F, #F0B429);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 560px;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev {
    left: 24px;
}

.slider-next {
    right: 24px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: var(--secondary);
    width: 36px;
    border-radius: 6px;
}

/* ==========================================
   CALCULATOR SECTION
   ========================================== */
.calculator-section {
    background: var(--light);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.calc-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.8rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.12);
}

.input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark);
    outline: none;
    width: 100%;
}

.input-wrap input::placeholder {
    color: var(--text-light);
}

.input-unit {
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.input-prefix {
    padding-left: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

#calc-submit {
    margin-top: 4px;
}

/* Results */
.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.result-card.animate {
    animation: popIn 0.5s ease both;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(16px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(13, 115, 119, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.result-icon.accent {
    background: rgba(240, 180, 41, 0.12);
    color: var(--accent);
}

.result-icon.secondary {
    background: rgba(244, 132, 95, 0.12);
    color: var(--secondary);
}

.result-icon.golden {
    background: rgba(240, 180, 41, 0.12);
    color: #D4940A;
}

.result-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.result-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.result-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(13, 115, 119, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================
   CATEGORIES SECTION
   ========================================== */
.categories-section {
    background: var(--light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition);
}

.category-card:hover .category-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all var(--transition);
}

.category-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* ==========================================
   BLOG SECTION
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.blog-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-img-wrap img {
    transform: scale(1.12);
}

.blog-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 35, 50, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-img-overlay {
    opacity: 1;
}

.blog-body {
    padding: 24px;
}

.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 115, 119, 0.1);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.blog-body h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-body h3 a {
    color: var(--dark);
    transition: color var(--transition);
}

.blog-body h3 a:hover {
    color: var(--primary);
}

.blog-body p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    transition: all var(--transition);
}

.read-more:hover {
    color: var(--secondary);
    gap: 10px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(244, 132, 95, 0.15);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(240, 180, 41, 0.1);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content .highlight {
    background: linear-gradient(135deg, #F4845F, #F0B429);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-actions .btn-primary:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--gradient-footer);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-svg {
    height: 36px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-newsletter p {
    font-size: 0.88rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {

    .categories-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Header Mobile */
    .site-header {
        padding: 12px 0;
    }

    .site-header.scrolled {
        padding: 10px 0;
    }

    .site-header .container,
    .header-inner {
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
    }

    .header-inner {
        gap: 16px;
        min-height: 48px;
    }

    .logo {
        flex-shrink: 0;
        min-width: 0;
    }

    .logo-svg {
        height: 34px;
        width: auto;
        max-width: 180px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 78vw);
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        right: 0;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-shrink: 0;
    }

    .mobile-nav-logo {
        color: #fff;
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.1rem;
        text-decoration: none;
    }

    .mobile-nav-logo .logo-svg {
        height: 32px;
    }

    .mobile-nav-close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.5rem;
        cursor: pointer;
        margin-left: auto;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-close:hover {
        color: var(--secondary);
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 12px 0 32px;
    }

    .nav-list > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list > li:last-child {
        border-bottom: none;
    }

    .mobile-nav-cta {
        display: block !important;
        padding: 20px 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: auto;
    }

    .mobile-nav-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.9);
        padding: 16px 20px;
        width: 100%;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        color: var(--secondary);
    }

    .dropdown-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .has-dropdown.open .dropdown-toggle {
        color: var(--secondary);
    }

    .chevron-icon {
        flex-shrink: 0;
        transition: transform 0.25s ease;
    }

    .has-dropdown.open .chevron-icon {
        transform: rotate(180deg);
    }

    /* Mobile-only: Categories dropdown alignment — does NOT affect desktop */
    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.12);
        box-shadow: none;
        padding: 12px 20px 16px 28px;
        margin: 0 20px 12px 20px;
        border-left: 3px solid rgba(244, 132, 95, 0.4);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.35s ease;
        min-width: 0;
        border-radius: 0;
        display: block;
        list-style: none;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu li a {
        color: rgba(255, 255, 255, 0.85);
        padding: 10px 0;
        font-size: 0.95rem;
        display: block;
    }

    .dropdown-menu li a:hover {
        color: var(--secondary);
    }

    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 10px;
        flex-shrink: 0;
        position: relative;
        z-index: 1003;
    }

    .mobile-toggle .bar {
        width: 22px;
        height: 2.5px;
    }

    /* Mobile menu overlay - subtle backdrop, no harsh shadow */
    #nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: calc(100vw - 300px);
        background: rgba(0, 0, 0, 0.25);
        z-index: 1001;
        opacity: 0;
        animation: fadeIn 0.2s ease forwards;
    }

    @keyframes fadeIn {
        to { opacity: 1; }
    }

    /* Slider Mobile */
    .hero-slider {
        min-height: 500px;
        max-height: 700px;
    }

    .slide-content {
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-prev {
        left: 12px;
    }

    .slider-next {
        right: 12px;
    }

    /* Calculator */
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Categories / Blog */
    .categories-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    /* Header - extra small screens */
    .site-header .container,
    .header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo-svg {
        height: 30px;
        max-width: 160px;
    }

    .main-nav {
        width: min(280px, 85vw);
    }

    #nav-overlay {
        width: calc(100vw - 280px);
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
    }

    .slide-actions {
        flex-direction: column;
    }

    .slide-actions .btn {
        width: 100%;
    }

    .calc-results {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}