/*
REVELMONT public web
Figma-aligned production stylesheet v1
Target: Django/Wagtail public templates
*/

:root{
  --rv-navy:#101a2f;
  --rv-navy-2:#14233d;
  --rv-teal:#0f8199;
  --rv-teal-dark:#0b6f84;
  --rv-teal-soft:#eaf7fa;
  --rv-bg:#f5f7fb;
  --rv-card:#ffffff;
  --rv-surface-soft:#fafbfd;
  --rv-surface-muted:#f0f3f7;
  --rv-surface-accent:#f7fbfc;
  --rv-text:#1a2435;
  --rv-muted:#6b7688;
  --rv-line:#e4e9f0;
  --rv-green:#1aa56f;
  --rv-yellow:#d9a51d;
  --rv-radius:12px;
  --rv-radius-lg:18px;
  --rv-shadow:0 8px 28px rgba(16,26,47,.08);
  --rv-container:1180px;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:88px;
}

body{
  margin:0;
  background:#fff;
  color:var(--rv-text);
  font-family:"Segoe UI Variable","Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{
  color:var(--rv-navy);
  line-height:1.08;
  letter-spacing:-.03em;
}
h1{font-size:clamp(2.65rem,5.1vw,4.7rem);margin-bottom:24px}
h2{font-size:clamp(2rem,3.5vw,3.15rem);margin-bottom:16px}
h3{font-size:1.18rem;margin-bottom:10px}

.container{
  width:min(calc(100% - 48px),var(--rv-container));
  margin-inline:auto;
}

