/*--------------------------------------------------------------
# 1. CORE VARIABLES & THEMING
--------------------------------------------------------------*/
:root {
  /* Brand Palette */
  --primary-color: #6ba7d6;       /* soft-blue */
  --primary-alt: #87ceeb;         /* bluish */
  --secondary-color: #0b1f52;     /* dark-navy */
  --accent-color: #BF092F;        /* Crimson red-accent */
  --accent-hover: #960725;
  
  /* Shared UI Colors */
  --light-blue: #9bc2e1;
  --white: #ffffff;
  --text-main: #333333;
  --text-light: #555555;
  --bg-light: #f1f1f1;
  --border-color: #e9ecef;

  /* Typography */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Rubik", sans-serif;

  /* Transitions & Layers */
  --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --z-index-top: 2000;
  --shadow-sm: 0px 2px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# 2. BASE RESET & UTILITIES
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  color: var(--text-light);
  background-color: var(--white);
  line-height: 1.6;
}

p { font-size: 1.25rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-standard);
}

a:hover {
  color: var(--light-blue) !important;
}
/* --- Header Specifics --- */
#header {
    transition: var(--transition-standard);
}

/* Capitalize & Weight */
.navbar-nav .nav-link {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

/* --- Desktop Hover Animation --- */
@media (min-width: 992px) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

header.scrolled {
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.08);
}
 

@keyframes navFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Offcanvas Dropdown Fix --- */
/* This makes the sub-menu visible and nested inside the side tray */
.offcanvas-body .dropdown-menu {
    display: block !important; 
    position: static !important;
    background: #f8f9fa;
    border: none;
    box-shadow: none !important;
    padding-left: 1.5rem;
    margin: 10px 0;
}

.offcanvas-body .dropdown-toggle::after {
    display: none; /* Hide arrow since it's always expanded on mobile */
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure Logo text scales correctly */
.navbar-brand {
    font-family: var(--font-heading);
}

/* Background Utility Classes */
.bg1 { background-color: var(--primary-color); }
.bg2 { background-color: var(--primary-alt); }
.bg3 { background-color: var(--secondary-color); }
.bg4 { background-color: var(--accent-color); }

/* Text Color Utility Classes */
.text-accent { color: var(--accent-color) !important; }
.text-bluish { color: var(--primary-alt) !important; }
.text-navy { color: var(--secondary-color) !important; }

/*--------------------------------------------------------------
# 3. NAVIGATION & HEADER
--------------------------------------------------------------*/
.top-bar {
    position: relative;
    z-index: var(--z-index-top) !important;
}

.mymenu .nav-link {
  color: var(--text-light);
  transition: var(--transition-standard);
}

.mymenu .nav-link {margin:5px 8px; } 

.mymenu .nav-link:hover { color: var(--primary-color); }
.mymenu .nav-link.active { color: var(--primary-alt); }

/* Offcanvas */
.offcanvas {
    width: 300px !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.offcanvas-body .nav-link {
    transition: padding-left 0.3s ease;
    padding-top: 20px;
    border-bottom: 1px solid;
}

.offcanvas-body .nav-link:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# 4. BUTTONS & INTERACTIVE COMPONENTS
--------------------------------------------------------------*/
.btn-base {
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-standard);
    border: none;
    display: inline-block;
    text-align: center;
}

/* Generic Button variants */
.btn1 { 
    background: var(--primary-color); 
    color: var(--secondary-color); 
}

.btn2 { 
    background: var(--secondary-color); 
    color: #fff; 
}

.btn2:hover { 
    background: var(--primary-alt); 
    color: var(--secondary-color); 
}

.btn3 { 
    background: var(--accent-color); 
    color: #fff; 
}
.btn3:hover { background: var(--secondary-color); color: #fff; }

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/*--------------------------------------------------------------
# 5. HERO, SLIDERS & OVERLAYS
--------------------------------------------------------------*//* Hero Dimensions Update */
/* --- Solid Hero Layout --- */
.hero-slider-wrapper {
    position: relative;
    display: block; /* Ensures it occupies space */
    width: 100%;
    height: 450px;  /* Fixed height for stability */
    overflow: hidden;
    background-color: #000; /* Prevents white flash before load */
}

.mainHeroSwiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image aspect ratio */
    display: block;
}

/* Ensure the overlay covers exactly the fixed height */
.overlay-div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4); /* Darkens image for text clarity */
}
/* Pagination adjustments for shorter height */
.swiper-pagination {
    bottom: 20px !important;
}


