/* R&E Facility Solutions — site styles. Palette taken from the R&E logo: navy, brand blue, silver. */
:root {
  --night: #00234F;        /* logo navy */
  --night-2: #0A3166;
  --night-line: #1C4275;
  --deep: #001A3D;
  --ink: #10213B;
  --ink-2: #33415A;
  --steel: #555C66;        /* logo gray */
  --silver: #A3A8AF;       /* logo silver */
  --line: #D7DDE5;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --brand: #0C72C6;        /* logo blue */
  --brand-hover: #095FA6;
  --brand-sky: #6FB3F2;    /* brand blue, lifted for dark backgrounds */
  --brand-tint: #E6F1FB;
  --link: #0B63AD;
  --on-dark: #DCE6F2;
  --on-dark-2: #BFCDE0;
  --radius-s: 6px;
  --radius-m: 10px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
.hero :focus-visible, .quote :focus-visible, .site-footer :focus-visible,
.aside-box :focus-visible, .mobile-bar :focus-visible { outline-color: var(--brand-sky); }
.cta-band :focus-visible { outline-color: #fff; }

h1, h2, h3 {
  font-stretch: 87%;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  font-weight: 750;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 780; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: 1.2rem; font-stretch: 95%; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }
.muted { color: var(--steel); }
.hidden { display: none; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 14px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--radius-s); border: 2px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost-dark { border-color: #4A6C9C; color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; }
.btn-ghost { border-color: var(--night); color: var(--night); }
.btn-ghost:hover { background: var(--night); color: #fff; }
.btn-white { background: #fff; color: var(--night); }
.btn-white:hover { background: var(--brand-tint); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* Header (white, so the full-color logo reads properly) */
.site-header {
  background: var(--white); color: var(--ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--night); }
.brand .mark { height: 54px; width: auto; flex: none; }
.brand-text {
  display: flex; flex-direction: column;
  font-weight: 760; font-size: .86rem; line-height: 1.12; letter-spacing: .09em; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink-2); text-decoration: none; font-size: .97rem; font-weight: 500; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] {
  color: var(--night); text-decoration: underline; text-decoration-color: var(--brand);
  text-decoration-thickness: 2px; text-underline-offset: .45em;
}
.nav-phone { color: var(--night); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
    background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    color: var(--night); font: inherit; font-weight: 600; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: -20px; right: -20px; top: 100%;
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 6px 20px 22px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0, 35, 79, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-phone { padding: 4px 0; font-size: 1.05rem; }
  .site-nav .btn { min-height: 48px; }
}
@media (max-width: 380px) { .brand .mark { height: 42px; } .brand-text { font-size: .78rem; } }

/* Mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--night); border-top: 1px solid var(--night-line);
  }
  .mobile-bar .btn { min-height: 46px; padding: 0 10px; font-size: .97rem; }
}

/* Home hero */
.hero { background: var(--night); color: #fff; padding: 64px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .h1-sub {
  display: block; margin-bottom: 14px;
  font-size: clamp(1rem, .9rem + .4vw, 1.2rem); font-weight: 600; font-stretch: 100%;
  letter-spacing: 0; line-height: 1.35; color: var(--brand-sky);
}
.hero h1 .h1-main { display: block; max-width: 15ch; }
.hero .lede { font-size: 1.15rem; color: var(--on-dark-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 28px; }
.trust {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px;
  color: var(--on-dark); font-size: .98rem;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--brand-sky); flex: none; }
@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* The nightly checklist card */
.log {
  position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: end;
  background: #FBFCFE; color: var(--ink);
  border-radius: var(--radius-m); padding: 26px 22px 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
  transform: rotate(1.2deg);
}
.log::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 26px; border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #C3C7CD, var(--silver)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14);
}
.log-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--night); padding-bottom: 10px; margin-bottom: 4px;
}
.log-title { font-weight: 780; font-stretch: 87%; font-size: 1.25rem; color: var(--night); }
.log-meta { color: var(--steel); font-size: .88rem; }
.log-rows { list-style: none; margin: 0; padding: 0; }
.log-rows li {
  display: grid; grid-template-columns: 4.4em 1fr 22px; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; line-height: 1.35;
}
.log-time { color: var(--steel); font-size: .84rem; font-variant-numeric: tabular-nums; }
.log-check {
  position: relative; width: 22px; height: 22px; border: 2px solid var(--night); border-radius: 4px;
  animation: tick .3s ease-out both; animation-delay: calc(.5s + var(--i) * .22s);
}
.log-check::after {
  content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  animation: tickmark .25s ease-out both; animation-delay: calc(.6s + var(--i) * .22s);
}
@keyframes tick { from { background: transparent; } to { background: var(--brand); border-color: var(--brand); } }
@keyframes tickmark { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
.log-sign { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; color: var(--steel); font-size: .9rem; }
.log-initials { font-weight: 800; font-stretch: 75%; font-size: 1.35rem; color: var(--night); transform: rotate(-5deg); }
.log figcaption { margin-top: 10px; font-size: .8rem; color: var(--steel); }
@media (max-width: 920px) { .log { justify-self: start; transform: rotate(.8deg); } }
@media (prefers-reduced-motion: reduce) {
  .log-check, .log-check::after { animation-duration: 0s; animation-delay: 0s; }
}

/* Sections */
.section { padding: 76px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head p { color: var(--steel); font-size: 1.08rem; margin: 0; }
.section-foot { margin-top: 32px; }
@media (max-width: 720px) { .section { padding: 54px 0; } }

/* Service list (home + hub) */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; list-style: none; margin: 0; padding: 0; }
.svc-list li { border-top: 1px solid var(--line); }
.svc-list a { display: block; padding: 22px 0 26px; color: inherit; text-decoration: none; }
.svc-list h3 { margin: 0 0 6px; color: var(--night); }
.svc-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: .22em; }
.svc-list p { margin: 0; color: var(--steel); }
.svc-list .more { display: inline-block; margin-top: 10px; color: var(--link); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--night); padding-top: 20px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}
.steps p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why h3 { color: var(--night); }
.why p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.area h3 a { color: var(--night); }
.area p { color: var(--steel); font-size: .98rem; }
@media (max-width: 820px) { .areas { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--night);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border: solid var(--brand); border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Quote / contact block */
.quote { background: var(--night); color: #fff; padding: 76px 0; }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.quote h2 { color: #fff; }
.quote p { color: var(--on-dark-2); }
.quote .btn { margin-top: 6px; }
.contact-lines { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; color: var(--on-dark); }
.contact-lines a { color: #fff; font-weight: 600; }
@media (max-width: 920px) { .quote { padding: 54px 0; } .quote-grid { grid-template-columns: 1fr; gap: 36px; } }

.form { background: #fff; color: var(--ink); border-radius: var(--radius-m); padding: 28px; }
.form h3 { margin-bottom: 18px; color: var(--night); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #B3BECC; border-radius: var(--radius-s);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { margin: 12px 0 0; font-size: .86rem; color: var(--steel) !important; }
@media (max-width: 520px) { .form { padding: 20px; } .form .row { grid-template-columns: 1fr; gap: 0; } }

/* Inner page head */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 36px 0 48px; }
.crumbs { margin-bottom: 20px; font-size: .9rem; color: var(--steel); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--silver); }
.crumbs a { color: var(--steel); }
.page-head h1 { max-width: 22ch; color: var(--night); }
.page-head .lede { max-width: 64ch; font-size: 1.15rem; color: var(--ink-2); margin-bottom: 0; }
.page-head .lede + .lede { margin-top: 1em; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Content with sidebar */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding-top: 60px; padding-bottom: 76px; }
.block { margin-bottom: 52px; }
.block:last-child { margin-bottom: 0; }
.block h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); color: var(--night); }
.block > p, .block > ul:not(.checklist):not(.related):not(.cities-list) { max-width: 68ch; }
.block .note { color: var(--steel); font-size: .96rem; margin-top: 16px; }
.aside-box { position: sticky; top: 96px; background: var(--night); color: #fff; border-radius: var(--radius-m); padding: 26px 24px; }
.aside-box h2 { color: #fff; font-size: 1.35rem; }
.aside-box p { color: var(--on-dark-2); font-size: .98rem; }
.aside-box .btn { width: 100%; margin-top: 10px; }
.aside-box ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--night-line); display: grid; gap: 8px; font-size: .95rem; color: var(--on-dark); }
.aside-box ul li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: var(--brand-sky); vertical-align: middle; }
@media (max-width: 1020px) { .content-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; } .aside-box { position: static; } }

/* Checklists */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 4px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.6l3 3 6.6-7' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

.plain-list { padding-left: 1.2em; }
.plain-list li { margin-bottom: 8px; }

.related { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.related a {
  display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--night); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.related a:hover { border-color: var(--brand); color: var(--brand); }

.cities-list { columns: 3 150px; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.cities-list li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--line); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; padding: 46px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2rem); max-width: 26ch; }
.cta-band p { margin: 0; max-width: 56ch; color: #EAF3FC; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: var(--deep); color: #B6C4D6; padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--brand-sky); font-weight: 600; letter-spacing: .04em; margin: 0 0 14px; }
.site-footer h2 { color: #fff; font-size: 1rem; font-stretch: 95%; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; display: grid; gap: 6px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1A3559; font-size: .88rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Simple pages (thank you / 404) */
.simple { padding: 90px 0; }
.simple .prose { max-width: 56ch; }

/* Room for the fixed mobile action bar (kept last so it wins) */
@media (max-width: 720px) { .site-footer { padding-bottom: 112px; } }
