/* Fernando Finishes — dark editorial theme, hand-written & dependency-free.
   Palette/fonts read from the Slider Revolution salon reference and reproduced
   as our own: near-black aubergine, cream type, tracked geometric caps. */

:root {
  --color-bg: #12031a;          /* near-black aubergine — main background */
  --color-bg-alt: #1c0a26;      /* slightly lifted panel tone */
  --color-bg-alt-2: #220c2c;    /* card / carousel-frame tone */
  --color-cream: #ebd8cc;       /* primary text on dark */
  --color-cream-soft: #b8a6b4;  /* muted paragraph text on dark */
  --color-muted: #7c6a78;       /* faint labels, counters */
  --color-line: rgba(235, 216, 204, 0.14);
  --color-line-strong: rgba(235, 216, 204, 0.28);
  --color-glow: #6a2f52;        /* soft plum-rose accent, used sparingly */
  --radius: 6px;
  --radius-lg: 4px;
  --max-width: 1220px;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Jost", "Century Gothic", Futura, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-cream-soft);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--color-cream);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: 0.03em; }

p { margin: 0 0 1em; color: var(--color-cream-soft); }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 3, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--color-line-strong);
  padding: 8px 14px;
}

.logo span { color: var(--color-cream-soft); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-cream-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-cream) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--color-cream);
  padding-bottom: 3px;
  transition: opacity 0.15s ease;
}

.nav-cta:hover { opacity: 0.7; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-cream);
  margin: 6px 0;
}

/* Eyebrow label */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 18px;
}

/* Arrow link (Book Today style) */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.arrow-link .arrow { font-size: 1rem; transition: transform 0.15s ease; }
.arrow-link:hover .arrow { transform: translate(3px, 3px); }

/* Hero — full-bleed image with overlay, headline bottom-left */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,3,26,0.65) 0%, rgba(18,3,26,0.3) 38%, rgba(18,3,26,0.55) 62%, rgba(18,3,26,0.97) 100%),
    linear-gradient(90deg, rgba(18,3,26,0.88) 0%, rgba(18,3,26,0.12) 45%, rgba(18,3,26,0.6) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 120px 24px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.hero h1 { margin: 0.2em 0 0; max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,0.55); }

.hero-scroll {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

.hero-side {
  text-align: right;
  display: grid;
  gap: 20px;
  justify-items: end;
}

.hero-side p { margin: 0; font-size: 0.9rem; color: var(--color-cream); text-shadow: 0 1px 10px rgba(0,0,0,0.7); }
.hero-side p + p { color: var(--color-cream-soft); font-size: 0.82rem; }

/* Sections */
section { padding: 110px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin: 0 auto; }
.section-head.left { text-align: left; margin-left: 0; }

.section-banner {
  padding: 72px 0 40px;
  text-align: center;
}
.section-banner p { color: var(--color-muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-cream);
  cursor: pointer;
}

.btn-primary { background: var(--color-cream); color: var(--color-bg); }
.btn-primary:hover { background: transparent; color: var(--color-cream); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-line-strong);
  color: var(--color-cream);
}
.btn-secondary:hover { border-color: var(--color-cream); }

.hero-actions { display: none; } /* actions folded into arrow-link CTA per reference layout */

/* "More than a paint job" — sanctuary-style split */
.intro-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.intro-media {
  aspect-ratio: 9/7;
  overflow: hidden;
  background: var(--color-bg-alt-2);
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; }

.intro-copy { padding-top: 8px; }
.intro-copy .eyebrow { margin-bottom: 14px; }
.intro-copy p.lead { font-size: 1.05rem; max-width: 46ch; }

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

.intro-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--color-cream);
  text-transform: uppercase;
}

.intro-stats span {
  font-size: 0.76rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.social-row a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  color: var(--color-cream);
  text-decoration: none;
}
.social-row a:hover { border-color: var(--color-cream); }
.social-row svg { width: 16px; height: 16px; fill: currentColor; }