.skip-link{
  position:fixed;
  left:16px;
  top:12px;
  z-index:9999;
  transform:translateY(-150%);
  padding:10px 14px;
  border-radius:8px;
  background:var(--rv-navy);
  color:#fff;
}
.skip-link:focus{transform:none}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(228,233,240,.9);
  backdrop-filter:blur(12px);
}
.site-header__inner{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:28px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:none;
}
.brand__mark{
  width:34px;
  height:28px;
  display:grid;
  place-items:center;
  background:var(--rv-teal);
  color:#fff;
  border-radius:7px;
  font-weight:900;
  font-size:.9rem;
  box-shadow:0 5px 14px rgba(15,129,153,.22);
}
.brand__text{
  color:var(--rv-navy);
  font-weight:850;
  letter-spacing:.045em;
  font-size:.96rem;
}
.desktop-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:24px;
}
.desktop-nav a{
  color:#526075;
  font-size:.86rem;
  font-weight:650;
  transition:.18s ease;
}
.desktop-nav a:hover{color:var(--rv-teal)}
.site-header__actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.header-phone{
  color:var(--rv-navy);
  font-size:.86rem;
  font-weight:700;
}
.menu-button{
  display:none;
  margin-left:auto;
  width:44px;
  height:42px;
  padding:10px;
  border:1px solid var(--rv-line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.menu-button span{
  display:block;
  height:2px;
  margin:4px 0;
  background:var(--rv-navy);
  border-radius:2px;
}
.mobile-nav{
  border-top:1px solid var(--rv-line);
  background:#fff;
}
.mobile-nav[hidden]{display:none!important}
.mobile-nav__inner{
  padding:12px 0 20px;
  display:grid;
  gap:2px;
}
.mobile-nav a{padding:10px 4px;font-weight:650}

/* Buttons */
.button{
  min-height:42px;
  padding:11px 19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:7px;
  font-size:.88rem;
  font-weight:800;
  line-height:1.15;
  transition:transform .17s ease,box-shadow .17s ease,background .17s ease,border-color .17s ease;
}
.button:hover{transform:translateY(-1px)}
.button--small{min-height:38px;padding:9px 16px;font-size:.8rem}
.button--primary{
  color:#fff;
  background:var(--rv-teal);
  box-shadow:0 6px 18px rgba(15,129,153,.18);
}
.button--primary:hover{background:var(--rv-teal-dark)}
.button--secondary{
  color:var(--rv-teal-dark);
  background:#fff;
  border-color:#9bcbd6;
}
.button--secondary:hover{background:var(--rv-teal-soft)}
.button--light{
  color:var(--rv-navy);
  background:#fff;
  border-color:#fff;
}
.button--outline-light{
  color:#fff;
  background:transparent;
  border-color:rgba(255,255,255,.55);
}

/* Hero */
.hero{
  padding:56px 0 64px;
  background:#fff;
}
.hero__grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);
  align-items:center;
  gap:58px;
}
.eyebrow{
  margin-bottom:12px;
  color:var(--rv-teal);
  font-size:.75rem;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.eyebrow--light{color:#83d6e6}
.hero__lead{
  max-width:680px;
  margin-bottom:23px;
  color:var(--rv-muted);
  font-size:1rem;
}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:24px;
}
.hero__trust{
  display:flex;
  flex-wrap:wrap;
  gap:9px 22px;
  color:#687489;
  font-size:.78rem;
  font-weight:650;
}
.hero__trust span{
  position:relative;
  padding-left:15px;
}
.hero__trust span::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--rv-teal);
}
.hero-visual{
  min-height:355px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-visual>img{
  width:100%;
  height:350px;
  object-fit:cover;
  border-radius:14px;
  box-shadow:0 9px 24px rgba(16,26,47,.12);
}
.hero-visual__fallback{
  width:100%;
  min-height:350px;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  color:#fff;
  background:linear-gradient(135deg,#233451,var(--rv-navy));
  border-radius:14px;
  box-shadow:var(--rv-shadow);
}
.hero-visual__fallback .technical-card,
.hero-visual__fallback .measurement-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
}
.hero-visual__fallback .technical-card{padding:18px}
.hero-visual__fallback .measurement-card{padding:18px}
.hero-visual__fallback strong{color:#fff}

/* Trust strip below hero */
.trust-strip{
  background:#fff;
  border-top:1px solid var(--rv-line);
  border-bottom:1px solid var(--rv-line);
}
.trust-strip__grid{
  min-height:96px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.trust-strip__grid>div{
  padding:22px 26px;
  border-right:1px solid var(--rv-line);
}
.trust-strip__grid>div:first-child{border-left:1px solid var(--rv-line)}
.trust-strip__grid strong{
  display:block;
  margin-bottom:4px;
  color:var(--rv-navy);
  font-size:.9rem;
}
.trust-strip__grid span{
  color:var(--rv-muted);
  font-size:.78rem;
}

/* Generic sections */
.section{padding:78px 0}
.section--muted{background:var(--rv-bg)}
.section-heading{
  max-width:780px;
  margin:0 auto 38px;
  text-align:center;
}
.section-heading>p,
.section-heading div+p{
  max-width:700px;
  margin:0 auto;
  color:var(--rv-muted);
}
.section-heading--center{text-align:center}
.section-lead{color:var(--rv-muted);font-size:1rem}

/* Services */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.service-card{
  min-height:205px;
  padding:24px;
  background:#fff;
  border:1px solid var(--rv-line);
  border-radius:10px;
  box-shadow:0 2px 10px rgba(16,26,47,.025);
  transition:.18s ease;
}
.service-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--rv-shadow);
  border-color:#c8d6df;
}
.service-card--featured{
  background:#fff;
}
.service-card__number{
  display:inline-grid;
  place-items:center;
  min-width:38px;
  height:28px;
  margin-bottom:18px;
  padding:0 8px;
  color:var(--rv-teal-dark);
  background:var(--rv-teal-soft);
  border-radius:7px;
  font-size:.72rem;
  font-weight:850;
}
.service-card p{
  margin-bottom:14px;
  color:var(--rv-muted);
  font-size:.86rem;
}
.service-card a,
.text-link{
  color:var(--rv-teal-dark);
  font-size:.82rem;
  font-weight:800;
}

/* Why / split section */
.split-section{
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);
  align-items:center;
  gap:66px;
}
.split-section__visual{min-height:290px}
.diagram{
  position:relative;
  min-height:290px;
  display:grid;
  place-items:center;
}
.diagram::before,
.diagram::after{
  content:"";
  position:absolute;
  background:var(--rv-line);
}
.diagram::before{left:12%;right:12%;top:50%;height:1px}
.diagram::after{top:18%;bottom:18%;left:50%;width:1px}
.diagram__node{
  position:absolute;
  z-index:2;
  min-width:106px;
  padding:12px 14px;
  text-align:center;
  border:1px solid var(--rv-line);
  border-radius:8px;
  background:#fff;
  color:var(--rv-navy);
  font-size:.76rem;
  font-weight:750;
  box-shadow:0 4px 14px rgba(16,26,47,.05);
}
.diagram__node--main{
  position:relative;
  min-width:130px;
  color:#fff;
  background:var(--rv-navy);
  border-color:var(--rv-navy);
}
.diagram__node:nth-child(2){top:8%;left:8%}
.diagram__node:nth-child(3){top:8%;right:8%}
.diagram__node:nth-child(4){bottom:8%;left:8%}
.diagram__node:nth-child(5){bottom:8%;right:8%}
.feature-list{
  margin:28px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px 30px;
}
.feature-list li{position:relative;padding-left:30px}
.feature-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:1px;
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--rv-teal);
  border-radius:50%;
  font-size:.65rem;
  font-weight:900;
}
.feature-list strong{
  display:block;
  margin-bottom:4px;
  color:var(--rv-navy);
  font-size:.88rem;
}
.feature-list span{color:var(--rv-muted);font-size:.8rem}

