:root {
  --red: #86000b;
  --red-dark: #560009;
  --ink: #28282c;
  --muted: #5f5d61;
  --line: #d9d5d2;
  --cream: #f6f2ed;
  --white: #ffffff;
  --shadow: 0 18px 35px rgba(31, 28, 24, 0.16);
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Jura", "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.narrow {
  width: min(1200px, calc(100% - 64px));
}

.section {
  padding: 96px 0;
  scroll-margin-top: var(--header-height);
}

.hero {
  scroll-margin-top: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 12px 32px;
  color: var(--white);
  background: rgba(19, 20, 33, 0.72);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(58, 57, 57, 0.82);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand img {
  width: 90px;
  height: auto;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f3c8ce;
}

.phone-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 20px;
  color: var(--white);
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(70, 0, 9, 0.25);
}

.phone-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: url("assets/banner-beach.jpg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(21, 13, 24, 0.24), rgba(74, 10, 26, 0.28)),
    rgba(0, 0, 0, 0.18);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 32px));
  padding-top: 58px;
}

.hero-logo {
  width: min(350px, 58vw);
  margin: 0 auto 20px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 6px 0 34px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.scroll-cue {
  display: inline-grid;
  width: 76px;
  height: 76px;
  place-items: center;
}

.scroll-cue span {
  width: 42px;
  height: 42px;
  border-right: 8px solid var(--white);
  border-bottom: 8px solid var(--white);
  transform: rotate(45deg);
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) 1fr;
  gap: 50px;
  align-items: center;
}

.image-frame {
  position: relative;
  padding: 10px 0 0 10px;
}

.image-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 78%;
  height: 78%;
  border-top: 10px solid var(--red);
  border-left: 10px solid var(--red);
}

.image-frame img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rule {
  width: 150px;
  height: 3px;
  margin: 0 0 24px;
  background: var(--red);
}

.rule.centered {
  margin-inline: auto;
}

.lead {
  color: #353339;
  font-size: 20px;
  line-height: 1.5;
}

.copy-block p:not(.lead) {
  color: var(--muted);
}

.services,
.resources {
  background: var(--cream);
}

.section-heading {
  margin-bottom: 48px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.service-card {
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-body {
  min-height: 275px;
  padding: 26px 28px 32px;
}

.service-body h3 {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.service-body ul {
  margin: 0;
  padding-left: 22px;
  color: #343137;
}

.accordion {
  border: 1px solid var(--line);
  background: var(--white);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 0;
}

.accordion summary {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 18px 64px 18px 30px;
  font-size: 24px;
  font-weight: 600;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 700;
}

.accordion details[open] summary {
  color: var(--white);
  background: var(--red);
}

.accordion details[open] summary::after {
  content: "-";
}

.accordion details > a {
  display: block;
  padding: 24px 30px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.resource-link-list {
  display: grid;
  gap: 10px;
  padding: 24px 30px;
}

.resource-link-list a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact {
  color: var(--white);
  background: var(--red);
}

.contact-grid {
  display: grid;
  place-items: center;
  max-width: 780px;
  text-align: center;
}

.contact-grid > div {
  max-width: 680px;
  margin-inline: auto;
}

.support-label {
  margin-bottom: 12px;
  font-size: 18px;
}

.contact h2 {
  margin-bottom: 18px;
}

.contact-list {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

.contact-list li {
  padding-left: 0;
  text-align: center;
}

.contact-list a {
  color: var(--white);
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  text-decoration: underline;
}

button {
  font: inherit;
}

.site-footer {
  padding: 34px 0 26px;
  text-align: center;
  background: var(--cream);
}

.site-footer img {
  margin: 0 auto 14px;
}

.site-footer p {
  margin: 6px 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    gap: 16px;
    justify-content: space-between;
  }

  .brand,
  .menu-toggle,
  .phone-button {
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 32px 22px;
    background: rgba(24, 24, 31, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav span {
    display: none;
  }

  .site-nav a {
    padding: 10px 0;
  }

  .menu-toggle {
    justify-self: end;
    display: inline-grid;
    gap: 5px;
    width: 44px;
    height: 40px;
    place-content: center;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .phone-button {
    padding-inline: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-body {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(100% - 32px, 1200px);
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .brand img {
    width: 70px;
  }

  .phone-button {
    gap: 8px;
    justify-content: center;
    width: 150px;
    padding-inline: 12px;
    font-size: 15px;
    white-space: nowrap;
  }

  .phone-button svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  .hero {
    min-height: 610px;
    background-position: 58% center;
  }

  .hero-content {
    padding-top: 32px;
  }

  .hero-logo {
    width: min(260px, 72vw);
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero p,
  .lead {
    font-size: 18px;
  }

  h2 {
    font-size: 30px;
  }

  .about-grid {
    gap: 36px;
  }

  .accordion summary {
    padding: 16px 50px 16px 18px;
    font-size: 20px;
  }

  .accordion summary::after {
    right: 18px;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 6px;
    padding-inline: 10px;
  }

  .brand img {
    width: 62px;
  }

  .menu-toggle {
    width: 40px;
  }

  .phone-button {
    gap: 6px;
    width: 142px;
    padding-inline: 10px;
    font-size: 14px;
  }
}
