
/* === CROWS PAGE: make layout full-bleed (no horizontal cutoff) === */
body.crows-page .container{
  max-width: 100% !important;      /* override Bootstrap container widths */
  width: 100% !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}
/* Also ensure the hero wrapper and sections can expand fully */
body.crows-page main, 
body.crows-page section,
body.crows-page header.header-hero{
  width: 100% !important;
}

/* ==== Sticky footer and layout fix ==== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #283553; /* removes stray white borders */
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 0 !important; /* remove bootstrap spacing that caused white top gap */
}

main {
  flex: 1 0 auto;
  background: #fff; /* page content stays white */
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  background: #283553;
  color: #F2F2F2;
  border: none;
  padding: 2rem 0;
}

/* Theme colors */
:root {
  --navy: #283553;
  --off: #F2F2F2;
  --ink: #0f1222;
}

body {
  background: #fff;
  color: var(--ink);
}

.navbar {
  background: var(--navy) !important;
  z-index: 1050;
}

.navbar .nav-link,
.navbar .navbar-brand {
  color: #fff !important;
}

.dropdown-menu {
  min-width: 16rem;
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: static !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    width: 100%;
  }
}

/* Header hero (top section) */
.header-hero {
  background: linear-gradient(135deg, var(--navy), #141b2e);
  color: #fff;
  padding: 5rem 0 4rem;
  margin-top: 0; /* ensure it touches the navbar */
  scroll-margin-top: 72px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  margin-right: 0.6rem;
}

.section {
  padding: 4rem 0;
}

.badge-soft {
  background: #e6ecff;
  color: #2c3f8a;
  font-weight: 600;
}

/* Buttons */
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1f2a45;
  border-color: #1f2a45;
}

/* Text color helpers */
.text-primary {
  color: var(--navy) !important;
}

/* Prevent stray horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Feature cards */
.feature-card .feature-icon {
  margin: 0 0 0.5rem 0;
}

.feature-card h5,
.feature-card p {
  text-align: center;
}

.feature-logo,
.product-card img,
.card img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 64px; /* consistent with your feature-icon size */
  margin: 0 auto 0.6rem auto;
  border-radius: 16px;
}

/* Video placeholder */
.video-placeholder {
  background: #111827 linear-gradient(135deg, #0f1222, #283553);
  position: relative;
}

.video-placeholder 

.video-placeholder 

/* Phone ratio */
.phone-ratio {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: #000;
}

.phone-ratio video {
  display: block;
}

/* Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
}

#galleryModal .carousel-item img {
  max-height: 85vh;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
}

#galleryModal .modal-body {
  background: #000;
}

/* About + Footer tweaks */
#about.section {
  padding-bottom: 0;
  background: var(--navy);
  color: var(--off);
}

#about.section .container > :last-child {
  margin-bottom: 0 !important;
}

/* Footer link color */
.footer a,
.footer a:visited,
.footer a:hover,
.footer a:active {
  color: var(--off) !important;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .btn-outline-light {
  color: var(--off);
  border-color: var(--off);
}

.footer .btn-outline-light:hover {
  background: #1f2a45;
  border-color: #1f2a45;
}

/* Stick "About Mber" to the footer with no white gap */
#about.section {
  margin-top: auto;                 /* pushes About down to the bottom */
  padding-bottom: 0;                /* remove extra spacing above footer */
  background: var(--navy);
  color: var(--off);
}
#about.section .container > :last-child { margin-bottom: 0 !important; }

/* Footer should NOT consume the free space anymore */
.footer {
  flex-shrink: 0;
  margin-top: 0;                    /* IMPORTANT: override any margin-top:auto on footer */
}

/* Lightbox: use an X button instead of footer Close row */
#galleryModal .btn-close {
  filter: invert(1); /* ensure visible on dark background */
}
#galleryModal .modal-body {
  background: #000;
  padding: 0;
}
#galleryModal .carousel-item img {
  display: block;
  max-height: 85vh;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}



/* --- Gallery modal: top-right X close button --- */
#galleryModal .modal-body { position: relative; }
#galleryModal .btn-close { position: absolute; top: .75rem; right: .75rem; z-index: 1060; filter: invert(1); opacity: .95; }
#galleryModal .btn-close:focus { box-shadow: none; }



/* === Global footer alignment & sizing === */
.footer .container

.footer a { text-decoration: none; }

/* === Footer polish (global) === */
.footer .container


