:root {
  --navy: #061a2f;
  --navy-2: #0b2742;
  --ink: #102033;
  --orange: #f36f21;
  --orange-2: #ff9a35;
  --teal: #35c4d4;
  --sand: #f5e6cf;
  --cream: #fff9f1;
  --muted: #6d7c8d;
  --line: rgba(255, 255, 255, 0.15);
  --shadow: 0 24px 60px rgba(3, 17, 31, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--cream);
}

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

.navbar {
  min-height: 78px;
  background: rgba(6, 26, 47, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition:
    min-height 220ms ease,
    background 220ms ease;
}

.navbar.is-scrolled {
  min-height: 66px;
  background: rgba(6, 26, 47, 0.96);
}

.navbar-brand {
  color: #fff;
  line-height: 1;
}

.navbar-brand:hover {
  color: #fff;
}

.navbar-brand strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.navbar-brand small {
  display: block;
  color: var(--orange-2);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
}

.navbar .nav-link.active {
  box-shadow: inset 0 -3px 0 var(--orange);
}

.nav-cta {
  color: #fff !important;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(243, 111, 33, 0.26);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.28);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(255, 154, 53, 0.3);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.section-band,
.section-pad {
  position: relative;
  overflow: hidden;
}

.section-pad {
  padding: 110px 0;
}

.hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(53, 196, 212, 0.18), transparent 34%),
    radial-gradient(circle at 24% 74%, rgba(243, 111, 33, 0.16), transparent 30%),
    linear-gradient(135deg, #041527 0%, #08233d 48%, #0d3557 100%);
}

.hero::after,
.about::before,
.faq::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(var(--teal), var(--teal)) 28px 34px / 4px 88px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 52px 48px / 4px 58px no-repeat,
    radial-gradient(circle at 30px 28px, transparent 15px, var(--teal) 16px, transparent 18px) 0 0 / 72px 116px
      no-repeat;
  width: 120px;
  height: 180px;
}

.hero::after {
  left: 4%;
  bottom: 4%;
}

.about::before {
  right: 5%;
  bottom: 6%;
}

.faq::after {
  left: 5%;
  bottom: 6%;
}

.hero-copy {
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 7.2rem);
  line-height: 0.9;
  font-weight: 900;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 0.95;
  font-weight: 600;
  padding-bottom: 5px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 850;
}

.lead,
.section-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
  line-height: 1.72;
}

.about .section-lead,
.faq .section-lead,
.contact .section-lead {
  color: var(--muted);
}

.btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  min-height: 48px;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--orange);
  box-shadow: 0 18px 34px rgba(243, 111, 33, 0.25);
}

.btn-primary:hover {
  background: #ff7e28;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.74);
}

.hero-stats span {
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.hero-stats span:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: #fff;
  font-size: 1.65rem;
  margin-right: 0.3rem;
}

.hero-visual {
  margin-top: 95px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.owner-note,
.company-copy,
.company-widgets div,
.service-card,
.quote-card,
.quote-form {
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(13, 31, 52, 0.08);
}

.owner-note {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.owner-note:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--navy-2), #10395d);
  box-shadow: 0 24px 58px rgba(13, 31, 52, 0.16);
}

.owner-note i {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  font-size: 1.25rem;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.owner-note:hover i {
  background: var(--teal);
  transform: scale(1.06) rotate(-4deg);
}

.owner-note span,
.company-widgets span {
  display: block;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.owner-note strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.company-copy {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(6, 26, 47, 0.08);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.company-copy:hover {
  border-color: rgba(53, 196, 212, 0.34);
  box-shadow: 0 24px 58px rgba(13, 31, 52, 0.12);
  transform: translateY(-3px);
}

.company-copy p {
  color: #4f6074;
  font-size: 1.06rem;
  line-height: 1.75;
}

.company-copy p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 850;
}

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

.company-widgets div {
  position: relative;
  min-height: 230px;
  padding: 1.45rem;
  background: #fff;
  border: 1px solid rgba(6, 26, 47, 0.08);
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.company-widgets div::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(243, 111, 33, 0.1);
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.company-widgets div:hover {
  transform: translateY(-6px);
  border-color: rgba(53, 196, 212, 0.34);
  box-shadow: 0 24px 58px rgba(13, 31, 52, 0.12);
}

.company-widgets div:hover::after {
  background: rgba(53, 196, 212, 0.14);
  transform: scale(1.22);
}

.company-widgets i,
.service-card i {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 1.4rem;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.company-widgets div:hover i {
  background: var(--teal);
  transform: translateY(-3px);
}

.company-widgets p,
.service-card p,
.quote-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.services,
.faq {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 26, 47, 0.98), rgba(11, 39, 66, 0.98)),
    radial-gradient(circle at 80% 10%, rgba(243, 111, 33, 0.2), transparent 36%);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 3rem;
}

.service-card {
  height: 100%;
  padding: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 240ms ease,
    background 240ms ease,
    border-color 240ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 154, 53, 0.6);
}

.service-card p {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  color: var(--orange);
  font-weight: 850;
  text-decoration: none;
}

.testimonials {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(183, 70, 16, 0.72), rgba(243, 111, 33, 0.46)),
    url("../images/testimonials-valley-bg.png") center / cover no-repeat;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(6, 26, 47, 0.62), transparent 58%);
}

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

