/*---------------------------------------------------------- BASE CSS ----------------------------------------------------------------------------------------------------- */

/* ---------------------------- CSS RESET ------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: #FAF7F2;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    overflow-y: hidden;
}

/* ---------------------------- ELEMENTS ------------------------------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

a:focus {
    outline: 2px solid #1E1E1E;
    outline-offset: 2px;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------------------------- FONTS ------------------------------- */

/* =====================
   OSWALD
===================== */

@font-face {
    font-family: "Oswald";
    src: url("../assets/fonts/oswald-medium-webfont.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../assets/fonts/oswald-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =====================
   ROBOTO
===================== */

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/roboto-regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/roboto-medium-webfont.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    src: url("../assets/fonts/roboto-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------------------------- VARIABLES ------------------------------- */
:root {
    /* Colors */
    /* Colors */
    --color-primary: #000000;        /* black, main headings & logo base */
    --color-secondary: #FFFFFF;      /* white, text on dark backgrounds / general backgrounds */
    --color-accent: #FF0000;         /* red, for buttons, highlights, important elements */
    --color-accent-alt: #FFD700;     /* yellow/gold, secondary accent for details */
    --color-section-soft: #F5F5F5;   /* light gray for section backgrounds */
    --color-neutral-light: #FFFFFF;  /* white / background fallback */
    --color-neutral-dark: #333333;   /* dark text on light backgrounds */
    --color-bronze: #FFD700;         /* optional accent, can be same as yellow */

    --gradient-primary: linear-gradient(135deg, #000000, #333333);

    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Oswald', sans-serif;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Font Sizes */
    --fs-h1: 2.8rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
    --fs-h5: 1.25rem;
    --fs-h6: 1rem;
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Line Heights */
    --lh-h1: 1.2;
    --lh-h2: 1.3;
    --lh-h3: 1.35;
    --lh-body: 1.6;

    /* Letter Spacing */
    --ls-heading: 0.5px;
    --ls-body: 0px;

    /* Layout / UI */
    --container-width: 1920px;
    --container-padding: 1rem;
    --section-heading-padding: 1rem;
    --radius: 6px;
    --shadow: 1px 1px 5px rgba(0,0,0,0.2);


    /* Layering */
    --layer-base: 1;
    --layer-nav: 100;
    --layer-overlay: 200;
    --layer-toggle: 300;
    --layer-menu: 250;

    /* Section spacing */
    --space-section: 3rem;
    --space-section-lg: 6rem;

    --section-heading-padding: 1rem;

    /* UI */
    --header-height: 100px;
    --logo-size: 120px;
    --icon-size: 84px;

    --radius: 6px;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------------------------- TYPOGRAPHY ------------------------------- */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    letter-spacing: var(--ls-body);
    color: var(--color-text);
    background-color: var(--color-main-bg);
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: var(--ls-heading);
    color: var(--color-text);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

p {
    font-size: var(--fs-body);
}

ul {
    font-size: var(--fs-body);
}

li {
    font-size: var(--fs-body);
}

.sub-text {
    color: var(--color-text-muted);
    font-size: var(--fs-h5);
    font-family: var(--font-secondary);
}

/* ---------------------------- LAYOUT SYSTEM ------------------------------- */

/* Horizontal container ONLY */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* Vertical spacing (sections) */
.section {
    padding-block: var(--space-section);
}

.section-lg {
    padding-block: var(--space-section-lg);
}

/* Section headings */
.section-heading {
    margin-bottom: var(--section-heading-padding);
}

/* Header height */
header {
    height: var(--header-height);
}

/* ---------------------------- IMAGES ------------------------------- */
img {
    display: block;
    max-width: 100%;
}

/* ---------------------------- UTILITIES ------------------------------- */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* ---------------------------- RESPONSIVE ------------------------------- */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --space-section: 5rem;
        --space-section-lg: 7rem;

        --fs-h1: 3.5rem;
        --fs-h2: 2.5rem;
        --fs-h3: 2rem;
    }

    p {
        font-size: 1.2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --container-padding: 3rem;
        --space-section: 4rem;
        --space-section-lg: 8rem;

        --fs-h1: 4rem;
        --fs-h2: 2.75rem;
        --fs-h3: 2rem;
        --fs-h4: 1.4rem;
    }

    a {
        font-size: 1.2rem;
    }

    p, li {
        font-size: 1.3rem;
    }
}

/* Large screens */
@media (min-width: 1440px) {
    :root {
        --container-padding: 4rem;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.5rem; }

    a { font-size: 1.6rem; }
    p,li { font-size: 1.4rem; }
}

@media (min-width: 1920px) {
    :root {
        --container-padding: 0;
        --container-width: 1600px;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2rem; }
    h4 {font-size: 1.8rem;}

    a { font-size: 1.6rem; }
    p,li { font-size: 1.4rem; }
}

/* Mobile utilities */
@media (max-width: 767px) {
    .flex {
        flex-direction: column;
    }
}

/* ------------------------------------------------------- COMPONENTS ---------------------------------------------------------------------- */


/* BUTTON */
.btn-primary{
    background: var(--gradient-primary);
    color: var(--color-secondary);
    padding: 1rem 2rem;
    text-align: center;
    max-width: fit-content;
    max-height: 4rem;
    border-radius: var(--radius);
    box-shadow: 1px 1px 3px var(--color-accent-alt),
    -1px -1px 3px var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px var(--color-primary);
}

.section-decor {
    display: flex;
    flex-direction: row;
    margin-bottom: 0.5rem;
}

.section-decor-yellow {
    display: inline-block;
    height: 0.3rem;
    width: 2rem;
    background-color: var(--color-accent-alt);
    transform: skewX(45deg);  /* slants the end like / */
    transform-origin: right top;
}

.section-decor-red {
    display: inline-block;
    height: 0.3rem;
    width: 1.5rem;
    background-color: var(--color-accent);
    transform: skewX(45deg);  /* slants the end like / */
    transform-origin: right top;
}

/* -------------------- Fade In Animation -------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------- Article Img -----------------------------------*/

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 1px 1px 8px var(--color-neutral-dark);
}

@media(min-width: 1024px) { 

    .article-img {
        height: 500px;
    }
}

@media(min-width: 1440px) {

    .article-img {
        height: 600px;
    } 
}

@media(min-width: 1920px) {

    .article-img {
        height: 800px;
    } 
}

/* -------------------------------- Back to Top Btn ---------------------------------- */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-neutral-dark);
    font-size: 28px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

#backToTop:hover {
    background: var(--color-accent);
    transform: translateY(0) scale(1.05);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* -------------------------------- CTA ----------------------------------------- */


.banner-wrapper {
  position: relative;
  width: 100%;
  height: 250px; /* Set a fixed height for the banner */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track {
  position: absolute;
  width: 300%;      /* Make them long */
  opacity: 0.2;
  transform: rotate(-10deg) scale(1.2);
  transform-origin: center;
  pointer-events: none;
  z-index: 0;       /* Keep behind the text */
}

/* Push to the top left */
.track-top {
  top: -19%;
  left: -5%;
  transform: rotate(-10deg);
  transform-origin: center;
}

/* Push to the bottom right */
.track-bottom {
  bottom: -30%;
  right: -5%;
  transform: rotate(-10deg);
}

/* Ensure content stays on top of the tracks */
.cta-content {
  position: relative;
  z-index: 1;
  color: var(--color-primary);
  font-weight: 500;
  background-color: #33333363;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  width: fit-content;
}

.cta-button {
    font-weight: 500;
    text-align: center;
    font-size: 20px;
    gap: 0.5rem;
    margin: 0 auto;
    width: fit-content;
}

.cta-button a {
    text-decoration: none;
    color: var(--color-accent);
}

@media(min-width: 768px) {

    .track {
        width: 86.3%;
    }
    
    /* Push to the top left */
    .track-top {
        top: -88%;
        left: -33%;
    }

    /* Push to the bottom right */
    .track-bottom {
        bottom: -88%;
        right: -34%;
    }

    .cta-button {
        font-size: 22px;
    }

    .cta-button.btn-primary {
        max-width: fit-content;
    }
}

@media(min-width: 1024px) {

    .track {
        width: 56.9%;
    }
    
    /* Push to the top left */
    .track-top {
        top: -73%;
        left: -5%;
    }

    /* Push to the bottom right */
    .track-bottom {
        bottom: -70%;
        right
        : -5%;
    }
}

@media(min-width: 1440px) {

    .track {
        width: 56.9%;
    }
    
    /* Push to the top left */
    .track-top {
        top: -138%;
    }

    /* Push to the bottom right */
    .track-bottom {
        bottom: -104%;
    }
}

@media(min-width: 1920px) {
    .track {
        width: 56.8%;
    }
    
    /* Push to the top left */
    .track-top {
        top: -173%;
    }

    /* Push to the bottom right */
    .track-bottom {
        bottom: -179%;
    }
}

/* ================================================================   NAV CSS ================================================================================= */



.site-nav {
    position: relative;
    z-index: var(--layer-nav);
    background: var(--gradient-primary);
    display: flex;
    width: 100%;
}

.site-nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 4rem);
}