/* Prevent text flicker before JS triggers animation */
.mainHeroSwiper .animate__animated {
    opacity: 0;
}

/* Ensure the pagination bullets use your crimson brand color */
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    width: 25px;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Styling for Service Icons */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Styling for the Quote in Why GentleNest Exists */
.italic {
    font-style: italic;
    opacity: 0.9;
}

/* 2-Column Card Specifics */
.object-fit-cover {
    object-fit: cover;
    height: 100%;
}

.rounded-4 {
    border-radius: 1.5rem !important;
}

/* Ensure the dash is consistent in this layout */
.card-body .dash {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 0;
}

/* Adjusting the text column background if needed */
.card-body {
    background-color: #ffffff;
}

/* Responsive Border for 2-Column Section */
@media (min-width: 992px) {
    .border-end-lg {
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
}

/* Icon scaling for large impact */
.fs-1 {
    font-size: 3rem !important;
}
/*--------------------------------------------------------------
# 6. DARK MODE SUPPORT
--------------------------------------------------------------*/
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .card,
.dark-mode .list-group-item,
.dark-mode .form-control {
    background-color: #1e1e1e;
    border-color: #333;
    color: #e0e0e0;
}

/* Contact Section Styles */
.social-icons a {
    transition: var(--transition-standard);
}

.social-icons a:hover {
    color: var(--primary-alt) !important;
    transform: translateY(-3px);
    opacity: 1 !important;
}

/* Map Styling */

/* Clean & Bright Map Styling */
.map-container {
    line-height: 0; 
    width: 100%;
    background: #eee; /* Placeholder color while map loads */
}

.map-container iframe {
    filter: none !important; /* Forces standard Google colors */
    opacity: 1 !important;   /* Full brightness */
    vertical-align: middle;
}


/* Tracking utility for headers */
.tracking-wider {
    letter-spacing: 0.15rem;
}

/*--------------------------------------------------------------
# 7. MISC & EXTERNAL (Google Translate)
--------------------------------------------------------------*/
.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
}
.goog-te-combo {
    font-size: 16px; 
    padding: 8px; 
    border-radius: 5px;
}

footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 40px 0;
}

/* Medium typography for balanced readability */
.footer-text-medium {
    font-size: 1.1rem; /* Slightly larger than standard (1rem), smaller than fs-5 (1.25rem) */
    line-height: 1.6;
}

.footer-links a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-alt) !important;
    padding-left: 5px;
}

/* Headings adjustment */
.bg3 h5 {
    font-size: 0.95rem;
    letter-spacing: 2px;
}

/* Footer Link Interactions */
.footer-links li {
    margin-bottom: 10px;
}

.tracking-wider {
    letter-spacing: 0.15rem;
    font-size: 1rem; /* Heading size */
}

/* Ensure icons scale with larger text */
.footer-links i, .text-white-50 i {
    font-size: 1.2rem;
}


/* FORCE hover dropdown on desktop */
@media (min-width: 992px) {

  .navbar .dropdown-hover:hover > .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar .dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
  }
}

/* VERY IMPORTANT: allow dropdown to overflow */
.navbar,
.navbar .container,
.navbar-collapse {
  overflow: visible !important;
}


/* Crisis Banner Styling 
.crisis-banner {
    background-color: var(--accent-color); 
    color: #ffffff;
    font-size: 0.95rem;
    position: relative;
    z-index: 1050; /* Above Navbar *//*
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.crisis-banner a {
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.crisis-banner a:hover {
    opacity: 0.8;
    color: #ffffff;
}

.crisis-banner .tracking-wider {
    letter-spacing: 0.05rem;
}

*/

/* Adjust Navbar padding if the banner is present */
.navbar {
    top: 0;
}
