/* Jefferson Monuments — friendly illustrated style, still polished & respectful */

:root {
  /* Storybook sky & warm neutrals */
  --sky-deep: #4f7fd4;
  --sky-mid: #7aa8ec;
  --sky-light: #b8d4ff;
  --cloud: rgba(255, 255, 255, 0.97);
  --cloud-soft: rgba(255, 255, 255, 0.75);
  --cream: #fff9f0;
  --cream-dark: #ebe4d4;
  --ink: #1a2233;
  --ink-muted: #4a5568;
  --accent: #2f6bcc;
  --accent-mid: #4f8de8;
  --accent-hover: #2557a8;
  --accent-soft: rgba(47, 107, 204, 0.14);
  /* Soft lavender — glows & accents (replaces warm yellow in UI halos) */
  --lavender-mid: #a894d4;
  --lavender-soft: #c9bff0;
  /* Logo wordmark — shared by “Jefferson” + “Monuments” */
  --logo-word-gradient: linear-gradient(128deg, var(--accent) 0%, var(--accent-mid) 42%, #5ab0d8 72%, #6b93d6 100%);
  --sage: #4d7a6a;
  --sage-soft: rgba(77, 122, 106, 0.16);
  --shadow: rgba(26, 34, 51, 0.08);
  --shadow-md: 0 10px 28px rgba(26, 34, 51, 0.1);
  --shadow-lg: 0 22px 48px rgba(47, 107, 204, 0.14);
  /* Inset highlight only — no omnidirectional glow (avoids bleed at page edges) */
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  /* “Sticker” depth — soft offset, still office-safe */
  --pop: 4px 5px 0 rgba(26, 58, 120, 0.18);
  --pop-sm: 3px 3px 0 rgba(26, 58, 120, 0.12);
  --radius: 22px;
  --radius-lg: 28px;
  --radius-pill: 9999px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Nunito", system-ui, sans-serif;
  --container-max: 1120px;
  --container-narrow: 760px;
  --container-wide: 1040px;
  --gutter: clamp(1rem, 4.5vw, 2rem);
  --section-y: clamp(2.75rem, 7vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.08rem);
  line-height: 1.65;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
}

main {
  position: relative;
  z-index: 1;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* --- Sky, soft blobs & puffy clouds (illustrated feel) --- */
.sky-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(
    168deg,
    #6b9ef2 0%,
    #8eb8f5 22%,
    #b0d0fb 48%,
    #d9e8ff 72%,
    #ebe9ff 92%,
    var(--cream) 100%
  );
  pointer-events: none;
}

/* Fade sky/blobs at left & right viewport edges — no colored glow on the sides */
.sky-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cream) 0%,
    rgba(255, 249, 240, 0.88) 8%,
    transparent 24%,
    transparent 76%,
    rgba(255, 249, 240, 0.88) 92%,
    var(--cream) 100%
  );
}

/* --- Rising sparkles (bottom → up; visibility tuned so they read on light sections) --- */
/* Above <main> (z-index:1). Do not use custom properties inside @keyframes transforms. */
.sparkle-field {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  left: var(--sl, 50%);
  bottom: -5%;
  width: var(--sz, 5px);
  height: var(--sz, 5px);
  margin-left: calc(var(--sz, 5px) * -0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffffff 0%, rgba(255, 255, 255, 0.95) 28%, rgba(230, 225, 255, 0.55) 52%, transparent 70%);
  box-shadow:
    0 0 4px 2px rgba(255, 255, 255, 1),
    0 0 14px 4px rgba(210, 200, 255, 0.75),
    0 0 28px 8px rgba(140, 165, 230, 0.35),
    0 0 48px 12px rgba(100, 140, 210, 0.12);
  opacity: 0;
  animation: sparkle-rise var(--st, 20s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  animation-delay: var(--sd, 0s);
}

.sparkle--faint {
  background: radial-gradient(circle at 32% 32%, #fff 0%, rgba(255, 255, 255, 0.75) 40%, transparent 68%);
  box-shadow:
    0 0 3px 1px rgba(255, 255, 255, 0.9),
    0 0 12px 3px rgba(200, 195, 245, 0.55),
    0 0 24px 6px rgba(130, 155, 215, 0.2);
}

@keyframes sparkle-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.45);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  40% {
    opacity: 0.78;
  }
  68% {
    opacity: 0.52;
  }
  100% {
    transform: translate3d(0, -125vh, 0) scale(1);
    opacity: 0;
  }
}

.sky-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  pointer-events: none;
}

.sky-blob--a {
  width: min(55vw, 340px);
  height: min(55vw, 340px);
  top: 8%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, #ebe8ff 0%, #c4b8f0 38%, #9d8bd8 55%, transparent 72%);
  opacity: 0.32;
  animation: blob-float 22s ease-in-out infinite;
}

