/* ==========================================================================
   AHD WORLD — Design system
   Concept: "The Waterline" — clean pool water as the visual thesis, carried
   in the brand's own bronze/gold mark and the charcoal of the field
   uniform. A recurring wave-form divider and gentle ripple motion stand in
   for the generic gradients/shadows of a templated corporate site.
   ========================================================================== */

:root{
  /* Palette — derived from the real logo (bronze/gold + charcoal wordmark)
     and the pool water in Ahd World's own project photos. */
  --primary:      #8C6A35;   /* logo bronze/gold */
  --primary-dark: #6B4F26;
  --secondary:    #1E1B16;   /* charcoal — matches the field-team uniform */
  --accent:       #3E86B8;   /* pool water, sampled from real project photos */
  --accent-2:     #C9A876;   /* soft gold tint, from the logo mark */
  --bg:           #FAF8F4;
  --surface:      #FFFFFF;
  --ink:          #201C16;
  --ink-mute:     rgba(32,28,22,0.64);
  --line:         rgba(32,28,22,0.12);
  --line-on-dark: rgba(250,248,244,0.16);
  --on-dark:      #FAF8F4;
  --on-dark-mute: rgba(250,248,244,0.68);

  --f-base: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(.22,.75,.24,1);
  --header-h: 70px; /* fallback; JS sets the real measured header height */
  --scroll-lock-y: 0px;

  --shadow-sm: 0 1px 2px rgba(30,27,22,0.06), 0 1px 1px rgba(30,27,22,0.04);
  --shadow-md: 0 10px 30px -12px rgba(30,27,22,0.22);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-base);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--f-base); margin: 0; font-weight: 800; line-height: 1.25; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: inherit; }

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

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

.wrap{ max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section{ position: relative; padding-block: clamp(56px, 8vw, 108px); }
.section--surface{ background: var(--surface); }
.section--tint{ background: var(--bg); }
.section--dark{ background: var(--secondary); color: var(--on-dark); }

.eyebrow{
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px;
}
.section--dark .eyebrow{ color: var(--accent-2); }
.eyebrow::before{ content:''; width: 22px; height: 2px; background: currentColor; display:inline-block; border-radius: 2px; }

.h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); }
.h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.h3{ font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; }
.lede{ font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-mute); max-width: 62ch; }
.section--dark .lede{ color: var(--on-dark-mute); }
.body-copy{ color: var(--ink-mute); max-width: 68ch; }
.body-copy + .body-copy{ margin-top: 1em; }

/* ---- Buttons ---- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background: var(--primary-dark); }
.btn-accent{ background: var(--accent); color: #0E2233; }
.btn-accent:hover{ background: #2E6E97; }
.btn-ghost{ border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover{ border-color: var(--primary); color: var(--primary); }
.section--dark .btn-ghost{ border-color: var(--line-on-dark); color: var(--on-dark); }
.section--dark .btn-ghost:hover{ border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg{ padding: 16px 32px; font-size: 16px; }
.btn-block{ width: 100%; justify-content: center; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{ display: flex; align-items: center; gap: 20px; padding-block: 12px; }

.brand{ display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-logo{ height: 42px; width: auto; display: block; }
.brand-chip{
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 8px; width: 52px; height: 52px;
  margin-bottom: 14px;
}
.brand-chip img{ width: 100%; height: 100%; object-fit: contain; }

.nav-list{ display: flex; align-items: center; gap: 4px; }
.nav-list a{
  display: block; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-mute);
  transition: background .25s, color .25s;
}
.nav-list a:hover{ background: rgba(140,106,53,0.08); color: var(--primary); }
.nav-list a.is-active{ background: var(--primary); color: #fff; font-weight: 700; }

.nav-toggle{
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--secondary);
  align-items: center; justify-content: center;
}
.nav-toggle svg{ width: 19px; height: 19px; }
.nav-toggle .icon-close{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger{ display: none; }
.nav-toggle[aria-expanded="true"] .icon-close{ display: block; }

@media (max-width: 900px){
  .nav-cta{ display: none; }
  .nav-list{
    position: fixed;
    top: var(--header-h, 70px);
    left: 0; right: 0; bottom: 0;
    height: calc(100vh - var(--header-h, 70px));
    height: calc(100dvh - var(--header-h, 70px));
    z-index: 150; /* explicit — don't rely on inheriting the header's stacking context */
    background: var(--surface);
    flex-direction: column; align-items: stretch;
    padding: 10px var(--pad) 32px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-list.is-open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-list li{ border-bottom: 1px solid var(--line); }
  .nav-list a{ padding: 16px 6px; border-radius: 0; font-size: 16px; }
  .nav-list a.is-active{ background: transparent; color: var(--primary); }
  .nav-cta-mobile{ display: block !important; margin-top: 18px; border-bottom: none !important; }
  .nav-cta-mobile .btn{ width: 100%; justify-content: center; }
  .nav-toggle{ display: inline-flex; }
}
@media (min-width: 901px){ .nav-cta-mobile{ display: none; } }

