/* ==========================================================================
   Your Home Scout — Global Styles (Poppins + Bootstrap helpers)
   Palette:
   --primary:  #0D2B4D (navy)
   --secondary:#F5C542 (gold)
   --accent:   #2FB7EC (sky)
   ========================================================================== */

/* Root variables reusable across pages */
:root {
  --primary: #0D2B4D;
  --secondary: #F5C542;
  --accent: #2FB7EC;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --white: #ffffff;
  --black: #0b1220;
}

/* Base typography/colors (Poppins loaded in HTML) */
html,
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--black);
  background: #fff;
}

a {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Bootstrap color hooks (map Bootstrap tokens to your brand vars)
   -------------------------------------------------------------------------- */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #0a213c;
  --bs-btn-hover-border-color: #0a213c;
}

.btn-secondary {
  --bs-btn-bg: var(--secondary);
  --bs-btn-border-color: var(--secondary);
  --bs-btn-color: #1f2937;
  --bs-btn-hover-bg: #e0b139;
  --bs-btn-hover-border-color: #e0b139;
}

.btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--primary);
}

.btn-outline-dark {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-color: #fff;
}

/* Subtle section treatment + borders using brand tint only */
.section-tint {
  background: rgba(245, 197, 66, 0.06);
}

/* gold@6% */
.border-soft {
  border-color: rgba(13, 43, 77, .12) !important;
}

/* navy@12% */

/* --------------------------------------------------------------------------
   NAVBAR (overlay on hero)
   -------------------------------------------------------------------------- */
.navbar {
  background: transparent;
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  color: #fff !important;
}

.navbar .btn {
  color: #1f2937;
}


/* Navbar Logo Fix (trimmed, now scales correctly) */
.navbar-logo {
  height: 72px;                /* bigger logo height */
  width: auto;
  display: block;
  object-fit: contain;
  padding: 4px 0;              /* centers it vertically */
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* Subtle hover lift */
.navbar-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

/* Responsive scaling for mobile */
@media (max-width: 991.98px) {
  .navbar-logo {
    height: 56px;
  }
}


/* secondary button text */

/* --------------------------------------------------------------------------
   HERO — CindyBond-style
   -------------------------------------------------------------------------- */
.hero-cindy {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-cindy .hero-bg {
  position: absolute;
  inset: 0;
  background: url('/Images/vu-anh-TiVPTYCG_3E-unsplash.jpg') center/cover no-repeat;
  transform: scale(1.02);
}

.hero-cindy .overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 43, 77, .55) 0%, rgba(13, 43, 77, .55) 100%),
    radial-gradient(1200px 600px at 20% 40%, rgba(13, 43, 77, .35), transparent 60%);
  mix-blend-mode: multiply;
}

.hero-cindy .badge {
  background: rgba(47, 183, 236, 0.15);
  color: #e8f8ff;
  border: 1px solid rgba(47, 183, 236, .35);
}

.scroll-indicator {
  bottom: 24px;
}

@keyframes wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: .3;
    transform: translate(-50%, 8px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================
   REUSABLE SECTION UTILS
   ========================= */
.section { background: transparent; }
.section--compact { padding-block: 2rem; }
@media (min-width: 992px){
  .section--compact { padding-block: 2.5rem; }
}

/* Brand + Headings + Copy (reusable) */
.brand-logo { height: 84px; width: auto; }
.heading-eyebrow{
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: #2B2B2B;
  font-size: clamp(2rem, 5vw, 3rem);
}
.lead-copy{
  max-width: 78ch;
  line-height: 1.9;
  color: #333;
  font-size: 1.125rem;
}

/* =============================================
   INDUSTRY KNOWLEDGE + TILES SECTION (Refined)
   ============================================= */
.industry-section {
  background: #fff;
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .industry-section {
    padding: 5rem 0;
  }
}

/* Logo */
.industry-logo {
  width: clamp(180px, 25vw, 300px);
  height: auto;
  display: block;
  margin-inline: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.industry-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}

/* Heading */
.industry-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: #1d1d1d;
  margin-bottom: 1.5rem;
}

/* Copy */
.industry-copy {
  max-width: 75ch;
  margin-inline: auto;
  color: #333;
  line-height: 1.9;
  font-size: 1.125rem;
}

/* ============= TILES (unchanged) ============= */
.tile-card {
  position: relative;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
}

