/* ==========================================================================
   Rooham Electric — design tokens
   ========================================================================== */
:root {
  --navy-900: #081a33;
  --navy-800: #0c2a5c;
  --navy-700: #123670;
  --blue-accent: #2f6fe4;
  --blue-accent-dark: #1f52b0;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eaeef5;
  --gray-300: #c7d0de;
  --gray-500: #7c869a;
  --gray-600: #5a6472;
  --gray-900: #182234;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-md: 0 12px 30px -12px rgba(8, 26, 51, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(8, 26, 51, 0.18);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 1.55rem + 2.5vw, 3.4rem);
  color: var(--white);
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.35rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

p {
  margin: 0 0 1em;
  color: var(--gray-600);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--blue-accent-dark);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--navy-800);
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-text span {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-800);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-900);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--blue-accent);
  border-color: var(--blue-accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0.4rem 0;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease;
}

.nav-dropdown[open] summary svg {
  transform: rotate(180deg);
}

.nav-dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 230px;
}

@media (min-width: 941px) {
  .nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
    margin-top: 0.6rem;
  }

  .nav-dropdown-panel a {
    border: none !important;
    border-radius: 6px;
    padding: 0.6rem 0.8rem !important;
  }

  .nav-dropdown-panel a:hover {
    background: var(--gray-50);
  }
}

@media (max-width: 940px) {
  .nav-dropdown-panel {
    background: var(--gray-50);
  }

  .nav-dropdown-panel a {
    padding-left: 2.25rem !important;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  text-align: right;
}

.header-phone span {
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 600;
  text-transform: uppercase;
}

.header-phone strong {
  color: var(--navy-800);
  font-size: 1.05rem;
}

@media (max-width: 940px) {
  .primary-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .primary-nav.is-open {
    max-height: 32rem;
  }

  .primary-nav a {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-phone span {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  min-height: min(62vh, 560px);
  overflow: hidden;
  background-color: var(--navy-800);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.03);
  transition: opacity 0.5s ease, filter 0.6s ease, transform 0.6s ease;
}

.hero-media img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 26, 51, 0.94) 0%,
    rgba(8, 26, 51, 0.78) 42%,
    rgba(8, 26, 51, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 3.5rem;
  max-width: 720px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-sm {
  min-height: 300px;
}

.hero-sm .hero-content {
  padding-block: 2.5rem;
}

/* ==========================================================================
   Skeleton / image loading
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
  border-radius: var(--radius);
  isolation: isolate;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    var(--gray-100) 30%,
    #f3f6fa 50%,
    var(--gray-100) 70%
  );
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease 0.05s;
}

.media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.media img.is-loaded {
  opacity: 1;
}

.media.is-ready::before {
  opacity: 0;
  pointer-events: none;
}

/* Media with an inline blurred low-quality placeholder skips the shimmer
   sweep in favor of a blur-up transition straight to the real photo. */
.media--lqip {
  background-size: cover;
  background-position: center;
}

.media--lqip::before {
  content: none;
}

.media--lqip img {
  filter: blur(12px);
  transform: scale(1.03);
  transition: opacity 0.4s ease, filter 0.5s ease, transform 0.5s ease;
}

.media--lqip img.is-loaded {
  filter: blur(0);
  transform: none;
}

.hero .media,
.hero-media {
  border-radius: 0;
}

@keyframes shimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media::before {
    animation: none;
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding-block: clamp(3rem, 2.4rem + 2vw, 5rem);
}

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

.section-navy {
  background: var(--navy-800);
  color: var(--white);
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-navy .eyebrow {
  color: #8fb4f5;
}

/* Trust strip */
.trust-strip {
  background: var(--navy-900);
  color: var(--white);
  padding-block: 1.1rem;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.trust-strip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #8fb4f5;
}

/* Card grid */
.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card .media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0;
}

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--blue-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Icon list */
.icon-list {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.icon-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.icon-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47, 111, 228, 0.12);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-navy .icon-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #8fb4f5;
}

.icon-badge svg {
  width: 20px;
  height: 20px;
}

.icon-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--navy-800);
}

.section-navy .icon-item h4 {
  color: var(--white);
}

.icon-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* Split layout (image + text) */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media .media {
  aspect-ratio: 4 / 3;
}

@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
}

/* CTA banner */
.cta-banner {
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner h2,
.cta-banner p {
  color: var(--white);
  margin: 0;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.4rem;
}

/* Team grid */
.team-member {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 0.9rem;
}

.team-member h4 {
  margin: 0 0 0.2rem;
  color: var(--navy-800);
}

.team-member .role {
  color: var(--blue-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-member p {
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  font-size: 0.85rem;
  color: var(--white);
}

.rating-badge strong {
  font-size: 0.95rem;
}

.rating-stars {
  color: #ffc84a;
  letter-spacing: 1px;
}

/* Filter tabs (portfolio) */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-tab {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-tab.is-active,
.filter-tab:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item .card-body p {
  font-size: 0.85rem;
}

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.two-up {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 560px) {
  .form-row.two-up {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: var(--gray-50);
  color: var(--gray-900);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--blue-accent);
  outline-offset: 1px;
  background: var(--white);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  background: #edf7f0;
  border: 1px solid #bfe3c9;
  color: #205a34;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.form-success.is-visible {
  display: block;
}

/* Map facade */
.map-facade {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.map-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-facade-inner {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.map-facade-inner svg {
  width: 34px;
  height: 34px;
  margin-bottom: 0.75rem;
  color: #8fb4f5;
}

.map-facade.is-loaded .map-facade-inner {
  display: none;
}

/* FAQ accordion */
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-800);
  padding: 1rem 1.5rem 1rem 0;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.9rem;
  font-size: 1.3rem;
  color: var(--blue-accent);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  padding-bottom: 1rem;
  margin: 0;
}

/* Contact info list */
.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-info .icon-item strong {
  display: block;
  color: var(--navy-800);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 3.5rem 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.footer-brand strong {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.site-footer a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(47, 111, 228, 0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(47, 111, 228, 0.18), transparent 40%);
}

.error-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
}

.error-spark {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  color: #ffc84a;
  animation: flicker 2.4s ease-in-out infinite;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  47% {
    opacity: 0.35;
  }
  49% {
    opacity: 1;
  }
  72% {
    opacity: 1;
  }
  74% {
    opacity: 0.5;
  }
  76% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-spark {
    animation: none;
  }
}

.error-code {
  font-size: clamp(3.5rem, 3rem + 2vw, 5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.error-content p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  font-size: 0.9rem;
}

.error-links a {
  color: #a9c6f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center {
  text-align: center;
  margin-inline: auto;
}

.mt-lg {
  margin-top: clamp(2rem, 1.6rem + 1.5vw, 3rem);
}

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

[data-savedata="true"] .decorative-media {
  display: none;
}
