:root {
  --bg: #f6f3ee;
  --bg-soft: #fffdf9;
  --ink: #1f1a17;
  --ink-muted: #5c534c;
  --lacquer: #b0121a;
  --lacquer-deep: #8c0e15;
  --blush: #f3e4dc;
  --mist: #e7eee8;
  --line: rgba(31, 26, 23, 0.12);
  --shadow: 0 18px 50px rgba(31, 26, 23, 0.08);
  --radius: 4px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--lacquer);
  color: #fffdf9;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: 3px;
}

.btn:focus-visible,
.location-phone:focus-visible,
.brand:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: 3px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(243, 228, 220, 0.95), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 10%, rgba(231, 238, 232, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(176, 18, 26, 0.06), transparent 60%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 45%, #efe8e0 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* —— Hero —— */
.hero {
  padding: clamp(2.25rem, 6vw, 4rem) 1.5rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.brand {
  --logo-w: min(540px, 92vw);
  position: relative;
  display: inline-block;
  text-decoration: none;
  margin-bottom: 2rem;
  isolation: isolate;
  animation: logoFloat 4.5s ease-in-out 0.9s infinite;
}

.brand::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 62%;
  height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(176, 18, 26, 0.22), transparent 70%);
  filter: blur(2px);
  z-index: -1;
  pointer-events: none;
  animation: logoShadow 4.5s ease-in-out 0.9s infinite;
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.45) 48%,
    rgba(255, 248, 230, 0.2) 52%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: logoShine 3.8s ease-in-out 1.2s infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.brand:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.03);
  transition: transform 0.35s ease;
}

.brand:hover::after {
  animation-duration: 1.6s;
}

.brand:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: 6px;
  border-radius: 4px;
}

.brand-logo {
  width: var(--logo-w);
  height: auto;
  display: block;
  background: transparent;
  animation: logoEnter 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow,
.headline,
.lede {
  opacity: 1;
  transform: none;
}

.js .eyebrow,
.js .headline,
.js .lede {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s ease var(--hero-delay, 0s),
    transform 0.7s ease var(--hero-delay, 0s);
}

.js .eyebrow.is-in,
.js .headline.is-in,
.js .lede.is-in {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lacquer);
}

.headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.45rem, 7vw, 3.6rem);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto;
  max-width: 32rem;
  font-size: clamp(1.08rem, 2.5vw, 1.28rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.lede strong {
  font-weight: 700;
  color: var(--lacquer);
  position: relative;
  display: inline-block;
  animation: pulseSoft 2.4s ease-in-out 1.2s infinite;
}

/* —— Locations —— */
.locations {
  width: min(980px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.locations:focus {
  outline: none;
}

.locations:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: 6px;
}

.location {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 1.85rem);
  background: color-mix(in srgb, var(--bg-soft) 88%, white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.js .location[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease var(--delay, 0s),
    transform 0.7s ease var(--delay, 0s),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.js .location[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.location:hover {
  border-color: color-mix(in srgb, var(--lacquer) 35%, var(--line));
  box-shadow: 0 22px 55px rgba(176, 18, 26, 0.1);
}

.location-name {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.45rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.location-phone-wrap {
  margin: 0 0 0.65rem;
}

.location-phone {
  display: inline-block;
  min-height: 44px;
  padding: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--lacquer);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.location-phone:hover {
  color: var(--lacquer-deep);
}

.location-address {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 300;
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.6;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lacquer);
  color: #fffdf9;
  border: 1px solid var(--lacquer);
}

.btn-primary:hover {
  background: var(--lacquer-deep);
  border-color: var(--lacquer-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
  background: rgba(255, 253, 249, 0.7);
}

.location-map {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  line-height: 0;
  transition: transform 0.35s ease;
  background: color-mix(in srgb, var(--mist) 70%, white);
}

.map-load-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 180px;
  margin: 0;
  padding: 1rem;
  border: 0;
  background:
    linear-gradient(160deg, rgba(176, 18, 26, 0.08), transparent 55%),
    color-mix(in srgb, var(--mist) 75%, white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.map-load-btn:hover,
.map-load-btn:focus-visible {
  color: var(--lacquer);
  background:
    linear-gradient(160deg, rgba(176, 18, 26, 0.14), transparent 55%),
    color-mix(in srgb, var(--blush) 55%, white);
}

.map-load-btn:focus-visible {
  outline: 3px solid var(--lacquer);
  outline-offset: -3px;
}

.location-map img,
.location-map iframe {
  width: 100%;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.5s ease, filter 0.35s ease;
}

.location-map img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  height: auto;
}

.location-map iframe {
  height: 300px;
  min-height: 220px;
  aspect-ratio: unset;
  object-fit: unset;
  border: 0;
  line-height: 0;
}

.location:hover .location-map img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-copy,
.footer-links {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--lacquer);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.footer-links a:hover {
  color: var(--lacquer-deep);
}

@keyframes logoEnter {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes logoShadow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.28;
    transform: translateX(-50%) scaleX(0.86);
  }
}

@keyframes logoShine {
  0%,
  28% {
    background-position: 120% 0;
  }
  58%,
  100% {
    background-position: -120% 0;
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .locations {
    grid-template-columns: 1fr;
    width: min(980px, calc(100% - 1.25rem));
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    gap: 1rem;
  }

  .hero {
    padding: 1.75rem 1rem 0.75rem;
  }

  .brand {
    --logo-w: min(540px, 96vw);
    margin-bottom: 1.5rem;
  }

  .location-actions {
    flex-direction: column;
  }

  .location-actions .btn {
    width: 100%;
  }

  .location-map iframe {
    height: 240px;
    min-height: 200px;
    aspect-ratio: unset;
  }
}

@media (max-width: 400px) {
  .headline {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand,
  .brand::before,
  .brand::after,
  .brand-logo,
  .lede strong,
  .js .eyebrow,
  .js .headline,
  .js .lede,
  .js .eyebrow.is-in,
  .js .headline.is-in,
  .js .lede.is-in,
  .js .location[data-reveal],
  .js .location[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
  }
}
