/* Universal cross-browser reset and normalization */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default browser styling */
html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Blog content styling */
.blog-content {
  max-width: 700px;
  margin: 2.5rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  background: #222;
  border-radius: 1.2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -moz-text-fill-color: #ffffff;
}
.blog-content h1, .blog-content h2, .blog-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.7em;
  font-weight: bold;
  color: #d4a574;
  -webkit-text-fill-color: #d4a574;
  -moz-text-fill-color: #d4a574;
}
.blog-content h1 {
  font-size: 2.1rem;
}
.blog-content h2 {
  font-size: 1.4rem;
}
.blog-content p {
  margin-bottom: 1.2em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  -moz-text-fill-color: #ffffff;
}
.blog-content a {
  color: #d4a574;
  text-decoration: underline;
  -webkit-text-fill-color: #d4a574;
  -moz-text-fill-color: #d4a574;
}
.blog-content a:hover {
  color: #ffd700;
  -webkit-text-fill-color: #ffd700;
  -moz-text-fill-color: #ffd700;
}
/* Ensure mobile nav and sidebar are always above hero video */
.mobile-nav {
  z-index: 11000;
  position: relative;
}
.sidenav {
  z-index: 12000;
}

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial;
  font-size: 17px;
}

/* Color variables: change these to update site-wide colors */
:root {
  --page-bg: #a59033; /* main site background - warm gold */
  --panel-bg: #efe7d1; /* accent panel background - light tan */
  --blog-content-bg: #f5ead3; /* blog/content sections - warm beige */
  --panel-inner: #f5efe6; /* inner panel / form background */
  --panel-dark: #111317; /* dark panel for standout forms */
  --input-bg: #ffffff; /* input background */
  --input-border: #d6c9b0; /* input border */
  --nav-bg: rgba(172, 144, 51, 0.9); /* navigation background - AC9033E6 */
  /* Accent color choices (used for headings/links) */
  --accent: #a59033; /* lighter warm gold palette for headings */
  --text-primary: #ffffff; /* primary text color - white */
}

/* Page-scoped heading colors for easier maintenance */
body.blog .blog-content h1 {
  color: #d4a574 !important;
  -webkit-text-fill-color: #d4a574 !important;
  -moz-text-fill-color: #d4a574 !important;
}

/* Home contact section: lighter background */
.home-contact-section {
  background: var(--page-bg) !important;
}

.home-contact-section .blog-content {
  background: #222 !important;
}