/* Scroll lock (mobile menu + lightbox). Naive overflow:hidden on <body>
   works fine at the top of the page, but if the page is already scrolled
   down, forcing overflow:hidden makes the browser snap/reflow the whole
   scroll position — an expensive operation that reads as the page
   freezing on mobile. Pinning the body in place at its current scroll
   offset via position:fixed avoids that reflow entirely (the standard,
   well-tested fix for this). The header is forced from sticky to fixed
   for the same duration — leaving it sticky while its ancestor body
   becomes fixed is what caused the earlier freeze — so both are fixed
   together with no ambiguity between the two positioning modes. */
html.scroll-locked{ overflow: hidden; }
html.scroll-locked body{
  position: fixed;
  left: 0; right: 0; width: 100%;
  top: calc(-1 * var(--scroll-lock-y, 0px));
  overflow: hidden;
}
html.scroll-locked .site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
}

/* ==========================================================================
   Signature — the waterline divider + ripple hero
   ========================================================================== */
.waterline{ line-height: 0; display: block; width: 100%; color: var(--bg); }
.waterline svg{ width: 100%; height: auto; display: block; }
.waterline--tint{ color: var(--bg); }
.waterline--surface{ color: var(--surface); }
.waterline--dark{ color: var(--secondary); }
.waterline path{ animation: wave-shift 14s ease-in-out infinite alternate; transform-origin: center; }
@keyframes wave-shift{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-2%); }
}
@media (prefers-reduced-motion: reduce){ .waterline path{ animation: none; } }

