:root {
  color-scheme: dark;
  --navy: #1a2746;
  --navy-deep: #075578;
  --blue: #009ee2;
  --blue-deep: #006f9f;
  --yellow: #ffef00;
  --red: #e30613;
  --white: #ffffff;
  --muted: #c9d3e4;
  --line: rgba(255, 255, 255, 0.18);
  --panel: rgba(0, 103, 148, 0.9);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

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

html {
  min-width: 320px;
  background: var(--navy-deep);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--navy-deep);
  color: var(--white);
  font-family: "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: var(--blue-deep);
}

.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.backdrop::before {
  background:
    linear-gradient(90deg, rgba(0, 88, 128, 0.97) 0%, rgba(0, 122, 176, 0.88) 34%, rgba(0, 158, 226, 0.38) 65%, rgba(0, 91, 132, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 73, 107, 0.84) 0%, transparent 48%, rgba(0, 158, 226, 0.18) 100%);
}

.backdrop::after {
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(0deg, rgba(0, 79, 115, 0.84), transparent);
}

.backdrop picture,
.backdrop img {
  width: 100%;
  height: 100%;
}

.backdrop img {
  display: block;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.94) contrast(1.03);
  animation: reveal-image 1.1s cubic-bezier(.2, .75, .25, 1) both;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(100% - 3rem, 1260px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  animation: fade-down 650ms 80ms ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.brand-logo {
  width: 12.5rem;
  height: auto;
  padding: 0.38rem 0.55rem;
  border-radius: 0.48rem;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
  object-position: left center;
}

.brand-name {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  color: #f4f7fb;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.foundation {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 30rem;
  padding: clamp(3.2rem, 8vh, 7rem) 0 clamp(3rem, 7vh, 6rem);
}

.hero-copy {
  width: min(100%, 42rem);
  animation: rise-in 760ms 150ms cubic-bezier(.2, .75, .25, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.75rem;
  height: 0.2rem;
  background: linear-gradient(90deg, var(--yellow) 0% 50%, var(--blue) 50%);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.65rem, 7.4vw, 7rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 66, 96, 0.34);
}

h1 em {
  position: relative;
  color: var(--yellow);
  font-weight: 500;
}

h1 em::after {
  content: "";
  position: absolute;
  right: 0.02em;
  bottom: -0.08em;
  left: 0.04em;
  height: 0.045em;
  background: var(--yellow);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.intro {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: #e2e8f2;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.primary-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.1rem;
}

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.25rem;
  padding: 0.72rem 1.4rem;
  border-radius: 0.85rem;
  background: var(--yellow);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  color: var(--navy-deep);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.call-button:hover {
  background: #fff200;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.call-button:focus-visible,
.email-link:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.call-button svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.call-button span {
  display: grid;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.call-button small {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.15rem;
  border-bottom: 2px solid var(--yellow);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.email-link:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.email-link svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.emergency-note {
  max-width: 39rem;
  margin: 1.2rem 0 0;
  color: rgba(235, 240, 248, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.emergency-note strong {
  color: var(--white);
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: 1.15rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise-in 760ms 260ms cubic-bezier(.2, .75, .25, 1) both;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1.45rem 1.55rem;
  font-style: normal;
}

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

.contact-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.contact-item small {
  color: var(--yellow);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-item strong {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.35;
}

.contact-item > span:last-child > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.icon-box {
  display: grid;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
}

.icon-box svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0 1.3rem;
  color: rgba(224, 231, 242, 0.68);
  font-size: 0.72rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

@keyframes reveal-image {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .backdrop::before {
    background:
      linear-gradient(90deg, rgba(0, 87, 126, 0.97) 0%, rgba(0, 125, 180, 0.84) 55%, rgba(0, 158, 226, 0.42) 100%),
      linear-gradient(0deg, rgba(0, 73, 107, 0.91) 0%, transparent 55%);
  }

  .foundation {
    display: none;
  }

  .contact-panel {
    grid-template-columns: 1fr 1fr;
  }

  .contact-item:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 2rem, 38rem);
  }

  .backdrop img {
    object-position: 64% center;
  }

  .backdrop::before {
    background:
      linear-gradient(90deg, rgba(0, 84, 122, 0.94), rgba(0, 146, 207, 0.54)),
      linear-gradient(0deg, rgba(0, 72, 105, 0.98) 0%, rgba(0, 105, 151, 0.78) 55%, rgba(0, 158, 226, 0.34) 100%);
  }

  .site-header {
    padding: 1.1rem 0;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-logo {
    width: 8.8rem;
    padding: 0.3rem 0.42rem;
  }

  .brand-name {
    padding-left: 0.75rem;
    font-size: 0.66rem;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  .intro {
    margin-top: 1.6rem;
    font-size: 1rem;
  }

  .primary-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .call-button {
    justify-content: center;
  }

  .email-link {
    align-self: center;
  }

  .emergency-note {
    text-align: center;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-item + .contact-item,
  .contact-item:last-child {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-item {
    padding: 1.2rem;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    padding-bottom: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 7.6rem;
  }

  .brand-name {
    font-size: 0.59rem;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