.sky-blob--b {
  width: min(70vw, 420px);
  height: min(50vw, 300px);
  bottom: 15%;
  left: -15%;
  background: radial-gradient(ellipse at center, #c4a8ff 0%, #8ec5fc 50%, transparent 65%);
  animation: blob-float 28s ease-in-out infinite reverse;
  opacity: 0.35;
}

.sky-blob--c {
  width: min(45vw, 260px);
  height: min(45vw, 260px);
  top: 48%;
  right: 5%;
  background: radial-gradient(circle at 50% 50%, #a8e6cf 0%, #7fcdcd 40%, transparent 70%);
  animation: blob-float 25s ease-in-out infinite;
  animation-delay: -5s;
  opacity: 0.28;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-4%, 3%) scale(1.05);
  }
}

.cloud {
  position: absolute;
  border-radius: 50%;
  background: var(--cloud-soft);
  filter: blur(32px);
  opacity: 0.95;
  animation: drift 80s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.cloud:nth-child(1) {
  width: min(90vw, 520px);
  height: 150px;
  top: 6%;
  left: -6%;
  animation-delay: 0s;
}

.cloud:nth-child(2) {
  width: min(72vw, 420px);
  height: 120px;
  top: 16%;
  right: -10%;
  animation-delay: -20s;
  opacity: 0.78;
}

.cloud:nth-child(3) {
  width: min(100vw, 620px);
  height: 170px;
  top: 40%;
  left: 12%;
  animation-delay: -40s;
  opacity: 0.62;
}

.cloud:nth-child(4) {
  width: min(82vw, 460px);
  height: 130px;
  bottom: 22%;
  right: 4%;
  animation-delay: -10s;
  opacity: 0.72;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, -2%) scale(1.02);
  }
  66% {
    transform: translate(-2%, 1%) scale(0.98);
  }
}

/* --- Layout: containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.page-section {
  padding: var(--section-y) 0;
}

/* Framed content regions */
.section-panel {
  position: relative;
  padding: clamp(1.5rem, 4.5vw, 2.75rem);
  background: linear-gradient(168deg, #ffffff 0%, #f5f9ff 50%, #eef4ff 100%);
  border-radius: var(--radius-lg);
  border: 3px solid rgba(47, 107, 204, 0.16);
  box-shadow: var(--edge-light), var(--shadow-lg), var(--pop-sm);
  overflow: hidden;
}

.section-panel--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    #5ab9d8 38%,
    var(--lavender-mid) 72%,
    var(--sage) 100%
  );
  border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
}

.surface-elevated {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.98) 100%);
  border: 3px solid rgba(47, 107, 204, 0.14);
  box-shadow: var(--edge-light), var(--shadow-md), var(--pop-sm);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 249, 255, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 3px solid rgba(47, 107, 204, 0.12);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 10px 32px rgba(47, 107, 204, 0.1), var(--pop-sm);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
}

.header-inner .logo {
  flex-shrink: 0;
}

.header-inner .nav {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.logo:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.logo__img {
  display: block;
  width: auto;
  max-width: min(200px, 42vw);
  height: auto;
  max-height: clamp(2.5rem, 6.5vw, 3.4rem);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

/* Wordmark: one type style — Fraunces italic (same as “Monuments”) on both lines */
.logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.logo__word {
  display: block;
  font-family: inherit;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 2.9vw, 1.58rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: var(--logo-word-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92));
}

.logo__word--accent {
  margin-top: 0.02em;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.34rem, 3.5vw, 2.02rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--logo-word-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.92));
}

.nav {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.88rem, 2.5vw, 0.96rem);
  font-weight: 800;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 246, 255, 0.92) 100%);
  border: 2px solid rgba(186, 178, 245, 0.55);
  box-shadow: 0 3px 12px rgba(47, 107, 204, 0.08), var(--pop-sm);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  background: linear-gradient(165deg, #fff 0%, rgba(238, 242, 255, 0.98) 100%);
  border-color: rgba(47, 107, 204, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 107, 204, 0.12), var(--pop-sm);
}

.nav-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(47, 107, 204, 0.08), var(--pop-sm);
}

.nav-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile: centered logo; nav scrolls horizontally */
@media (max-width: 639px) {
  .site-header {
    border-width: 2px;
    border-radius: 0 0 1rem 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0 0.65rem;
  }

  .header-inner .logo {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .header-inner .logo .logo__text {
    align-items: center;
  }

  .header-inner .nav {
    flex: none;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding: 0.15rem 0 0.35rem;
    scrollbar-width: thin;
  }

  .header-inner .nav-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* --- Hero --- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.25rem);
  text-align: center;
}

.hero-card {
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 10px rgba(186, 178, 245, 0.22), 0 0 0 20px rgba(147, 180, 230, 0.1),
    var(--shadow-md), var(--pop-sm);
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin-bottom: 0.75rem;
  font-weight: 800;
  font-family: var(--font-sans);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.95rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  color: var(--ink-muted);
  margin: 0 auto;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.85rem;
}

