/* Shared menu styles (matches index.html look) */
:root{
  --primary:#1f4c8d;
  --primary-dark:#163763;
  --accent:#00a3a3;
  --bg-light:#f5f7fb;
  --text-main:#222;
  --text-muted:#555;
  --max-width:1100px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color:#ffffff;
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }

/* --- HEADER / NAV --- */
.site-header{
  border-bottom:1px solid #e3e6ee;
  background-color:#ffffff;
  position:sticky;
  top:0;
  z-index:20;
}

.nav-container{
  max-width: var(--max-width);
  margin:0 auto;
  padding:0.9rem 0.7rem 0.9rem 0.3rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:0.65rem;
  text-decoration:none;
}

.brand-logo{
  height:auto !important;
  width:auto !important;
  max-height:60px;
  max-width:none !important;
  object-fit:contain !important;
  padding:0;
  margin:0;
  overflow:visible !important;
  display:block;
}

.main-nav ul{
  list-style:none;
  display:flex;
  gap:1.25rem;
  margin:0;
  padding:0;
  margin-left:1.5rem;
  align-items:center;
}

.main-nav a{
  color:#444;
  font-size:0.90rem;
  font-weight:500;
  text-decoration:none;
  transition: color 0.2s ease;
  white-space:nowrap;
}

.main-nav a:hover{ color: var(--primary); }

.main-nav a.active{
  color: var(--primary);
  font-weight:600;
}

/* Dropdown container */
.has-dropdown{ position:relative; }

.dropdown-toggle{
  background:transparent;
  border:none;
  padding:0;
  margin:0;
  font:inherit;
  color:#444;
  font-size:0.90rem;
  font-weight:500;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  white-space:nowrap;
}

.dropdown-toggle:hover{ color: var(--primary); }
.dropdown-toggle.active{ color: var(--primary); font-weight:600; }

.caret{ font-size:0.75rem; }

.dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:170px;
  background-color:#ffffff;
  border:1px solid #e0e4f0;
  border-radius:8px;
  padding:0.35rem 0;
  margin:0;
  list-style:none;
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
  z-index:30;
  display:none;
}

.dropdown-menu li{ padding:0; margin:0; }

.dropdown-menu a{
  display:block;
  padding:0.4rem 0.85rem;
  font-size:0.90rem;
  font-weight:500;
  color:#444;
  text-decoration:none;
}

.dropdown-menu a:hover{
  background-color:#f2f5ff;
  color: var(--primary);
}

/* show dropdown on hover for desktop */
.has-dropdown:hover .dropdown-menu{ display:block; }

/* prevents flicker when moving from button to menu */
.has-dropdown::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:10px;
}

/* --- Mobile menu toggle + panel --- */
.mobile-menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.1rem;
  font-weight:600;
  color: var(--primary);
  cursor:pointer;
  padding:0.5rem 0.8rem;
}

.mobile-menu{
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:#ffffff;
  padding:1.8rem 1.5rem;
  border-bottom:3px solid #e3e6ee;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
  z-index:9999;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open{ transform: translateY(0); }

.mobile-menu ul{ list-style:none; padding:0; margin:0; }
.mobile-menu li{ margin:1rem 0; }

.mobile-menu a{
  font-size:1.15rem;
  color:#333;
  text-decoration:none;
  display:block;
  padding:0.4rem 0;
}

.mobile-menu a:hover{ color: var(--primary); }
.mobile-menu a.active{ color: var(--primary); font-weight:700; }

/* --- Contact Info Bar --- */
.contact-bar{
  background-color: var(--primary);
  color:#ffffff;
  padding:0.45rem 0.75rem;
  font-size:0.88rem;
}

.contact-bar-inner{
  max-width: var(--max-width);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  gap:1.25rem;
  justify-content:center;
}

.contact-bar-inner span{ white-space:nowrap; }

.contact-bar-inner strong{
  color:#ffffff;
  font-weight:700;
}

/* Responsive */
@media (max-width:800px){
  .main-nav{ display:none; }
  .brand-logo{ max-height:42px; }
  .mobile-menu-toggle{ display:block; }
}

@media (min-width:801px){
  .mobile-menu{ display:none !important; }
  .mobile-menu-toggle{ display:none !important; }
}

/* ===== FIX: keep dropdown menus closed by default ===== */

/* Only the TOP nav list should be horizontal */
.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

/* Dropdown menu should NOT inherit the top ul flex row */
.main-nav .dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;

  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 12px;
  min-width: 240px;
  box-shadow: 0 18px 34px rgba(0,0,0,0.10);

  /* closed by default */
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 9999;
}

