/* Basic styling to approximate the screenshots, updated for full-viewport hero and sticky navbar behavior */
:root {
  --hero-height: 100vh;
  /* full first view */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
  --topbar-height: 0px;
  --nav-total-height: 120px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: #222;
  margin: 0;
  transition: padding-top 0.25s ease;
}

/* Topbar and navbar overlay initial state (transparent over hero) */
.overlay-topbar,
.overlay-navbar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 40;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

/* specific topbar style */
.topbar.overlay-topbar {
  top: 0;
  background: transparent;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Navbar overlay */
.overlay-navbar {
  top: 0 !important;
  background: transparent;
}

/* Hide navbar on mobile, only show offcanvas menu */
@media (max-width: 767.98px) {
  /* Hide the overlay navbar background logic if it interferes, but we need the nav itself for the toggler */
  /* .overlay-navbar { display: none !important; } - actually we probably want the navbar container to be visible for the logo and toggle */

  /* Ensure offcanvas toggler is visible, so do not hide the nav container */
}

/* When scrolled, pin to top and give opaque background & shadow */
body.nav-scrolled .overlay-topbar,
body.nav-scrolled .overlay-navbar {
  position: fixed;
  left: 0;
  right: 0;
  background: #fff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

/* Ensure navbar sits below topbar when pinned */
body.nav-scrolled .overlay-topbar {
  top: 0;
}

body.nav-scrolled .overlay-navbar {
  top: var(--topbar-height);
}

/* Apply the equivalent padding-top to body so content doesn't jump (set dynamically too) */
body.nav-scrolled {
  padding-top: var(--nav-total-height);
}

/* Logo sizes */
.topbar .logo {
  height: 44px;
}

.logo-sm {
  height: 36px;
}

.footer-logo {
  height: 56px;
}

/* Navbar links (ensure good contrast when pinned) */
/* Default overlaying nav: white links for contrast against hero */
.overlay-navbar .nav-link {
  color: #fff;
  font-weight: 500;
}

.overlay-navbar .nav-link:hover {
  color: var(--bs-primary);
}

/* When nav is scrolled (pinned) use dark links for contrast on white background */
body.nav-scrolled .overlay-navbar .nav-link {
  color: rgba(0, 0, 0, 0.85);
}

body.nav-scrolled .overlay-navbar .nav-link:hover {
  color: var(--bs-primary);
}

/* topbar contact link colors */
.topbar-contact {
  color: var(--bs-primary);
  transition: color 0.25s ease;
}

.topbar-email {
  color: var(--bs-primary);
  transition: color 0.25s ease;
  text-decoration: none;
}

body.nav-scrolled .topbar-contact {
  color: rgba(0, 0, 0, 0.85);
}

body.nav-scrolled .topbar-email {
  color: rgba(0, 0, 0, 0.85);
}

/* Social icons in topbar */
.topbar-social a {
  color: #fff;
  font-size: 1.25rem;
  transition: color 0.25s ease;
}

.topbar-social a:hover {
  color: var(--bs-primary);
}

body.nav-scrolled .topbar-social a {
  color: rgba(0, 0, 0, 0.7);
}

body.nav-scrolled .topbar-social a:hover {
  color: var(--bs-primary);
}

/* Ensure social icons are visible on white topbar (non-homepage) */
.topbar.bg-white .topbar-social a {
  color: #000;
}
.topbar.bg-white .topbar-social a:hover {
  color: var(--bs-primary);
}

/* Hide default bootstrap caret; we use FontAwesome */
.navbar .dropdown-toggle::after {
  display: none !important;
}

/* Mobile hamburger button */
.mobile-toggle {
  color: #fff;
  position: relative;
  transition: color 0.25s ease;
  width: 36px !important;
  height: 28px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

body.nav-scrolled .mobile-toggle {
  color: var(--bs-secondary, #6c757d) !important;
}

.mobile-toggle:focus,
.mobile-toggle:active {
  outline: none !important;
  box-shadow: none !important;
}

.mobile-toggle {
  z-index: 1060; /* Higher than offcanvas (1045) */
}

/* When menu is open (button is X), ensure it's visible (black) because offcanvas bg is white */
.mobile-toggle[aria-expanded="true"] {
  color: #000 !important;
}

/* Animated hamburger icon */
.hamburger-icon {
  width: 34px;
  height: 24px;
  position: relative;
  display: block !important;
  margin: 0 auto;
}

.hamburger-icon span {
  display: block !important;
  position: absolute;
  height: 4px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

/* Ensure the hamburger is visible on non-overlay (white) topbar */
.topbar.bg-white .mobile-toggle {
  color: #000;
}

/* Ensure hamburger is dark on standard white navbar (subpages) */
.navbar.bg-white .mobile-toggle {
  color: var(--bs-secondary, #6c757d) !important;
}

.topbar.bg-white .hamburger-icon span {
  background: var(--bs-secondary, #6c757d) !important;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 10px;
}

.hamburger-icon span:nth-child(3) {
  top: 20px;
}

/* Transform to X when menu is open */
.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* HERO */
.hero-wrap {
  position: relative;
  height: var(--hero-height);
  overflow: hidden;
  display: block;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(80%) contrast(0.9) brightness(0.45);
}

/* overlay to darken video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

/* content inside hero */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-total-height);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 0.95;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.hero-lead {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1rem;
}

/* CTA button uses Bootstrap primary */
.btn-primary {
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

/* Footer */
.footer {
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--bs-primary);
}

/* google circle look */
.google-circle img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 9999px;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .hero-wrap {
    height: 72vh;
  }

  .topbar .container {
    gap: 0.5rem;
  }

  .overlay-navbar {
    top: calc(var(--topbar-height) - 8px);
  }

  .topbar-social {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.02;
  }

  .hero-lead {
    display: none;
  }
}
.grecaptcha-badge {
  /* visibility: hidden; */
  opacity: 0.1;
  transition: opacity 0.3s;
}

.grecaptcha-badge:hover {
  opacity: 1;
}