/* Form panel — sits where the reference's right-hand image was */
.form-panel {
  background: var(--color-bg-alt-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-panel h3 { margin-bottom: 4px; text-transform: none; font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.form-panel > p { font-size: 0.9rem; margin-bottom: 26px; color: var(--color-cream-soft); }

.form-feedback {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-feedback.success { background: rgba(235, 216, 204, 0.08); color: var(--color-cream); border: 1px solid var(--color-line-strong); }
.form-feedback.error { background: rgba(180, 60, 60, 0.12); color: #e39a9a; border: 1px solid rgba(180, 60, 60, 0.3); }

.quote-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line-strong);
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(235, 216, 204, 0.03);
  color: var(--color-cream);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--color-muted); }
.form-row input[type="file"] { padding: 8px; font-size: 0.85rem; }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.76rem; color: var(--color-muted); margin-top: -4px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Services carousel (single full-bleed panel, prev/next) */
.services-carousel {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-bg-alt-2);
}

.svc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.svc-slide.active { opacity: 1; pointer-events: auto; }
.svc-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.svc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18,3,26,0.92) 0%, rgba(18,3,26,0.3) 55%);
}

.svc-copy {
  position: relative;
  z-index: 2;
  padding: 72px 24px 48px;
  width: 100%;
}
.svc-copy .eyebrow { margin-bottom: 6px; }
.svc-copy h3 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; margin: 0 0 18px; }
.svc-copy p { max-width: 46ch; font-size: 0.98rem; }

.svc-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-top: 24px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
}
.svc-nav { display: flex; gap: 24px; }
.svc-nav button {
  background: none;
  border: none;
  color: var(--color-cream-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--font-body);
}
.svc-nav button:hover { color: var(--color-cream); }
.svc-count { font-size: 0.78rem; color: var(--color-muted); letter-spacing: 0.08em; }

/* About / painter spotlight (stands in for "meet the team") */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media { aspect-ratio: 4/5; overflow: hidden; background: var(--color-bg-alt-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy .eyebrow { margin-bottom: 10px; }
.about-copy h3 { font-size: 0.82rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px; font-family: var(--font-body); font-weight: 600; }
.about-copy p.lead { font-size: 1.05rem; color: var(--color-cream-soft); }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}
.about-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--color-cream); }
.about-stats span { font-size: 0.76rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.licence-line { margin-top: 18px; font-size: 0.8rem; color: var(--color-muted); letter-spacing: 0.02em; }
.licence-line strong { color: var(--color-cream-soft); font-weight: 600; }

/* Before / after slider */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.ba-slider {
  position: relative;
  aspect-ratio: 9 / 7;
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--color-line);
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }

.ba-slider .ba-label {
  position: absolute;
  top: 16px;
  padding: 5px 14px;
  background: rgba(18, 3, 26, 0.8);
  border: 1px solid var(--color-line-strong);
  color: var(--color-cream);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ba-slider .ba-label-before { left: 16px; }
.ba-slider .ba-label-after { right: 16px; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--color-cream);
}

.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-cream);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-bg);
}

/* Portfolio carousel ("Styled To Perfection") */
.portfolio-carousel { position: relative; }
.pf-track {
  position: relative;
  aspect-ratio: 16/8;
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.pf-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pf-slide.active { opacity: 1; }
.pf-slide img { width: 100%; height: 100%; object-fit: cover; }

.pf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.pf-nav { display: flex; gap: 24px; }
.pf-nav button {
  background: none;
  border: none;
  color: var(--color-cream-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--font-body);
}
.pf-nav button:hover { color: var(--color-cream); }
.pf-count { font-size: 0.78rem; color: var(--color-muted); letter-spacing: 0.08em; }

/* Testimonials carousel */
.testimonial-carousel { position: relative; }
.tm-slide {
  display: none;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--color-line);
}
.tm-slide.active { display: grid; }
.tm-media { aspect-ratio: 4/5; overflow: hidden; background: var(--color-bg-alt-2); }
.tm-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.tm-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; background: var(--color-bg-alt-2); }
.tm-quote-mark { font-family: var(--font-display); font-size: 3.5rem; color: var(--color-line-strong); line-height: 1; margin-bottom: 12px; }
.tm-copy p.quote { font-size: 1.15rem; color: var(--color-cream-soft); max-width: 40ch; }
.tm-copy .name { color: var(--color-cream); font-weight: 600; margin-top: 12px; }
.tm-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
  background: var(--color-bg-alt-2);
  border-top: 1px solid var(--color-line);
}
.tm-nav { display: flex; gap: 24px; }
.tm-nav button {
  background: none;
  border: none;
  color: var(--color-cream-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: var(--font-body);
}
.tm-nav button:hover { color: var(--color-cream); }
.tm-count { font-size: 0.78rem; color: var(--color-muted); letter-spacing: 0.08em; }

/* Rich footer */
.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-cream-soft);
  padding: 72px 0 28px;
  border-top: 1px solid var(--color-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  align-items: start;
}