.hero-phone {
  margin: 1rem 0 0;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-phone a {
  color: var(--accent);
  text-decoration: none;
}

.hero-phone a:hover,
.hero-phone a:focus-visible {
  text-decoration: underline;
}

.hero-phone-note {
  font-weight: 500;
  color: var(--ink-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-mid) 0%, var(--accent) 55%, #2563b8 100%);
  color: #fff;
  border: 3px solid rgba(20, 60, 130, 0.35);
  box-shadow: var(--pop), 0 8px 24px rgba(47, 107, 204, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 100%);
  transform: translate(1px, 2px);
  box-shadow: 2px 3px 0 rgba(26, 58, 120, 0.2), 0 4px 16px rgba(47, 107, 204, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  border: 3px solid var(--accent);
  box-shadow: var(--pop-sm);
}

.btn-outline:hover {
  background: var(--accent-soft);
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 rgba(26, 58, 120, 0.12);
}

.btn-facebook {
  background: #fff;
  color: #1877f2;
  border: 3px solid #1877f2;
  box-shadow: var(--pop-sm);
}

.btn-facebook:hover {
  background: rgba(24, 119, 242, 0.08);
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 rgba(24, 119, 242, 0.2);
}

.btn-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* --- Sections --- */
section {
  padding: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  font-weight: 600;
  text-align: center;
  margin: 0 auto 0.65rem;
  color: var(--ink);
  max-width: 100%;
  position: relative;
  padding-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 5rem;
  height: 8px;
  margin: 0.65rem auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), #5ab9d8, var(--lavender-soft));
  box-shadow: 0 2px 0 rgba(26, 58, 120, 0.15);
}

.section-intro {
  text-align: center;
  color: var(--ink-muted);
  max-width: min(52ch, 100%);
  margin: 0 auto 2rem;
  padding: 0 0.25rem;
  font-size: clamp(0.98rem, 2.2vw, 1.05rem);
}

/* About */
.about {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 255, 255, 0.75) 0%, transparent 55%),
    linear-gradient(180deg, rgba(245, 248, 252, 0.6) 0%, var(--cream) 100%);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-card {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 255, 0.98) 100%);
  border: 3px solid rgba(47, 107, 204, 0.12);
  box-shadow: var(--edge-light), var(--shadow-md), var(--pop-sm);
}

.about-card p {
  margin: 0;
  color: var(--ink-muted);
}

.about-card p + p {
  margin-top: 1rem;
}

/* Services */
.services {
  background: linear-gradient(180deg, var(--cream) 0%, rgba(230, 240, 252, 0.55) 45%, var(--cream) 100%);
}

.services .section-title::after {
  background: linear-gradient(90deg, var(--sage), var(--lavender-mid));
}

.services-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ink);
  text-align: center;
}

.services-ways {
  max-width: 900px;
  margin: 0 auto 2.25rem;
}

.services-ways-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.services-ways-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(145deg, #fff 0%, #f3f8ff 100%);
  border-radius: var(--radius);
  border: 3px solid rgba(47, 107, 204, 0.12);
  color: var(--ink-muted);
  line-height: 1.5;
  box-shadow: var(--edge-light), 0 6px 20px var(--shadow), var(--pop-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.services-ways-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--edge-light), 0 10px 28px rgba(47, 107, 204, 0.12), var(--pop-sm);
}

.services-ways-list strong {
  color: var(--ink);
  font-weight: 600;
}

.services-way-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.08rem;
  filter: drop-shadow(0 1px 2px rgba(44, 95, 158, 0.2));
}

.services-products {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 1.85rem) clamp(1.15rem, 3vw, 1.65rem);
  background: linear-gradient(165deg, rgba(168, 230, 207, 0.2) 0%, rgba(255, 255, 255, 0.98) 45%, #fff 100%);
  border-radius: var(--radius);
  border: 3px dashed rgba(77, 122, 106, 0.35);
  box-shadow: var(--edge-light), var(--shadow-md), var(--pop-sm);
}

.services-products-list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

.services-products-list li + li {
  margin-top: 0.35rem;
}

/* Gallery */
.gallery {
  background: linear-gradient(180deg, var(--cream) 0%, #eef3f9 50%, var(--cream) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 3vw, 1.35rem);
}

button.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 204, 0.2), var(--shadow-md), var(--pop-sm);
  background: var(--cream-dark);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

button.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-item:focus-within,
.gallery-item:hover {
  box-shadow: 0 14px 40px rgba(47, 107, 204, 0.22), 4px 6px 0 rgba(26, 58, 120, 0.12);
  transform: translateY(-4px) rotate(-0.5deg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Lightbox — full-screen viewer, image scales to viewport */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 24, 0.92);
  cursor: zoom-out;
}

