/* Core design tokens */
:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Global and accessibility styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

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

.section {
  padding: 5.5rem 0;
}

.lazy-section {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.section-alt {
  background: var(--bg);
}

.section-label,
.eyebrow {
  margin-bottom: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Notification modal styles */
.notification-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.notification-overlay.active {
  display: flex;
}

.notification-modal {
  width: min(560px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
}

/* Navigation styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: #334155;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  padding: 0.5rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--navy);
  border-color: var(--blue);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* Hero styles */
.hero {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  color: var(--white);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 1.25s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.64)),
    radial-gradient(90% 90% at 20% 10%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 5.8rem 0 5.2rem;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(241, 245, 249, 0.92);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.4rem 0 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.contact-dark {
  color: var(--navy);
  border-color: #cbd5e1;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.meta-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.9rem;
}

.meta-card strong {
  display: block;
  font-family: "Inter", sans-serif;
  margin-bottom: 0.35rem;
}

.meta-card span {
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.95);
}

.scroll-indicator {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}

.scroll-indicator span {
  width: 6px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--white);
  animation: wheel 1.8s infinite;
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 0;
  }
}

/* Content grids */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.about-image {
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #eff6ff, #ffffff);
  text-align: center;
}

.about-image img {
  width: 150px;
  margin: 0 auto 1.15rem;
}

.about-image figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #bfdbfe;
}

.service-card .icon {
  font-size: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e0ecff;
  margin-bottom: 0.9rem;
}

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

.type-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.why-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 1.1rem;
}

/* Accordion styles */
.accordion {
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: clip;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: var(--white);
  padding: 1rem 1.1rem;
  font: 600 1rem "Inter", sans-serif;
  color: var(--navy);
  cursor: pointer;
}

.accordion-trigger:hover {
  background: #f8fafc;
}

.accordion-trigger::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-size: 1.15rem;
}

.accordion-item.open .accordion-trigger::after {
  content: "-";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel > * {
  margin: 0;
  padding: 0 1.1rem 1rem;
}

.accordion-panel ul {
  padding-left: 2.2rem;
}

/* Contact styles */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.map-wrap {
  margin-top: 1.25rem;
}

.map-wrap iframe {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Overlay quote/callback modals */
.overlay-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1100;
}

.overlay-modal.active {
  display: flex;
}

.overlay-panel {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  position: relative;
}

.overlay-close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.6rem;
  cursor: pointer;
}

.overlay-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.overlay-form label {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.overlay-form input,
.overlay-form select,
.overlay-form textarea {
  width: 100%;
  margin-bottom: 0.8rem;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  font: inherit;
}

.overlay-form input:focus,
.overlay-form select:focus,
.overlay-form textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--blue);
}

.form-feedback {
  margin: 0.7rem 0 0;
  color: #1d4ed8;
  font-size: 0.92rem;
}

/* Floating mobile call button */
.call-now {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 980;
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
}

.call-now:hover {
  text-decoration: none;
  background: var(--blue-dark);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #e2e8f0;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.site-footer h3,
.site-footer h4 {
  color: #f8fafc;
}

.site-footer a {
  color: #bfdbfe;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding: 0.85rem 0 1.3rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .services-grid,
  .types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 700px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 4.2rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: grid;
    padding: 0.6rem 4vw 1rem;
    gap: 0.25rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.22s ease;
  }

  .site-nav.open {
    transform: scaleY(1);
  }

  .hero-meta,
  .services-grid,
  .types-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-cta-row .btn {
    width: 100%;
  }

  .call-now {
    display: inline-flex;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
