:root {
  /* Neutral fallbacks (overridden by brand.json at runtime) */
  --bg: #ffffff;
  --surface: #f5f5f5;
  --surface-variant: #eeeeee;
  --ink: #1a1a1a;
  --ink-muted: #666666;
  --primary: #0066cc;
  --secondary: #00aa00;
  --accent: #ff8800;
  --border: #dddddd;
  --shadow: rgba(0,0,0,0.1);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ============================================
   SHARED COMPONENTS
   ============================================ */

/* Standard close button - used by ALL pages and modals */
.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 1001;
  padding: 0;
}

.btn-close:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .btn-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* Service/Privacy modal overlay (dynamically generated in ui.js) */
.service-modal-overlay {
  padding: 3rem 2rem;
}

@media (max-width: 767px) {
  .service-modal-overlay {
    padding: 1rem;
  }
}

/* Global link styling - consistent across all pages */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 8vh, 48px);
  overflow: visible;
}

#heroCluster {
  position: relative;
  z-index: 2;
  width: clamp(360px, 50vw, 720px);
  max-width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 5vh, 40px);
  padding: clamp(16px, 3vh, 32px);
  box-sizing: border-box;
}

#logoMount {
  /* Now nested inside logo-link, so just needs basic styling */
  width: 100%;
  height: 100%;
  position: relative;
}
.logoCanvas { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.logoCanvas > svg { width: 100%; height: auto; display: block; }

.logoOverlay { position: absolute; inset: 0; pointer-events: none; }
.logoOverlay__gear,
.logoOverlay__tagline {
  position: absolute;
  text-align: center;
  pointer-events: none;
  white-space: normal;
  will-change: transform;
}
.logoOverlay__gear { color: var(--accent); font-weight: 700; }
.logoOverlay__tagline { color: var(--ink-muted); }

#tilesOrbit { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit .tile { position: absolute; pointer-events: auto; }

/* Ring containers for rotation */
.tile-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Transform origin at center for rotation */
  transform-origin: center;
}

/* Prevent floating animations from affecting layout/viewport */
.tile {
  /* Ensure transforms don't expand the layout bounds */
  contain: layout style;
  /* Prevent overflow from affecting parent containers */
  overflow: visible;
}

/* Force tiles to stay within their container bounds during animation */
#tilesLeft, #tilesRight {
  /* Clip any content that goes outside the container */
  overflow: hidden;
  /* Prevent container size changes from affecting layout */
  contain: layout;
}

/* Ask box */
#askForm { display: grid; place-items: center; width: 100%; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
#askForm.askForm--show { opacity: 1; transform: translateY(0); }
.askbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: min(100%, 480px); }
.askbar input {
  width: 100%; padding: 14px 16px; border-radius: 28px; border: 1px solid var(--accent);
  background: var(--surface); color: var(--ink-muted);
  font-size: 1.15em;
  font-family: inherit;
}
.askbar input::placeholder { color: var(--ink-muted); }
.askbar button {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2em;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.askbar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--shadow);
}

#tilesCarouselTablet { display: none; }