/* -------------------------
   LOGO
------------------------- */
.site-nav__logo {
    height: 90px;
    width: auto;
}

/* ================= NAV STATE ================= */
body.open-nav {
    overflow: hidden;
}

/* -------------------------
   NAV PANEL (MOBILE)
------------------------- */
.site-nav__links {
    position: fixed;
    top: 0;
    right: 0;

    width: 70%;
    height: 100dvh;

    display: flex;
    flex-direction: column;


    background: var(--gradient-primary);

    will-change: transform;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: transform var(--transition-medium),
                opacity var(--transition-medium),
                visibility 0s;

    z-index: var(--layer-menu);

    /* ADD THESE */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    padding-bottom: 4rem;
}

.site-nav__links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
    padding-left: 2rem;
    padding-top: 8rem;
}



/* OPEN STATE */
.site-nav.open-nav .site-nav__links {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav__links a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.site-nav__links a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.site-nav__links > ul > li {
    border-bottom: 1px solid var(--color-accent-alt);
    padding-bottom: 0.5rem;
    width: 90%;
}

.site-nav__links .sub-menu li {
    border-bottom: 1px solid var(--color-neutral-dark);
    padding-bottom: 0.5rem;
    width: 100%;
}

.site-nav__links .sub-menu li:last-child {
    border-bottom: none;
}

.site-nav__links li:last-child {
    border-bottom: none;
}

.site-nav__links a:hover {
    opacity: 0.7;
    color: var(--color-bronze);
}

/* -------------------------
   OVERLAY
------------------------- */
.site-nav__overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity var(--transition-medium),
                visibility 0s;

    z-index: var(--layer-overlay);
}

