@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-brown: #4A2C2A;
    --accent-brown: #6D4C41;
    --cream: #FAF9F6;
    --white: #FFFFFF;
    --text-dark: #2D1B1A;
    --text-light: #5D4037;
    --glass-bg: rgba(250, 249, 246, 0.85);
    --shadow-soft: 0 10px 30px rgba(74, 44, 42, 0.08);
    --shadow-strong: 0 20px 40px rgba(74, 44, 42, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --header-height: 180px;
    --header-shrink-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Using scroll-margin-top on sections instead of scroll-padding-top on html to avoid glitches */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.nav-link {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    padding: 10px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 0 40px;
}

.nav-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(74, 44, 42, 0.1);
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 40px;
    margin-bottom: 10px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-brown);
    border-radius: 10px;
    transition: var(--transition);
}

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

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

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

.main-nav {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.header.scrolled .nav-link {
    color: var(--primary-brown);
}

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

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

.logo-row {
    transition: var(--transition);
}

.logo {
    height: 100px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

header.scrolled .logo {
    height: 60px;
}

/* Removed .header-contact-btn styling */

/* Hero Carousel */
.hero {
    height: 100vh;
    position: relative;
    background: #000;
    overflow: hidden;
}

.carousel-track {
    height: 100%;
    list-style: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) scale(1.05);
    transition: transform 10s linear;
}

.carousel-slide.active img {
    transform: scale(1);
}

.carousel-content {
    position: absolute;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    z-index: 5;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.4s;
}

.carousel-slide.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.carousel-content h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.carousel-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--white);
    width: 60px;
}

/* Sections */
section {
    padding: 120px 40px;
    scroll-margin-top: 150px;
    /* IMPORTANT: Fixes the vibration glitch */
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--primary-brown);
}

/* Content Cards */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.glass-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(74, 44, 42, 0.05);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

/* Location Specific */
.location-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.info-list {
    list-style: none;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    color: var(--accent-brown);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.fuel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.fuel-price-card {
    background: var(--cream);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(74, 44, 42, 0.1);
}

.fuel-price-card .type {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.fuel-price-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-brown);
}

.map-frame {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

/* Offers & Rewards */
.offer-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.offer-tag {
    background: var(--primary-brown);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 20px;
}

/* News Section */
.news-banner {
    background: var(--primary-brown);
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.news-banner::before {
    content: 'NEWS';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 10rem;
    font-weight: 900;
    opacity: 0.05;
}

/* Stock & Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    transition: var(--transition);
}

.service-item:hover {
    background: var(--primary-brown);
    color: var(--white);
}

/* Careers */
.job-detail {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid rgba(74, 44, 42, 0.1);
}

/* Floating Contact Button */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: var(--primary-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(74, 44, 42, 0.3);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.floating-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--white);
}

/* Footer */
footer {
    background: var(--primary-brown);
    color: var(--white);
    padding: 80px 40px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 30px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .location-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 20px;
        gap: 10px;
    }

    .nav-row {
        justify-content: flex-end;
        padding: 15px 0;
        border-bottom: none;
        background: transparent;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .logo {
        height: 70px;
    }

    header.scrolled .logo {
        height: 50px;
    }

    .carousel-content h2 {
        font-size: 2.2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    section {
        padding: 80px 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .news-banner {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }

    .news-banner div[style*="display: flex"] {
        flex-direction: column;
        gap: 20px !important;
    }

    .location-layout {
        gap: 30px;
    }

    .map-frame {
        height: 350px;
    }
}