.home-contact-section .blog-content h1 {
  color: #d4a574 !important;
  -webkit-text-fill-color: #d4a574 !important;
  -moz-text-fill-color: #d4a574 !important;
  text-align: center;
  margin-top: 0;
  padding-top: 0.5rem;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Contact page section */
.contact-page-section {
  background: var(--page-bg) !important;
}

.contact-page-section .blog-content {
  background: #222 !important;
}

.contact-page-section .blog-content h1 {
  color: #d4a574 !important;
  -webkit-text-fill-color: #d4a574 !important;
  -moz-text-fill-color: #d4a574 !important;
  text-align: center;
  margin-top: 0;
  padding-top: 0.5rem;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Ensure the accent background applies to the app container and main on those pages
   (overrides earlier global var(--page-bg) !important rules). */
body.home #app-container,
body.contact #app-container,
body.home html,
body.contact html,
body.home body,
body.contact body {
  background: var(--page-bg) !important;
  background-color: var(--page-bg) !important;
}

/* FORCE WHITE TEXT ACROSS ALL BROWSERS - EDGE COMPATIBILITY */
/* All nav links and buttons */
.desktop-nav a,
.desktop-nav button,
.desktop-nav button.nav-link,
.desktop-nav a[href],
.desktop-nav button[id="servicesAccordion"],
button#servicesAccordion,
button[id="servicesAccordion"],
.desktop-nav a[href="/"],
.desktop-nav a[href*="/"],
li a,
li button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* All nav icons */
.fa-chevron-down,
.fa-chevron-up,
i[class*="fa-"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Homepage H1 headings - strong override for Edge */
body.home h1,
h1[style*="text-align"],
section h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Desktop nav link color override for Edge/Chrome parity */
.desktop-nav a, .desktop-nav button.nav-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Ensure Services button text is explicitly white on desktop and mobile */
.desktop-nav #servicesAccordion,
.desktop-nav #servicesAccordionMobile,
.desktop-nav #servicesAccordion i,
.desktop-nav #servicesAccordionMobile i,
.desktop-nav li button {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Contact and general page H1 defaults (scoped by pageClass) */
body.contact h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Homepage specific H1 rules - stronger override */
body.home h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  -moz-text-fill-color: #ffffff !important;
}

/* Edge-specific color fix */
@supports (-ms-ime-align: auto) {
  body.home h1,
  body.contact h1,
  .desktop-nav a,
  .desktop-nav button {
    color: #ffffff !important;
  }
  
  .home-contact-section .blog-content,
  .contact-page-section .blog-content {
    background: #222 !important;
  }
}


#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg) !important;
}


main {
  flex: 1 0 auto;
  margin: 0;
  padding: 70px 0 0 0; /* Offset for fixed nav height */
  background: var(--page-bg);
}

/* Force consistent page background across browsers (Edge sometimes shows a different base layer) */
html, body, #app-container, main {
  background-color: var(--page-bg) !important;
  background-image: none !important;
}

/* Force consistent rendering across all browsers */
html {
  background: var(--page-bg) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

body {
  background: var(--page-bg) !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: var(--text-primary);
}

/* Ensure nav overlays content */
/* Ensure nav overlays content and is always clickable */
#main-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 10000;
  pointer-events: auto;
}

/* For hero/heroVideoSection on all pages */
.hero, .heroVideoSection {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  margin-top: -70px; /* Pull hero/heroVideoSection up under nav (adjust to nav height) */
  padding-top: 0;
}

#hero-bg-video, .heroVideoSection video, #video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  max-width: 100vw;
  max-height: 100vh;
}
.hero-overlay-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  z-index: 2;
  pointer-events: none;
}
.hero-content-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  color: #fff;
  text-align: center;
  width: 90vw;
  max-width: 700px;
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 1rem;
}

/* NAVIGATION OVERLAY (MOBILE SIDEBAR & DESKTOP STICKY) */
#main-nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  z-index: 1000; /* Above hero/video */
  background: transparent;
  pointer-events: auto;
}
#main-nav-overlay .nav-hamburger {
  display: flex;
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
  pointer-events: auto;
}
#main-nav-overlay .nav-hamburger span {
  display: block;
  width: 2.2rem;
  height: 0.3rem;
  margin: 0.3rem 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
#main-nav-overlay .nav-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
#main-nav-overlay .nav-sidebar-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
#main-nav-overlay .nav-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 80vw;
  max-width: 340px;
  background: linear-gradient(120deg, #181818 80%, #232323 100%);
  color: #fff;
  z-index: 1200;
  box-shadow: 2px 0 16px rgba(0,0,0,0.4);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  border-top-right-radius: 1.2em;
  border-bottom-right-radius: 1.2em;
  opacity: 0;
  pointer-events: none;
}
#main-nav-overlay .nav-sidebar.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
#main-nav-overlay .nav-sidebar .nav-logo {
  margin-bottom: 2rem;
  text-align: left;
}
#main-nav-overlay .nav-sidebar a {
  color: #ffd700;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.7rem;
  transition: color 0.2s, background 0.2s;
  border-radius: 0.3em;
  padding: 0.4em 0.7em;
}
#main-nav-overlay .nav-sidebar a:hover {
  color: #fffbe0;
  background: #232323;
}
#main-nav-overlay .nav-sidebar .sidebar-dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  margin-bottom: 0.7rem;
  width: 100%;
  text-align: left;
  padding: 0.4em 0.7em;
  border-radius: 0.3em;
  transition: background 0.2s;
}
#main-nav-overlay .nav-sidebar .sidebar-dropdown-toggle:hover {
  background: #232323;
}
#main-nav-overlay .nav-sidebar .sidebar-dropdown-menu {
  display: flex;
  flex-direction: column;
  margin-left: 1.2rem;
  border-left: 2px solid #ffd700;
  padding-left: 1rem;
}
#main-nav-overlay .nav-sidebar .sidebar-dropdown-menu a {
  color: #ffd700;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.3em 0.5em;
}
#main-nav-overlay .nav-sidebar .sidebar-dropdown-menu a:hover {
  color: #fffbe0;
  background: #232323;
}
#main-nav-overlay .nav-sidebar .nav-sidebar-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
  z-index: 1300;
  transition: color 0.2s;
}
#main-nav-overlay .nav-sidebar .nav-sidebar-close:hover {
  color: #ffd700;
}

