/* AlaniTech static site
   Brand colors sampled from the current logo and icons.
   Body text is near-black on white (well above WCAG AAA).
   Brand red #8a1c29 on white is 9.2:1. Brand green #005627 on white is 8.9:1. */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --card: #f4f6f4;
  --line: #c5cdc6;
  --red: #8a1c29;
  --red-dark: #6e1621;
  --green: #005627;
  --green-dark: #003d1c;
  --focus: #005627;
  --max: 72rem;
}

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

html {
  font-size: 20px;
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--red);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red-dark);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  z-index: 20;
  text-decoration: none;
}

.skip:focus {
  transform: translateY(0.75rem);
}

.site-header {
  background: #fff;
  border-bottom: 4px solid var(--green);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.logo { order: 1; }
.primary-nav { order: 2; }
.call-link { order: 3; }
.menu-btn { order: 4; }

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 210px;
  height: auto;
}

.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1.1rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 3px solid var(--red);
}

.call-link:hover,
.call-link:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.menu-btn {
  display: none;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 1.1rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border: 3px solid var(--green);
  border-radius: 8px;
  cursor: pointer;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
}


.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.85rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  border-radius: 8px;
}

.primary-nav a[aria-current="page"] {
  background: var(--card);
  box-shadow: inset 0 -4px 0 var(--green);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.hero {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem 1.5rem 1.6rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  font-size: 0.95rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  line-height: 1.25;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1.3;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 3px solid transparent;
  overflow-wrap: anywhere;
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-red:hover,
.btn-red:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.btn-green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-green:hover,
.btn-green:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--card);
  color: var(--green-dark);
}

.section {
  margin-top: 3rem;
}

.intro {
  max-width: 46rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr));
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.25rem;
}

.card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 12px;
}

.card p {
  margin: 0;
}

.topic-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.topic-list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.15rem;
  font-weight: 700;
}

.talk {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.15rem;
  align-items: start;
  scroll-margin-top: 1rem;
}

.talk img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
}

.talk ul {
  margin: 0.4rem 0 0;
  padding-left: 1.25rem;
}

.talk li {
  margin: 0.45rem 0;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-list a {
  font-weight: 700;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.map {
  margin-top: 1rem;
  max-width: min(40rem, 100%);
  border: 2px solid var(--line);
  border-radius: 14px;
}

.rates-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.rates-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid var(--line);
}

.section > ul a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

.note {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal p,
.legal li {
  max-width: 46rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.site-footer {
  background: var(--card);
  border-top: 4px solid var(--green);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

.footer-inner p {
  margin: 0.4rem 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  align-items: center;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.05rem;
  }

  html.js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Without JavaScript the button stays hidden and the nav shows. */
  .menu-btn {
    display: none;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .logo {
    order: 1;
    grid-column: 1;
  }

  .menu-btn {
    order: 2;
    grid-column: 2;
    justify-self: end;
  }

  .call-link {
    order: 3;
    grid-column: 1 / -1;
  }

  .primary-nav {
    order: 4;
    grid-column: 1 / -1;
    margin-left: 0;
    flex-direction: column;
    width: 100%;
  }

  html.js .primary-nav {
    display: none;
  }

  html.js .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .talk {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .talk > div {
    min-width: 0;
  }

  .talk h2,
  .talk li {
    overflow-wrap: anywhere;
  }

  .talk img {
    width: 64px;
    height: 64px;
  }
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }

  .primary-nav {
    display: flex;
  }
}


@media (min-width: 768px) and (max-width: 960px) {
  .logo img {
    width: 170px;
  }

  .header-inner {
    gap: 0.5rem 0.85rem;
  }

  .call-link {
    padding: 0.55rem 0.85rem;
  }

  .primary-nav a {
    padding: 0.35rem 0.6rem;
  }
}

@media (max-width: 420px) {
  .logo img {
    width: 180px;
  }

  .hero {
    padding: 1.25rem 1rem 1.15rem;
  }
}