.hero{
  position: relative;
  padding-block: clamp(56px, 9vw, 96px) clamp(72px, 10vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(201,168,118,0.16), transparent 60%),
    linear-gradient(180deg, #2A241A 0%, var(--secondary) 100%);
  color: var(--on-dark);
}
.hero-ripple{
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
}
.hero-ripple svg{ position: absolute; bottom: -2px; width: 100%; height: auto; }
.hero-grid{ position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px,5vw,60px); align-items: center; }
.hero-copy .eyebrow{ margin-bottom: 20px; }
.hero-copy h1{ margin-bottom: 20px; }
.hero-copy .lede{ margin-bottom: 30px; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badges{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 9px 14px; border-radius: 999px;
  background: rgba(250,248,244,0.08); border: 1px solid var(--line-on-dark);
  color: var(--on-dark-mute);
}
.hero-badge svg{ width: 15px; height: 15px; color: var(--accent-2); flex-shrink: 0; }

.hero-figure{ position: relative; aspect-ratio: 1/1; }
.hero-figure svg{ width: 100%; height: 100%; }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip{
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat-strip .stat{ padding: 26px 20px; border-inline-start: 1px solid var(--line); text-align: center; }
.stat-strip .stat:first-child{ border-inline-start: none; }
.stat b{ display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--primary); font-weight: 800; margin-bottom: 6px; }
.stat span{ font-size: 13px; color: var(--ink-mute); }
@media (max-width: 700px){
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .stat-strip .stat:nth-child(2n+1){ border-inline-start: none; }
  .stat-strip .stat:nth-child(-n+2){ border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Cards — services / values
   ========================================================================== */
.card-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.svc-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.svc-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.svc-icon{
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: rgba(140,106,53,0.09); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.svc-icon svg{ width: 28px; height: 28px; }
.svc-card h3{ margin-bottom: 10px; }
.svc-card p{ color: var(--ink-mute); font-size: 0.96rem; margin-bottom: 18px; }
.svc-card .card-link{ font-size: 14px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.svc-card .card-link svg{ width: 14px; height: 14px; transition: transform .3s var(--ease); }
[dir="rtl"] .svc-card .card-link svg{ transform: scaleX(-1); }
.svc-card:hover .card-link svg{ transform: translateX(-3px); }
[dir="rtl"] .svc-card:hover .card-link svg{ transform: scaleX(-1) translateX(-3px); }
@media (max-width: 900px){ .card-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Split section (image + copy)
   ========================================================================== */
.split{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.reverse{ grid-template-columns: 1.1fr 0.9fr; }
.split-figure{
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 100%);
}
.split-figure img{ width: 100%; height: 100%; object-fit: cover; }
.split-figure--wide{ aspect-ratio: 3/2; }
.split-figure.placeholder{ display: flex; align-items: center; justify-content: center; }
.split-figure.placeholder svg{ width: 46%; opacity: .9; }
.split ul.check-list{ margin-top: 22px; }

.check-list li{ display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child{ border-bottom: none; }
.check-list .tick{ width: 22px; height: 22px; border-radius: 50%; background: rgba(201,168,118,0.15); color: var(--accent-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-list .tick svg{ width: 12px; height: 12px; }
.check-list strong{ display:block; font-size: 0.98rem; margin-bottom: 2px; }
.check-list span{ font-size: 0.9rem; color: var(--ink-mute); }

/* ==========================================================================
   Process (real ordered workflow only)
   ========================================================================== */
.process{ counter-reset: step; margin-top: 12px; }
.process-item{ counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.process-item:last-child{ border-bottom: 1px solid var(--line); }
.process-item::before{
  content: counter(step, decimal-leading-zero);
  font-weight: 800; font-size: 1.1rem; color: var(--accent);
}
.process-item h4{ font-size: 1.02rem; margin-bottom: 6px; }
.process-item p{ color: var(--ink-mute); font-size: 0.95rem; max-width: 60ch; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.gallery-item{
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); cursor: pointer;
}
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-item svg{ width: 34%; opacity: .85; position: relative; z-index: 1; }
.gallery-item .gallery-label{
  position: absolute; inset-inline: 0; bottom: 0; padding: 10px 14px;
  font-size: 12.5px; color: var(--on-dark);
  background: linear-gradient(0deg, rgba(30,27,22,0.85), transparent);
}
@media (max-width: 760px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); } }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; z-index: 300; background: rgba(30,27,22,0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  overscroll-behavior: contain;
}
.lightbox.is-open{ opacity: 1; pointer-events: auto; }
.lightbox-inner{ max-width: 900px; width: 100%; }
.lightbox-frame{
  aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.lightbox-frame img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lightbox-frame svg{ width: 22%; opacity: .85; position: relative; z-index: 1; }
.lightbox-caption{ color: var(--on-dark-mute); font-size: 14px; margin-top: 14px; text-align: center; }
.lightbox-close{
  position: absolute; top: -46px; inset-inline-end: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,248,244,0.12); color: var(--on-dark);
  display: flex; align-items: center; justify-content: center; border: none;
}
.lightbox-nav{ display: flex; justify-content: space-between; margin-top: 14px; }
.lightbox-nav button{ background: rgba(250,248,244,0.1); color: var(--on-dark); border: 1px solid var(--line-on-dark); border-radius: 999px; padding: 9px 18px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2{ margin-bottom: 8px; }
.cta-band p{ color: rgba(255,255,255,0.82); }
.cta-band .hero-actions{ flex-shrink: 0; }
.cta-band .btn-ghost{ border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-band .btn-ghost:hover{ border-color: #fff; background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px,5vw,64px); align-items: start; }
.info-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h5{ font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); font-weight: 800; margin-bottom: 10px; }
.info-card .val{ font-size: 1.05rem; font-weight: 600; }
.info-card .val + .val{ margin-top: 4px; }
.info-card a:hover{ color: var(--primary); }

.map-frame{ margin-top: 8px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

.form-card{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px,4vw,40px); }
.field{ margin-bottom: 20px; }
.field label{ display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field .req{ color: var(--accent); }
.field input, .field select, .field textarea{
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; color: var(--ink); transition: border-color .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--primary); background: #fff; outline: none; }
.field textarea{ min-height: 120px; resize: vertical; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint{ font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; }
.field-error{ font-size: 12.5px; color: #C23B3B; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: #C23B3B; }
.field.has-error .field-error{ display: block; }

.alert{ border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14.5px; margin-bottom: 22px; }
.alert-success{ background: rgba(34,140,90,0.10); color: #0B5C50; border: 1px solid rgba(34,140,90,0.28); }
.alert-error{ background: rgba(194,59,59,0.08); color: #8C2A2A; border: 1px solid rgba(194,59,59,0.25); }

@media (max-width: 760px){
  .field-row{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ / accordion (used on services page for real Q&A-style content)
   ========================================================================== */
.accordion-item{ border-bottom: 1px solid var(--line); }
.accordion-trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 4px; background: none; border: none; text-align: start;
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
}
.accordion-trigger svg{ width: 18px; height: 18px; flex-shrink: 0; transition: transform .3s var(--ease); color: var(--primary); }
.accordion-item.is-open .accordion-trigger svg{ transform: rotate(45deg); }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-panel-inner{ padding: 0 4px 20px; color: var(--ink-mute); font-size: 0.96rem; max-width: 65ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--secondary); color: var(--on-dark); padding-block: 56px 24px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-dark); }
.footer-name{ font-weight: 800; margin-bottom: 4px; }
.footer-brand p{ color: var(--on-dark-mute); font-size: 0.92rem; }
.footer-col h5{ font-size: 13px; font-weight: 800; color: var(--accent-2); margin-bottom: 16px; }
.footer-col ul li{ margin-bottom: 10px; }
.footer-col ul a{ font-size: 14px; color: var(--on-dark-mute); transition: color .25s; }
.footer-col ul a:hover{ color: #fff; }
.footer-address li{ font-size: 14px; color: var(--on-dark-mute); margin-bottom: 6px; }
.footer-address .sep{ height: 10px; }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; padding-top: 22px; gap: 12px; flex-wrap: wrap; }
.footer-bottom p{ font-size: 13px; color: var(--on-dark-mute); }
.to-top{ width: 40px; height: 40px; border-radius: 50%; background: rgba(250,248,244,0.1); border: 1px solid var(--line-on-dark); color: var(--on-dark); display: flex; align-items: center; justify-content: center; }
.to-top svg{ width: 16px; height: 16px; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

.skip-link{
  position: absolute; right: -9999px; top: 0; background: var(--accent); color: #0E2233;
  padding: 12px 18px; z-index: 400; font-weight: 700; border-radius: 0 0 0 8px;
}
.skip-link:focus{ right: 0; }

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page{ min-height: 60vh; display: flex; align-items: center; }
.error-page .wrap{ text-align: center; }
.error-code{ font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--primary); line-height: 1; }