@media (max-width: 767px) {
  /* Mobile Portrait Layout */
  #app {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #stage {
    flex: 1;
    min-height: 0;
    padding: clamp(16px, 2vh, 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(10px, 1.5vh, 14px);
    overflow: hidden;
  }

  #heroCluster {
    width: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2vh, 16px);
    flex: 1;
    min-height: 0;
  }

  .logo-link {
    width: 100%;
    flex: 1;
    min-height: 0;
    aspect-ratio: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #logoMount {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .logoCanvas > svg {
    width: auto !important;
    height: 100% !important;
    max-width: 100%;
  }

  #askForm {
    flex-shrink: 0;
    height: auto;
  }

  #tilesCarousel {
    flex-shrink: 0;
    height: clamp(90px, 14vh, 120px);
  }

  #tilesOrbit { display: none; }
  #tilesCarouselTablet { display: none; }

  #contact {
    flex-shrink: 0;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  /* Mobile Landscape: Horizontal heroCluster layout - just check height in landscape */
  #app {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #stage {
    flex: 1;
    min-height: 0;
    padding: clamp(4px, 0.5vh, 8px) 0 0 0;
    gap: clamp(4px, 0.75vh, 8px);
    display: flex;
    flex-direction: column;
  }

  #heroCluster {
    flex-direction: row;
    flex: 1;
    min-height: 0;
    gap: clamp(8px, 1.5vw, 16px);
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(8px, 2vw, 16px);
  }

  .logo-link {
    flex: 0 0 30%;
    width: 30%;
    height: 100%;
    aspect-ratio: unset !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #logoMount {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .logoCanvas {
    height: 100% !important;
  }

  .logoCanvas > svg {
    width: auto !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
  }

  #askForm {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 65%;
    width: 65% !important;
  }

  .askbar {
    width: 100% !important;
    max-width: 100%;
  }

  #tilesOrbit { display: none !important; }
  #tilesCarouselTablet { display: none; }

  #tilesCarousel {
    display: block;
    flex-shrink: 0;
    height: clamp(70px, 12vh, 90px);
    --tile-icon: clamp(44px, 8vh, 60px);
  }

  .tile__label {
    font-size: clamp(8px, 1.6vh, 10px);
  }

  #debugBtn {
    position: fixed !important;
    top: 4px;
    left: 4px;
    z-index: 9999;
    margin: 0 !important;
  }

  #contact {
    flex-shrink: 0;
    padding: 2px 8px;
  }

  .footer-main {
    gap: 4px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
  }

  .footer-copyright {
    display: none;
  }

  .footer-nav {
    gap: 8px;
    font-size: 11px;
  }

  .footer-link {
    font-size: 11px;
  }

  .theme-toggle {
    width: 40px;
    height: 20px;
  }

  .theme-toggle-thumb {
    width: 14px;
    height: 14px;
  }

  .theme-toggle[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
  }

  .theme-toggle[data-theme="auto"] .theme-toggle-thumb {
    transform: translateX(10px);
  }
}

@media (min-width: 768px) and (max-width: 1200px) and (min-height: 600px) {
  /* Tablet Portrait Layout (requires sufficient height to avoid mobile landscape) */
  #app {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #stage {
    flex: 1;
    min-height: 0;
    padding: clamp(16px, 2vh, 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(12px, 1.5vh, 16px);
    overflow: hidden;
  }

  #heroCluster {
    width: 100%;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 1.5vh, 16px);
    flex: 1;
    min-height: 0;
  }

  .logo-link {
    width: 100%;
    flex: 1;
    min-height: 0;
    aspect-ratio: unset !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #logoMount {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .logoCanvas > svg {
    width: auto !important;
    height: 100% !important;
    max-width: 100%;
  }

  #askForm {
    flex-shrink: 0;
    height: auto;
  }

  #tilesOrbit { display: none !important; }
  #tilesCarousel { display: none; }

  #tilesCarouselTablet {
    display: block;
    width: 100%;
    flex-shrink: 0;
    height: clamp(100px, 15vh, 140px);
  }

  #contact {
    position: relative;
    flex-shrink: 0;
    padding: clamp(10px, 1.5vh, 14px);
  }
}

.tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-radius: 12px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile::before {
  content: '';
  position: absolute;
  inset: -12px;
}

.tile:focus-visible { outline: 2px solid var(--border); outline-offset: 2px; }

/* Positioning for orbiting tiles */
.orbit .tile { transform: translate(-50%, -50%); }

/* Inner wrapper scales on hover to avoid conflicting with positioning transforms */
.tile__inner { display: inline-block; transition: transform .15s ease; }
/* Text tiles scale inner wrapper */
.tile--text:hover .tile__inner, .tile--text:focus-visible .tile__inner { transform: scale(1.2); }
/* SVG tiles scale the SVG itself and use a shape-aware drop shadow */
/* FIXED: Hover scale now handled by GSAP to ensure consistent size
 * GSAP pauses float animation and sets absolute scale (1.2) on hover
 * This ensures tile labels are always readable regardless of animation phase */