.site-nav.open-nav .site-nav__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* -------------------------
   HAMBURGER BUTTON
------------------------- */
.site-nav__toggle {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform-origin: center;

    z-index: var(--layer-toggle);
}

.site-nav__toggle span {
    height: 3px;
    width: 32px;
    background-color: var(--color-accent-alt);
    transition: transform 0.3s ease,
                opacity 0.3s ease,
                background-color 0.3s ease;
}

.site-nav.open-nav .site-nav__toggle span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
    background-color: var(--color-section-soft);
}

.site-nav.open-nav .site-nav__toggle span:nth-child(2) {
    transform: scale(0);
    opacity: 0;
}

.site-nav.open-nav .site-nav__toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
    background-color: var(--color-section-soft);
}

/* ----------------------------------------------------------------------- SUBMENU ---------------------------------------------------------------- */

/* Make the li a positioning context so the button sits beside the link */
.site-nav__links .has-submenu {
    position: relative;
}

.site-nav__links .has-submenu > a {
    display: inline-block;
}

/* The toggle button, placed on the right */
.submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;

    background: none;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submenu-arrow {
    display: inline-block;
    font-size: 2.1rem;
    transition: transform 0.25s ease;
    color: var(--color-accent-alt);
    padding: 0;
    margin: -1.2rem 0 0 0;
}