/* Process */
.process-grid{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.process-grid li{
  min-height:166px;
  padding:20px;
  background:#fff;
  border:1px solid var(--rv-line);
  border-radius:9px;
}
.process-grid li>span{
  color:var(--rv-teal);
  font-size:.72rem;
  font-weight:850;
}
.process-grid h3{margin-top:18px;font-size:1rem}
.process-grid p{margin-bottom:0;color:var(--rv-muted);font-size:.8rem}

/* Revize */
#revize.section{padding-top:0;padding-bottom:78px}
.revision-panel{
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(380px,.9fr);
  align-items:stretch;
  background:var(--rv-navy);
  border-radius:0;
  color:#fff;
}
.revision-panel>div:first-child{padding:46px 52px}
.revision-panel h2{color:#fff}
.revision-panel p,
.revision-panel li{color:#c3ccda}
.revision-panel ul{
  margin:20px 0 26px;
  padding-left:18px;
}
.revision-panel__visual{
  min-height:360px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#edf7f8,#c6d8dc);
}
.meter{
  width:min(78%,320px);
  padding:28px;
  border-radius:12px;
  background:#fff;
  color:var(--rv-navy);
  box-shadow:0 16px 36px rgba(16,26,47,.18);
}
.meter__label{
  display:block;
  color:var(--rv-muted);
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.meter strong{
  display:block;
  margin:12px 0;
  color:var(--rv-green);
  font-size:2rem;
}
.meter__line{
  height:2px;
  margin:18px 0;
  background:linear-gradient(90deg,var(--rv-teal),#d9e7eb);
}

/* Projects */
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.project-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--rv-line);
  border-radius:10px;
  transition:.18s ease;
}
.project-card:hover{transform:translateY(-3px);box-shadow:var(--rv-shadow)}
.project-card__image{
  height:210px;
  background:
    linear-gradient(135deg,rgba(15,129,153,.14),rgba(16,26,47,.06)),
    #e8edf2;
  background-position:center;
  background-size:cover;
}
.project-card__image--one{
  background:
    linear-gradient(135deg,rgba(15,129,153,.08),rgba(16,26,47,.05)),
    linear-gradient(120deg,#e4e8ed,#f6f7f9);
}
.project-card__image--two{
  background:
    linear-gradient(135deg,rgba(16,26,47,.07),rgba(15,129,153,.08)),
    linear-gradient(120deg,#e8ebef,#f5f7fa);
}
.project-card__image--three{
  background:
    linear-gradient(135deg,rgba(15,129,153,.1),rgba(16,26,47,.04)),
    linear-gradient(120deg,#e2e8eb,#f7f8fa);
}
.project-card__body{padding:20px 20px 22px}
.project-card__body>span{
  color:var(--rv-teal);
  font-size:.7rem;
  font-weight:800;
}
.project-card__body h3{margin-top:6px}
.project-card__body p{margin-bottom:10px;color:var(--rv-muted);font-size:.82rem}

/* Area */
.section--area{background:#fff}
.area-panel{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:34px;
  align-items:center;
  padding:34px;
  background:var(--rv-bg);
  border:1px solid var(--rv-line);
  border-radius:12px;
}
.area-panel h2{font-size:clamp(1.8rem,3vw,2.5rem)}
.area-panel p{color:var(--rv-muted)}
.area-tags{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:9px;
}
.area-tags span{
  padding:8px 13px;
  border:1px solid #b9dce4;
  border-radius:999px;
  background:#fff;
  color:var(--rv-teal-dark);
  font-size:.78rem;
  font-weight:750;
}

/* CTA */
.section--final-cta{
  padding:56px 0;
  background:var(--rv-teal);
}
.final-cta{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:32px;
  color:#fff;
}
.final-cta h2{
  margin-bottom:8px;
  color:#fff;
  font-size:clamp(1.8rem,3.1vw,2.7rem);
}
.final-cta p{
  margin-bottom:0;
  color:rgba(255,255,255,.86);
}
.final-cta__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Footer */
.site-footer{
  padding:50px 0 0;
  background:#0d1629;
  color:#aeb8c8;
}
.site-footer__grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1.15fr;
  gap:40px;
  padding-bottom:42px;
}
.site-footer .brand__text{color:#fff}
.site-footer__description{
  max-width:320px;
  margin:18px 0 10px;
  color:#9ba7b8;
  font-size:.82rem;
}
.site-footer__area{color:#8290a5;font-size:.8rem}
.site-footer__heading{
  margin:0 0 14px;
  color:#fff;
  font-size:.76rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.footer-links,
.footer-contact,
.footer-legal-links{
  margin:0;
  padding:0;
  list-style:none;
}
.footer-links li,
.footer-contact li{margin:7px 0;font-size:.8rem}
.footer-links a:hover,
.footer-legal-links a:hover{color:#fff}
.site-footer__bottom{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:.75rem;
}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:16px}

/* Cookie */
.cookie-notice{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:2000;
  width:min(420px,calc(100% - 40px));
  padding:18px;
  background:#fff;
  border:1px solid var(--rv-line);
  border-radius:12px;
  box-shadow:0 16px 38px rgba(16,26,47,.18);
}
.cookie-notice p{margin-bottom:10px;color:var(--rv-muted);font-size:.8rem}
.cookie-notice__actions{display:flex;gap:8px;flex-wrap:wrap}

/* Basic public subpages */
main:not(:has(.public-home)) .section-heading{max-width:850px}
.public-page,
.service-detail,
.realization-detail{
  background:#fff;
}

/* Focus */
a:focus-visible,
button:focus-visible{
  outline:3px solid rgba(15,129,153,.4);
  outline-offset:3px;
}

/* Responsive */
@media (max-width:1050px){
  .desktop-nav{gap:14px}
  .hero__grid{grid-template-columns:1fr .8fr;gap:36px}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .process-grid{grid-template-columns:repeat(3,1fr)}
  .site-footer__grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:860px){
  .container{width:min(calc(100% - 34px),var(--rv-container))}
  .desktop-nav,.header-phone{display:none}
  .menu-button{display:block}
  .hero{padding:46px 0 54px}
  .hero__grid{grid-template-columns:1fr}
  .hero-visual{min-height:300px}
  .hero-visual>img{height:320px}
  .trust-strip__grid{grid-template-columns:repeat(2,1fr)}
  .trust-strip__grid>div:nth-child(3){border-left:1px solid var(--rv-line)}
  .split-section{grid-template-columns:1fr;gap:32px}
  .feature-list{grid-template-columns:1fr 1fr}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .revision-panel{grid-template-columns:1fr}
  .revision-panel__visual{min-height:280px}
  .project-grid{grid-template-columns:1fr 1fr}
  .area-panel{grid-template-columns:1fr}
  .area-tags{justify-content:flex-start}
  .final-cta{grid-template-columns:1fr;text-align:center}
  .final-cta__actions{justify-content:center}
}

@media (max-width:620px){
  body{font-size:15px}
  .container{width:min(calc(100% - 26px),var(--rv-container))}
  .site-header__inner{min-height:68px}
  .site-header__actions{margin-left:auto}
  .hero{padding:38px 0 44px}
  h1{font-size:clamp(2.25rem,11vw,3.2rem)}
  h2{font-size:clamp(1.8rem,8vw,2.35rem)}
  .hero__actions{display:grid}
  .hero__actions .button{width:100%}
  .hero__trust{display:grid;gap:6px}
  .hero-visual{min-height:245px}
  .hero-visual>img,.hero-visual__fallback{height:auto;min-height:245px}
  .trust-strip__grid,
  .service-grid,
  .process-grid,
  .project-grid,
  .feature-list{grid-template-columns:1fr}
  .trust-strip__grid>div{border-left:1px solid var(--rv-line);border-bottom:1px solid var(--rv-line)}
  .section{padding:58px 0}
  .section-heading{margin-bottom:28px}
  .service-card{min-height:auto}
  .diagram{min-height:250px}
  .revision-panel>div:first-child{padding:32px 24px}
  .revision-panel__visual{min-height:230px}
  .project-card__image{height:190px}
  .area-panel{padding:26px 22px}
  .section--final-cta{padding:48px 0}
  .final-cta__actions{display:grid}
  .final-cta__actions .button{width:100%}
  .site-footer__grid{grid-template-columns:1fr;gap:28px}
  .site-footer__bottom{
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
  }
  .cookie-notice{right:13px;bottom:13px;width:calc(100% - 26px)}
}

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


/* ==========================================================
   FIGMA V2 OVERRIDES
   ========================================================== */

/* Desktop must never show the mobile menu panel. */
.mobile-nav {
  display: none;
}

/* Hero proportions closer to the approved Figma HomeFrame. */
.hero {
  padding-top: 46px;
  padding-bottom: 58px;
}

.hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  gap: 54px;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(2.65rem, 4.15vw, 3.85rem);
  line-height: 1.04;
}

/* Use the Figma hero image when no Wagtail hero image is set. */
.hero-visual__fallback {
  min-height: 350px;
  background:
    linear-gradient(rgba(16, 26, 47, .05), rgba(16, 26, 47, .05)),
    url("/static/images/revelmont/home-hero.jpg") center center / cover no-repeat;
}

.hero-visual__fallback > * {
  display: none !important;
}

/* Revision section: photo on the right, as in Figma. */
.revision-panel__visual {
  background:
    linear-gradient(rgba(16, 26, 47, .03), rgba(16, 26, 47, .03)),
    url("/static/images/revelmont/revision.jpg") center center / cover no-repeat;
}

.revision-panel__visual .meter {
  display: none;
}

/* Realization thumbnails from the Figma HomeFrame. */
.project-card__image--one {
  background:
    linear-gradient(rgba(16,26,47,.02), rgba(16,26,47,.02)),
    url("/static/images/revelmont/realization-1.jpg") center center / cover no-repeat;
}

.project-card__image--two {
  background:
    linear-gradient(rgba(16,26,47,.02), rgba(16,26,47,.02)),
    url("/static/images/revelmont/realization-2.jpg") center center / cover no-repeat;
}

.project-card__image--three {
  background:
    linear-gradient(rgba(16,26,47,.02), rgba(16,26,47,.02)),
    url("/static/images/revelmont/realization-3.jpg") center center / cover no-repeat;
}

/* Figma-style map block in the area section. */
.area-panel {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.area-panel::before {
  content: "";
  min-height: 230px;
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 10px;
  background:
    #eef3f7 url("/static/images/revelmont/area-map.jpg") center center / cover no-repeat;
}

.area-panel > div:first-child {
  grid-column: 2;
  grid-row: 1;
}

.area-tags {
  grid-column: 2;
  grid-row: 2;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .mobile-nav:not([hidden]) {
    display: block;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 700px;
  }

  .area-panel {
    grid-template-columns: 1fr;
  }

  .area-panel::before,
  .area-panel > div:first-child,
  .area-tags {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .hero-visual__fallback {
    min-height: 245px;
  }

  .area-panel::before {
    min-height: 180px;
  }
}


/* ==========================================================
   PUBLIC INQUIRY FORM
   ========================================================== */

.inquiry-page {
  background: var(--rv-bg);
}

.inquiry-page .page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(15, 129, 153, .32), transparent 34%),
    linear-gradient(125deg, var(--rv-navy) 0%, var(--rv-navy-2) 68%, #123b4b 100%);
}

.inquiry-page .page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(255, 255, 255, .025),
    0 0 0 92px rgba(255, 255, 255, .018);
  pointer-events: none;
}

.inquiry-page .page-hero .container {
  position: relative;
  z-index: 1;
}

.inquiry-page .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .66);
  font-size: .78rem;
  font-weight: 650;
}

.inquiry-page .breadcrumbs a {
  transition: color .17s ease;
}

.inquiry-page .breadcrumbs a:hover {
  color: #fff;
}

.inquiry-page .page-hero .eyebrow {
  color: #72d0e1;
}

.inquiry-page .page-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.45rem, 4.4vw, 4rem);
}

.inquiry-page .page-hero__lead {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.inquiry-page > main,
body.inquiry-page main {
  background: var(--rv-bg);
}

.inquiry-page .section {
  padding: 72px 0 88px;
}

.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.inquiry-sidebar {
  position: sticky;
  top: 104px;
  padding: 25px 24px;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius);
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 26, 47, .05);
}

.inquiry-sidebar > strong {
  display: block;
  margin-bottom: 18px;
  color: var(--rv-navy);
  font-size: .95rem;
}

.inquiry-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: inquiry-progress;
}

.inquiry-sidebar li {
  position: relative;
  min-height: 38px;
  padding: 4px 0 13px 40px;
  color: #526075;
  counter-increment: inquiry-progress;
  font-size: .82rem;
  font-weight: 680;
  line-height: 1.35;
}

.inquiry-sidebar li::before {
  content: counter(inquiry-progress, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #b8dce4;
  border-radius: 50%;
  color: var(--rv-teal-dark);
  background: var(--rv-teal-soft);
  font-size: .64rem;
  font-weight: 850;
}

.inquiry-sidebar li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 29px;
  bottom: 0;
  width: 1px;
  background: var(--rv-line);
}

.inquiry-sidebar > p {
  margin: 7px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--rv-line);
  color: var(--rv-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.form-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rv-line);
  border-radius: var(--rv-radius-lg);
  background: #fff;
  box-shadow: var(--rv-shadow);
}

.public-form {
  display: grid;
}

.form-step {
  padding: 40px 44px 44px;
}

.form-step + .form-step {
  border-top: 1px solid var(--rv-line);
}

.form-step__heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 28px;
}

