/* Emerald City Exteriors — burgundy / black / white (logo), Oswald + Source Sans 3 */

:root {
  --burgundy: #601018;
  --burgundy-deep: #4a0c12;
  --burgundy-soft: #8b2832;
  --burgundy-pale: #f5e8ea;
  --ink: #0d0d0d;
  --ink-soft: #1f1f1f;
  --muted: #4a4a4a;
  --cream: #f4f2f3;
  --white: #ffffff;
  --card: #ffffff;
  --line: #d4d0d1;
  --shadow: 0 20px 50px rgba(13, 13, 13, 0.08);
  --radius: 14px;
  --star: #b8860b;
  --font-display: "Oswald", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: var(--ink-soft);
}

a:focus-visible {
  outline: 3px solid var(--burgundy-soft);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1.25rem;
  padding: 0.15rem 0;
}

.header-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* Brand: natural width on the left (not equal-column with nav). */
.header-cluster-brand {
  flex: 0 0 auto;
  justify-content: flex-start;
}

/* Nav: centered in the remaining space between brand and buttons. */
.header-cluster-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.header-cluster-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.header-right-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 80px;
  width: auto;
  max-width: min(96px, 30vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--burgundy);
}

.header-cta,
.header-gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
  max-width: 100%;
}

.header-cta {
  white-space: normal;
}

.header-cta:hover,
.header-gallery:hover {
  background: var(--burgundy-deep);
  color: var(--white);
}

.header-gallery[aria-current="page"] {
  background: var(--burgundy-deep);
  color: var(--white);
  pointer-events: none;
  cursor: default;
}

/* Hero — taller band; main block aligned higher so the showcase reads above the fold */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(4rem, 10vh, 5.75rem) 0 calc(4.5rem + 8px) 0;
  overflow: hidden;
}

/* Hero: “lap siding + plank seams” motif (exterior envelope), not a flat grid */
.hero-visual {
  position: absolute;
  inset: 0;
  background-color: #0b090a;
  /* Nearest-to-viewer layers first: siding highlights → lap shadows → seams → roofline wash → glows → base */
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 17px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 12px,
      rgba(0, 0, 0, 0.48) 12px,
      rgba(0, 0, 0, 0.48) 15px,
      transparent 15px,
      transparent 17px
    ),
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 107px,
      rgba(36, 14, 20, 0.88) 107px,
      rgba(36, 14, 20, 0.88) 109px,
      transparent 109px,
      transparent 136px
    ),
    linear-gradient(
      180deg,
      rgba(96, 16, 24, 0.4) 0%,
      rgba(96, 16, 24, 0.14) 5px,
      transparent 18%
    ),
    radial-gradient(ellipse 50% 40% at 90% 6%, rgba(139, 40, 50, 0.34) 0%, transparent 48%),
    radial-gradient(ellipse 120% 75% at 50% 104%, rgba(96, 16, 24, 0.58) 0%, transparent 52%),
    linear-gradient(168deg, #090708 0%, #1a1416 44%, #0f0c0e 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 4, 5, 0.34) 0%,
    rgba(8, 6, 7, 0.06) 42%,
    rgba(8, 6, 7, 0.28) 100%
  );
}

/* Fascia + drip edge strip — reads like trim along the eaves, not caution tape */
.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(
    to bottom,
    rgba(235, 232, 236, 0.45) 0%,
    rgba(175, 168, 172, 0.2) 30%,
    var(--burgundy) 30%,
    var(--burgundy-deep) 100%
  );
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
}

.hero-copy {
  max-width: 40rem;
  min-width: 0;
}

.hero-showcase {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: 0;
}

.hero-showcase-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.hero-showcase-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: 1.65rem 0.85rem 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.5rem 1rem;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.82) 0%, rgba(13, 13, 13, 0.35) 55%, transparent 100%);
}