/* Rotate arrow when expanded */
.submenu-toggle[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu collapsed by default */
.site-nav__links .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Expanded state */
.site-nav__links .sub-menu.is-open {
    max-height: 600px; /* large enough to fit all items */
    padding-top: 1rem;
}

/* Indent submenu items */
.site-nav__links .sub-menu li a {
    padding-left: 2em;
    display: block;
}

/* Visually hidden helper text for the button label */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


@media (max-width: 768px) {

    /* Remove last decor line from the menu */
    .site-nav__links li:last-child a::after {
    display: none;
    }

}

@media (min-width: 1024px) {


    .site-nav__toggle {
        display: none;
    }

    /* RESET MOBILE MENU INTO DESKTOP NAV */
    .site-nav__links {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        width: auto;
        height: auto;

        background: transparent;

        justify-content: flex-end;
        align-items: center;
    }

    .site-nav__links ul {
        flex-direction: row;
        gap: 1rem;
    }


    /* disable overlay on desktop */
    .site-nav__overlay {
        display: none;
    }

    /* underline animation */

    .site-nav__links a {
        position: relative;
        color: var(--color-section-soft);

        transition: opacity 0.2s ease;
    }

    .site-nav__links a::after {
        content: "";

        position: absolute;
        left: 0;
        bottom: -12px;

        width: 100%;
        height: 2px;

        background-color: var(--color-accent);

        transform: scaleX(0);
        transform-origin: left;

        transition: transform 0.3s ease;
    }

    .site-nav__links a:hover::after,
    .site-nav__links a:focus-visible::after,
    .site-nav__links a.active::after {
        transform: scaleX(1);
    }

    /* Desktop doesn't need the click-to-expand arrow — hover handles it */
    .submenu-toggle {
        display: none;
    }

    .site-nav__links {
        overflow: visible;
        -webkit-overflow-scrolling: auto;
        overscroll-behavior: auto;
    }

    /* Undo the mobile min-height/flex centering trick — it was only
       needed to make room for the arrow button + separator line */
    .site-nav__links .has-submenu {
        min-height: auto;
        display: flex;
        align-items: center;
    }

    /* Turn the submenu into a dropdown instead of an inline accordion */
    .site-nav__links .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;

        width: 390px;
        max-height: none;
        overflow: visible;

        flex-direction: column;
        gap: 0;

        background: var(--gradient-primary);
        padding: 0.5rem 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(8px);

        transition: opacity 0.25s ease,
                    transform 0.25s ease,
                    visibility 0s linear 0.25s;

        z-index: 20;
    }

    /* Show on hover OR keyboard focus within the item */
    .site-nav__links .has-submenu:hover .sub-menu,
    .site-nav__links .has-submenu:focus-within .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);

        transition: opacity 0.25s ease,
                    transform 0.25s ease,
                    visibility 0s linear 0s;
    }

    /* Dropdown items don't need mobile's deep indent */
    .site-nav__links .sub-menu li a {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .site-nav__links > ul > li {
        border-bottom: none;
    }

    .site-nav__links ul > li {
        width: auto;
        flex: none; /* prevents flex-grow/shrink from squeezing items */
    }

    .site-nav__links a {
        white-space: nowrap; /* belt-and-braces: never wrap link text */
    }

    .site-nav__links ul {
        padding-top: 4rem;
        align-items: center; /* vertically center items within the row */
    }

   
}

@media (min-width: 1440px) { 

    .site-nav__links ul {
        gap: 1.5rem;
    }

    .site-nav__logo {
        height: 100px;
        width: auto;
    }
}

@media (min-width: 1920px) { 
    
    .site-nav__links ul {
        gap: 2.5rem;
    }

    .site-nav__logo {
        height: 120px;
        width: auto;
    }

    header {
        padding: 4rem 0;
    }

    .site-nav__container {
        padding-inline: var(--container-padding);
    }

}

/* ================================================================  HERO CSS ================================================================================= */

.hero-section.section {
    padding: 0;
}

.hero-content .container {
    padding: 0;
}

.hero-section {
    position: relative;
}

.hero-section img {
    position: relative;
    width: 100%;
    height: 90dvh;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    inset: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    
    top: 0;
    left: 0;

    z-index: 1;
}

.hero-content h1 {
    color: var(--color-secondary);
}

.hero-content {
    position: absolute;
    top: 10rem;

    display: flex;
    flex-direction: column;
    
    color: var(--color-secondary);
    width: 90%;
    text-shadow: 1px 1px 1px var(--color-primary);

    z-index: 2;
}

.hero-content p {
    padding-bottom: 4rem;
}


@media (min-width: 768px) {

    .hero-content {
        left: 10rem;
    }

    .hero-section img {
        height: 80dvh;
    }

    .btn-primary {
        max-width: 20rem;
        max-height: 6rem;
    }
    
}

/* ================================================================  HERO CAROUSEL ================================================================================= */



.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 1px 1px 10px var(--color-neutral-dark);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

/* important: anchor badge positioning */
.slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}

.slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* NEW badge */
.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-accent);
  color: white;
  font-size: var(--fs-body);
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;

  color: var(--color-secondary);
  background: rgba(0,0,0,0.7);
  padding: 16px;
  border-radius: 10px;
  width: calc(100% - 32px);
  text-align: center;
}

.overlay {
  pointer-events: none;
}

.arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(48, 48, 45, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px 17px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.arrow:hover {
  background: rgba(0,0,0,0.7);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media(min-width: 768px) {
    .overlay {
        bottom: 40px;
    }

    .arrow {
        padding: 10px 20px ;
    }
}

@media(min-width: 1024px) { 
    .carousel {
        height: 500px;
    }

    .badge {
        padding: 12px 22px ;
    }
}

@media(min-width: 1440px) {
    .carousel {
        height: 600px;
    }
}

@media(min-width: 1920px) {
    .carousel {
        height: 700px;
    }

    .badge {
        padding: 15px 32px ;
    }
}


/* ------------------------------------------------------------------------------------new service design ------------------------------------------------------------- */

.services {
    background: var(--gradient-primary);
}

.services h2 {
    color: var(--color-secondary);
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.service-card {
    position: relative;
    height: 25rem;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 1px 1px 10px var(--color-neutral-dark);
}

.service-card img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.service-overlay {
    inset: 0;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    top: 0;
    left: 0;
}

.service-card-content {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    align-items: center;

    display: flex;
    flex-direction: column;
    gap: 1rem;

    width: 20rem;
    color: var(--color-secondary);
}

@media(min-width: 768px) {
  
    .service-card-content {
        left: 6rem;
        width: 32rem;
    }

    .service-card-content a {
        min-width: fit-content;
    }
}

@media(min-width: 1024px) { 
   
    .service-card-content {
        left: 8.5rem;
        width: 40rem;
    }
}

@media(min-width: 1440px) {
   
    .service-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .service-card {
        height: 40rem;
    }

    .service-card-content {
        left: 1rem;
        width: 25rem;
    }

}

@media(min-width: 1920px) {
   
    .service-card-content {
        left: 1rem;
        width: 30rem;
    }
}


/* ================================================================    WHY CHOOSE US  ================================================================================= */

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.icon-frame {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.featured-icon {
  position: relative; /* IMPORTANT: remove absolute */
  width: 80px;
  height: 80px;
  z-index: 2;
  color: var(--color-neutral-dark);
}

@media (min-width: 1024px) {
    .featured-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================================      LOCATION     ================================================================================= */

.location-section .container {
    padding-bottom: 1rem;
    padding-top: 0;
}

.location-section iframe {
    width: 100%;
    height: 500px;
}

@media (min-width: 1440px){
    
    .location-section iframe {
        max-width: 91%;
        display: block;
        margin: 0 auto;
    }
}

@media (min-width: 1440px){ 
    
    .location-section iframe {
        max-width: 85%;
    }
}

/* ================================================================      CONTACT      ================================================================================= */

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details svg {
    height: 20px;
    width: auto;
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.contact-item p {
    font-weight: 500;
}

.contact-item a {
    color: var(--color-accent);
}

.contact-item span {
    color: var(--color-accent);
}

/* ================================================================      TESTIMONIALS      ================================================================================= */

.testimonial-section {
    background-color: black;
    padding-bottom: 2rem;
    
}

.testimonial-section .container {
    padding-bottom: 0;
}

.testimonial-section h2 {
    color: var(--color-secondary);
}

.testimonials-section{
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
}

.testimonials-wrapper {
    width: 100%;
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-overlay-left,
.testimonial-overlay-right {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 3;
}

.testimonial-overlay-left {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.testimonial-overlay-right {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

.testimonials-inner-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: flex-start;
    text-align: center;
    scrollbar-width: none;
}

.testimonials-card {
    background-color: rgb(12, 12, 12);
    border: 1px solid rgb(48, 48, 48);
    border-radius: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 18rem;
    max-width: 18rem;
    justify-content: center;
    align-items: center ;
    padding: 1rem;
    text-align: center;
}

.special-p {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    color: gray;
    text-align: right;
    padding-top: 0;
}

.features-cards-wrapper,
.testimonials-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    position: relative;
    width: 100%;
}

.features-cards-wrapper.dragging,
.testimonials-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}

.features-cards-inner-row,
.testimonials-inner-row {
    display: flex;
    width: max-content;
}

.features-overlay,
.testimonial-overlay-left,
.testimonial-overlay-right {
    pointer-events: none;
}

@media (min-width: 768px){
    .testimonials-card {
        height: 22rem;
    }
}

@media (min-width: 1024px){
    .testimonials-card {
        height: 24rem;
        max-width: 22rem;
    }
}

/* ================================================================      ABOUT      ================================================================================= */

.footer {
    display: flex;
    flex-direction: column;
    background: var(--gradient-primary);
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.footer > div:first-child {
    text-align: center;
}

.footer > div:first-child img {
    display: block;
    margin: 0 auto;
}

.footer img {
    height: 120px;
    width: auto;
}

.footer p {
    color: var(--color-secondary);
}

.footer a {
    color: var(--color-accent);
}

.footer a:hover {
    color: var(--color-accent-alt);
}

.footer h2,
.footer h4 {
    color: var(--color-secondary);
}


.footer-line {
    display: block;
    height: 1px;
    width: 100%;
    background-color: var(--color-accent-alt);
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-socials svg {
    height: 30px;
    width: auto;
    color: var(--color-accent);
}

.footer-ps p{
    color: var(--color-primary);
}

@media (min-width: 1440px) {
    .footer-ps a {
        font-size: 1.3rem;
    }
}

/* ================================================================      PAGES     ================================================================================= */


/* ----------------------------------------------------------------      SERVICE     ------------------------------------------------------------------------------- */

.service-offer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

.service-offer-card {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 30rem;
    box-shadow: 1px 1px 10px var(--color-neutral-dark);
}

.service-offer-card a {
    text-decoration: none;
}

.service-offer-card img{
    border-top-right-radius: var(--radius);
    border-top-left-radius: var(--radius);
    height: 15rem;
    object-fit: cover;
}

.service-offer-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-secondary);
    text-align: center;
    align-items: center;
    justify-content: center;
}

.service-offer-card-more {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.service-offer-card-more p {
    margin: 0;
    color: var(--color-accent-alt);
}

.service-offer-card-more svg {
    height: 22px;
    width: auto;
    color: var(--color-accent-alt);
}

.full-service-list {
    background-color: var(--color-neutral-dark);
}

.full-service-list h2,
.full-service-list p {
    color: var(--color-neutral-light);
}

.full-service-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

/* ------------------------- Service List ---------------------- */

.service-list-item {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.service-list-item svg {
    height: 30px;
    width: auto;
    color: var(--color-accent)
}

@media(min-width: 768px){

    .service-offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1440px) {
    
    .service-offer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-offer-card {
        height: 35rem;
    }
    
    .full-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 1920px) {
    .service-offer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .full-service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ----------------------------------------------------------------      NEWS    ------------------------------------------------------------------------------- */

/* ----------------------------------------------------------------      CONTACT     ------------------------------------------------------------------------------- */

.contact-page-info {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-page-location iframe {
    width: 100%;
    height: 20rem;
}

@media (min-width: 768px) {

    .contact-page-location iframe {
        height: 30rem;
    }
}

@media (min-width: 1440px) {

    .contact-page-info {
        display: flex;
        flex-direction: row;
        gap: 6rem;
    }

    .contact-page-location iframe {
        height: 30rem;
        width: 40rem;
    }

    .contact-page-info {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1920px) {
    
    .contact-page-location iframe {
        height: 30rem;
        width: 58rem;
    }
}   

/* ----------------------------------------------------------------      RECOVERY     ------------------------------------------------------------------------------- */


.recovery-checklist > li {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.recovery-checklist > li > svg {
    height: 22px;
    color: var(--color-accent);
}

.recovery-section a {
    color: var(--color-accent);
}


/* ----------------------------------------------------------------      DPF CLEANING     ------------------------------------------------------------------------------- */

.dpf-cleaning ul{
    list-style: disc;
    margin-left: 2rem;
}

.dpf-cleaning iframe{
    display: block;
    width: 100%;
    height: 14rem;
}

.dpf-cleaning a {
    color: var(--color-accent);
}

.dpf-img {
    object-position: 40% 80%;
}

@media(min-width: 768px) {

    .dpf-cleaning iframe{
        width: 80%;
        height: 20rem;
        margin: 0 auto;
    }
}

@media(min-width: 1024px) {

    .dpf-cleaning iframe{
        width: 80%;
        height: 30rem;
    }

    #dpf-lights {
        height: 100%;
        scale: 0.8;
    }
}

@media(min-width: 1440px) {
    
    .dpf-cleaning iframe{
        width: 80%;
        height: 40rem;
    }
}

/* ----------------------------------------------------------------      MAINTENANCE     ------------------------------------------------------------------------------- */


.maintenance-article ul {
    list-style: disc;
    margin-left: 2rem;
}

.maintenance-article a {
    color: var(--color-accent);
}


/* ----------------------------------------------------------------      DIAGNOSTICS     ------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------      TYRES     ------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------      CRASH REPAIRS     ------------------------------------------------------------------------------- */


/* ----------------------------------------------------------------      VALETING     ------------------------------------------------------------------------------- */