.form-step__heading > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--rv-teal-dark);
  background: var(--rv-teal-soft);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.form-step__heading h2 {
  margin: 1px 0 6px;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  letter-spacing: -.025em;
}

.form-step__heading p {
  margin: 0;
  color: var(--rv-muted);
  font-size: .9rem;
}

.form-grid {
  display: grid;
  gap: 22px;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  min-width: 0;
  margin-bottom: 22px;
}

.form-grid .form-field {
  margin-bottom: 0;
}

.form-grid + .form-field,
.form-field + .form-grid {
  margin-top: 22px;
}

.form-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--rv-navy);
  font-size: .83rem;
  font-weight: 750;
}

.public-form input:not([type="checkbox"]):not([type="file"]),
.public-form select,
.public-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  outline: none;
  color: var(--rv-text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 26, 47, .025);
  transition: border-color .17s ease, box-shadow .17s ease, background .17s ease;
}

.public-form select {
  padding-right: 38px;
  cursor: pointer;
}

.public-form textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.55;
}

.public-form input::placeholder,
.public-form textarea::placeholder {
  color: #98a3b3;
  opacity: 1;
}

.public-form input:not([type="checkbox"]):not([type="file"]):hover,
.public-form select:hover,
.public-form textarea:hover {
  border-color: #aab7c7;
}

