/* ==========================================================================
   AVision Group — Design System
   Concept: architectural spec-sheet / blueprint. Title-block chrome,
   trade-schedule tables instead of icon cards, hairline rules, and a
   hazard-amber accent reserved for urgent/emergency content only.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --charcoal: #1B1F1D;
  --charcoal-soft: #2A2F2C;
  --stone: #E9E4D8;
  --stone-line: #C9C2AE;
  --paper: #FBF9F5;
  --hazard: #F2A31D;
  --hazard-dark: #B87613;
  --blueprint: #2C4A52;
  --ink: #23281F;
  --ink-soft: #5B5F57;
  --white: #FFFFFF;

  --display: 'Oswald', sans-serif;
  --body: 'Source Sans 3', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--display); margin:0; letter-spacing:.01em; }
p{ margin:0; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.mono{ font-family: var(--mono); }
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:18px; height:1px;
  background: var(--hazard-dark);
  display:inline-block;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--blueprint);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Title-block header (signature motif #1) ---------- */
.titlebar{
  background: var(--charcoal);
  color: var(--stone);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.titlebar .wrap{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 7px 28px;
  flex-wrap: wrap;
  gap: 6px;
}
.titlebar span{ opacity:.75; text-transform: uppercase; }
.titlebar .hz{ color: var(--hazard); opacity:1; }

header.site{
  background: var(--paper);
  border-bottom: 1px solid var(--stone-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight:600;
  letter-spacing: .02em;
}
.brand .mark{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white);
  background: var(--blueprint);
  padding: 3px 6px;
  letter-spacing: .05em;
}
.brand img.logo{
  height: 42px;
  width: auto;
  display:block;
}
.navlinks{
  display:flex;
  gap: 32px;
  align-items:center;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.navlinks a{
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.navlinks a:hover, .navlinks a[aria-current="page"]{
  border-color: var(--hazard-dark);
}
.nav-emergency{
  display:flex; align-items:center; gap:8px;
  background: var(--charcoal); color: var(--paper);
  padding: 9px 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .05em;
  border-left: 3px solid var(--hazard);
}
.nav-emergency b{ color: var(--hazard); }

.menu-toggle{
  display:none;
  background:none; border:1px solid var(--ink); padding:8px 10px;
  font-family: var(--mono); font-size: 12px; cursor:pointer;
}

/* ---------- Crop-mark frame (signature motif #2) ---------- */
.framed{
  position:relative;
  border: 1px solid var(--stone-line);
}
.framed::before, .framed::after,
.framed .cm-br, .framed .cm-bl{
  content:"";
  position:absolute;
  width: 16px; height:16px;
  border-color: var(--hazard-dark);
  border-style: solid;
  border-width: 0;
}
.framed::before{ top:-1px; left:-1px; border-top-width:2px; border-left-width:2px; }
.framed::after{ top:-1px; right:-1px; border-top-width:2px; border-right-width:2px; }
.framed .cm-bl{ bottom:-1px; left:-1px; border-bottom-width:2px; border-left-width:2px; }
.framed .cm-br{ bottom:-1px; right:-1px; border-bottom-width:2px; border-right-width:2px; }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  background:
    linear-gradient(180deg, rgba(233,228,216,.94), rgba(233,228,216,.86)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(44,74,82,.08) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(44,74,82,.08) 40px);
  padding: 80px 0 60px;
  overflow:hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: .98;
  text-transform: uppercase;
  color: var(--charcoal);
}
.hero h1 em{
  font-style: normal;
  color: var(--blueprint);
}
.hero .lede{
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .ctas{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }
.hero .figure{
  position:relative;
}
.figure img{ width:100%; height: 420px; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.tag-rotate{
  position:absolute;
  top: 50%; right:-34px;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space:nowrap;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--charcoal);
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn-primary{ background: var(--charcoal); color: var(--paper); }
.btn-primary:hover{ background: var(--blueprint); border-color: var(--blueprint); }
.btn-ghost{ background: transparent; color: var(--charcoal); }
.btn-ghost:hover{ background: var(--charcoal); color: var(--paper); }
.btn-hazard{ background: var(--hazard); border-color: var(--hazard-dark); color: var(--charcoal); font-weight:600; }
.btn-hazard:hover{ background: var(--hazard-dark); color: var(--paper); }

/* ---------- Section chrome ---------- */
section{ padding: 88px 0; }
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--stone-line);
  padding-bottom: 20px;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 42px);
  text-transform: uppercase;
  color: var(--charcoal);
}
.section-head .fig{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  text-align:right;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.on-dark{ background: var(--charcoal); color: var(--stone); }
.on-dark .section-head{ border-color: rgba(233,228,216,.2); }
.on-dark .section-head h2{ color: var(--paper); }
.on-dark .eyebrow{ color: var(--stone); opacity:.7;}

/* ---------- Trade schedule (services table) ---------- */
.schedule{ width:100%; border-collapse: collapse; }
.schedule thead th{
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align:left;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--stone-line);
  padding: 0 16px 12px;
}
.schedule tbody tr{
  border-bottom: 1px solid var(--stone-line);
  transition: background .15s ease;
}
.schedule tbody tr:hover{ background: rgba(44,74,82,.05); }
.schedule td{ padding: 22px 16px; vertical-align: top; }
.schedule .code{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--white);
  background: var(--blueprint);
  padding: 4px 8px;
  white-space:nowrap;
}
.schedule .code.x{ background: var(--hazard); color: var(--charcoal); font-weight:600; }
.schedule .svc-name{ font-family: var(--display); font-size: 19px; font-weight:500; }
.schedule .svc-desc{ color: var(--ink-soft); font-size: 15px; max-width: 46ch; }
.schedule .go{ text-align:right; white-space:nowrap; font-family: var(--mono); font-size:12px; text-transform:uppercase; color: var(--blueprint); }
.schedule tbody tr:hover .go{ color: var(--hazard-dark); }
.schedule-no-ref thead th{ text-align:center; }
.schedule-no-ref .svc-name{ text-align:center; }
.schedule-no-ref .svc-desc{ text-align:center; margin:0 auto; }
.schedule-no-ref .go{ text-align:center; }