.lightbox__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(3.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  pointer-events: none;
}

.lightbox__img,
.lightbox__close {
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(96vw, 1600px);
  max-height: min(88vh, 1400px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.lightbox__close {
  position: fixed;
  top: max(0.5rem, env(safe-area-inset-top));
  right: max(0.5rem, env(safe-area-inset-right));
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, background 0.15s;
}

.lightbox__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.lightbox__close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.lightbox__close-x {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 400;
  margin-top: -2px;
}

/* Contact — cleaner cards, calmer shadows */
.contact {
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.section-intro--contact {
  max-width: 46ch;
}

.section-intro--contact a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.section-intro--contact a:hover,
.section-intro--contact a:focus-visible {
  text-decoration: underline;
}

.contact-panel {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 720px;
  margin: 0 auto;
}

.contact-block {
  padding: clamp(1.35rem, 3.5vw, 1.75rem) clamp(1.25rem, 3vw, 1.65rem);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(47, 107, 204, 0.1);
  box-shadow: var(--edge-light), 0 4px 24px rgba(26, 34, 51, 0.06), 0 1px 3px rgba(26, 34, 51, 0.04);
}

.contact-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.35rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.contact-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  margin: 0 0 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 204, 0.14);
  box-shadow: 0 2px 14px rgba(26, 34, 51, 0.06);
  background: #e8eef5;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-block p,
.contact-block address {
  margin: 0;
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tappable address — icon + clean panel */
.address-box {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(47, 107, 204, 0.14);
  border-left: 4px solid var(--accent-mid);
  box-shadow: 0 1px 3px rgba(26, 34, 51, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.address-box:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 16px rgba(47, 107, 204, 0.1);
}

.address-box:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.address-box-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
  opacity: 0.9;
}

.address-box address {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.2vw, 1.02rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.55;
}

.address-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-contact-maps {
  min-height: 44px;
  font-weight: 800;
  font-size: 0.88rem;
}

/* Hours — pill rows */
.contact-block--hours .hours-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-block--hours .hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: rgba(47, 107, 204, 0.05);
  font-size: clamp(0.9rem, 2.1vw, 0.96rem);
}

.hours-day {
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-sans);
}

.hours-time {
  color: var(--ink-muted);
  font-weight: 600;
  text-align: right;
}

.hours-note {
  margin: 1rem 0 0 !important;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(47, 107, 204, 0.1);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 500;
}

.hours-note strong {
  color: var(--accent);
  font-weight: 800;
}

.hours-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.hours-note a:hover,
.hours-note a:focus-visible {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: max(1.5rem, env(safe-area-inset-bottom)) 0 2rem;
  text-align: center;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
  color: var(--ink-muted);
  border-top: 1px solid rgba(44, 95, 158, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 244, 250, 0.9) 100%);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-credit {
  max-width: 280px;
  margin: 0 auto 1.5rem;
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
  border: 1px solid rgba(47, 107, 204, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--edge-light), 0 4px 20px rgba(26, 34, 51, 0.06);
}

.footer-credit__label {
  margin: 0 0 0.35rem !important;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-credit__name {
  margin: 0 0 1rem !important;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-credit__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #1877f2 0%, #1565c0 100%);
  border: 2px solid rgba(13, 50, 100, 0.35);
  border-radius: var(--radius-pill);
  box-shadow: var(--pop-sm);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.footer-credit__link:hover {
  filter: brightness(1.06);
  transform: translate(1px, 2px);
  box-shadow: 1px 2px 0 rgba(13, 50, 100, 0.2);
}

.footer-credit__link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.footer-credit__icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  opacity: 0.95;
}

.footer-copy {
  margin-top: 0.25rem !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  left: max(1rem, env(safe-area-inset-left));
  top: max(1rem, env(safe-area-inset-top));
}

/* --- Responsive breakpoints --- */
@media (min-width: 640px) {
  .services-ways-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn {
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  .contact-panel {
    max-width: 920px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 519px) {
  .hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .address-actions {
    grid-template-columns: 1fr;
  }

  .address-actions .btn {
    width: 100%;
    min-width: unset;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Keep sparkles visible but ~4× slower (gentler for vestibular sensitivity) */
  .sparkle {
    animation-duration: 80s !important;
    animation-timing-function: linear !important;
  }

  .cloud,
  .sky-blob--a,
  .sky-blob--b,
  .sky-blob--c {
    animation: none;
  }

  .gallery-item img,
  .btn,
  .nav-link,
  .gallery-item,
  .services-ways-list li {
    transition: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item:focus-within,
  .gallery-item:hover {
    transform: none;
  }

  .lightbox__close {
    transition: none;
  }

  .nav-link:hover,
  .nav-link:active {
    transform: none;
  }
}
