:root {
  --navy: #061122;
  --navy-soft: #0b1d34;
  --orange: #ff5a00;
  --blue: #0c9fe8;
  --white: #ffffff;
  --muted: #d6dfec;
  --card: #0f2540;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

.topbar {
  background: #020814;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.45rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 17, 34, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
}

.brand span {
  display: block;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--orange);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.menu {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.menu a {
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.menu a:hover,
.menu a.active {
  background: var(--orange);
  color: white;
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 1.4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(6, 17, 34, 0.96), rgba(6, 17, 34, 0.90)),
    url('assets/apex-logo.png') center / contain no-repeat;
  min-height: 620px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-card {
  max-width: 680px;
  padding: 2rem 0;
}

.eyebrow {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero p {
  font-size: 1.2rem;
  color: var(--white);
  max-width: 620px;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: white;
  font-weight: 900;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--orange);
}

.btn.secondary {
  background: transparent;
  border-color: var(--blue);
}

.btn:hover {
  transform: translateY(-1px);
}

section {
  padding: 4.5rem 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.2rem 0;
}

.section-title p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, var(--card), #0a1a2e);
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.card .icon {
  font-size: 2rem;
  color: var(--orange);
}

.card h3 {
  margin: 0.4rem 0;
}

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.panel {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.ticks {
  padding: 0;
  list-style: none;
}

.ticks li {
  margin: 0.7rem 0;
  padding-left: 1.9rem;
  position: relative;
}

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.page-hero {
  padding: 4rem 0;
  background: linear-gradient(120deg, #08182c, #0b2441);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0.2rem 0;
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  min-height: 230px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #102844, #08182c);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--muted);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
}

.contact-box p {
  margin: 0.4rem 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #07172a;
  color: white;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  background: #020814;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.notice {
  font-size: 0.9rem;
  color: #aebbd0;
}

.cta-band {
  background: linear-gradient(90deg, var(--orange), #df3f00);
  padding: 2.5rem 0;
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0;
  color: white;
}

.cta-band .btn {
  background: #061122;
  border-color: #061122;
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #061122;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0;
    background-size: 90%;
  }

  .cards,
  .gallery,
  .split,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .topbar .container,
  .footer .container {
    display: block;
  }

  .brand img {
    width: 58px;
    height: 44px;
  }
}

/* Added upgrade sections */
.reviews-section {
  background: linear-gradient(180deg, #07172a, #061122);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  background: #08182c;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.4rem;
}

.stars {
  color: var(--orange);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.review-card p,
.areas-wrap p,
.small-note {
  color: var(--muted);
}

.small-note {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.areas-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.areas-list span {
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
}

.photo-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  margin: 0;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.photo-card figcaption {
  padding: 1rem;
  font-weight: 900;
}

.sticky-call {
  display: none;
}

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .reviews-grid,
  .areas-wrap,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .sticky-call {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: white;
    border: 2px solid var(--orange);
    border-radius: 999px;
    padding: 0.95rem 1rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }
}

/* Pricing page - matches the dark gallery card style */
.pricing-section {
  background: var(--navy);
  color: var(--white);
}

.pricing-section .section-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pricing-section .section-title p {
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.price-card {
  position: relative;
  background: var(--navy-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.45rem;
  min-height: 230px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.10), rgba(12, 159, 232, 0.08));
  pointer-events: none;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card.featured {
  border: 2px solid var(--orange);
}

.price-card.emergency {
  border: 2px solid #f34040;
}

.price-card.highlight {
  border-color: rgba(12, 159, 232, 0.65);
}

.price-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 2px solid var(--blue);
  border-radius: 999px;
  font-size: 1.75rem;
  background: rgba(6, 17, 34, 0.35);
}

.price-card.featured .price-icon,
.price-card.emergency .price-icon {
  border-color: var(--orange);
}

.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--orange);
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: 0 18px 0 18px;
  font-weight: 900;
  font-size: 0.86rem;
  z-index: 2;
}

.price-card.emergency .price-badge {
  background: #f34040;
}

.price-card h2,
.price-card h3 {
  margin: 0 0 0.7rem;
  line-height: 1.2;
  color: var(--white);
}

.price-line {
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0.3rem 0 1rem;
}

.price-line strong {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.price-card.emergency .price-line strong {
  color: #ff7068;
}

.price-card p,
.price-note {
  color: var(--muted);
}

.price-card p {
  margin: 0;
}

.price-note {
  margin-top: 2rem;
  text-align: center;
}

.price-cta {
  margin-top: 2rem;
  text-align: center;
}

.price-cta .btn {
  margin: 0.35rem;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }
}