/* Footer links: plain, no borders/outlines/box-shadows anywhere */
.footer a{
  text-decoration: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.footer a:focus, .footer a:active, .footer a:hover{
  text-decoration: underline;   /* subtle hover/focus without border */
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}


/* vertical centering */
  justify-content: center;   /* horizontal centering */
  gap: .4rem;
  line-height: 1.1;
  padding: .5rem 12px;
  white-space: nowrap;       /* prevent line breaks on mobile */
  max-width: 92vw;           /* keep away from edges */
  margin-inline: auto;
}
.footer-bar { font-size: 12px; }
.footer a{
  text-decoration: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.footer a:focus, .footer a:hover{
  text-decoration: underline; /* subtle feedback without any border */
}


/* === Header/Footer Unification & Mobile Bottom Fix === */
html { height: -webkit-fill-available; }
html, body { margin:0; padding:0; }
body {
  display:flex;
  flex-direction:column;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow-x:hidden;
  overflow-anchor: none;
}
main { flex: 1 0 auto; }
.section:last-of-type { padding-bottom: 0; margin-bottom: 0; }

/* Unified footer */
/* === Final Unified Footer (navy + thin white top border) === */

/* Unified footer */
.site-footer{
  background:#283553;
  color:#F2F2F2;
  border-top:1px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center;
  padding:.75rem 1rem; font-size:12px; text-align:center; white-space:nowrap;
}
.site-footer a{ color:#F2F2F2; text-decoration:none; margin:0 .3rem; border:0; outline:0; box-shadow:none; }
.site-footer a:hover{ color:#FFF; text-decoration:underline; }


/* === Layout: footer sits at bottom when content is short === */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1 0 auto; }



/* --- Header brand: logo + text side-by-side --- */
.navbar-brand .brand-logo { height: 32px; width: auto; display: inline-block; vertical-align: middle; }
.navbar-brand .brand-text { font-weight: 700; letter-spacing: .2px; line-height: 1; }
.navbar-toggler { filter: invert(100%); } /* ensures toggler visible on navy */

/* --- About Mber: slightly higher + soft navy->white gradient --- */
#about{
  min-height: 42vh;
  padding-top: 1rem !important;
  background: linear-gradient(to bottom, #283553 0%, #f8f9fa 100%);
  background-color: #283553; /* fallback */
}



/* Thin white divider under header */
.navbar { border-bottom: 1px solid rgba(255,255,255,0.35); }



/* About matches Crow's Nest "What Travelers Say" background */
#about {
  background: #f4f6fb;
  background-color: #f4f6fb;
}



/* Sticky header + thin divider */
.sticky-top { position: sticky; top: 0; z-index: 1050; }
.navbar { border-bottom: 1px solid rgba(255,255,255,0.35); }


/* About background matches Crows Nest "What Travelers Say" */
#about{ background:#f4f6fb; background-color:#f4f6fb; }

/* Match Contact Us heading to Product Portfolio heading */
#contact h2{ font-size: clamp(26px, 3vw, 36px); }

/* Center content on Home */
body.home-page main .container, 
body.home-page .section .container { text-align: center; margin-inline: auto; }


/* Center the card under Product Portfolio and increase spacing */
.section.essence h2{ margin-bottom: 1.25rem; }
.section.essence .card{ margin-inline: auto; margin-top: 1rem; display: block; }

/* Make Email button look like 'Explore Crow's Nest' by using primary color */
.btn-primary{
  background-color:#283553;
  border-color:#283553;
}
.btn-primary:hover,
.btn-primary:focus{
  background-color:#1f2940;
  border-color:#1f2940;
}

/* Contact Us heading same typographic scale as Product Portfolio */
#contact h2{
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: .2px;
}

/* Ensure footer stays pinned even when zooming: main grows to fill viewport minus header+footer */
body.home-page{
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.home-page main{
  flex: 1 0 auto;
  min-height: calc(var(--vh, 1vh) * 100 - var(--header-h, 0px) - var(--footer-h, 0px));
}

/* About Mber background switched to light gray */
#about{
  background: #f2f2f2 !important;
  background-color: #f2f2f2 !important;
}

/* Horizontally center common containers on Home */
body.home-page main .container,
body.home-page .section .container{
  text-align: center;
  margin-inline: auto;
}


/* About Mber: ensure text color matches global body text */
#about, #about h2, #about p, #about li, #about span {
  color: var(--bs-body-color, #212529) !important;
}