/* ---------- Emergency band ---------- */
.emergency-band{
  position:relative;
  background: var(--charcoal);
  color: var(--paper);
  padding: 46px 0;
  overflow:hidden;
}
.emergency-band::before{
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 18px, var(--charcoal) 18px 36px);
  opacity: .12;
}
.emergency-band .wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap:wrap;
}
.emergency-band .txt .eyebrow{ color: var(--hazard); opacity:1; }
.emergency-band h3{
  font-size: clamp(22px, 3vw, 32px);
  text-transform:uppercase;
  margin-top:6px;
}
.emergency-band .phone{
  font-family: var(--mono);
  font-size: 22px;
  border: 1px solid rgba(251,249,245,.3);
  padding: 12px 20px;
}

/* ---------- Stats row ---------- */
.stats{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--stone-line); border:1px solid var(--stone-line); }
.stat{ background: var(--paper); padding: 28px 22px; }
.stat .num{ font-family: var(--display); font-size: 40px; color: var(--blueprint); }
.stat .lbl{ font-family: var(--mono); font-size: 12px; text-transform:uppercase; letter-spacing:.05em; color: var(--ink-soft); margin-top:6px; }

/* ---------- Cards (values/team) ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items:center; }
.card{ background: var(--paper); border:1px solid var(--stone-line); padding: 28px; }
.card .num{ font-family: var(--mono); font-size:12px; color: var(--hazard-dark); }
.card h4{ font-size: 20px; margin: 10px 0 10px; text-transform:uppercase;}
.card p{ color: var(--ink-soft); font-size:15px; line-height:1.6; }

/* ---------- Margin annotation strip ---------- */
.strip{
  display:flex; align-items:center; gap: 18px;
  font-family: var(--mono); font-size: 11px; text-transform:uppercase; letter-spacing:.1em;
  color: var(--ink-soft);
  padding: 14px 0;
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  flex-wrap: wrap;
}
.strip span::after{ content: "·"; margin-left:18px; color: var(--stone-line); }
.strip span:last-child::after{ content:""; }

