:root {
  --ink: #11100e;
  --ink-soft: #1b1916;
  --cream: #f6f0e4;
  --muted: #c9c1b4;
  --gold: #d6ad61;
  --gold-light: #efd18c;
  --line: rgba(214, 173, 97, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.shell {
  width: min(1140px, calc(100% - 44px));
  margin-inline: auto;
}

.page-hero {
  min-height: 650px;
  position: relative;
  isolation: isolate;
  background: url("san-diego-harbor.jpeg") center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.95) 0%, rgba(8, 9, 10, 0.81) 49%, rgba(8, 9, 10, 0.42) 100%),
    linear-gradient(0deg, rgba(8, 9, 10, 0.82), transparent 60%);
}

.site-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 9, 8, 0.42);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: block;
  width: clamp(220px, 22vw, 285px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.38));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 21px;
}

.nav-links a {
  color: rgba(246, 240, 228, 0.84);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-light);
}

.home-return {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.home-return:hover,
.home-return:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.audience-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 7, 0.6);
}

.audience-tabs-inner {
  min-height: 52px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.audience-tab {
  padding: 9px 15px;
  border: 1px solid rgba(214, 173, 97, 0.28);
  color: rgba(246, 240, 228, 0.85);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.audience-tab[aria-current="page"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #17130d;
}

.hero-copy {
  min-height: 470px;
  display: grid;
  align-content: center;
  max-width: 780px;
  padding-block: 70px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.19em;
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  max-width: 750px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.55rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 31px;
  color: rgba(246, 240, 228, 0.84);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #17130d;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.button:hover,
.button:focus-visible {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  min-height: 250px;
  padding: 31px;
}

.card + .card {
  border-left: 1px solid var(--line);
}

.card-number {
  display: block;
  margin-bottom: 45px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.48rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.light {
  background: var(--cream);
  color: var(--ink);
}

.light .section-kicker {
  color: #9a6d22;
}

.light .section-intro,
.light .card p {
  color: #5d564c;
}

.light .cards {
  border-color: rgba(17, 16, 14, 0.2);
}

.light .card + .card {
  border-color: rgba(17, 16, 14, 0.2);
}

.light .card-number {
  color: #9a6d22;
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 58px;
}

.service-list-group {
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(214, 173, 97, 0.09), rgba(255, 255, 255, 0.015));
}

.service-list-group h3 {
  margin-bottom: 20px;
  color: var(--cream);
  font-size: 1.48rem;
}

.service-list-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list-group li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid rgba(214, 173, 97, 0.16);
  color: var(--muted);
}

.service-list-group li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.military-list-group {
  border-color: rgba(239, 209, 140, 0.68);
  background: linear-gradient(145deg, rgba(214, 173, 97, 0.17), rgba(255, 255, 255, 0.02));
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
  margin-top: 48px;
  border-top: 1px solid rgba(17, 16, 14, 0.18);
}

.detail {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(17, 16, 14, 0.18);
}

.detail strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
}

.detail span:first-child {
  color: #9a6d22;
}

.callout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 65px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, rgba(214, 173, 97, 0.1), transparent 55%);
}

.callout h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
}

.callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 173, 97, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

.appointment-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 70px;
  align-items: center;
}

.appointment-panel h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1.08;
}

.appointment-panel p:not(.section-kicker) {
  max-width: 690px;
  margin-bottom: 0;
  color: #5d564c;
  font-size: 1.08rem;
}

.appointment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.contact-line {
  color: #5d4218;
  font-weight: 700;
  text-underline-offset: 4px;
}

#appointment-options,
.appointment-card {
  scroll-margin-top: 24px;
}

.appointment-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(214, 173, 97, 0.1);
  color: #4e473d;
}

.quick-contact strong {
  color: var(--ink);
}

.quick-contact a {
  color: #6f4d16;
  font-weight: 750;
  text-underline-offset: 4px;
}

.appointment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 390px;
  padding: 32px;
  border: 1px solid rgba(17, 16, 14, 0.2);
  background: rgba(255, 255, 255, 0.34);
}

.appointment-card .card-number {
  margin-bottom: 34px;
  color: #9a6d22;
}

.appointment-card h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 1.55rem;
}

.appointment-card p {
  flex: 1;
  margin-bottom: 28px;
  color: #5d564c;
}

.appointment-card .button {
  margin-bottom: 14px;
}

.copy-contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #66502b;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.copy-contact:hover,
.copy-contact:focus-visible {
  color: #2f2413;
}

.contact-choice {
  display: grid;
  gap: 2px;
}

.contact-status {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.contact-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.direct-contact {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.direct-contact h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: 1.08;
}

.direct-contact p:not(.section-kicker) {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.direct-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 173, 97, 0.08);
  font-style: normal;
}

.direct-contact-list a {
  color: var(--gold-light);
  font-size: 1.08rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.direct-contact-list span {
  color: var(--muted);
}

footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 240, 228, 0.58);
  font-size: 0.83rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.footer-brand .footer-tagline {
  color: var(--gold-light);
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-brand .footer-motto {
  color: rgba(246, 240, 228, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
}

.footer-brand .footer-detail {
  margin-top: 7px;
  color: rgba(246, 240, 228, 0.48);
  font-size: 0.76rem;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 680px);
  }

  .nav {
    min-height: 110px;
  }

  .brand {
    width: min(220px, 64vw);
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .home-return {
    display: inline-flex;
  }

  .audience-tabs-inner {
    justify-content: center;
  }

  .audience-tab {
    flex: 1;
    max-width: 250px;
    padding-inline: 8px;
    text-align: center;
    font-size: 0.65rem;
  }

  .cards,
  .service-list-grid,
  .detail-grid,
  .callout,
  .appointment-panel,
  .appointment-cards,
  .direct-contact {
    grid-template-columns: 1fr;
  }

  .appointment-card {
    min-height: 0;
  }

  .card {
    min-height: auto;
    padding: 31px 4px;
  }

  .card + .card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .card-number {
    margin-bottom: 28px;
  }

  .callout {
    gap: 30px;
    padding: 35px 28px;
  }
}

@media (max-width: 560px) {
  .page-hero {
    min-height: 720px;
    background-position: 60% center;
  }

  .nav-links {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .brand {
    width: min(190px, 58vw);
  }

  .hero-copy {
    min-height: 490px;
    align-content: end;
    padding-block: 70px 56px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .section {
    padding: 72px 0;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}

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