:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --ring: #e2e8f0;
  --shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
  --radius: 16px;

  --accent: #ff5a3c; /* orange like screenshot */
  --accent-600: #e14c2f;
  --blue: #2563eb;
  --blue-600: #1e48d6;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(
      900px 600px at 15% -10%,
      #ffffff 20%,
      transparent 60%
    ),
    var(--bg);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0f172a;
  text-decoration: none;
}
a.link {
  color: var(--blue);
}
a:hover {
  text-decoration: underline;
}
/* Navbar: never underline brand/title or nav links on hover */
.nav a,
.nav a:hover,
.brand,
.brand:hover {
  text-decoration: none;
}
/* Apply effects ONLY to non-brand links */
.nav a:not(.brand) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
}

/* Animated underline */
.nav a:not(.brand)::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
  border-radius: 2px;
}

/* Hover: underline only */
.nav a:not(.brand):hover::after {
  transform: scaleX(1);
}

/* Selected: underline only (persistent) */
.nav a.active:not(.brand)::after {
  transform: scaleX(1);
}

/* Brand (logo + title): never underline/animate */
.nav .brand,
.nav .brand:hover {
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.nav .brand::after {
  content: none !important;
}

/* Selected: underline + accent text color */
.nav a.active:not(.brand) {
  color: var(--accent);
}

.nav a:not(.brand) {
  transition: color 0.18s ease;
}

/* --- Mobile navbar (hamburger) --- */
.nav {
  position: relative;
}

/* Hidden by default (desktop) */
.nav .nav-toggle {
  display: none;
}
.nav .nav-drawer {
  display: none;
}

/* Mobile breakpoint */
@media (max-width: 720px) {
  /* Hide non-brand links on mobile; show hamburger */
  .nav a:not(.brand) {
    display: none;
  }

  .nav .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--ring);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .nav .nav-toggle i {
    padding-top: 0;
  } /* don't nudge burger icon */

  /* Drawer panel */
  .nav .nav-drawer {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--ring);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
    padding: 8px;
    min-width: 180px;
    z-index: 40;
  }
  .nav .nav-drawer.open {
    display: block;
  }

  .nav .nav-drawer a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    position: relative;
  }

  /* Keep your underline effect on hover/active inside the drawer too */
  .nav .nav-drawer a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }
  .nav .nav-drawer a:hover::after,
  .nav .nav-drawer a.active::after {
    transform: scaleX(1);
  }

  /* Accent color for selected link */
  .nav .nav-drawer a.active {
    color: var(--accent);
  }
}

/* Optional: backdrop to close drawer when tapping outside (mobile only) */
@media (max-width: 720px) {
  .nav .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent; /* invisible click-catcher */
    z-index: 30;
  }
  .nav .nav-backdrop.show {
    display: block;
  }
}

/* Make the logo bigger (adjust height to taste) */
.brand .logo {
  height: 36px; /* was ~24px */
  width: auto;
}

/* Optional: slightly smaller on very small screens */
@media (max-width: 520px) {
  .brand .logo {
    height: 30px;
  }
}

/* Cards: no underline on hover anywhere inside the card */
.card a,
.card a:hover,
.card a:focus,
.card a:active {
  text-decoration: none !important;
}

/* Card hover “pop out” animation */
.card {
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card .thumb {
  transition: transform 0.25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
}
.card:hover .thumb {
  transform: scale(1.03);
}

/* Optional: keyboard focus parity for accessibility */
.card:has(.card-link:focus-visible) {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.14);
}

.muted {
  color: var(--muted);
}
.smallmuted {
  color: #64748b;
  font-size: 13px;
}
.center {
  text-align: center;
}
.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.narrow {
  width: min(800px, 92vw);
  margin: 0 auto;
}

/* Header (light) */
.site-header.light {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ring);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.nav a {
  color: var(--text);
}
.nav a.active {
  color: var(--blue);
}
.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 18px;
}
.spacer {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-600));
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(225, 76, 47, 0.18);
}
.btn.ghost {
  background: #fff;
  border: 1px solid var(--ring);
  color: var(--text);
  box-shadow: none;
}
.btn.small {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
}

