/* =========================================================
   Alsey Group — site styles
   Brand palette: Navy #1B2A4A · Steel Blue #5A7A9E ·
   Light Steel #7A9CC6 · Pale Blue #EEF2F7
   ========================================================= */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --navy: #1B2A4A;
  --steel: #5A7A9E;
  --light-steel: #7A9CC6;
  --pale: #EEF2F7;
  /* supporting */
  --navy-deep: #121D35;
  --text: #33425E;
  --muted: #4A5873;
  --on-navy: #DCE3EE;
  --on-navy-muted: #A9B6CC;
  --line: #D6DFEA;
  --white: #FFFFFF;
  --todo: #FFE8A3;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1264px;
  --gutter: clamp(20px, 5vw, 88px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 88px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--pale);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.625rem); line-height: 1.04; }
h3 { font-size: clamp(1.1875rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--light-steel); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }

.lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--text); max-width: 34em; }
.section--navy .lede { color: var(--on-navy); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--white); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 16px; }

/* Placeholder copy still to be supplied — remove class once filled in */
.todo { background: var(--todo); color: var(--navy); padding: 0 4px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--steel { background: var(--light-steel); color: var(--navy); }
.btn--steel:hover { background: #93B0D3; }
.btn--ghost-light { border-color: var(--white); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--pale); }
.btn--block { width: 100%; }

.text-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--steel); padding-bottom: 4px; }
.text-link:hover { border-color: var(--navy); }

/* ---------- Icon frame (the logo's rounded square) ---------- */
.mark {
  flex-shrink: 0; display: grid; place-items: center;
  width: 52px; height: 52px; border: 2px solid currentColor; border-radius: 9px;
}
.mark svg { width: 26px; height: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; z-index: 20; top: 24px; left: 0; right: 0;
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); border-radius: var(--radius); padding: 14px 16px 14px 24px;
  box-shadow: 0 10px 30px rgba(18, 29, 53, .18);
}
.site-header__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-weight: 500; padding-block: 8px; }
.nav__links a:hover { color: var(--steel); }
.nav__toggle { display: none; }

@media (max-width: 1120px) {
  .site-header { position: relative; top: 0; }
  .site-header .container { padding-inline: 0; }
  .site-header__bar { border-radius: 0; padding: 10px 16px; box-shadow: none; border-bottom: 1px solid var(--line); }
  .site-header__logo img { height: 40px; }
  .nav__toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    border: 1px solid var(--light-steel); border-radius: 8px; background: var(--white); cursor: pointer;
  }
  .nav__call { display: none; }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18, 29, 53, .15);
    padding: 8px 16px 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--pale); font-size: 1.125rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--white); padding: 184px 0 96px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Navy overlay, stronger on the left where the headline sits. Tune once the real photo is in. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(27,42,74,.92) 0%, rgba(27,42,74,.78) 45%, rgba(27,42,74,.45) 100%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; padding-top: 32px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: .98; letter-spacing: -0.03em; font-weight: 800; max-width: 9em; }
.hero__sub { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--on-navy); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; color: var(--on-navy); font-size: .9375rem; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; color: var(--light-steel); flex-shrink: 0; }

@media (max-width: 1120px) { .hero { padding-top: 56px; } }
@media (max-width: 900px) {
  .hero { padding: 44px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { padding-top: 0; gap: 20px; }
  .hero__media::after { background: rgba(27,42,74,.82); }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); color: var(--navy); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 24px 60px rgba(9, 15, 30, .28);
}
.form-card__title { font-size: clamp(1.75rem, 2.4vw, 2.125rem); letter-spacing: -0.02em; }
.form-card__intro { color: var(--muted); font-size: 1rem; line-height: 1.5; margin-top: -8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .fieldset legend { font-size: .875rem; font-weight: 600; }
.field .req { color: var(--steel); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem;
  border: 1px solid var(--light-steel); border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(122,156,198,.45); outline-offset: 0; border-color: var(--steel); }
.field ::placeholder { color: #8391A8; }
.form-note { font-size: .8125rem; line-height: 1.5; color: var(--muted); text-align: center; }
.form-note a { font-weight: 600; }
.hp { display: none; }

.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset legend { padding: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--light-steel); border-radius: 999px; font-size: .9375rem; font-weight: 500;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--light-steel); outline-offset: 2px; }

