:root{
  --bg: #F5F4F2;
  --panel: #FFFFFF;
  --ink: #211F1B;
  --muted: #6B685F;
  --blue: #3f699a;
  --blue-dark: #183457;
  --blue-tint: #e4e5eb;
  --clay: #9c3434;
  --line: #DCD7C9;
  --radius: 3px;
  --maxw: 1100px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wordmark, .hero-location{
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}
a{ color: inherit; }
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
section{ padding: 96px 0; }
@media (max-width: 720px){
  section{ padding: 64px 0; }
  .wrap{ padding: 0 22px; }
}

/* ---------- Buttons & links ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .18s ease;
}
.btn:hover{ background: var(--blue-dark); }
.btn.ghost{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.ghost:hover{ background: var(--ink); color: var(--bg); }
.btn.light{
  background: #fff;
  color: var(--blue-dark);
}
.btn.light:hover{ background: var(--blue-tint); }
.btn.block{
  width: 100%;
  justify-content: center;
}
.btn.ghost-on-dark{
  border-color: #F2F1EB;
  color: #F2F1EB;
}

/* ---------- Header ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blue-dark);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand{ display:flex; align-items:center; gap: 12px; text-decoration:none; }
.brand-logo{
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.brand-mark{ width: 30px; height: 30px; flex-shrink:0; }
.brand-text{ line-height: 1.1; }
.brand-text .name{ font-weight: 800; font-size: 16px; letter-spacing: 0.3px; color: #F2F1EB; }
.brand-text .sub{ font-family: var(--font-body); font-size: 11.5px; color: rgba(242,241,235,0.65); }
header .call{
  color: #F2F1EB;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue);
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-grid{
  position:absolute;
  inset:0;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-content{
  position: relative;
  max-width: 640px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise .7s ease forwards .1s;
}
@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }
.eyebrow-mark{ display:flex; align-items:center; gap:10px; margin-bottom: 22px; }
.eyebrow-mark svg{ width: 22px; height: 22px; }
.eyebrow-mark span{ font-size: 13.5px; color: var(--blue-dark); font-weight: 600; }
.hero h1{
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.04;
}
.hero-location{
  font-size: 1.5em;
  font-weight: 700;
}
.hero .tagline{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--blue-dark);
  margin-top: 20px;
}
.hero p.statement{
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions{
  margin-top: 34px;
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-actions .phone-link{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.15;
  text-decoration:none;
  color: var(--ink);
  border-bottom: 1.5px solid var(--clay);
  padding-bottom: 3px;
}
.hero-actions .phone-link .phone-sub{
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Services ---------- */
.services-head{ max-width: 560px; margin-bottom: 44px; }
.services-head h2{ font-size: 30px; font-weight: 800; }
.services-head p{ color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.service-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-row{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.service-list .service-row:nth-last-child(1),
.service-list .service-row:nth-last-child(2){
  border-bottom: 1px solid var(--line);
}
.service-mark{
  width: 8px; height: 8px;
  background: var(--blue);
  flex-shrink: 0;
  transform: rotate(45deg);
}
.service-row span{ font-family: var(--font-display); font-weight: 600; font-size: 16.5px; }
@media (max-width: 640px){
  .service-list{ grid-template-columns: 1fr; }
  .service-list .service-row:nth-last-child(2){ border-bottom: 1px solid var(--line); }
}

/* ---------- Before / After gallery ---------- */
.gallery{ background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-note{ font-size: 13.5px; color: var(--clay); margin-top: 12px; font-style: italic; }
.carousel{
  position: relative;
}
.carousel:focus{ outline: none; }
.carousel:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}
.carousel-stage{
  position: relative;
}
.carousel-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
}
.carousel-viewport::-webkit-scrollbar{ display: none; }
.carousel-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 56px;
}
.carousel-slide .gallery-card{
  max-width: 720px;
  margin: 0 auto;
}
.ba-pair{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-pair figure{ margin: 0; position: relative; }
.ba-pair img,
.ba-placeholder{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--blue-tint),
      var(--blue-tint) 12px,
      #d9dbe3 12px,
      #d9dbe3 24px
    );
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 16px;
}
.ba-pair figcaption{
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28,44,69,0.72);
  padding: 4px 9px;
  border-radius: 2px;
}
.gallery-caption{
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.gallery-caption .edit-hint{
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.carousel-btn{
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(33,31,27,0.08);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.carousel-btn:hover,
.carousel-btn:focus-visible{
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  outline: none;
}
.carousel-btn.prev{ left: 0; }
.carousel-btn.next{ right: 0; }
.carousel-btn svg{ width: 18px; height: 18px; display: block; }
.carousel-dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: width .18s ease, background .18s ease, border-radius .18s ease;
}
.carousel-dot[aria-current="true"]{
  width: 22px;
  border-radius: 4px;
  background: var(--blue);
}
.carousel-dot:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
@media (max-width: 640px){
  .carousel-slide{ padding: 0 40px; }
  .carousel-btn{ width: 36px; height: 36px; }
  .carousel-btn svg{ width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce){
  .carousel-viewport{ scroll-behavior: auto; }
}

/* ---------- Why Apex ---------- */
.why{ background: var(--blue-tint); }
.why-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why h2{ font-size: 30px; font-weight: 800; margin-bottom: 20px; }
.why p{ color: var(--ink); font-size: 16px; max-width: 480px; }
.why-points{ display:flex; flex-direction:column; gap: 28px; }
.why-point .label{ font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--blue-dark); }
.why-point .desc{ font-size: 14.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 780px){
  .why-grid{ grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Quote form ---------- */
.quote-inner{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.quote-copy h2{ font-size: 30px; font-weight: 800; }
.quote-copy p{ color: var(--muted); margin-top: 14px; font-size: 15.5px; max-width: 400px; }
form.quote-form{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .opt{ color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea{
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFAF7;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  background: #fff;
}
.field textarea{ resize: vertical; min-height: 96px; }
.row-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note{ font-size: 12.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 780px){
  .quote-inner{ grid-template-columns: 1fr; gap: 32px; }
  .row-2{ grid-template-columns: 1fr; }
}

/* ---------- Footer / contact band ---------- */
footer{
  background: var(--blue-dark);
  color: #F2F1EB;
  padding: 72px 0 40px;
}
.footer-top{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(242,241,235,0.18);
}
footer .brand-text .name{ color: #F2F1EB; }
footer .brand-text .sub{ color: rgba(242,241,235,0.65); }
.footer-contact{ font-size: 15px; }
.footer-contact .phone{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-decoration:none;
  color: #F2F1EB;
  display:block;
  margin-bottom: 6px;
}
.footer-contact .area{ color: rgba(242,241,235,0.72); font-size: 14px; }
.footer-actions{ display:flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(242,241,235,0.55);
}