/* Open on hover (desktop) */
.main-nav .has-dropdown:hover > .dropdown-menu,
.main-nav .has-dropdown:focus-within > .dropdown-menu {
  display: flex;
}

/* Ensure dropdown container is positioned correctly */
.main-nav .has-dropdown {
  position: relative;
}

/* Make dropdown items vertical blocks */
.main-nav .dropdown-menu a {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  white-space: nowrap;
}

/* =========================================================
   PAGE STYLES (FAQ + Reviews + future pages)
   Add this at the BOTTOM of menu.css
========================================================= */

/* Base typography + layout */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a2a3a;
  background: #ffffff;
  line-height: 1.6;
}

a { color: #1f4c8d; }
a:hover { color: #163763; }

.container,
.hero-inner,
.section-inner,
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.hero {
  background: radial-gradient(circle at top left, #e9f1ff 0%, #ffffff 55%);
  padding: 46px 0 30px;
  border-bottom: 1px solid #e3e6ee;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 2.1rem;
  line-height: 1.15;
  color: #163763;
  letter-spacing: -0.02em;
}

.hero p,
.hero .subtitle {
  margin: 0 0 14px;
  color: #4a5b6b;
  font-size: 1.05rem;
  max-width: 980px;
}

.section {
  padding: 34px 0 44px;
}

.section.alt {
  background: #f5f7fb;
}

/* Buttons / CTAs (used on Reviews) */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cta-row a {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid #d7deea;
  background: #ffffff;
  color: #163763;
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0,0,0,0.08);
}

.btn-primary {
  background: #1f4c8d;
  border-color: #1f4c8d;
  color: #ffffff;
}

.btn-primary:hover {
  background: #163763;
  border-color: #163763;
}

/* =========================================================
   FAQ STYLES
========================================================= */
.pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 999px;
  background: #e5f4f4;
  color: #046d6d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.faq-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.faq-item {
  border-bottom: 1px solid #e3e6ee;
  padding: 18px 0;
}

.faq-question {
  font-weight: 800;
  font-size: 1.05rem;
  color: #163763;
  margin-bottom: 8px;
}

.faq-answer {
  color: #4a5b6b;
}

.faq-answer p {
  margin: 0.2rem 0 0.6rem;
}

.faq-answer ul {
  margin: 0.4rem 0 0.8rem 1.2rem;
}

.faq-links {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #e3e6ee;
}

/* =========================================================
   REVIEWS STYLES
========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.card {
  border: 1px solid #e3e6ee;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.card .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.name {
  font-weight: 850;
  color: #163763;
  font-size: 1.05rem;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,163,163,0.12);
  color: #0b6b6b;
  border: 1px solid rgba(0,163,163,0.18);
  white-space: nowrap;
}

.stars {
  color: #f5a623;
  letter-spacing: 1px;
  margin: 6px 0 10px;
}

.quote {
  margin: 0;
  color: #1a2a3a;
}

.note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #4a5b6b;
}

/* Footer */
footer {
  border-top: 1px solid #e3e6ee;
  background: #ffffff;
  padding: 18px 0;
  color: #4a5b6b;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trec-links a { text-decoration: underline; }

/* Responsive */
@media (max-width: 820px) {
  .hero h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
}