/* ---------- Footer ---------- */
footer.site{ background: var(--charcoal); color: var(--stone); padding: 56px 0 0; }
.foot-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(233,228,216,.15); }
footer.site h5{ font-family: var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:.08em; color: var(--hazard); margin-bottom: 16px; }
footer.site a{ display:block; color: var(--stone); opacity:.8; padding: 5px 0; font-size:14px; }
footer.site a:hover{ opacity:1; color: var(--hazard); }
.foot-bottom{ display:flex; justify-content:space-between; padding: 18px 0; font-family: var(--mono); font-size:11px; opacity:.6; flex-wrap:wrap; gap:8px; }

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:18px; }
.field.full{ grid-column: 1 / -1; }
label{ font-family: var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); }
input, textarea, select{
  font-family: var(--body); font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--stone-line);
  background: var(--paper);
  color: var(--ink);
}
textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-family: var(--mono); font-size: 12px; color: var(--ink-soft); margin-top: 14px; }
.form-success{ display:none; background: var(--blueprint); color:var(--paper); padding: 16px 18px; font-family: var(--mono); font-size: 13px; margin-top: 18px; }

/* ---------- Page header (interior pages) ---------- */
.page-head{
  background: var(--stone);
  border-bottom: 1px solid var(--stone-line);
  padding: 56px 0 44px;
}
.page-head h1{ font-size: clamp(32px,4.4vw,52px); text-transform:uppercase; color: var(--charcoal); }
.page-head .lede{ margin-top:14px; max-width:60ch; color: var(--ink-soft); font-size:17px; line-height:1.6; }
.breadcrumb{ font-family: var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); margin-bottom:16px; }
.breadcrumb a:hover{ color: var(--blueprint); }

/* Service detail rows on services page */
.service-detail{ padding: 56px 0; border-bottom: 1px solid var(--stone-line); }
.service-detail .wrap{ display:grid; grid-template-columns: 1fr 280px; gap: 40px; }
.service-detail h3{ font-size: 26px; text-transform: uppercase; margin-bottom: 12px; text-align:center; }
.service-detail p{ color: var(--ink-soft); line-height:1.65; margin-bottom: 14px; text-align:center; }
.service-detail ul{ margin:0; padding:0; color: var(--ink-soft); list-style:none; text-align:center; }
.service-detail li{ margin-bottom:6px; }
.service-detail .thumb img{ width:100%; height: 190px; object-fit:cover; }
.svc-icon{
  width:100%; height:190px;
  background: var(--stone);
  border: 1px solid var(--stone-line);
  display:flex; align-items:center; justify-content:center;
}
.svc-icon svg{ width:64px; height:64px; stroke: var(--blueprint); }
.svc-icon.x-icon{ background: var(--charcoal); }
.svc-icon.x-icon svg{ stroke: var(--hazard); }

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero .figure{ order:-1; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .foot-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .service-detail .wrap{ grid-template-columns: 1fr; }
  .navlinks{ display:none; }
  .menu-toggle{ display:block; }
  .nav-emergency span.long{ display:none; }
  .schedule .svc-desc{ display:none; }
}
@media (max-width: 900px){
  body.menu-open .navlinks{
    display:flex; flex-direction:column; gap:0;
    position:absolute; top:100%; left:0; right:0;
    background: var(--paper); border-bottom:1px solid var(--stone-line);
    padding: 8px 28px 18px;
  }
  body.menu-open .navlinks a{ padding: 12px 0; border-bottom:1px solid var(--stone-line); }
}