/* Pager disabled state */
.pager button:disabled,
.btn:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.3);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 34px 0 10px;
}
.hero h1 {
  margin: 0 0 6px 0;
  font-size: 42px;
  line-height: 1.1;
}
.hero .lead {
  color: #334155;
  margin: 0.25rem 0 1rem;
}
.accent {
  color: var(--accent);
}
.cta-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.hero-art {
  position: relative;
}
.hero-photo {
  height: 340px;
  border-radius: 18px;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0)
    ),
    url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=1400&auto=format&fit=crop")
      center/cover no-repeat;
  box-shadow: var(--shadow);
  clip-path: polygon(10% 0, 100% 0, 100% 85%, 0 100%);
}
.hero-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

/* Dark band (services like screenshot) */
.band-dark {
  background: #0f172a;
  color: #fff;
  margin: 26px 0;
  padding: 30px 0;
}
.band-dark h2 {
  margin: 0 0 8px 0;
  font-size: 26px;
}
.band-dark .grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}
.service-copy p {
  color: #e2e8f0;
}
.service-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #e2e8f0;
}

/* Sections */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2 {
  margin: 0;
}

/* Grid / cards */
.grid {
  display: grid;
  gap: 16px;
}
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-title {
  font-weight: 800;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #ffedd5;
}
.price {
  font-weight: 800;
  font-size: 18px;
}
.meta {
  color: #64748b;
  font-size: 13px;
}

/* Filters (catalog) */
.filters.light {
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 14px;
  margin: 8px 0 16px;
  box-shadow: var(--shadow);
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #334155;
}
.filters input,
.filters select {
  border: 1px solid var(--ring);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 38px;
}

/* Make the toggle text sit to the RIGHT of the switch on the catalogue filters */
.filters .toggle {
  margin-top: 20px;
  flex-direction: row; /* was column via .filters label */
  align-items: center;
  gap: 10px; /* space between switch and "Deals only" */
}

/* Ensure the filters line is a row with good spacing */
.filters .row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Collapsible filters (mobile only) */
.filters .fhead {
  display: none; /* hidden on desktop */
  align-items: center;
  gap: 8px;
}

.filters .fbody {
  display: block; /* default open on desktop */
}

/* Phones & small tablets */
@media (max-width: 720px) {
  .filters .fhead {
    display: flex;
  }
  .filters .fhead .btn {
    width: 100%;
  }

  /* default collapsed */
  .filters:not(.open) .fbody {
    display: none;
  }
  .filters.open .fbody {
    display: block;
  }

  .filters .chev {
    transition: transform 0.2s ease;
  }
  .filters.open .chev {
    transform: rotate(180deg);
  }
}

/* Push the Clear button to the far right to leave space after the dropdown */
#clear {
  margin-left: auto;
}

.error {
  color: #b91c1c;
}

/* Pager */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

/* Contact hero (like screenshot) */
.contact-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
}
.contact-left h1 {
  margin: 0 0 8px 0;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-list i {
  color: var(--blue);
}
.contact-photo {
  height: 360px;
  border-radius: 18px;
  background: url("images/undraw_contact-us_kcoa.svg") center/contain no-repeat;
}

/* Contact layout: title spans both columns on desktop */
.contact-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* left text, right art */
  gap: 28px;
  align-items: start;
}
.contact-hero .page-title {
  grid-column: 1 / -1; /* span both columns */
  margin: 0; /* no extra spacing */
  line-height: 1.15;
}

/* Mobile: stack as title → svg → details, smaller SVG */
@media (max-width: 720px) {
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .contact-photo {
    height: 200px; /* smaller svg on mobile */
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--ring);
  margin-top: 28px !important;
  background: var(--bg);
}
.site-footer.minimal {
  border-top: none;
  background: var(--bg);
}
.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
}
.foot-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.foot-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

