/* Basic reset & layout */
html,
body {
  height: 100%;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

:root {
  --navbar-height: 72px;
  --navbar-max-width: 1200px;
  --navbar-bg: rgba(44, 100, 173, 0.92);
  --navbar-bg-scrolled: rgba(44, 100, 173, 0.98);
  --navbar-accent: #ff8c42;
  --navbar-text: #ffffff;
  --navbar-text-muted: rgba(255, 255, 255, 0.78);
  --navbar-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

  /* Brand tokens (reuse across pages) */
  --brand-primary: #2c64ad; /* replace with your brand color */
  --brand-accent: #ff8c42; /* replace with your accent color */
  --surface: #ffffff;
  --text: #1a1a1a;

  /* Motion + spacing tokens */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-fast: 160ms;
  --motion-medium: 420ms;
  --motion-slow: 620ms;
  --lift-sm: 4px;
}

body {
  padding-top: var(--navbar-height);
}
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: var(--navbar-height);
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--navbar-shadow);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.site-navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.site-navbar__inner {
  max-width: var(--navbar-max-width);
  margin: 0 auto;
  padding: 10px 5%;
  min-height: var(--navbar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navbar-text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
}

.site-brand .brand-text {
  color: var(--navbar-text);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.24);
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  border-radius: 4px;
}

.site-brand:hover .logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-phone {
  color: var(--navbar-text);
  text-decoration: none;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-phone:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #1a1a1a;
  background: var(--navbar-accent);
  transition:
    transform var(--motion-fast) var(--motion-ease),
    filter var(--motion-fast) var(--motion-ease);
  transform: translateZ(0);
}

.menu-cta:hover {
  filter: brightness(1.03);
}

@media (hover: hover) {
  .menu-cta:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

.menu-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Scroll reveal (shared across pages) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-navbar a,
.site-navbar .dropbtnServices {
  position: relative;
  color: var(--navbar-text);
  text-decoration: none;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  background: transparent;
  border: none;
  border-radius: 999px;
}

.site-navbar a:hover,
.site-navbar .dropbtnServices:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--navbar-text);
}

.site-navbar a.is-active,
.site-navbar .dropbtnServices.is-active {
  background-color: rgba(255, 255, 255, 0.16);
}

.site-navbar a.is-active::before,
.site-navbar .dropbtnServices.is-active::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--navbar-accent);
  border-radius: 2px;
  opacity: 0.95;
}

.site-navbar .dropbtnServices::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--navbar-text-muted);
  border-bottom: 2px solid var(--navbar-text-muted);
  transform: rotate(45deg);
  margin-left: 2px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease;
}

.dropdown.open .dropbtnServices::after {
  transform: rotate(-135deg);
  border-color: var(--navbar-text);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  min-width: 200px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  z-index: 10000;
  margin-top: 10px;
}

.dropdown-content a {
  color: #1a1a1a;
  padding: 10px 12px;
  display: block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
}

.dropdown-content a:hover {
  background: rgba(255, 140, 66, 0.18);
  color: #1a1a1a;
}

.dropdown.open .dropdown-content {
  display: block;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: none;
  border: none;
  z-index: 10001;
}
.menu-toggle .bar {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.site-navbar.open .menu-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-navbar.open .menu-toggle .bar:nth-child(2) {
  opacity: 0;
}
.site-navbar.open .menu-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE */
@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
    z-index: 10001;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--navbar-bg-scrolled);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 10002;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    align-items: stretch;
  }

  .site-navbar.open .menu {
    display: flex;
  }

  /* All links and dropdown button aligned vertically */
  .site-navbar a,
  .site-navbar .dropbtnServices {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  /* Dropdown container itself behaves like normal block */
  .menu .dropdown {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .menu-actions {
    margin-left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
  }

  .menu-phone,
  .menu-cta {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  /* Submenu dropdown */
  .dropdown-content {
    display: none;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-top: 6px;
    padding-left: 12px; /* indent submenu items */
  }
  .dropdown.open .dropdown-content {
    display: block;
  }

  /* Submenu links */
  .dropdown-content a {
    background: rgba(255, 255, 255, 0.04);
    margin: 6px 0;
    border-radius: 6px;
    padding: 8px 16px;
    color: var(--navbar-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-brand {
    font-size: 16px;
  }

  .site-brand .brand-text {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Accessibility */
.site-navbar a:focus,
.site-navbar .dropbtnServices:focus,
.site-navbar .menu-toggle:focus {
  outline: 3px solid rgba(255, 140, 66, 0.18);
  outline-offset: 2px;
}

.pointer {
  cursor: pointer;
}

/* Footer base styles */
.footer {
  background-color: #333; /* Gentle black */
  color: white;
  padding: 40px 20px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  z-index: 1;
}

.footer-container {
  display: flex;
  justify-content: space-between; /* space between columns */
  align-items: flex-start;
  gap: 60px; /* desktop spacing */
  flex-wrap: wrap; /* wrap on small screens */
  max-width: 1200px;
  margin: 0 auto;
}

.footer .contact-info,
.footer .quick-links {
  flex: 1 1 300px; /* flexible width but min 300px */
  margin-bottom: 20px;
}

.footer .contact-info h3,
.footer .quick-links h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--brand-accent); /* Accent color for headings */
}

.footer .contact-info p {
  margin: 8px 0;
  line-height: 1.8;
}

.footer-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  vertical-align: -3px;
  color: var(--brand-accent);
}

.footer-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin: 5px 0;
}

.footer ul li a {
  text-decoration: none;
  color: #70a9d1;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #ff8c42;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #bbb;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .footer-container {
    gap: 40px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* stack columns */
    align-items: flex-start;
    gap: 20px;
    padding: 0 15px;
  }

  .footer .contact-info,
  .footer .quick-links {
    flex: 1 1 100%;
  }

  .footer .contact-info h3,
  .footer .quick-links h3 {
    font-size: 18px;
  }

  .footer ul li a,
  .footer .contact-info p {
    font-size: 14px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 15px;
    font-size: 13px;
  }

  .footer .contact-info h3,
  .footer .quick-links h3 {
    font-size: 16px;
  }

  .footer ul li a,
  .footer .contact-info p {
    font-size: 13px;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: var(--brand-primary);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.scroll-to-top:hover {
  filter: brightness(1.12);
}