.testimonial-copy {
  max-width: 540px;
}

.testimonial-copy .section-lead {
  color: rgba(255, 255, 255, 0.78);
}

.review-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: baseline;
  margin: 2rem 0 1.1rem;
}

.review-summary strong {
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.review-summary span {
  color: #f6aa1c;
  letter-spacing: 0.05em;
}

.review-summary small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.review-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.review-stack {
  display: grid;
  gap: 1rem;
}

.review-stack .quote-card:nth-child(2) {
  margin-left: clamp(0rem, 5vw, 4rem);
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-left: 6px solid var(--navy);
  box-shadow: 0 22px 52px rgba(3, 17, 31, 0.2);
  color: var(--ink);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.quote-card:hover {
  border-left-color: var(--teal);
  box-shadow: 0 30px 68px rgba(3, 17, 31, 0.28);
  transform: translateY(-5px);
}

.quote-card-featured {
  padding: 2rem;
}

.quote-card p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.72;
}

.stars {
  width: fit-content;
  padding: 0.35rem 0.65rem;
  color: #f6aa1c;
  background: rgba(246, 170, 28, 0.12);
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  transition:
    background 220ms ease,
    transform 220ms ease;
}

.quote-card:hover .stars {
  background: rgba(53, 196, 212, 0.14);
  transform: translateY(-2px);
}

.quote-card cite {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.quote-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.3rem;
}

.quote-footer a {
  color: var(--orange);
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.quote-footer a:hover {
  color: #c95414;
  transform: translateX(3px);
}

.accordion-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-item + .accordion-item {
  margin-top: 0.8rem;
}

.accordion-button {
  color: #fff;
  background: transparent;
  font-weight: 850;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: rgba(243, 111, 33, 0.18);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.18rem rgba(255, 154, 53, 0.25);
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.contact {
  background: var(--sand);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact-list a,
.contact-list span {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-list i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
}

.social-contact {
  margin-top: 2rem;
}

.social-contact-title {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 1.15rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.social-links a:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.quote-form {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(6, 26, 47, 0.08);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.quote-form.is-submitting {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(13, 31, 52, 0.12);
}

.contact-messages {
  margin-bottom: 1.25rem;
}

.contact-messages .alert {
  border: 0;
  border-radius: 8px;
  font-weight: 750;
}

.submit-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: submit-spin 700ms linear infinite;
}

.btn.is-submitting {
  cursor: wait;
  opacity: 0.92;
}

.btn.is-submitted-success,
.btn.is-submitted-error {
  animation: submit-feedback 900ms ease both;
}

.btn.is-submitted-success {
  background: #198754;
}

.btn.is-submitted-error {
  background: #dc3545;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes submit-feedback {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  35% {
    transform: translateY(-2px) scale(1.02);
  }

  65% {
    transform: translateY(0) scale(0.99);
  }
}

.form-label {
  color: var(--ink);
  font-weight: 850;
}

.form-control,
.form-select {
  min-height: 50px;
  border-color: rgba(6, 26, 47, 0.14);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.18rem rgba(243, 111, 33, 0.16);
}

footer {
  padding: 1.4rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
  font-weight: 700;
}

footer a {
  color: var(--orange-2);
  text-decoration-color: rgba(255, 154, 53, 0.55);
  text-underline-offset: 0.2em;
}

footer a:hover,
footer a:focus {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

footer a:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
}

body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 720ms ease,
    transform 720ms ease;
}

body.reveal-ready .reveal.in-view,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal-delay-2 {
  transition-delay: 220ms;
}

.reveal-delay-3 {
  transition-delay: 320ms;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .navbar .nav-link.active {
    box-shadow: inset 3px 0 0 var(--orange);
  }

  .hero {
    background:
      radial-gradient(circle at 80% 10%, rgba(53, 196, 212, 0.2), transparent 34%),
      radial-gradient(circle at 12% 72%, rgba(243, 111, 33, 0.16), transparent 32%),
      linear-gradient(145deg, #041527 0%, #08233d 52%, #0d3557 100%);
  }

  .hero-copy {
    padding-top: 116px;
  }

  .hero-visual {
    margin-top: 0;
    transform: none;
  }

  .company-widgets {
    grid-template-columns: 1fr;
  }

  .review-stack .quote-card:nth-child(2) {
    margin-left: 0;
  }

  .section-pad {
    padding: 82px 0;
  }
}

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

  .lead,
  .section-lead {
    font-size: 1.02rem;
  }

  .hero-stats {
    display: grid;
  }

  .hero-stats span {
    border-right: 0;
    padding-right: 0;
  }

  .quote-form {
    padding: 1.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