/* Skeletons */
.skel {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid var(--ring);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(0, 0, 0, 0.05),
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .cards-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-photo {
    height: 260px;
    clip-path: none;
  }
  .contact-hero {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .cards-4,
  .cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .cards-4,
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

/* --- Homepage feature cards (4 sections) --- */
.features {
  padding: 26px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-card .emoji {
  font-size: 28px;
  line-height: 1;
}
.feature-card h3 {
  margin: 0;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* --- Car details page --- */
.detail-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-top: 12px;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--ring);
}
.specs {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.spec {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px;
}
.spec i {
  color: #1e40af;
  margin-top: 2px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  border: 1px solid var(--ring);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}
@media (max-width: 1000px) {
  .detail-wrap {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Title row with back button */
.title-row {
  display: flex;
  align-items: center;
}

/* Gallery */
.gallery-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-img-wrap {
  position: relative;
  border: 1px solid var(--ring);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 6px;
  background: #ffffffd9;
  border: 1px solid var(--ring);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gbtn.right {
  left: auto;
  right: 6px;
}
.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.thumb-btn {
  border: 1px solid var(--ring);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
}
.thumb-btn img {
  display: block;
  width: 84px;
  height: 60px;
  object-fit: cover;
}
.thumb-btn.active {
  outline: 2px solid #2563eb;
}

/* Small text */
.small {
  font-size: 13px;
}

/* Spec grid already defined previously; ensure cards look good on white */
.spec {
  background: #fff;
}

/* Cards body padding for list pages (if missing) */
.card .pad {
  padding: 12px;
}
/* Prevent sideways scroll on small screens */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video {
  max-width: 100%;
  height: auto;
}

/* ------- Car details (new layout) ------- */
.car-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  position: sticky;
  top: 86px; /* sits under sticky header */
}
.quick-list {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
.quick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px;
}
.quick-list i {
  color: #1e40af;
  margin-top: 2px;
}

.car-bottom {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px;
}
.spec i {
  color: #1e40af;
  margin-top: 2px;
}

.gallery-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.hero-img-wrap {
  position: relative;
  border: 1px solid var(--ring);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 6px;
  background: #ffffffd9;
  border: 1px solid var(--ring);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gbtn.right {
  left: auto;
  right: 6px;
}
.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.thumb-btn {
  border: 1px solid var(--ring);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.thumb-btn img {
  display: block;
  width: 84px;
  height: 60px;
  object-fit: cover;
}
.thumb-btn.active {
  outline: 2px solid #2563eb;
}

@media (max-width: 1000px) {
  .car-top {
    grid-template-columns: 1fr;
  }
  .quick-card {
    position: static;
  }
}
@media (max-width: 560px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
/* Brand with logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 22px;
}
.brand .logo {
  height: 48px;
  width: auto;
  border-radius: 6px;
  display: block;
}
@media (max-width: 520px) {
  .brand .logo {
    height: 22px;
  }
}

/* Sticky footer layout: keeps footer at the bottom on short pages */
html,
body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
.site-footer {
  margin-top: auto;
  background: var(--bg);
}

/* Global: nudge all Font Awesome icons down slightly */
i.fa,
i.fas,
i.far,
i.fal,
i.fab,
i.fa-solid,
i.fa-regular,
i.fa-light,
i.fa-thin,
i.fa-duotone,
i.fa-brands,
i[class^="fa-"],
i[class*=" fa-"] {
  display: inline-block;
  padding-top: 5px;
}

/* Exception: don't nudge the icon inside the Clear button */
#clear i {
  padding-top: 0 !important;
  vertical-align: middle; /* optional: keeps it nicely centered */
}

/* Responsive footer grid */
@media (max-width: 720px) {
  .fgrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .site-footer .brand {
    margin-bottom: 6px;
  }
  .site-footer .foot-list {
    gap: 8px;
  }
}

/* Avoid overflow from long email/links in footer */
.site-footer a {
  word-break: break-word;
}

/* Toggle switch styles */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.toggle.small {
  padding-top: 0;
}

.toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

.toggle .switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1; /* slate-300 */
  box-shadow: inset 0 0 0 1px var(--ring);
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.toggle input[type="checkbox"]:checked + .switch {
  background: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue-600);
}
.toggle input[type="checkbox"]:checked + .switch::after {
  transform: translateX(20px);
}

.toggle span {
  font-size: 14px;
  line-height: 1;
}

/* Hero image fades on change */
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  opacity: 1;
  object-fit: cover;
}

/* Reset h1 vertical margins globally + tighten line-height */
h1 {
  margin-block: 15px; /* removes top & bottom margins */
  line-height: 1.15; /* tweak if you want tighter/looser */
}

/* Safety: in title rows, ensure no extra spacing sneaks in */
.title-row h1 {
  margin: 0;
  line-height: 1.15;
}
