/* Hail Services Group — brand tokens carried over from the Elementor build */
:root {
  --navy: #132E44;
  --blue: #679CAF;
  --blue-soft: rgba(103, 156, 175, 0.45);
  --text: #4C4C4C;
  --white: #FFFFFF;
  --off-white: #F7F6F7;
  --line: #D8D9D9;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --shadow: 0 12px 34px rgba(19, 46, 68, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.375rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.44rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--off-white); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.86); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.75rem;
}
.section--navy .eyebrow { color: var(--blue); }

.lede { font-size: 1.125rem; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #56889a; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #0d2233; }

.btn--ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--ghost:hover { background: var(--blue); color: var(--white); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--off-white); }

/* ---------- header ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  align-items: center;
  padding-block: 0.6rem;
}
.topbar a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar__social { margin-left: auto; display: flex; gap: 0.85rem; }
.topbar__social a { display: inline-flex; }
.topbar__social svg { width: 17px; height: 17px; fill: currentColor; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.85rem;
}
.masthead__logo img { width: 190px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: none;
}
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--white); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; fill: currentColor; }

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 0.9rem; text-align: center; border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--navy) 32%, rgba(19, 46, 68, 0.82) 55%, rgba(19, 46, 68, 0.55) 100%),
    url("../img/hero.webp") center / cover no-repeat;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 44rem; }
.hero h1 { color: var(--white); }
.hero p { font-size: 1.1875rem; margin-bottom: 2rem; }
.hero__shape {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero__shape--sun { width: 120px; top: 8%; right: 6%; }
.hero__shape--circle { width: 200px; bottom: -60px; right: 22%; opacity: 0.28; }
@media (max-width: 860px) { .hero__shape { display: none; } }

/* ---------- generic grid ---------- */
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- pillar cards ---------- */
.pillars { margin-top: -4rem; position: relative; z-index: 5; }
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.1rem 1.85rem;
  display: flex;
  flex-direction: column;
}
.pillar h3 { margin-bottom: 0.55rem; }
.pillar p { flex: 1; margin-bottom: 1.4rem; }
.pillar__link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
  text-decoration: none;
  align-self: flex-start;
}
.pillar__link:hover { text-decoration: underline; }
.pillar__link::after { content: " →"; }

/* ---------- split ---------- */
.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- reasons ---------- */
.reason {
  border-left: 3px solid var(--blue);
  padding: 0.15rem 0 0.15rem 1.4rem;
}
.reason h3 { margin-bottom: 0.35rem; }
.reason p { font-size: 1rem; }

/* ---------- tech cards ---------- */
.tech-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tech-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tech-card__body { padding: 1.6rem 1.5rem 1.9rem; }
.tech-card h3 { margin-bottom: 0.5rem; }
.tech-card p { font-size: 1rem; }

/* ---------- checklist ---------- */
.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.85rem; }
@media (min-width: 780px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 2.25rem; } }
.checklist li { position: relative; padding-left: 2rem; font-size: 1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

/* ---------- contact / form ---------- */
.contact { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .contact { grid-template-columns: 0.95fr 1.05fr; } }

.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.8rem 0.95rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 3px solid var(--blue-soft);
  outline-offset: 0;
  border-color: var(--blue);
}

/* honeypot — visually hidden, off-screen, not display:none so bots still fill it */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: 0.9375rem;
  padding: 0.85rem 1rem;
  border-radius: 9px;
  display: none;
}
.form__status.is-ok { display: block; background: #e8f2ee; color: #17603f; border: 1px solid #b7ddcb; }
.form__status.is-err { display: block; background: #fdecec; color: #8c2020; border: 1px solid #f2c2c2; }

.contact__details { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact__details li { display: flex; gap: 0.85rem; align-items: flex-start; }
.contact__details svg { width: 19px; height: 19px; fill: var(--blue); flex: none; margin-top: 0.28rem; }
.contact__details a { color: inherit; text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.footer h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 1.1rem;
}
.footer__grid { display: grid; gap: var(--gap); }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1.2fr 1.1fr; } }
.footer__logo { width: 180px; margin-bottom: 1.15rem; filter: brightness(0) invert(1); }
.footer p { font-size: 0.9375rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.9375rem; }
.footer a:hover { color: var(--white); text-decoration: underline; }

.social { display: flex; gap: 0.75rem; margin-top: 1.35rem; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social a:hover { background: var(--blue); }
.social svg { width: 16px; height: 16px; fill: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.gallery img { border-radius: 7px; aspect-ratio: 1; object-fit: cover; }

.footer__bar {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem;
  font-size: 0.875rem;
}

.skip {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
