:root {
  --color-accent: #68b7cb;
  --color-accent-dark: #4fa5ba;
  --color-dark: #11131a;
  --color-text: #20232a;
  --color-muted: #6f7278;
  --color-light: #f6f7f8;
  --color-white: #ffffff;
  --color-footer: #101217;

  --container-width: 1180px;
  --header-height: 92px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style-position: inside;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.navbar {
  width: min(var(--container-width), calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: min-height 0.25s ease;
}

.site-header.scrolled .navbar {
  min-height: 72px;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.nav-links a {
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-contact {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 18px 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-contact:hover {
  background: var(--color-accent-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  margin: 5px auto;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;

    background-image: url("../assets/images/hero/BMW320d.JPG");
    background-size: cover;
    background-position: center;

}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 77% 45%, rgba(255, 255, 255, 0.4), transparent 24%),
    linear-gradient(135deg, transparent 0 38%, rgba(0, 0, 0, 0.22) 39% 100%);
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: clamp(46px, 6vw, 92px);
  line-height: 1.08;
  font-weight: 800;
  text-shadow: 0 7px 13px rgba(0, 0, 0, 0.35);
}

/* SECTIONS */

.section {
  padding: 100px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  margin-bottom: 22px;
}

.section p {
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.image-placeholder,
.vehicle-photo-placeholder,
.sold-placeholder {
  background:
    linear-gradient(135deg, #eeeeee, #cccccc);
  border: 2px dashed #b8b8b8;
  display: grid;
  place-items: center;
  color: #757575;
  text-align: center;
  padding: 24px;
}

.image-placeholder.large {
  min-height: 370px;
}

/* VEHICLES */

.vehicles-section {
  background: var(--color-light);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vehicle-card {
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.vehicle-photo-placeholder {
  min-height: 235px;
}

.vehicle-content {
  padding: 26px;
}

.vehicle-content h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.vehicle-content p {
  font-size: 15px;
  margin-bottom: 18px;
}

.vehicle-content ul {
  margin-bottom: 22px;
}

.vehicle-content li {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
}

.vehicle-link {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 22px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.vehicle-link:hover {
  background: var(--color-accent-dark);
}

/* SOLD */

.sold-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.sold-car-card {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
}

.sold-car-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.sold-car-card:hover img {
  transform: scale(1.04);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 18, 0.92);
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 28px;
  right: 32px;
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 72px;
  font-size: 54px;
  line-height: 1;
}

.lightbox-prev {
  left: 32px;
}

.lightbox-next {
  right: 32px;
}

@media (max-width: 900px) {
  .sold-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .sold-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-arrow {
    width: 44px;
    height: 60px;
    font-size: 42px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lightbox-title {
  color: var(--color-white);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.4px;
}

/* CONTACT */

.contact-section {
  background: var(--color-light);
  color: var(--color-dark);
}

.contact-section h2,
.contact-section p {
  color: var(--color-text);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-card {
  background: rgba(211, 211, 211, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 34px;
}

.contact-card h3 {
  font-size: 26px;
  margin-bottom: 18px;
}

.contact-card p {
  font-size: 16px;
  margin-bottom: 18px;
}

.contact-card a:hover {
  color: var(--color-accent);
}


/* FOOTER */

.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  padding: 64px 0 44px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 0.9fr;
  gap: 42px;
}

.footer-grid h3,
.footer-grid h4 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-grid a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
  padding: 20px 24px;
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 18px 24px;
    border-bottom: 1px solid #eeeeee;
  }

  .nav-contact {
    text-align: center;
  }

  .two-column,
  .vehicle-grid,
  .sold-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: clamp(42px, 11vw, 72px);
  }

  .section {
    padding: 76px 0;
  }
}

@media (max-width: 540px) {
  .container,
  .navbar {
    width: calc(100% - 32px);
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;

  background-image: url("../assets/images/hero/BMW320d.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
  

  .section {
    padding: 64px 0;
  }

  .contact-card {
    padding: 26px;
  }
}

/*
.legal-page {
  padding-top: 110px;
  min-height: 100vh;
  background: var(--color-light);
}

.legal-title {
  font-size: clamp(38px, 5vw, 64px);
  margin-bottom: 32px;
}

.legal-content {
  background: var(--color-white);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.legal-content h2,
.legal-content h3 {
  margin-bottom: 14px;
}

.legal-content h3 {
  margin-top: 30px;
}

.legal-content p {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.8;
}
*/
.page-main {
  padding-top: 92px;
}

.page-hero {
  background: var(--color-light);
  padding: 96px 0 76px;
}

.small-page-hero h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  margin-bottom: 22px;
}

.small-page-hero p {
  max-width: 720px;
  color: var(--color-muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-block;
  padding: 16px 28px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  background: var(--color-accent);
  color: var(--color-white);
}

.primary-button:hover {
  background: var(--color-accent-dark);
}

.secondary-button {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.secondary-button:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.map-consent {
  min-height: 420px;
  background: linear-gradient(135deg, #eeeeee, #d4d4d4);
  border: 2px dashed #b8b8b8;
  display: grid;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.map-consent-content {
  max-width: 560px;
}

.map-consent-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.map-consent-content p {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.map-external-link {
  display: block;
  margin-top: 18px;
  color: var(--color-accent-dark);
  font-weight: 700;
}

.map-external-link:hover {
  text-decoration: underline;
}

.google-map {
  width: 100%;
  min-height: 420px;
  display: block;
}

/* ABOUT PAGE SIMPLE */

.about-simple-section {
  min-height: calc(100vh - 92px);
  padding: 120px 0;
  background: var(--color-light);
}

.about-simple-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.about-simple-text {
  background: var(--color-white);
  padding: 54px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--color-accent);
}

.about-simple-text h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08;
  margin-bottom: 34px;
  color: var(--color-dark);
}

.about-simple-text p {
  color: var(--color-muted);
  font-size: 19px;
  line-height: 1.85;
  margin-bottom: 24px;
}

.about-simple-text p:last-child {
  margin-bottom: 0;
}

.about-simple-image {
  min-height: 520px;
  width: 135%;
}
@media (max-width: 950px) {
  .about-simple-layout {
    grid-template-columns: 1fr;
  }

  .about-simple-section {
    padding: 90px 0;
  }

  .about-simple-text {
    padding: 38px;
  }

  .about-simple-image {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .about-simple-image .image-placeholder {
    width: 100%;
    max-width: 520px;
    min-height: 360px;
    overflow: hidden;
  }

  .about-simple-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}
@media (max-width: 540px) {
  .about-simple-text {
    padding: 30px 24px;
  }

  .about-simple-text p {
    font-size: 17px;
  }
}

/* HOMEPAGE NAVIGATION FIX */

.home-page .site-header:not(.scrolled) .nav-links a {
  color: var(--color-dark);
}

.home-page .site-header:not(.scrolled) .nav-links a.active {
  color: var(--color-dark);
  position: relative;
}

.home-page .site-header:not(.scrolled) .nav-contact {
  color: var(--color-white) !important;
  text-shadow: none;
}

/* MOVING NAV UNDERLINE */

.nav-links {
  position: relative;
}

.nav-links::after {
  content: "";
  position: absolute;
  left: var(--nav-underline-left, 0px);
  bottom: 8px;
  width: var(--nav-underline-width, 0px);
  height: 3px;
  background: var(--color-accent);
  border-radius: 999px;
  transition: left 0.25s ease, width 0.25s ease, opacity 0.2s ease;
  opacity: var(--nav-underline-opacity, 1);
  pointer-events: none;
}

.nav-links a.active {
  color: var(--color-dark);
}

.nav-links a:hover {
  color: var(--color-accent-dark);
}

/* Do not show moving underline in the mobile dropdown */
@media (max-width: 980px) {
  .nav-links::after {
    display: none;
  }
}
/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  background: var(--color-white);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  border-left: 5px solid var(--color-accent);
}

.cookie-banner-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cookie-banner h3,
.cookie-modal h3 {
  color: var(--color-dark);
  margin-bottom: 10px;
}

.cookie-banner p,
.cookie-modal p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.cookie-banner a,
.cookie-modal a {
  color: var(--color-accent-dark);
  font-weight: 700;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-button {
  border: none;
  cursor: pointer;
  padding: 13px 20px;
  font-weight: 800;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-button.primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.cookie-button.primary:hover {
  background: var(--color-accent-dark);
}

.cookie-button.secondary {
  background: #eeeeee;
  color: var(--color-dark);
}

.cookie-button.secondary:hover {
  background: #dddddd;
}

/* COOKIE MODAL */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 18, 0.72);
}

.cookie-modal.open {
  display: flex;
}

.cookie-modal-box {
  width: min(620px, 100%);
  background: var(--color-white);
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
}

.cookie-option strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.cookie-modal-note {
  margin-top: 20px;
}

.cookie-modal-actions {
  margin-top: 26px;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner-content {
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1;
  }

  .cookie-modal-box {
    padding: 26px;
  }
}
.footer-cookie-button {
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
  text-align: left;
}

.footer-cookie-button:hover {
  color: var(--color-accent);
}

/* LOGO */

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.logo img {
  height: 64px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transition: height 0.25s ease, max-width 0.25s ease;
}

.site-header.scrolled .logo img {
  height: 44px;
}

/* TABLET / MOBILE */

@media (max-width: 980px) {
  .logo img {
    height: 52px;
    width: auto;
    max-width: 190px;
  }

  .site-header.scrolled .logo img {
    height: 40px;
  }
}

@media (max-width: 540px) {
  .logo img {
    height: 44px;
    width: auto;
    max-width: 155px;
  }

  .site-header.scrolled .logo img {
    height: 36px;
  }
}