/* DESKTOP STICKY NAVIGATION */
@media (min-width: 801px) {
  #main-nav-overlay {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    pointer-events: auto;
    background: rgba(24,24,24,0.85); /* semi-transparent over hero */
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  }
  #main-nav-overlay .nav-hamburger,
  #main-nav-overlay .nav-sidebar,
  #main-nav-overlay .nav-sidebar-overlay {
    display: none !important;
  }
  /* Add your desktop nav styles here if needed */
}

/* Ensure hero overlays are always below nav */
.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}
#hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  max-width: 100vw;
  max-height: 100vh;
}

.hero-content-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  color: #fff;
  text-align: center;
  width: 90vw;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 1rem;
}


/* --- FOOTER & CONTACT FORM --- */
.footer {
  background: var(--nav-bg) !important;
  color: #f5f1ea !important;
  text-align: center;
  padding: 1rem 0;
  flex-shrink: 0;
}

#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}
/* body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
} */
main {
  flex: 1 0 auto;
  margin: 0;
  padding: 70px 0 0 0; /* Add top padding equal to nav height */
  /*Do NOT add padding-top to body or #app-container.
    Keep the flexbox sticky footer CSS as is. */
}
.footer {
  flex-shrink: 0;
}

/* SIDEBAR NAVIGATION */
/* .sidenav {
  height: 100vh;
  width: 0;
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  background: rgba(24,24,24,0.97);
  overflow-x: hidden;
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
  padding-top: 2.5rem;
  box-shadow: 2px 0 16px rgba(0,0,0,0.4);
  border-top-right-radius: 1.2em;
  border-bottom-right-radius: 1.2em;
}
.sidenav[aria-hidden="false"] {
  width: 270px;
}
.sidenav .closebtn {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 2.1rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1300;
}
.sidenav .nav-logo {
  margin-bottom: 2rem;
  text-align: left;
}
.sidenav a, .sidenav button.accordion {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.7rem;
  background: none;
  border: none;
  padding: 0.6em 1.2em 0.6em 1.2em;
  border-radius: 0.3em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.sidenav a:hover, .sidenav button.accordion:hover {
  background: #232323;
  color: #ffd700;
}
.sidenav button.accordion {
  justify-content: space-between;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  width: 100%;
  outline: none;
}
.sidenav button.accordion.active, .sidenav button.accordion[aria-expanded=\"true\"] {
  color: #ffd700;
}
.sidenav .panel {
  display: flex;
  flex-direction: column;
  background: none;
  padding-left: 1.5em;
  border-left: 2px solid #ffd700;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(.4,0,.2,1);
}
.sidenav .panel a {
  color: #ffd700;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.3em 0.5em;
  background: none;
}
.sidenav .panel a:hover {
  color: #fffbe0;
  background: #232323;
}
@media (min-width: 801px) {
  .sidenav, .nav-hamburger, .nav-sidebar-overlay { display: none !important; }
}