.public-form input:not([type="checkbox"]):not([type="file"]):focus,
.public-form select:focus,
.public-form textarea:focus {
  border-color: var(--rv-teal);
  box-shadow: 0 0 0 4px rgba(15, 129, 153, .12);
}

.file-upload-field {
  margin-bottom: 0;
  padding: 24px;
  border: 1px dashed #9bcbd6;
  border-radius: 11px;
  background: #f7fcfd;
}

.file-upload-field input[type="file"] {
  display: block;
  width: 100%;
  color: #526075;
  font-size: .82rem;
}

.file-upload-field input[type="file"]::file-selector-button {
  margin-right: 13px;
  padding: 9px 14px;
  border: 1px solid #9bcbd6;
  border-radius: 7px;
  color: var(--rv-teal-dark);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.field-help {
  margin: 12px 0 0;
  color: var(--rv-muted);
  font-size: .76rem;
}

.selected-files:not(:empty) {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--rv-line);
  color: #526075;
  font-size: .78rem;
}

.form-checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid var(--rv-line);
  border-radius: 9px;
  background: #fafbfd;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--rv-teal);
}

.form-checkbox label {
  color: #526075;
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--rv-teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(11, 111, 132, .35);
  text-underline-offset: 2px;
}

.form-step:last-child {
  background: #fbfcfe;
}

.form-step:last-child .button {
  min-height: 50px;
  margin-top: 10px;
  padding-inline: 24px;
  border-radius: 8px;
}