@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding-block: 40px; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.trust__item { display: flex; gap: 16px; align-items: flex-start; }
.trust__item .mark { color: var(--steel); width: 44px; height: 44px; border-radius: 8px; }
.trust__item .mark svg { width: 22px; height: 22px; }
.trust__item strong { display: block; font-size: 1.0625rem; line-height: 1.3; }
.trust__item span { font-size: .9375rem; color: var(--muted); }
@media (max-width: 1000px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust { padding-block: 28px; } .trust__list { gap: 22px 14px; } .trust__item { flex-direction: column; gap: 10px; } }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 20px; max-width: 700px; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); }
.why__intro { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.why__list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.why__item { display: flex; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.why__icon { flex-shrink: 0; width: clamp(96px, 11vw, 150px); background: var(--navy); color: var(--light-steel); display: grid; place-items: center; }
.why__icon .mark { width: 64px; height: 64px; border-radius: 12px; }
.why__icon .mark svg { width: 30px; height: 30px; }
.why__body { padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.why__body p { color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .why__item { align-items: flex-start; gap: 16px; padding: 20px; }
  .why__icon { width: auto; background: none; color: var(--steel); }
  .why__icon .mark { width: 48px; height: 48px; border-radius: 9px; }
  .why__icon .mark svg { width: 24px; height: 24px; }
  .why__body { padding: 0; }
}

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.service { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); }
.service img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: #DCE4EF; }
.service__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.service__body p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.services__cta { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.services__cta p { color: var(--muted); }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; gap: 0; }
  .service { flex-direction: row; align-items: center; gap: 16px; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0; }
  .service:last-child { border-bottom: 1px solid var(--line); }
  .service img { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 8px; flex-shrink: 0; }
  .service__body { padding: 0; gap: 4px; }
  .service__body h3 { font-size: 1.0625rem; }
  .service__body p { font-size: .9375rem; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.step__num {
  width: 56px; height: 56px; border-radius: 10px; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.375rem;
}
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 480px) {
  .step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .step__num { width: 42px; height: 42px; font-size: 1.0625rem; border-radius: 8px; flex-shrink: 0; }
  .step > div { display: flex; flex-direction: column; gap: 6px; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__photo { border-radius: var(--radius); aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: #DCE4EF; }
.about__copy { display: flex; flex-direction: column; gap: 22px; }
.about__copy p { color: var(--text); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.quote { margin: 8px 0 0; background: var(--pale); border-radius: var(--radius); padding: 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.quote p { font-size: 1.125rem; line-height: 1.5; font-style: italic; color: var(--navy); }
.quote footer { font-size: .9375rem; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3; max-height: 420px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); }
.faq__intro { display: flex; flex-direction: column; gap: 22px; }
.faq__intro a { font-weight: 700; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex-shrink: 0; width: 22px; height: 22px; color: var(--steel); transition: transform .2s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--text); max-width: 44em; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .faq summary { padding: 18px 20px; } .faq details p { padding: 0 20px 20px; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); }
.contact__intro { display: flex; flex-direction: column; gap: 26px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; margin: 8px 0 0; }
.contact__details dt { font-size: .875rem; color: var(--on-navy-muted); }
.contact__details dd { margin: 2px 0 0; font-size: 1.1875rem; font-weight: 600; }
.contact__details a { text-decoration: none; }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__phone { font-size: 1.625rem !important; font-weight: 700 !important; }
.contact .form-card { box-shadow: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 56px 0 40px; font-size: .9375rem; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px 40px; padding-bottom: 36px; }
.site-footer__top img { height: 46px; width: auto; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__phone { font-size: 1.125rem; font-weight: 700; color: var(--white); }
.site-footer__legal { border-top: 1px solid #2C3D5E; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; color: var(--on-navy-muted); font-size: .875rem; line-height: 1.6; }
.site-footer__legal p + p { margin-top: 4px; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: flex; gap: 10px; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27,42,74,.12);
  }
  .action-bar .btn { min-height: 50px; padding: 0 14px; font-size: 1rem; }
  .action-bar .btn--ghost { flex: 1; }
  .action-bar .btn--navy { flex: 2; }
  .action-bar svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Simple pages (thanks, 404, privacy) ---------- */
.simple-header { background: var(--white); border-bottom: 1px solid var(--line); }
.simple-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; }
.simple-header img { height: 44px; width: auto; }
.simple-main { padding-block: clamp(56px, 9vw, 120px); }
.simple-main .panel { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px); max-width: 760px; }
.simple-main h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); margin-bottom: 18px; }
.simple-main .panel > p { color: var(--text); margin-bottom: 14px; }
.simple-main .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 12px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.25em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 600; }
.simple-main.has-bar { padding-bottom: clamp(56px, 9vw, 120px); }

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

/* ---------- Refinements ---------- */
a[href^="tel:"] { white-space: nowrap; }
.step > div { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* About photo caption */
.about__figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.about__figure figcaption { font-size: 1rem; color: var(--muted); }
.about__figure figcaption strong { color: var(--navy); font-weight: 700; }
.about__photo { object-position: 50% 25%; }
