:root {
  --ink: #312f38;
  --paper: #f2f4f5;
  --soft-paper: #e9ecef;
  --white: #ffffff;
  --blue: #4169e1;
  --green: #3cb371;
  --shadow: 0 18px 45px rgba(49, 47, 56, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Miriam Libre", Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--ink);
  color: var(--white);
}

.topbar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.topbar__message {
  display: grid;
  gap: 2px;
  text-align: center;
}

.topbar__message span,
.topbar__message a {
  font-size: 1.02rem;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #3159ca;
  box-shadow: 0 10px 22px rgba(65, 105, 225, 0.28);
  transform: translateY(-1px);
}

.button--small {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 0.85rem;
}

.button--large {
  width: min(100%, 520px);
  min-height: 54px;
  padding: 14px 22px;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(260px, 44vw, 440px);
  display: flex;
  align-items: center;
  background: url("assets/bg1.jpg") center / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(320deg, rgba(60, 179, 113, 0.72), rgba(65, 105, 225, 0.72));
}

.hero__content {
  padding: clamp(54px, 9vw, 96px) 0;
}

.hero__logo {
  width: min(100%, 940px);
  margin: 0 auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.2));
}

.section {
  padding: clamp(48px, 7vw, 74px) 0;
}

.section--light {
  background: var(--soft-paper);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.prose {
  font-size: clamp(1.18rem, 2.4vw, 1.4rem);
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1.1em;
}

.brands {
  background: var(--white);
}

.brands h1 {
  margin: 0 0 34px;
  font-family: "Miriam Libre", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.brand-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.carousel-window {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.brand-card {
  flex: 0 0 calc(100% / var(--visible-slides, 5));
  margin: 0;
  padding: 0 12px;
}

.brand-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
}

.carousel-control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease, opacity 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  opacity: 0.86;
  transform: scale(1.04);
}

.contact-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 7vw, 82px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
}

.contact-band h2 {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1.15;
}

.contact-band h2 a {
  text-decoration: none;
}

.hours-card {
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.hours-card h2 {
  margin-bottom: 22px;
  font-family: "Miriam Libre", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.hours-list {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
}

.hours-list div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hours-list dt,
.hours-list dd {
  margin: 0;
}

.map-section {
  background: var(--soft-paper);
}

.map-section iframe {
  display: block;
  width: 100%;
  height: min(600px, 70vh);
  min-height: 360px;
  border: 0;
}

.location__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
}

.address-card {
  margin: 0;
  text-align: center;
  font-style: normal;
  font-size: 1.08rem;
}

.address-card__icon {
  display: block;
  width: 54px;
  height: 42px;
  margin: 0 auto 12px;
  position: relative;
  color: var(--ink);
}

.address-card__icon::before {
  content: "";
  position: absolute;
  inset: 3px 7px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.address-card__icon::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 -11px 0 currentColor;
}

.footer {
  background: var(--ink);
  color: var(--soft-paper);
  text-align: center;
}

.footer__content {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 36px 0 42px;
}

.footer p {
  margin: 0;
}

.footer img {
  width: auto;
  height: 200px;
}

@media (max-width: 800px) {
  .topbar__content,
  .contact-band__grid,
  .location__grid {
    grid-template-columns: 1fr;
  }

  .topbar__content {
    display: grid;
    justify-items: center;
  }

  .button--small {
    width: min(100%, 360px);
  }

  .brand-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .carousel-control {
    width: 34px;
    height: 34px;
    font-size: 1.55rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand-card {
    padding: 0 8px;
  }

  .brand-card img {
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