.form-error-summary {
  margin: 28px 44px 0;
  padding: 16px 18px;
  border: 1px solid #efb5b5;
  border-left: 4px solid #c73d3d;
  border-radius: 8px;
  color: #7d2828;
  background: #fff5f5;
}

.form-error-summary strong {
  display: block;
  margin-bottom: 2px;
}

.form-error-summary p,
.field-error {
  margin: 0;
  font-size: .78rem;
}

.field-error {
  margin-top: 7px;
  color: #b52e2e;
  font-weight: 650;
}

.public-form :is(input, select, textarea)[aria-invalid="true"] {
  border-color: #c94a4a;
  background: #fffafa;
}

.public-form :is(input, select, textarea):focus-visible,
.file-upload-field input[type="file"]:focus-visible,
.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(15, 129, 153, .28);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .inquiry-layout {
    grid-template-columns: 1fr;
  }

  .inquiry-sidebar {
    position: static;
  }

  .inquiry-sidebar ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .inquiry-sidebar li {
    min-height: 0;
    padding: 8px 8px 8px 39px;
    border-radius: 7px;
    background: #f7f9fc;
  }

  .inquiry-sidebar li::before {
    left: 6px;
    top: 5px;
  }

  .inquiry-sidebar li::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .inquiry-page .page-hero {
    padding: 42px 0 44px;
  }

  .inquiry-page .breadcrumbs {
    margin-bottom: 22px;
  }

  .inquiry-page .page-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .inquiry-page .section {
    padding: 42px 0 58px;
  }

  .inquiry-layout {
    gap: 20px;
  }

  .inquiry-sidebar {
    padding: 20px 18px;
  }

  .inquiry-sidebar ol {
    grid-template-columns: 1fr 1fr;
  }

  .form-card {
    border-radius: 13px;
  }

  .form-step {
    padding: 30px 20px 34px;
  }

  .form-step__heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 23px;
  }

  .form-step__heading > span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .form-step__heading h2 {
    font-size: 1.3rem;
  }

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

  .form-grid {
    gap: 18px;
  }

  .form-grid + .form-field,
  .form-field + .form-grid {
    margin-top: 18px;
  }

  .file-upload-field {
    padding: 19px 16px;
  }

  .form-error-summary {
    margin: 20px 20px 0;
  }

  .form-step:last-child .button {
    width: 100%;
  }
}


/* ==================================================
   REVELMONT THEME
   ================================================== */

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --rv-bg:#0d1422;
  --rv-card:#151f30;
  --rv-text:#eef3f8;
  --rv-muted:#a9b4c4;
  --rv-line:#2b384b;

  --rv-teal-soft:#14333d;

  --rv-surface-soft:#111b2a;
  --rv-surface-muted:#182435;
  --rv-surface-accent:#102832;

  --rv-shadow:0 10px 32px rgba(0,0,0,.28);
}

