/* styles.css */

:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  color: #202020;
  background: #fafafa;

  --page-width: 1180px;
  --page-padding: clamp(18px, 4vw, 48px);

  --red: #8f1d22;
  --red-dark: #691418;

  --text: #202020;
  --muted: #666;
  --surface: #fff;
  --soft-surface: #f4f3f1;
  --dark: #1d1d1d;

  --radius-small: 10px;
  --radius: 16px;
  --radius-large: 22px;

  --shadow:
    0 8px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #fafafa;
}

img {
  max-width: 100%;
}

a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #3977d5;
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

.content-container {
  width: min(
    calc(100% - (var(--page-padding) * 2)),
    var(--page-width)
  );
  margin-inline: auto;
}


/* ---------- headings ---------- */

.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading h1,
.section-heading h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ---------- floating navigation ---------- */

.fixed-links {
  position: fixed;
  z-index: 1000;
  top: 20px;
  left: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.nav-button {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;

  padding: 7px;

  border: 0;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);

  cursor: pointer;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.19);
  text-decoration: none;
}

.logo-button {
  width: 76px;
  height: 76px;
  padding: 9px;
}

.nav-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ---------- hero ---------- */

.hero {
  padding-bottom: clamp(64px, 8vw, 100px);
}

.hero-image {
  width: 100%;
  height: clamp(320px, 55vw, 680px);
  margin-bottom: clamp(42px, 6vw, 70px);
  overflow: hidden;
  background: #222;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------- store carousel ---------- */

.store-carousel-wrapper {
  width: 100%;
  overflow: hidden;
}

.store-carousel {
  display: flex;
  gap: 22px;

  overflow-x: auto;
  padding:
    8px
    max(var(--page-padding), calc((100vw - var(--page-width)) / 2))
    28px;

  scroll-padding-left:
    max(var(--page-padding), calc((100vw - var(--page-width)) / 2));

  scroll-snap-type: x mandatory;

  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}

.store-carousel::-webkit-scrollbar {
  height: 7px;
}

.store-carousel::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 20px;
}

.card {
  flex: 0 0 min(340px, 84vw);

  overflow: hidden;

  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);

  scroll-snap-align: start;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.card > img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.card-content {
  padding: 22px;
}

.card-content h2 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
}

.tag {
  display: inline-block;

  padding: 5px 10px;

  color: var(--red-dark);
  background: #f7e9e9;
  border-radius: 999px;

  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-phone {
  margin: 0 0 14px;
}

.store-phone a {
  color: var(--muted);
  font-weight: 500;
}

.store-hours {
  margin-bottom: 18px;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
}

.store-hours p {
  margin: 0;
}

.store-web {
  display: inline-block;
  padding-top: 4px;
}


/* ---------- news ---------- */

.events-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.news-item {
  display: flex;
  overflow: hidden;
  flex-direction: column;

  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.news-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  padding: 24px;
}

.news-content h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.news-content p {
  flex-grow: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.news-content a {
  margin-top: 20px;
}


/* ---------- map ---------- */

.location-section {
  background: var(--soft-surface);
}

.map-container {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.google-maps {
  display: block;
  width: 100%;
  height: clamp(380px, 55vw, 600px);
  border: 0;
}


/* ---------- directory ---------- */

.directory-section {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--dark);
}

.section-heading-light h2 {
  color: #fff;
}

.directory-section .eyebrow {
  color: #e1a5a7;
}

.directory-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.glance-item {
  padding: 22px;

  color: var(--text);
  background: #fff;
  border-radius: var(--radius-small);
}

.glance-item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.glance-category {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.glance-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.glance-item a {
  display: inline-block;
  margin-top: 9px;
}


/* ---------- footer ---------- */

.site-footer {
  padding: 22px var(--page-padding);
  color: #aaa;
  background: #151515;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
}


/* ---------- mobile ---------- */

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  .fixed-links {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;

    flex-direction: row;
    justify-content: center;
    gap: 24px;

    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(12px);
  }

  .nav-button,
  .logo-button {
    width: 48px;
    height: 48px;
    padding: 5px;

    background: transparent;
    box-shadow: none;
  }

  .hero-image {
    height: clamp(280px, 65vw, 430px);
  }

  .card {
    flex-basis: min(315px, 82vw);
  }

  .section {
    padding: 58px 0;
  }
}


/* ---------- accessibility ---------- */

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

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