.footer-brand .logo { color: var(--color-cream); }

.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.footer-col p, .footer-col dd { font-size: 0.92rem; color: var(--color-cream-soft); margin: 0 0 4px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--color-cream-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-cream); }

.footer-contact dl { display: grid; gap: 4px; }
.footer-contact dt { margin-top: 10px; }
.footer-contact dt:first-child { margin-top: 0; }
.footer-contact dd { margin: 0 0 6px; }
.footer-contact a { color: var(--color-cream-soft); text-decoration: none; }
.footer-contact a:hover { color: var(--color-cream); }

.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-line-strong);
  border-radius: 50%;
  color: var(--color-cream);
  text-decoration: none;
}
.footer-social a:hover { border-color: var(--color-cream); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Sticky mobile call bar */
.mobile-call-bar { display: none; }

/* Full gallery grid (gallery.html) — CSS grid, not CSS multi-column:
   column-span:all combined with overflow:hidden/object-fit inside a
   `columns` container can fail to paint in some browsers, so a plain
   grid is used instead. Standard photos keep their natural aspect
   ratio; "wide" photos span the full row as a capped-height banner. */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.gallery-item {
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.gallery-item.wide { grid-column: 1 / -1; }
.gallery-item img { width: 100%; height: auto; display: block; }
.gallery-item.wide img { max-height: 560px; width: 100%; object-fit: cover; object-position: 50% 22%; }

/* Standard (non-wide) grid photos share a fixed portrait ratio so every
   row lines up at the same height, instead of each photo keeping its own
   natural height and leaving rows uneven. */
.gallery-full .gallery-item:not(.wide) { aspect-ratio: 4 / 5; }
.gallery-full .gallery-item:not(.wide) img { height: 100%; object-fit: cover; }

/* First-row pairing: two photos shown side by side at a matched, taller
   height, rather than one full-bleed banner (a single wide photo, zoomed
   to fill the banner, never looked quite right). */
.gallery-first-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.gallery-first-row .gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--color-line);
}
.gallery-first-row .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-side { text-align: left; justify-items: start; margin-top: 24px; }
  .intro-split { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .tm-slide { grid-template-columns: 1fr; }
  .tm-media { aspect-ratio: 16/9; }
  .tm-copy, .tm-controls { padding-left: 32px; padding-right: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-full { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-first-row { gap: 12px; margin-bottom: 12px; }
}

/* Nav switches to a hamburger earlier than the content breakpoints — six
   tracked-caps links + a CTA need more room than 980px leaves them. */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 16px 24px 20px;
    gap: 16px;
  }
  /* Top nav-cta stays hidden whenever the hamburger is showing — the
     fixed call/quote bar at the bottom of the screen covers that CTA. */
  .mobile-call-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-line);
  }
  .mobile-call-bar a {
    flex: 1;
    text-align: center;
    color: var(--color-cream);
    text-decoration: none;
    padding: 14px 0;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .mobile-call-bar a + a { border-left: 1px solid var(--color-line); }
  body { padding-bottom: 54px; }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.08em; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .form-panel { padding: 26px; }
  .svc-copy, .tm-copy, .tm-controls { padding-left: 24px; padding-right: 24px; }
  .gallery-full { grid-template-columns: 1fr; gap: 12px; }
  .gallery-first-row { grid-template-columns: 1fr; }
}