.tile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.tile-card:hover .img-cover {
  transform: scale(1.05);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
  transition: background .3s ease;
}

.overlay-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 77, 0.35);
  z-index: 0;
}

.tile-label {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 2.2vw, 1.75rem);
}

/* --------------------------------------------------------------------------
   WHY CHOOSE (split layout, background removed as requested)
   -------------------------------------------------------------------------- */
/* Smooth anchor offset (your navbar is fixed) */
#why { scroll-margin-top: 88px; }

/* Top & bottom spacing for this section only */
.section-tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 992px){
  .section-tight {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Make the two columns equal height and give the image a confident height */
.why-row { min-height: 520px; }
@media (min-width: 1200px){
  .why-row { min-height: 640px; }
}

/* Background image should cover perfectly with no distortion */
.why-photo{
  background-size: cover;
  background-position: unset;
  background-repeat: no-repeat;
  min-height: 340px;       /* ensures it shows nicely on mobile */
}

/* Optional: give the text panel breathing room on very wide screens */
@media (min-width: 1400px){
  .why-panel { max-width: 760px; }
}


/* --------------------------------------------------------------------------
   TESTIMONIALS HERO (carousel)
   -------------------------------------------------------------------------- */
.testimonial-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.testimonial-hero .bg-img {
  position: absolute;
  inset: 0;
  background: url('/Images/Carousel\ 1.jpg') center/cover no-repeat;
  transform: scale(1.02);
}

.testimonial-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 43, 77, .55), rgba(13, 43, 77, .55));
}

.testimonial-hero .eyebrow {
  color: var(--secondary);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}

.testimonial-hero .display-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.testimonial-hero .quote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.9;
  color: #e5e7eb;
}

.testimonial-hero .author {
  font-style: italic;
  font-weight: 600;
  letter-spacing: .04em;
}

.testimonial-hero .view-all {
  background: var(--secondary);
  border: none;
  color: #1f2937;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .9rem 1.6rem;
}

.testimonial-hero .view-all:hover {
  filter: brightness(.95);
}

.testimonial-hero .carousel-control-prev,
.testimonial-hero .carousel-control-next {
  width: auto;
}

.testimonial-hero .ctrl {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .7);
  display: grid;
  place-items: center;
  margin-right: .5rem;
}

.testimonial-hero .ctrl span {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35));
}

/* --------------------------------------------------------------------------
   SERVICES (cards)
   -------------------------------------------------------------------------- */
.svc-card {
  transition: transform .18s ease, box-shadow .18s ease;
  background: #fff;
}

.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13, 43, 77, .10);
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: rgba(245, 197, 66, .18);
  /* secondary tint */
  border: 1px solid rgba(245, 197, 66, .45);
  /* secondary border */
  font-size: 1.25rem;
  line-height: 1;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   CTA BANNER (Work With + Newsletter) — background via <img>
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 0;
}

@media (min-width: 992px) {
  .cta-banner {
    padding: 6rem 0;
  }
}

.cta-banner .bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-banner .bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.cta-banner .shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(13, 43, 77, .55), rgba(13, 43, 77, .55));
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-panel {
  background: rgba(13, 43, 77, 0.65);
  /* primary @ 65% */
  border: 1px solid rgba(245, 197, 66, 0.35);
  /* secondary tint */
  border-radius: .5rem;
  padding: 2rem 2rem 2.25rem;
}

@media (min-width: 768px) {
  .cta-panel {
    padding: 2.25rem 2.5rem 2.75rem;
  }
}

.cta-eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
}

.cta-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.btn-outline-secondary {
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--secondary);
  --bs-btn-hover-bg: var(--secondary);
  --bs-btn-hover-color: #1f2937;
  --bs-btn-hover-border-color: var(--secondary);
}

.cta-input {
  background: #fff;
  color: #0b1220;
  border: 1px solid rgba(13, 43, 77, .25);
  height: 3.25rem;
}

.cta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(47, 183, 236, .15);
}
/* Screenshot-style input (white, rounded, soft shadow, clear placeholder) */
.cta-input{
  background:#fff;
  color: var(--black);
  border:1px solid rgba(13,43,77,.12);
  border-radius: .75rem;
  padding:.875rem 1rem;
  box-shadow: 0 6px 20px rgba(13,43,77,.08);
}
.cta-input::placeholder{
  color:#6b7280;      /* soft gray like screenshot */
  opacity:1;
  font-weight:500;
}
.cta-input:focus{
  border-color: var(--secondary);
  box-shadow: 0 0 0 .2rem rgba(245,197,66,.25), 0 6px 20px rgba(13,43,77,.10);
  outline: none;
}