/* Email button: white text like other primary buttons */
.btn-primary, .btn-primary:visited { color: #fff !important; }
.btn-primary .btn-label { color: #fff !important; }

/* Center the Crow's Nest card under Product Portfolio */
.section.essence .row { justify-content: center; }
.section.essence .card { margin-left: auto; margin-right: auto; }

/* Sticky header fallback */
.sticky-top { position: sticky; top: 0; z-index: 1050; }

/* About Mber: same light panel color as testimonials */
#about { background: #f5f7fb !important; background-color: #f5f7fb !important; }

/* Unified section h2 style */
.section-title{
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1rem;
}
/* Apply to specific sections on Home */
.section.essence h2, #about h2, #contact h2{ composes: section-title; } /* will be ignored if CSS Modules not used */
.section.essence h2, #about h2, #contact h2{
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1rem;
}

/* Fixed header support */
.navbar.fixed-top{ position: fixed; top:0; left:0; right:0; z-index: 1050; }
body{ padding-top: var(--header-h, 56px); } /* space so content not hidden */


/* --- Ensure hero title is not hidden under fixed header --- */
.header-hero{
  /* add the header height to the top padding so the H1 stays fully visible */
  padding-top: calc(3rem + var(--header-h, 56px)) !important;
}

/* --- Product Portfolio card: single border with generous padding --- */
.section.essence .card{
  margin-inline: auto;
  margin-top: 1.25rem;
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
/* Remove any nested card borders inside the main card */
.section.essence .card .card{
  border: 0 !important;
  box-shadow: none !important;
}
/* Comfortable inner spacing */
.section.essence .card > .card-body{
  padding: 1rem 1.25rem !important;
}
/* If card-body isn't used, provide a fallback padding to immediate children */
.section.essence .card > :not(img){
  padding-left: 1rem;
  padding-right: 1rem;
}


/* Home: more inner space in portfolio card so all content fits */
.section.essence .card > .card-body{
  padding: 1.25rem 1.5rem 2rem !important; /* extra bottom padding */
}
.section.essence .card .btn{
  margin-top: .5rem;
}

/* Crow's Nest: center layout to match Home */
body.crows-page main .container,
body.crows-page .section .container{
  text-align: center;
  margin-inline: auto;
}
/* Ensure hero lead text width is not too wide on large screens */
body.crows-page .lead{ max-width: 56ch; margin-left: auto; margin-right: auto; }
/* Center FAQ container and headings; keep answers readable */
body.crows-page #faq, 
body.crows-page #faq .container{ text-align: center; }
body.crows-page #faq .accordion{ margin-left: auto; margin-right: auto; text-align: left; max-width: 900px; }


/* HOME — Product Portfolio card: single border + generous inner space */
.section.essence .card{
  max-width: 560px;
  margin: 1.25rem auto 2rem !important;  /* centered with extra bottom gap */
  padding: 1.25rem 1.5rem 2.25rem !important; /* more bottom padding so button fits */
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
.section.essence .card .card{ border: 0 !important; box-shadow: none !important; }
.section.essence .card .btn{ margin-top: .75rem !important; display: inline-block !important; }



/* CROWS — center layout to match Home */
.crows-page main .container,
.crows-page .section .container{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* Keep text readable width */
.crows-page .lead{ max-width: 56ch; margin-left: auto; margin-right: auto; }
/* Center a generic button row */
.crows-page .btn-row{ display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* FAQ container centered; answers left-aligned */
.crows-page #faq, .crows-page #faq .container{ text-align: center; }
.crows-page #faq .accordion{ max-width: 900px; margin-left: auto; margin-right: auto; text-align: left; }


/* HOME — Product Portfolio card: tighter inner padding */
.section.essence .card{
  padding: 0.75rem 1rem 1.25rem !important; /* tighter all around */
}
.section.essence .card .btn{
  margin-top: .5rem !important;
}

/* CROWS — center hero headings & text */
.crows-page .hero, 
.crows-page .hero h1,
.crows-page .hero h2,
.crows-page .hero p{
  text-align: center !important;
}
.crows-page .hero h1, 
.crows-page .hero p{
  margin-left: auto;
  margin-right: auto;
}


/* === Product Portfolio card — tighter layout === */
.section.essence .card {
  max-width: 520px !important;
  padding: 0.5rem 0.75rem 1rem !important;  /* tighter */
  margin: 1rem auto 2rem !important;       /* centered + extra bottom gap */
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-align: center !important;
}
.section.essence .card .card{ border:0 !important; box-shadow:none !important; }
.section.essence .card .btn{ margin-top:.5rem !important; display:inline-block !important; }

/* === Crows hero — force full horizontal centering === */
.crows-page .hero,
.crows-page .hero .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
}
.crows-page .hero h1,
.crows-page .hero h2,
.crows-page .hero p{
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.crows-page .btn-row{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }



/* === HOME — Product Portfolio card ultratight === */
.section.essence .card{
  max-width: 480px !important;
  padding: 0.4rem 0.75rem 0.6rem !important; /* much tighter */
  margin: 0.75rem auto 1.5rem !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
  border-radius: 10px !important;
  text-align: center !important;
  box-shadow: none !important;
}
.section.essence .card h5, 
.section.essence .card p{ margin-bottom: .5rem !important; }
.section.essence .card .btn{ margin-top: .4rem !important; display: inline-block !important; }

/* === CROWS — hard centering for hero + buttons + supporting copy === */
body.crows-page main,
body.crows-page .hero,
body.crows-page .hero .container{
  text-align: center !important;
}
/* Use grid to center any children regardless of prior floats/margins */
body.crows-page .hero .container{
  display: grid !important;
  place-items: center !important;
}
/* Ensure headings and paragraphs center & get sensible width */
body.crows-page .hero h1,
body.crows-page .hero h2,
body.crows-page .hero p{
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 60ch !important;
}
/* Center the CTA buttons row robustly */
body.crows-page .hero .btn-row{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
body.crows-page .hero a.btn{
  display: inline-block !important;
}

/* CROWS — FAQ centered heading and container; keep answers left inside */
body.crows-page #faq, 
body.crows-page #faq .container{
  text-align: center !important;
}
body.crows-page #faq .accordion{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}



/* HOME — Product Portfolio card: symmetric padding and tidy inner margins */
.section.essence .card{
  max-width: 520px !important;
  padding: 1rem 0.9rem !important;        /* symmetric top/bottom/left/right */
  margin: 1rem auto 2rem !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-align: center !important;
}
/* Remove extra outer margins that would skew perceived padding */
.section.essence .card > *:first-child{ margin-top: 0 !important; }
.section.essence .card > *:last-child{ margin-bottom: 0 !important; }
.section.essence .card h5, 
.section.essence .card p{ margin-top: .35rem !important; margin-bottom: .35rem !important; }
.section.essence .card .btn{ margin-top: .5rem !important; display: inline-block !important; }


/* CROWS — robust centering for hero + FAQ */
body.crows-page main,
body.crows-page section,
body.crows-page .hero,
body.crows-page .hero .container,
body.crows-page .hero .row{
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Center any column wrappers inside hero */
body.crows-page .hero [class*="col"]{
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
/* Constrain and center hero text */
body.crows-page .hero h1,
body.crows-page .hero h2,
body.crows-page .hero p{
  max-width: 60ch !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Ensure CTA buttons are centered */
body.crows-page .hero .btn-row{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
/* FAQ heading+container centered; accordion content left for readability */
body.crows-page #faq, body.crows-page #faq .container{ text-align: center !important; }
body.crows-page #faq .accordion{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}



/* === CROWS PAGE: Center hero content and FAQ (2025-10-11) === */
body.crows-page header.header-hero{
  text-align: center !important;
}
body.crows-page header.header-hero .container{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Limit text measure for readability on ultra-wide screens */
body.crows-page header.header-hero .col-12.col-lg-6{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* Center the two hero buttons row */
body.crows-page header.header-hero .btn-row{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

/* FAQ: center heading and container; keep accordion content left-aligned for readability */
body.crows-page #faq, 
body.crows-page #faq .container{ text-align: center !important; }
body.crows-page #faq .container{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
body.crows-page #faq .accordion{
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}


/* === CROWS PAGE: widen hero text corridor & FAQ cards (2025-10-11) === */

/* 1) Widen the hero content column so the big headline fits on ~one line on desktop */
body.crows-page header.header-hero .col-12.col-lg-6{
  max-width: 1400px !important;  /* was 900px; allow a much wider line length */
}

/* Also make sure the hero row centers its children nicely */
body.crows-page header.header-hero .row{
  justify-content: center !important;
}

/* 2) FAQ: each Q/A appears inside a centered "card" with a thin border */
body.crows-page #faq .row{
  justify-content: center !important;
}
body.crows-page #faq .row > div{
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1.25rem 1.5rem !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* Keep the answer paragraphs tidy inside the card */
body.crows-page #faq .row > div h6{
  font-weight: 700 !important;
  margin-bottom: .5rem !important;
}
body.crows-page #faq .row > div p{
  margin: 0 auto !important;
  max-width: 60ch !important;
}


/* === HERO TEXT: allow much wider line length (2025-10-11) === */
body.crows-page header.header-hero .col-12.col-lg-6 {
  max-width: 1800px !important;
  width: 100% !important;
}
body.crows-page header.header-hero h1,
body.crows-page header.header-hero h2,
body.crows-page header.header-hero p {
  line-height: 1.15 !important;
}
body.crows-page header.header-hero .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
@media (min-width: 1200px) {
  body.crows-page header.header-hero h1 {
    font-size: 4rem !important;
  }
}


/* === Center the hero buttons properly (2025-10-11) === */
body.crows-page header.header-hero .btn-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
  margin-top: 1.5rem !important;
}
/* Ensure alignment also works if buttons are directly inside hero column */
body.crows-page header.header-hero .col-12.col-lg-6 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
body.crows-page header.header-hero a.btn {
  margin: 0.25rem !important;
}