.tile--svg svg {
  transition: filter .15s ease;
  transform-origin: 50% 50%;
  display: block;
  overflow: visible; /* ensure shadow isn't clipped */
  will-change: transform, filter;
}
/* Removed CSS scale transform - GSAP handles hover scale now */

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

/* Services modal close button hover */
#overlay-close:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#overlay-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#contact {
  padding: 32px 16px 16px;
  text-align: center;
  color: var(--ink-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#contact.footer--show {
  opacity: 1;
}

#contact a, #contact button, #contact select, #contact input, #contact label {
  pointer-events: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 100%;
  margin: 0 auto 1.5rem;
  gap: 1rem;
  padding: 0 16px;
}

.footer-left {
  justify-self: start;
}

/* Desktop/Tablet Portrait: Fixed footer at bottom to prevent layout shifts */
@media (min-width: 768px) and (min-height: 600px) {
  #contact {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* No background - transparent so tiles are visible through it */
    z-index: 10;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  /* Add bottom padding to stage to prevent tiles from being hidden by fixed footer */
  #stage {
    padding-bottom: 120px;
  }
}

.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px color-mix(in srgb, var(--accent) 30%, transparent);
  background: var(--surface);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  outline: 2px solid color-mix(in srgb, var(--ink-muted) 30%, transparent);
  outline-offset: -2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Thumb position based on mode setting */
.theme-toggle[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(0);
}

.theme-toggle[data-theme="auto"] .theme-toggle-thumb {
  transform: translateX(14px);
}

.theme-toggle[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(28px);
}

/* Hover effect */
.theme-toggle:hover .theme-toggle-track {
  border-color: var(--primary);
}

/* Focus visible for accessibility */
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 14px;
}

/* Mode label animation */
.theme-mode-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.theme-mode-label.show {
  animation: slideUpFade 1.5s ease forwards;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  20% {
    opacity: 0.9;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 48px));
  }
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85em;
  opacity: 0.7;
}

@media (max-width: 767px) {
  #contact {
    padding: 16px 8px 8px;
  }

  .footer-main {
    gap: 0.5rem;
    padding: 0 8px;
    margin-bottom: 0.75rem;
  }

  .theme-toggle {
    width: 48px;
    height: 24px;
  }

  .theme-toggle-thumb {
    width: 18px;
    height: 18px;
  }

  .theme-toggle[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(24px);
  }

  .theme-toggle[data-theme="auto"] .theme-toggle-thumb {
    transform: translateX(12px);
  }

  .footer-nav {
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .footer-link {
    font-size: 0.85em;
  }

  .footer-copyright {
    font-size: 0.75em;
  }
}

.logo-link {
  /* Link now wraps logoMount, so it takes logoMount's original properties */
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: visible;
  transform-origin: 50% 50%;
  transition: transform 0.85s ease, background-color 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50%;
}

.logo-link:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

/* Dark mode override for lighter opacity */
[data-theme="dark"] .logo-link:hover::before {
  opacity: 0.4;
}

.logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.tile svg { display: block; height: var(--tile-icon, 56px); width: auto; }
.tile--svg { color: var(--primary); }

#stage.stage--compact .logo-link {
  transform: scale(0.6);
}

.tile__label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  color: var(--accent);
  /* Smaller default; grows on hover */
  font-size: clamp(11px, calc(var(--tile-icon, 56px) * 0.24), 28px);
  line-height: 1.2;
  opacity: 1;
  transition: color .15s ease, transform .15s ease, opacity .15s ease;
  pointer-events: none;
  text-align: center;
  max-width: max-content; /* Prevent auto-wrap while allowing <br> tags */
}
.tile__label-line {
  white-space: nowrap; /* Prevent individual lines from wrapping */
  display: inline-block;
}
.tile--svg:hover .tile__label,
.tile--svg:focus-visible .tile__label { color: var(--accent) !important; opacity: 1; transform: translateX(-50%) translateY(0) scale(1.45); }