/* Keep the intro readable on dark banner */
.cta-intro{ color:#e5e7eb !important; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer-modern {
  background: var(--primary);
  color: #e5e7eb;
}

.footer-modern .footer-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.footer-modern .footer-text {
  color: #e5e7eb;
}

.footer-modern .footer-muted {
  color: #cbd5e1;
}

.footer-modern .footer-link {
  display: inline-block;
  padding: .35rem 0;
  color: #e5e7eb;
  border-bottom: 2px solid rgba(229, 231, 235, .25);
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
}

.footer-modern .footer-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer-modern .social-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid var(--secondary);
  color: #fff;
  font-weight: 600;
}

.footer-modern .social-circle:hover {
  background: var(--secondary);
  color: #1f2937;
}

.footer-modern .footer-bottom {
  background: rgba(0, 0, 0, .12);
}

/* --------------------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------------------- */
.rounded-2xl {
  border-radius: 1rem;
}

.shadow-soft {
  box-shadow: 0 8px 30px rgba(2, 6, 23, .08);
}

body {
  padding-top: 0;
}

/* ensure content not hidden under navbar on mobile */

/* =========================
   NAVBAR: solid-on-scroll
   ========================= */
.navbar.fixed-top {
  transition: background .25s ease, box-shadow .25s ease;
}

/* Solid style after you scroll past the hero */
.navbar.nav-solid {
  background: rgba(13, 43, 77, .96);
  /* var(--primary) @ 96% */
  box-shadow: 0 6px 20px rgba(13, 43, 77, .20);
}

/* Keep links readable on solid navbar */
.navbar.nav-solid .nav-link {
  color: #fff !important;
}

/* Toggler border visibility */
.navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .6);
}

.navbar.nav-solid .navbar-toggler {
  border-color: rgba(255, 255, 255, .85);
}

/* Button on solid navbar (keeps your secondary style) */
.navbar.nav-solid .btn {
  color: #1f2937;
  background: var(--secondary);
  border-color: var(--secondary);
}

/* When the mobile menu is open, force a solid backdrop so links are readable */
@media (max-width: 991.98px) {
  .navbar .collapse.show {
    background: rgba(13, 43, 77, .96);
  }

  .navbar .collapse.show .nav-link {
    color: #fff !important;
  }
}

/* =========================
   NAVBAR link underline (L→R)
   ========================= */
.navbar .nav-link {
  position: relative;
  padding-bottom: .25rem;
  /* room for the line */
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  /* line thickness */
  width: 100%;
  background: var(--secondary);
  /* gold */
  transform: scaleX(0);
  transform-origin: left center;
  /* grow from left to right */
  transition: transform .28s ease;
  border-radius: 2px;
}

/* Animate in on hover/focus */
.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  transform: scaleX(1);
}

/* Keep underline for the active page link if you use .active */
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Ensure visibility on solid navbar as well */
.navbar.nav-solid .nav-link::after {
  background: var(--secondary);
}

/* ===== FAQ media card ===== */
.faq-media{
  /* 4:3 aspect keeps homes/streets looking natural on desktop */
  aspect-ratio: 4 / 3;
  background: #eef2f6;             /* fallback while loading */
  border: 1px solid rgba(13, 43, 77, .06);
  box-shadow: 0 20px 60px rgba(13, 43, 77, .12);
}

.faq-media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;                /* key: perfect crop without distortion */
  transform: translateZ(0);         /* smoother on some GPUs */
}

/* Subtle lift on hover (desktop only) */
@media (hover:hover){
  .faq-media:hover{ transform: translateY(-2px); transition: transform .25s ease; }
}

/* On large screens you can go a bit wider for drama */
@media (min-width: 1200px){
  .faq-media{ aspect-ratio: 16 / 10; }
}

/* On small screens, put image above FAQs and keep it tall enough to look good */
@media (max-width: 991.98px){
  #faq .row{ row-gap: 1.5rem; }
  .faq-media{ aspect-ratio: 16 / 10; }
}
