/* Xpert Facility Management – brand: navy #000422, coral #e65644 (from the original site) */
:root {
  --navy: #000422;
  --navy-2: #0b1033;
  --coral: #e65644;
  --coral-dark: #c94534;
  --ink: #141833;
  --muted: #5b5f78;
  --line: #e3e4ec;
  --tint: #f5f5f8;
  --blush: #fef2f0;
  --radius: 14px;
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
a:hover { color: var(--coral); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.strong { font-weight: 700; color: var(--navy); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blush); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--coral); background: var(--coral); color: #fff; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; margin-top: .6em; }

/* header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { width: 150px; height: auto; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: #d9dbea; text-decoration: none; font-weight: 600; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: #fff; border-bottom-color: var(--coral); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 20px 22px; gap: 14px; border-top: 1px solid rgba(255,255,255,.08); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.08); color: var(--coral); }
}

/* heroes */
.hero, .page-hero { position: relative; color: #fff; background: linear-gradient(100deg, rgba(0,4,34,.94) 0%, rgba(0,4,34,.82) 45%, rgba(0,4,34,.45) 100%), var(--bg) center / cover no-repeat, var(--navy); }
.hero { padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 8vw, 90px); }
.page-hero { padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.hero h1, .page-hero h1 { color: #fff; max-width: 17ch; }
.page-hero h1 { max-width: 22ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; color: #e7e8f2; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--coral); margin-bottom: .9em; }
.eyebrow.dark { color: var(--coral-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.pill-row li { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.hero-address { display: flex; gap: 8px; align-items: flex-start; color: #cfd1e2; font-size: .95rem; margin: 0; }
.hero-address svg { color: var(--coral); margin-top: .25em; }

/* sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head p:last-child { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: #343852; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 18px 40px -24px rgba(0,4,34,.45); }
.photo img { width: 100%; }
.photo .client-logo { padding: 36px; max-height: 260px; object-fit: contain; margin-inline: auto; }

/* estimate card */
.estimate-card { background: var(--navy); color: #e7e8f2; border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.estimate-card h3 { color: #fff; margin-top: 18px; }
.estimate-card p { color: #c7c9db; }
.estimate-card .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.estimate-card .btn-outline:hover { background: #fff; color: var(--navy); }
.big-phone { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: #fff; text-decoration: none; }
.big-phone svg { color: var(--coral); }
.big-phone:hover { color: var(--coral); }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 18px 36px -22px rgba(0,4,34,.35); color: var(--ink); }
.service-card .num { font-size: 1.6rem; font-weight: 800; color: var(--coral); line-height: 1; margin-bottom: 14px; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--coral-dark); }
.service-detail { scroll-margin-top: 80px; }
.list-title { margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { color: var(--coral); margin-top: .3em; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px 34px; }
.why-item { display: flex; gap: 14px; }
.why-item > svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--blush); color: var(--coral); }
.why-item p { color: var(--muted); font-size: .96rem; margin: 0; }
.why-item h3 { margin-bottom: .3em; }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(0,4,34,.45); color: var(--ink); }
.project-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .thumb img { transform: scale(1.04); }
.project-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--coral-dark) !important; margin-bottom: .6em; flex: none !important; }
.gallery-title, .related-title { margin-bottom: 22px; }
.related-title { margin-top: 56px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #fff; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.side { display: grid; gap: 18px; }
.quote-box { background: var(--navy); border-radius: var(--radius); padding: 24px; }
.why-box { background: var(--blush); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.why-box p { color: #3f4360; max-width: 75ch; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; }
.post-nav a { text-decoration: none; color: var(--navy); }
.post-nav a:hover { color: var(--coral); }

/* logos */
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.logo-grid li { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 16px; aspect-ratio: 3 / 2; }
.logo-grid img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-grid li:hover img { filter: none; opacity: 1; }

/* about */
.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); border-top: 4px solid var(--coral); box-shadow: 0 14px 32px -24px rgba(0,4,34,.4); }
.card.plain { border-top: 0; box-shadow: none; padding: 0; }
.card p { color: #3f4360; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.team-card { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.team-card img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.team-card figcaption { padding: 16px 20px 20px; }
.team-card h3 { margin-bottom: .15em; }
.team-card p { margin: 0; color: var(--coral-dark); font-weight: 600; font-size: .93rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { background: var(--tint); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.contact-card:hover { border-color: var(--coral); transform: translateY(-2px); color: var(--ink); }
.contact-card > svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; background: var(--coral); color: #fff; margin-bottom: 16px; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .3em; }
.contact-card p { margin: 0; color: var(--muted); }

/* cta */
.cta-band { background: var(--coral); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; color: #fff3f1; max-width: 60ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-2); }

/* footer */
.site-footer { background: var(--navy); color: #c7c9db; padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.3fr; gap: 34px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img { width: 150px; margin-bottom: 16px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #c7c9db; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #9a9db6; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list svg { color: var(--coral); margin-top: .3em; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0 26px; font-size: .88rem; color: #9a9db6; }
.footer-base p { margin: 0; }
.footer-base a { color: #fff; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