.hero-showcase-photos-btn {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-showcase-photos-btn:hover {
  background: var(--burgundy-soft);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-showcase-photos-btn:focus-visible {
  outline: 2px solid #fdeced;
  outline-offset: 2px;
}

.hero-showcase-caption-label {
  justify-self: start;
  align-self: end;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

@media (min-width: 900px) {
  .hero-grid {
    --hero-row2-pull: clamp(-3.25rem, -7vh, -1.75rem);
    --hero-photo-bleed-x: min(2.75rem, 4.5vw);
    --hero-photo-bleed-bottom: min(2rem, 3.5vh);
    grid-template-columns: minmax(0, 1fr) minmax(17rem, min(46vw, 34rem));
    grid-template-rows: auto auto;
    column-gap: 2.25rem;
    row-gap: 0.6rem;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .hero-showcase {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    width: calc(100% + var(--hero-photo-bleed-x));
    max-width: none;
    height: clamp(280px, 52vh, 520px);
    margin-right: calc(-1 * var(--hero-photo-bleed-x));
    margin-bottom: calc(-1 * var(--hero-photo-bleed-bottom));
    z-index: 0;
  }

  .hero-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 48%;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-top: var(--hero-row2-pull);
    position: relative;
    z-index: 1;
  }

  .hero-highlights-aside {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: stretch;
    width: 100%;
    margin-top: var(--hero-row2-pull);
    position: relative;
    z-index: 1;
  }

  .hero-highlights-aside li {
    font-size: 0.875rem;
    line-height: 1.35;
  }
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8b8be;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-lead {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0 0 1.35rem;
  max-width: 38rem;
}

.hero-lead p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

.hero-lead strong {
  color: var(--white);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-soft);
  border-color: var(--burgundy-soft);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  border-color: #e8b8be;
  color: #fdeced;
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--burgundy-soft);
}

@media (max-width: 899px) {
  .hero-highlights-aside {
    padding-top: 0.15rem;
  }
}

/* Sections */
.section {
  padding-block: 4rem 4.25rem;
}

.section-alt {
  background: var(--white);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-intro-tight {
  margin-bottom: 1.5rem;
}

.service-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--burgundy-pale);
  border: 1px solid rgba(96, 16, 24, 0.2);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: var(--white);
  color: var(--burgundy);
  border: 1px solid rgba(96, 16, 24, 0.25);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

.service-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.service-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--burgundy);
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-card-cta {
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
}

/* Why us — layout aligned with One Pitt Stop Auto Care */
.why {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.why-intro {
  margin-bottom: 1.75rem;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.why-main {
  min-width: 0;
}

.why-logo-wrap {
  display: none;
  justify-content: center;
}

.why-logo {
  width: clamp(200px, 30vw, 300px);
  height: auto;
  object-fit: contain;
  opacity: 0.95;
}

@media (min-width: 980px) {
  .why-layout {
    grid-template-columns: 1fr auto;
    gap: 2rem 2.5rem;
    align-items: start;
  }

  .why-logo-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.25rem;
  }
}

.review-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(90deg, var(--burgundy-pale), rgba(255, 255, 255, 0));
  border: 1px solid rgba(96, 16, 24, 0.22);
  border-radius: var(--radius);
  margin-bottom: 2.25rem;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: var(--star);
  font-size: 1.35rem;
  line-height: 1;
}

.review-text {
  margin: 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
}

.review-text span {
  display: inline;
  color: var(--muted);
  font-weight: 400;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.why-item p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact */
.section-contact {
  background: var(--ink-soft);
  padding-block: 4.25rem 4.5rem;
}

.section-title-on-dark {
  color: var(--white);
}

.section-intro-on-dark {
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-copy {
  justify-self: start;
  width: 100%;
  max-width: 36rem;
}

.contact-map-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.contact-map-frame {
  display: block;
  width: 100%;
  min-height: 280px;
  height: clamp(280px, 45vw, 420px);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  outline: 2px solid rgba(139, 40, 50, 0.55);
  outline-offset: 0;
}

.contact-map-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f0c4c8;
  text-decoration: none;
  align-self: flex-start;
}

.contact-map-link:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
    align-items: stretch;
  }

  .contact-map-aside {
    height: 100%;
    min-height: 22rem;
  }

  .contact-map-frame {
    flex: 1 1 auto;
    min-height: 320px;
    height: auto;
  }
}