body {
  font-size:17px;
  line-height:1.65;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

p,
li,
dd,
input,
textarea,
select,
button {
  line-height:1.6;
}

.theme-toggle {
  min-height:40px;
  padding:0 13px;
  border:1px solid var(--rv-line);
  border-radius:10px;
  background:var(--rv-card);
  color:var(--rv-text);
  font:inherit;
  font-size:.9rem;
  font-weight:700;
  cursor:pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.theme-toggle:hover {
  border-color:var(--rv-teal);
  background:var(--rv-teal-soft);
}

.theme-toggle:focus-visible {
  outline:3px solid rgba(15,129,153,.28);
  outline-offset:2px;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .mobile-nav {
  background-color:var(--rv-bg);
  color:var(--rv-text);
}

html[data-theme="dark"] .site-header {
  border-color:var(--rv-line);
}

/* ==========================================================
   FINAL PUBLIC LAUNCH - MOBILE HEADER + DARK INQUIRY
   ========================================================== */

/* Keep the compact public header usable on narrow phones. */
@media (max-width: 620px) {
  .site-header__inner {
    gap: 12px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .site-header__actions > .button {
    display: none;
  }

  .theme-toggle {
    min-height: 38px;
    padding-inline: 9px;
    font-size: .78rem;
  }

  .brand {
    gap: 7px;
  }

  .brand__text {
    font-size: .88rem;
    letter-spacing: .03em;
  }
}

/* Inquiry form must remain readable in dark mode. */
html[data-theme="dark"] .inquiry-page .inquiry-sidebar,
html[data-theme="dark"] .inquiry-page .form-card,
html[data-theme="dark"] .inquiry-page .form-step {
  border-color: var(--rv-line);
  background: var(--rv-card);
  color: var(--rv-text);
}

html[data-theme="dark"] .inquiry-page .form-step:last-child,
html[data-theme="dark"] .inquiry-page .form-checkbox,
html[data-theme="dark"] .inquiry-page .file-upload-field,
html[data-theme="dark"] .inquiry-page .inquiry-sidebar li {
  border-color: var(--rv-line);
  background: var(--rv-surface-soft);
}

html[data-theme="dark"] .inquiry-page .form-field > label,
html[data-theme="dark"] .inquiry-page .form-step__heading h2 {
  color: var(--rv-text);
}

html[data-theme="dark"] .inquiry-page .public-form input:not([type="checkbox"]):not([type="file"]),
html[data-theme="dark"] .inquiry-page .public-form select,
html[data-theme="dark"] .inquiry-page .public-form textarea {
  border-color: var(--rv-line);
  background: var(--rv-surface-muted);
  color: var(--rv-text);
}

html[data-theme="dark"] .inquiry-page .public-form input::placeholder,
html[data-theme="dark"] .inquiry-page .public-form textarea::placeholder {
  color: var(--rv-muted);
}

html[data-theme="dark"] .inquiry-page .file-upload-field input[type="file"] {
  color: var(--rv-muted);
}

html[data-theme="dark"] .inquiry-page .file-upload-field input[type="file"]::file-selector-button {
  border-color: var(--rv-line);
  background: var(--rv-card);
  color: var(--rv-text);
}

html[data-theme="dark"] .inquiry-page .form-checkbox label,
html[data-theme="dark"] .inquiry-page .selected-files,
html[data-theme="dark"] .inquiry-page .field-help {
  color: var(--rv-muted);
}

/* ==========================================================
   FINAL DARK MODE CONTRAST FIX
   ========================================================== */

/* Header navigation and company identity. */
html[data-theme="dark"] .brand__text,
html[data-theme="dark"] .header-phone {
  color: var(--rv-text);
}

html[data-theme="dark"] .desktop-nav a,
html[data-theme="dark"] .mobile-nav a {
  color: var(--rv-muted);
}

html[data-theme="dark"] .desktop-nav a:hover,
html[data-theme="dark"] .mobile-nav a:hover {
  color: var(--rv-teal);
}

/* Mobile menu button. */
html[data-theme="dark"] .menu-button {
  border-color: var(--rv-line);
  background: var(--rv-card);
}

html[data-theme="dark"] .menu-button span {
  background: var(--rv-text);
}

/* Headings placed directly on dark public sections. */
html[data-theme="dark"] .public-home .section-heading h2,
html[data-theme="dark"] .public-home .section-heading h3 {
  color: var(--rv-text);
}

/* Supporting text on dark homepage sections. */
html[data-theme="dark"] .public-home .section-heading > p,
html[data-theme="dark"] .public-home .section-heading div + p,
html[data-theme="dark"] .public-home .section-lead {
  color: var(--rv-muted);
}

/* ==========================================================
   DARK MODE WHY SECTION CONTRAST
   ========================================================== */

html[data-theme="dark"] .public-home .split-section__content h2 {
  color: var(--rv-text);
}

html[data-theme="dark"] .public-home .feature-list strong {
  color: var(--rv-text);
}

html[data-theme="dark"] .public-home .feature-list span {
  color: var(--rv-muted);
}

/* ==========================================================
   DARK MODE LIGHT SURFACES CONTRAST
   ========================================================== */

/* Process cards */
html[data-theme="dark"] .public-home .process-grid li {
  background: var(--rv-card);
  border-color: var(--rv-line);
  color: var(--rv-text);
}

html[data-theme="dark"] .public-home .process-grid h3 {
  color: var(--rv-text);
}

html[data-theme="dark"] .public-home .process-grid p {
  color: var(--rv-muted);
}

/* Cookie notice */
html[data-theme="dark"] .cookie-notice {
  background: var(--rv-card);
  border-color: var(--rv-line);
  color: var(--rv-text);
  box-shadow: var(--rv-shadow);
}

html[data-theme="dark"] .cookie-notice strong,
html[data-theme="dark"] .cookie-notice h2,
html[data-theme="dark"] .cookie-notice h3 {
  color: var(--rv-text);
}

html[data-theme="dark"] .cookie-notice p {
  color: var(--rv-muted);
}

html[data-theme="dark"] .cookie-notice a {
  color: #71d3e4;
}

html[data-theme="dark"] .cookie-notice .button {
  border-color: var(--rv-line);
}

/* ==========================================================
   DARK MODE ORANGE HOMEPAGE HERO
   ========================================================== */

html[data-theme="dark"] .public-home .hero {
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(15, 129, 153, .16),
      transparent 34%
    ),
    linear-gradient(
      125deg,
      #251710 0%,
      #382116 52%,
      #4a2916 100%
    );
}

html[data-theme="dark"] .public-home .hero h1 {
  color: #f8f5f2;
}

html[data-theme="dark"] .public-home .hero p {
  color: #d4c5ba;
}

html[data-theme="dark"] .public-home .hero .eyebrow {
  color: #53bfd3;
}

html[data-theme="dark"] .public-home .hero__trust {
  color: #ded0c5;
}

html[data-theme="dark"] .public-home .hero-visual {
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 52px rgba(0,0,0,.42);
}

/* Pás výhod pod hero */
html[data-theme="dark"] .public-home .trust-strip {
  background: #211812;
  border-color: #4b3426;
}

html[data-theme="dark"] .public-home .trust-strip__grid > div {
  border-color: #4b3426;
}

html[data-theme="dark"] .public-home .trust-strip__grid strong {
  color: #f3ece7;
}

html[data-theme="dark"] .public-home .trust-strip__grid span {
  color: #c5b5aa;
}

/* Vedlejší CTA */
html[data-theme="dark"] .public-home .hero .button--secondary {
  border-color: #b58a69;
  background: rgba(255,255,255,.035);
  color: #f8f5f2;
}

html[data-theme="dark"] .public-home .hero .button--secondary:hover {
  border-color: #d3a178;
  background: rgba(255,255,255,.08);
}

/* ==========================================================
   REVELMONT SOCIAL LINKS
   ========================================================== */

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  color: #dbe5ef;
  background: rgba(255,255,255,.04);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background-color .18s ease,
    color .18s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--rv-teal);
  background: rgba(15,129,153,.14);
  color: #fff;
}

.footer-socials a:focus-visible {
  outline: 3px solid rgba(15,129,153,.4);
  outline-offset: 3px;
}

.footer-socials svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

.footer-socials svg rect,
.footer-socials svg circle {
  fill: none;
}


/* ==========================================================
   SOCIAL BRAND COLORS
   ========================================================== */

.footer-socials__link {
  position: relative;
  overflow: hidden;
}

.footer-socials__link--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff !important;
}

