/* Avenues Select Management Group
   Colors come from the logo: navy #1a2633 and teal #19bdc1.
   Jost (headings, navigation, buttons) echoes the geometric logo lettering;
   Source Serif 4 keeps longer reading calm and easy on the eye. */

:root {
  --navy: #1a2633;
  --navy-2: #24364a;
  --teal: #19bdc1;
  --teal-ink: #0e7a80;      /* teal dark enough for text on white */
  --mist: #eef5f5;          /* quiet section background */
  --line: #d5e4e5;
  --slate: #56636f;         /* secondary text */
  --white: #ffffff;

  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 64ch; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; font-family: var(--sans);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1;
  padding: 0.95rem 1.4rem; border-radius: var(--radius);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--teal-ink); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal); color: var(--navy); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.brand { flex: none; display: block; }
.brand img { height: 64px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; font-family: var(--sans); }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav-link, .nav-toggle-services {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font: 500 1rem/1 var(--sans); color: var(--navy); text-decoration: none;
  padding: 0.75rem 0.85rem; border-radius: var(--radius);
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-toggle-services:hover { color: var(--teal-ink); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav-toggle-services svg { width: 0.8em; height: 0.8em; transition: transform 0.15s; }
.nav-toggle-services[aria-expanded="true"] svg { transform: rotate(180deg); }

.has-menu { position: relative; }
.services-menu {
  position: absolute; top: calc(100% + 0.5rem); left: -0.5rem; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal);
  box-shadow: 0 18px 40px -18px rgba(26, 38, 51, 0.35);
  list-style: none; margin: 0; padding: 0.5rem;
}
.services-menu[hidden] { display: none; }
.services-menu a { display: block; padding: 0.65rem 0.75rem; text-decoration: none; color: var(--navy); border-radius: var(--radius); }
.services-menu a:hover, .services-menu a[aria-current="page"] { background: var(--mist); }
.services-menu strong { display: block; font-weight: 500; }
.services-menu span { display: block; font-size: 0.875rem; color: var(--slate); line-height: 1.4; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: 0.75rem; font-family: var(--sans); }
.header-phone { color: var(--navy); text-decoration: none; font-weight: 500; white-space: nowrap; line-height: 1.2; }
.header-phone small { display: block; font-size: 0.75rem; color: var(--slate); font-weight: 400; }
.header-phone:hover { color: var(--teal-ink); }
.header-actions .btn { padding: 0.75rem 1.1rem; }

.menu-button {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.6rem 0.8rem; font: 500 1rem/1 var(--sans); color: var(--navy); cursor: pointer;
  align-items: center; gap: 0.5rem;
}
.menu-button svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .brand img { height: 46px; }
  .menu-button { display: inline-flex; }
  .nav {
    position: fixed; inset: 68px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  }
  .nav[data-open="false"] { display: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link, .nav-toggle-services { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 0.85rem; }
  .services-menu { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0.25rem 0 0.5rem 0.75rem; }
  .services-menu span { display: none; }
  .header-actions { flex-direction: column; align-items: stretch; margin: 1.5rem 0 0; gap: 0.75rem; }
  .header-actions .btn { padding: 1rem; }
  .header-phone { display: block; text-align: center; padding: 0.9rem; border: 1.5px solid var(--navy); border-radius: var(--radius); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Emergency strip ---------- */
.emergency {
  background: var(--navy); color: #dbe6ea; font-family: var(--sans); font-size: 0.9rem;
}
.emergency .wrap { display: flex; justify-content: center; gap: 0.4rem 1rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; text-align: center; }
.emergency a { color: var(--white); font-weight: 500; text-decoration: none; }
.emergency a:hover { color: var(--teal); }

/* ---------- Home hero ---------- */
/* Headline and intro side by side, then the street panorama full width,
   with the logo's "avenues" (teal street lines) running into it. */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end; gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hero h1 { max-width: 12ch; margin: 0; }
.hero-lede { font-size: 1.2rem; color: var(--slate); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-text p { margin-bottom: 0; }

.hero-visual { position: relative; }
.hero-photo { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; object-position: center 60%; }
.avenues {
  position: absolute; z-index: 2; pointer-events: none;
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  top: calc(-1 * clamp(1.25rem, 2.5vw, 2rem));
  width: clamp(150px, 20vw, 260px); height: auto; overflow: visible;
}
.avenues path { fill: none; stroke: var(--teal); stroke-width: 7; stroke-linecap: square; stroke-linejoin: miter; }
@media (prefers-reduced-motion: no-preference) {
  .avenues path { stroke-dasharray: var(--len, 900); stroke-dashoffset: var(--len, 900); animation: draw 1.6s cubic-bezier(.6,.05,.3,1) 0.2s forwards; }
  .avenues path:nth-child(2) { animation-delay: 0.45s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.hero-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--teal); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 14ch; }
  .hero-photo { object-position: 20% 60%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--slate); font-size: 1.1rem; }

/* Who we help: three routes divided by street lines */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route { padding: 0.25rem clamp(1.25rem, 3vw, 2.5rem) 0.5rem; border-left: 3px solid var(--teal); }
.route h3 { font-size: 1.35rem; }
.route p { color: var(--slate); }
.route ul { list-style: none; margin: 1.25rem 0 0; padding: 0; font-family: var(--sans); }
.route li + li { margin-top: 0.5rem; }
.route li a { font-weight: 500; }
@media (max-width: 860px) {
  .routes { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* Services as an index of streets, not a grid of cards */
.service-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-index li { border-bottom: 1px solid var(--line); }
.service-index a {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: center; gap: 1rem 2.5rem;
  padding: 1.6rem 0.25rem; text-decoration: none; color: inherit;
  transition: background-color 0.15s, padding 0.2s;
}
.service-index h3 { margin: 0; font-size: 1.6rem; font-weight: 400; }
.service-index p { margin: 0; color: var(--slate); }
.service-index .go {
  font-family: var(--sans); font-weight: 500; color: var(--teal-ink); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.service-index .go svg { width: 1.2rem; height: 1.2rem; transition: transform 0.15s; }
.service-index a:hover { background: var(--mist); padding-left: 1rem; padding-right: 1rem; }
.service-index a:hover .go svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .service-index a { grid-template-columns: 1fr; gap: 0.4rem; }
  .service-index h3 { font-size: 1.4rem; }
}

/* Experience statement */
.statement { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.statement blockquote {
  margin: 0; font-family: var(--sans); font-weight: 400; line-height: 1.25;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: var(--navy);
}
.statement-facts { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.statement-facts li { padding: 0.9rem 0; border-top: 1px solid var(--line); display: flex; gap: 0.75rem; }
.statement-facts li:last-child { border-bottom: 1px solid var(--line); }
.statement-facts svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--teal-ink); margin-top: 0.15rem; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-band { background: var(--navy); color: #d5e0e5; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.cta-band h2 { color: var(--white); margin-bottom: 0.35em; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Service pages ---------- */
.page-head { padding-top: clamp(2.25rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.crumbs { font-family: var(--sans); font-size: 0.9rem; color: var(--slate); margin-bottom: 1.25rem; }
.crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--teal-ink); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { font-size: 1.2rem; color: var(--slate); max-width: 56ch; }

.banner { position: relative; }
.banner img { width: 100%; height: clamp(180px, 28vw, 360px); object-fit: cover; }
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--teal);
  transform-origin: left;
}

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.intro h2 { max-width: 16ch; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

.offer-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.5rem 2rem; }
.offer-group h3 { padding-top: 0.9rem; border-top: 3px solid var(--teal); font-size: 1.2rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.95em; width: 0.5rem; height: 0.5rem; background: var(--teal);
}
.ticks.two-col { columns: 2 260px; column-gap: 2.5rem; }
.ticks.two-col li { break-inside: avoid; }

.other-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.other-services li { border-bottom: 1px solid var(--line); }
.other-services a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0.25rem; font-family: var(--sans); font-weight: 500; font-size: 1.1rem; text-decoration: none; color: var(--navy); }
.other-services a:hover { color: var(--teal-ink); }
.other-services svg { width: 1.1rem; height: 1.1rem; color: var(--teal-ink); }
@media (min-width: 761px) {
  .other-services li + li a { padding-left: 1.25rem; border-left: 1px solid var(--line); }
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { font-family: var(--sans); }
.field { margin-bottom: 1.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; margin-bottom: 0.4rem; }
.field .hint { font-weight: 400; color: var(--slate); font-size: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--navy);
  padding: 0.85rem 0.95rem; background: var(--white);
  border: 1.5px solid #b9cdd0; border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%231a2633' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 3px rgba(25, 189, 193, 0.3); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9rem; margin-top: 0.35rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-family: var(--sans); }
.form-status[hidden] { display: none; }
.form-status.error { background: #fdecea; color: #7a1c15; border-left: 4px solid #b3261e; }
.form-status.success { background: #e6f6f6; color: var(--navy); border-left: 4px solid var(--teal); }
.form-status.success h2 { font-size: 1.4rem; margin-bottom: 0.3em; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.9rem; color: var(--slate); margin-top: 1rem; }

.contact-aside { display: grid; gap: 1.5rem; }
.urgent { background: var(--navy); color: #d5e0e5; padding: 1.75rem; border-radius: var(--radius); border-top: 4px solid var(--teal); }
.urgent h2 { color: var(--white); font-size: 1.35rem; }
.urgent .big-phone { display: inline-block; font-family: var(--sans); font-size: 1.7rem; font-weight: 500; color: var(--white); text-decoration: none; margin: 0.25rem 0 0.5rem; }
.urgent .big-phone:hover { color: var(--teal); }
.urgent p { margin: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list strong { display: block; font-weight: 500; }
.contact-list span { color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer { background: #121c26; color: #aebbc4; font-family: var(--sans); font-size: 0.95rem; }
.site-footer a { color: #dbe6ea; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.footer-grid h2 { font-size: 1rem; font-weight: 500; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 0.45rem; }
.footer-brand p { max-width: 32ch; margin-top: 1rem; }
.footer-logo { display: inline-block; background: var(--white); padding: 0.6rem 0.8rem; border-radius: var(--radius); }
.footer-logo img { height: 52px; width: auto; }
.footer-bottom { border-top: 1px solid #263646; padding-top: 1.25rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 12vw, 8rem) 0; }