.contact-cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 40, 50, 0.5);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  background: rgba(96, 16, 24, 0.2);
  border-color: var(--burgundy-soft);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0c4c8;
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--white);
}

.contact-hint {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 1.75rem;
  border-top: 4px solid var(--burgundy);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-meta {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  color: #f0c4c8;
  background: transparent;
  border: 2px solid rgba(139, 40, 50, 0.55);
}

.footer-phone:hover {
  color: var(--white);
  border-color: var(--burgundy-soft);
}

.footer-credit {
  margin: 0;
  font-size: 0.9rem;
}

.footer-credit a {
  color: #e8b8be;
  text-decoration-color: rgba(232, 184, 190, 0.65);
  text-underline-offset: 0.14em;
}

.footer-credit a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-cluster-brand,
  .header-cluster-nav,
  .header-cluster-actions {
    flex: none;
    width: 100%;
    justify-content: stretch;
  }

  .header-right-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 0.65rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .header-gallery,
  .header-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.55rem 1rem;
  }

  .header-cta {
    white-space: normal;
  }
}

/* Gallery page */
.gallery-page {
  padding-block: 3.25rem 4.75rem;
  background: linear-gradient(180deg, var(--cream) 0%, #ebe8e9 100%);
}

.gallery-page .section-title {
  margin-bottom: 2rem;
}

.gallery-page-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.gallery-page-cta .btn {
  display: inline-flex;
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-item:hover {
  border-color: rgba(96, 16, 24, 0.22);
  box-shadow: 0 18px 48px rgba(13, 13, 13, 0.1);
  transform: translateY(-2px);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 320px);
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item figcaption {
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}

.gallery-grid-promo {
  grid-column: span 2;
  min-width: 0;
  align-self: center;
}

@media (max-width: 639px) {
  .gallery-grid-promo {
    grid-column: 1 / -1;
    align-self: stretch;
  }
}

.gallery-facebook-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem 1.35rem;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 1.2rem 1.65rem 1.2rem 1.35rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(125deg, #ffffff 0%, var(--burgundy-pale) 52%, #fff5f6 100%);
  border-radius: var(--radius);
  box-shadow:
    0 18px 46px rgba(96, 16, 24, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  border: 1px solid rgba(96, 16, 24, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.gallery-facebook-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--burgundy-soft) 0%, var(--burgundy) 55%, var(--burgundy-deep) 100%);
  border-radius: var(--radius) 0 0 var(--radius);
}

.gallery-facebook-card:hover {
  border-color: rgba(96, 16, 24, 0.28);
  box-shadow:
    0 22px 56px rgba(96, 16, 24, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-2px);
}

.gallery-facebook-card:focus-visible {
  outline: 3px solid var(--burgundy-soft);
  outline-offset: 3px;
}

.gallery-facebook-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  color: #1877f2;
  filter: drop-shadow(0 2px 6px rgba(24, 119, 242, 0.25));
}

.gallery-facebook-icon svg {
  display: block;
}

.gallery-facebook-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.gallery-facebook-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
}

.gallery-facebook-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}

.gallery-facebook-brand {
  font-weight: 700;
  color: var(--burgundy);
}

.gallery-facebook-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.55rem 1rem 0.55rem 1.05rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 999px;
  border: 1px solid var(--burgundy-deep);
  box-shadow: 0 4px 14px rgba(96, 16, 24, 0.25);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.gallery-facebook-arrow {
  font-weight: 700;
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.gallery-facebook-card:hover .gallery-facebook-cta {
  background: var(--burgundy-soft);
  border-color: var(--burgundy-soft);
}

.gallery-facebook-card:hover .gallery-facebook-arrow {
  transform: translateX(4px);
}

@media (max-width: 639px) {
  .gallery-facebook-card {
    flex-direction: column;
    text-align: center;
    padding: 1.65rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .gallery-facebook-stack {
    align-items: center;
  }

  .gallery-facebook-text {
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .gallery-facebook-card,
  .gallery-facebook-arrow {
    transition: none;
  }

  .gallery-item:hover,
  .gallery-facebook-card:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-facebook-card:hover .gallery-facebook-arrow {
    transform: none;
  }
}
