/* =========================================================
   All Surface Pros — stylesheet
   Palette: deep navy ink + clean aqua spray + wash white
   Display: Archivo  |  Body: Manrope
   ========================================================= */

:root {
  --ink:        #0b2545;   /* deep navy */
  --ink-soft:   #1d3a5f;   /* lighter navy for panels */
  --aqua:       #14b3cf;   /* clean water accent */
  --aqua-deep:  #0e8fa6;   /* aqua pressed/hover */
  --aqua-tint:  #e4f5f8;   /* pale wash background */
  --paper:      #f7fafb;   /* page background */
  --white:      #ffffff;
  --slate:      #41566a;   /* body text */
  --slate-soft: #6b7e90;   /* muted text */
  --line:       #dde7ec;   /* hairline borders */

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 18px 40px -24px rgba(11, 37, 69, 0.45);
  --shadow-sm:  0 6px 18px -12px rgba(11, 37, 69, 0.4);

  --maxw: 1140px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aqua-deep);
  margin-bottom: 14px;
}

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--aqua);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--aqua-deep); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-soft); }

/* ----------  Header  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 60px;
  height: 60px;
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--aqua-deep); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.phone-link svg { color: var(--aqua-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* ----------  Hero  ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(20, 179, 207, 0.12), transparent 60%),
    var(--paper);
  padding: 70px 0 84px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy, .ba { min-width: 0; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  font-weight: 800;
}
.hero h1 .accent { color: var(--aqua-deep); }
.hero-sub {
  font-size: 1.13rem;
  color: var(--slate);
  margin: 22px 0 30px;
  max-width: 30em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-actions .btn-ghost { color: var(--ink); border-color: var(--line); }
.hero-actions .btn-ghost:hover { border-color: var(--aqua); color: var(--aqua-deep); }
.hero-note {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--slate-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { color: var(--aqua-deep); flex: none; }

/* ----------  Before / After signature panel  ---------- */
.ba {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  --pos: 50%;
}
.ba-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
}
/* clean "after" surface — bright, even concrete */
.ba-after {
  background-image: url("Media/after.jpg");
  background-size: cover;
  background-position: center;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background-image: url("Media/before.jpg");
  background-size: cover;
  background-position: center;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--white);
  transform: translateX(-1.5px);
  box-shadow: 0 0 0 1px rgba(11,37,69,0.08);
}
.ba-handle {
  position: absolute;
  top: 50%; left: var(--pos);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-tag {
  position: absolute;
  top: 16px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(11, 37, 69, 0.62);
  backdrop-filter: blur(2px);
}
.ba-tag.before { left: 16px; }
.ba-tag.after  { right: 16px; background: rgba(14, 143, 166, 0.85); }

/* ----------  Trust bar  ---------- */
.trust {
  background: var(--ink);
  color: rgba(255,255,255,0.92);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.trust-item svg { color: var(--aqua); flex: none; }

/* ----------  Section scaffolding  ---------- */
.section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--slate);
}

/* ----------  Services  ---------- */
.services { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--aqua-tint);
  color: var(--aqua-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-card p { font-size: 0.98rem; color: var(--slate); }

/* ----------  Process  ---------- */
.process { background: var(--aqua-tint); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--aqua);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { font-size: 0.98rem; color: var(--slate); }

/* ----------  Stats strip  ---------- */
.stats {
  background: var(--ink);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--aqua);
  letter-spacing: -0.02em;
}
.stat .label {
  margin-top: 4px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}

/* ----------  Quote / contact  ---------- */
.quote { background: var(--white); }
.quote-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.quote-copy, .quote-form { min-width: 0; }
.contact-list li { overflow-wrap: anywhere; }
.quote-copy h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 800; }
.quote-copy p { margin-top: 16px; font-size: 1.08rem; color: var(--slate); }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--ink);
}
.contact-list .ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--aqua-tint);
  color: var(--aqua-deep);
  display: grid; place-items: center;
  flex: none;
}

.quote-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(20, 179, 207, 0.18);
}
.field textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--aqua-tint);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.form-msg.show { display: block; }

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.18rem; color: var(--white);
  margin-bottom: 14px;
}
.footer-grid p { font-size: 0.96rem; max-width: 32ch; }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 0.95rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ----------  Mobile nav panel  ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  padding: 11px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn-primary { margin-top: 12px; justify-content: center; }
.footer-brand .mark {
  width: 40px;
  height: 40px;
  flex: none;
}

/* ----------  Responsive  ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .quote-inner { grid-template-columns: 1fr; gap: 40px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .nav, .header-cta .phone-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.open { display: flex; }
  .section { padding: 64px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; }

  /* Compact header so the logo, brand, and CTA fit on one line */
  .header-inner { height: 66px; }
  .brand { font-size: 1.05rem; gap: 9px; }
  .brand .mark { width: 40px; height: 40px; }
  .header-cta { gap: 10px; }
  .header-cta .btn-primary {
    padding: 9px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 0.98rem; white-space: nowrap; }
  .brand .mark { width: 38px; height: 38px; }
  .header-cta .btn-primary { padding: 8px 14px; font-size: 0.85rem; }
  /* Stack the hero buttons so each sits full-width on one line */
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; white-space: nowrap; }
}

@media (max-width: 374px) {
  /* Smallest phones: keep logo + name, move the quote CTA into the menu only */
  .header-cta .btn-primary { display: none; }
}

/* ----------  Accessibility  ---------- */
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }

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

/* ----------  Powered by Derby Proof  ---------- */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  transition: opacity 0.15s ease;
}
.powered-by img {
  height: 35px;
  width: auto;
}
.powered-by:hover { opacity: 0.8; }