/* ===== Reset & base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #fff;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ===== Topbar ===== */
.topbar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 30;
  padding-top: 14px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .logo {
  height: clamp(80px, 10vw, 120px);
  width: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .topbar{
    position: absolute;           /* sit on top of the hero */
    inset-block-start: 0;
    inset-inline: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    background: transparent;      /* no white bar */
    z-index: 30;
  }
  .nav{ position: relative; z-index: 31; justify-content: flex-start;}
  .brand{ order: 1; flex: 0 0 auto; }
  .menu-toggle{ display: block; order: 2; margin-left: auto;}

  .menu{
    position: absolute;           /* dropdown overlays the hero */
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(13,20,33,.85);   /* dark translucent panel */
    backdrop-filter: blur(2px);
  }
  .menu.menu-open{ display: flex; }
}


/* Navbar list (remove bullets and keep spacing) */
.menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: .95;
}

/* Mobile menu behavior (functionality only) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .menu.menu-open {
    display: flex;
    flex-direction: column;
  }

  .menu-toggle {
    display: block;
  }
}

/* ===== Hero (apply your original hero styles to .hero-section) ===== */
.hero-section {
  --hero-image: var(--hero-image, none);
  --hero-h: clamp(360px, 55vh, 520px);
  position: relative;
  overflow: hidden;
  min-height: var(--hero-h);
  display: grid;
  place-items: center;
}

/* Background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-color: #111827;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .55));
}

/* Make sure hero content sits above the overlay */
.hero-section>.container {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 0 32px;
}

/* Title and subtitle (match previous look) */
.hero-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hero-subtitle {
  color: #f1f5f9;
  font-size: 18px;
  margin-top: 12px;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

/* Search area (map to your previous searchbar/input-wrap) */
.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.form-control {
  width: min(560px, 92vw);
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 44px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .06);
  font-size: 14px;
  color: #111827;
  outline: none;
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  background: #0b0b0b;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transition: transform .08s ease;
  text-decoration: none;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.hero-image {
  display: none;
}


/* ===== Breakpoints (preserve your original behavior) ===== */
@media (max-width: 700px) {
  .btn {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero-section {
    --hero-h: 380px;
  }

  .hero-title {
    font-size: clamp(26px, 4.2vw, 40px);
  }
}

@media (max-width: 900px) {
  .hero-section {
    --hero-h: 420px;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  .form-control {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ===== Main wrapper (safe spacing) ===== */
.main .container.main {
  padding: 24px 0;
  background: #fff;
}

/* =========================
   Footer: layout + theming
   ========================= */
#footer .footer-bg{
  background:#0d1421;
  color:#cbd5e1;
  font-size:14px;
}
#footer .footer-main{ padding:56px 0 28px; }
#footer .footer-main .row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;         
  justify-content:center;     
  gap:20px;
}
#footer .footer-logo-col{
  flex:0 0 160px;
  display:flex;
  align-items:center;
  justify-content:center;
}
#footer .footer-logo{
  width:140px;
  height:auto;
  display:block;
  object-fit:contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
#footer .footer-main .col-lg-2.col-md-12{
  flex:0 1 260px;
  min-width:220px;
  text-align:center;          
}
#footer .footer-main .col-lg-2.col-md-12 h6{
  margin:6px 0 14px;
  font:700 16px/1 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#e2e8f0;
}
#footer .footer-main hr{ display:none; }
#footer .footer-main .col-lg-2.col-md-12 ul{
  list-style:none;
  margin:0;
  padding:0;
}
#footer .footer-main .col-lg-2.col-md-12 ul li{ margin-bottom:12px; }
#footer .footer-main .col-lg-2.col-md-12 ul li a{
  color:#cbd5e1;
  text-decoration:none;
  transition:color .15s ease;
}
#footer .footer-main .col-lg-2.col-md-12 ul li a:hover{ color:#fff; }
#footer .text-white.p-0{ background:transparent; }
#footer .text-white.p-0 .container{
  position:relative;
  padding-top:22px;
  padding-bottom:24px;
}
#footer .text-white.p-0 .container::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0; height:1px;
  background:rgba(148,163,184,.25);
}
#footer .col-lg-12.col-sm-12.mt-3.mb-3.text-center{
  text-align: center;          
  display: flex;              
  justify-content: center;
  align-items: center;
  color:#94a3b8;
  font-size:13px;
}
#footer .col-lg-12.col-sm-12.mt-3.mb-3.text-center a{
  color:#9ca3af;
  text-decoration:none;
  margin:0 .4rem;
  transition:color .15s ease;
}
#footer .col-lg-12.col-sm-12.mt-3.mb-3.text-center a:hover{ color:#fff; }

/* =========================
   Responsive behavior
   ========================= */
@media (max-width: 1024px){
  #footer .footer-logo-col{ flex:0 0 140px; }
  #footer .footer-logo{ width:120px; }
  #footer .footer-main .col-lg-2.col-md-12{ flex:1 1 240px; }
  #footer .footer-main .row{ gap:18px; }
}

@media (max-width: 900px){
  #footer .footer-main{ padding:44px 0 20px; }
  #footer .footer-main .row{ gap:20px; }
  #footer .footer-logo-col{
    flex:1 1 100%;
    margin-bottom:4px;
  }
  #footer .footer-logo{ width:110px; }

  #footer .footer-main .col-lg-2.col-md-12{
    flex:1 1 100%;
  }
  #footer .footer-main .col-lg-2.col-md-12 ul li{ margin-bottom:10px; }

  #footer .text-white.p-0 .container{
    padding-top:18px; padding-bottom:20px;
  }
}