.footer-socials__link--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 72%, #515bd4 100%);
  border-color: rgba(255,255,255,.14);
  color: #fff !important;
}

.footer-socials__link--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff !important;
}

.footer-socials__link--facebook:hover,
.footer-socials__link--instagram:hover,
.footer-socials__link--whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  color: #fff !important;
}

/* ==========================================================
   SOCIAL FOOTER BRAND COLOR PRIORITY
   ========================================================== */

.footer-socials a.footer-socials__link--facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}

.footer-socials a.footer-socials__link--instagram {
  background: linear-gradient(
    135deg,
    #f58529 0%,
    #dd2a7b 45%,
    #8134af 72%,
    #515bd4 100%
  );
  border-color: transparent;
  color: #fff;
}

.footer-socials a.footer-socials__link--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.footer-socials a.footer-socials__link--facebook:hover,
.footer-socials a.footer-socials__link--instagram:hover,
.footer-socials a.footer-socials__link--whatsapp:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-2px);
}


/* ==========================================================
   FACEBOOK ICON LEGIBILITY FIX
   ========================================================== */

.footer-socials .facebook-brand-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: #fff;
  stroke: none;
}

.footer-socials a.footer-socials__link--facebook {
  place-items: center;
}

/* ==========================================================
   MOBILE UX POLISH V1
   Public site mobile readability and alignment
   ========================================================== */

@media (max-width: 768px) {

  html {
    scroll-padding-top: 78px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .container {
    width: min(
      calc(100% - 30px),
      var(--rv-container)
    );
  }

  h1,
  h2,
  h3 {
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  p,
  li,
  a,
  button {
    overflow-wrap: anywhere;
  }


  /* -------------------------------------------------------
     HEADER + MOBILE NAVIGATION
     ------------------------------------------------------- */

  .site-header__inner {
    min-height: 64px;
    gap: 10px;
  }

  .site-header__actions {
    gap: 8px;
  }

  .menu-button {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav__inner {
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .mobile-nav a:not(.button) {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.35;
  }

  .mobile-nav .button {
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
  }


  /* -------------------------------------------------------
     TYPOGRAPHY + HERO
     ------------------------------------------------------- */

  .hero__content,
  .section-heading,
  .final-cta {
    text-align: center;
  }

  .hero__content .eyebrow,
  .section-heading .eyebrow,
  .final-cta .eyebrow {
    text-align: center;
  }

  .hero__lead,
  .section-lead,
  .final-cta p {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions,
  .final-cta__actions {
    justify-content: center;
  }

  .hero__trust {
    justify-items: center;
    text-align: center;
  }

  .hero__trust span {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }


  /* -------------------------------------------------------
     BUTTONS + LINKS
     ------------------------------------------------------- */

  .button {
    min-height: 46px;
    line-height: 1.3;
    text-align: center;
    justify-content: center;
  }

  .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
    font-size: .95rem;
  }


  /* -------------------------------------------------------
     HOMEPAGE CARDS
     ------------------------------------------------------- */

  .service-card,
  .project-card__body,
  .process-grid li {
    text-align: center;
  }

  .service-card a,
  .project-card__body a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }


  /* -------------------------------------------------------
     FOOTER
     ------------------------------------------------------- */

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .site-footer .brand--footer {
    justify-content: center;
  }

  .site-footer__description {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .footer-links,
  .site-footer .footer-contact {
    text-align: center;
  }

  .site-footer .footer-links li,
  .site-footer .footer-contact li {
    font-size: .95rem;
    line-height: 1.45;
  }

  .site-footer .footer-links a,
  .site-footer .footer-contact a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    gap: 8px 16px;
  }

  .footer-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
  }
}


@media (max-width: 420px) {

  .container {
    width: min(
      calc(100% - 24px),
      var(--rv-container)
    );
  }

  h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.65rem;
    line-height: 1.14;
  }

  h3 {
    font-size: 1.08rem;
    line-height: 1.25;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 36px;
  }

  .hero__actions,
  .final-cta__actions {
    width: 100%;
  }

  .hero__actions .button,
  .final-cta__actions .button {
    width: 100%;
  }

  .footer-legal-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}