/* Welcome Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.modal-message {
  color: var(--ink-muted);
  line-height: 1.6;
}

/* DEBUG MODE: Container diagnostics - toggle via [data-debug="true"] on body */
[data-debug="true"] #stage {
  border: 3px solid #ff0000 !important;
  position: relative;
}
[data-debug="true"] #stage::before {
  content: "#stage";
  position: absolute;
  top: -25px;
  left: 0;
  background: #ff0000;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
}

[data-debug="true"] #heroCluster {
  border: 3px solid #00ff00 !important;
  position: relative;
}
[data-debug="true"] #heroCluster::before {
  content: "#heroCluster";
  position: absolute;
  top: -25px;
  left: 0;
  background: #00ff00;
  color: black;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
}

[data-debug="true"] #contact {
  border: 3px solid #0066ff !important;
}
[data-debug="true"] #contact::before {
  content: "#contact (footer)";
  position: absolute;
  top: -25px;
  left: 0;
  background: #0066ff;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
}

[data-debug="true"] #tilesOrbit {
  border: 3px solid #ff00ff !important;
}
[data-debug="true"] #tilesOrbit::before {
  content: "#tilesOrbit";
  position: absolute;
  top: -25px;
  left: 0;
  background: #ff00ff;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
}

[data-debug="true"] #tilesCarousel {
  border: 3px solid #ffff00 !important;
}
[data-debug="true"] #tilesCarousel::before {
  content: "#tilesCarousel (mobile)";
  position: absolute;
  top: -25px;
  left: 0;
  background: #ffff00;
  color: black;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
}

[data-debug="true"] #tilesCarouselTablet {
  border: 3px solid #00ffff !important;
}
[data-debug="true"] #tilesCarouselTablet::before {
  content: "#tilesCarouselTablet";
  position: absolute;
  top: -25px;
  left: 0;
  background: #00ffff;
  color: black;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10000;
}

[data-debug="true"] #logoMount {
  border: 3px solid #ff6600 !important;
  position: relative;
}
[data-debug="true"] #logoMount::before {
  content: "#logoMount";
  position: absolute;
  top: -25px;
  left: 0;
  background: #ff6600;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
}

[data-debug="true"] .logoCanvas {
  border: 3px solid #ff00ff !important;
  position: relative;
}
[data-debug="true"] .logoCanvas::before {
  content: ".logoCanvas";
  position: absolute;
  top: -25px;
  left: 0;
  background: #ff00ff;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1000;
}

/* Service Contact CTA (appears at bottom of service modals) */
.service-contact-cta {
  text-align: center;
  background: var(--surface-elevated, var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
}

.service-contact-heading {
  color: var(--primary);
  font-size: 1.8em;
  margin: 0 0 1rem 0;
}

.service-contact-message {
  color: var(--secondary);
  margin: 0 0 1.5rem 0;
  font-size: 1.1em;
}

.service-contact-button {
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1em;
  font-family: inherit;
  transition: all 0.2s;
}

.service-contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.service-contact-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Service Modal Icon & Title */
.service-modal-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.8em;
}

.service-modal-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal-icon svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Service/Privacy modal content container - consistent base font size */
#overlay-modal-content {
  font-size: 1.35em;
}

.service-modal-title {
  flex: 1;
  color: var(--primary);
  font-size: 2em;
  margin: 0;
}

/* Service Modal List Styling moved to shared/css/text-formatting.css */

/* Service Modal Responsive Styles - match About page */
@media (max-width: 1024px) {
  .service-modal-title {
    font-size: 1.8em;
  }
}

@media (max-width: 767px) {
  #overlay-modal-content {
    padding: 2.5rem 1.5rem 1.5rem !important;
    font-size: 1.35em !important;
  }

  .service-modal-header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .service-modal-title {
    font-size: 1.5em;
    text-align: center;
  }

  .service-modal-icon {
    width: 48px;
    height: 48px;
  }
}

/* Mobile Landscape - Override to horizontal layout */
@media (max-width: 767px) and (orientation: landscape) {
  .service-modal-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .service-modal-title {
    text-align: left;
  }
}
