/* ============================= */
/* Global Overrides for Homepage */
/* ============================= */

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #1d2127;
  color: #f5f5f5;
  line-height: 1.6;
}

/* ============================= */
/* Site Header                   */
/* ============================= */
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes logo left, hamburger right */
  padding: 0 20px;
}

.site-header .brand img {
  height: 98px;  /* adjust logo size */
}

.site-header .nav-toggle {
  margin-left: auto;  /* ensures it's pushed all the way right */
  font-size: 28px;    /* makes hamburger icon nice size */
  cursor: pointer;
}


/* ============================= */
/* Navigation                     */
/* ============================= */
.nav {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: #11161c;
  transition: right 0.3s ease;
  z-index: 1500;
  padding-top: 80px;
}

.nav.open {
  right: 0;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li {
  border-bottom: 1px solid #2a2f35;
}

.nav ul li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav ul li a:hover {
  background: #1f272f;
}

.nav .sub {
  display: none;
  background: #191f26;
}

.nav .has-sub.open .sub {
  display: block;
}

.nav .arrow {
  font-size: 0.8rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 1400;
}

.nav-overlay.active {
  display: block;
}

/* ============================= */
/* Hero Section                  */
/* ============================= */
.hero {
  position: relative;
  height: 30vh;
  min-height: 240px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  /* background image */
  background: url("/assets/img/ahva-hero@2x.jpg") center center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 0;
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.hero .kicker {
  font-size: 1rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  margin: 0.5rem 0;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  color: #e5e5e5;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hero { height: 35vh; min-height: 240px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* ============================= */
/* Quick Actions                 */
/* ============================= */
.quick-actions-pill {
  margin-top: 2rem;
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 12px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.quick-actions .contact {
  background: #222831;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.quick-actions .btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: #2b89ff;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.quick-actions .btn:hover {
  background: #1d6fde;
}

/* ============================= */
/* Insights Section              */
/* ============================= */
.insights-band {
  padding: 3rem 1rem;
  background: #181c22;
  text-align: center;
}

.insights-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.insights-lead {
  color: #aaa;
  margin-bottom: 2rem;
}

.insights-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insight-card {
  background: #222831;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.insight-media img {
  width: 100%;
  display: block;
}

.insight-link {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1rem;
}

.insight-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.insight-excerpt {
  font-size: 0.95rem;
  color: #ccc;
}

/* ============================= */
/* Join CTA Section              */
/* ============================= */
.join-cta {
  padding: 3rem 1rem;
  background: #20252d;
  color: #fff;
}

.join-cta .wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.big-quote {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.join-cta .section-title {
  font-size: 2rem;
  margin: 1rem 0;
}

.join-cta .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.join-card {
  background: #272c35;
  padding: 1.5rem;
  border-radius: 10px;
}

.join-card .form-field {
  margin-bottom: 1rem;
}

.join-card label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #ccc;
}

.join-card input,
.join-card textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #444;
  background: #1d2127;
  color: #fff;
}

.btn-join {
  background: #2b89ff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.btn-join:hover {
  background: #1d6fde;
}

@media (max-width: 768px) {
  .join-cta .grid { grid-template-columns: 1fr; }
}

/* ============================= */
/* Footer                        */
/* ============================= */
.site-footer {
  background: #11161c;
  padding: 2rem 1rem;
  color: #bbb;
}

.footer-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-brand img {
  height: 98px;
}

.footer-cards {
  display: flex;
  gap: 2rem;
}

.foot-card {
  max-width: 200px;
}

.foot-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #fff;
}

.foot-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-meta {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: #777;
}

/* ============================= */
/* Floating Facebook Button      */
/* ============================= */
.fb-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1877f2;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background 0.2s ease;
}

.fb-float:hover {
  background: #0f5ec4;
}

.fb-float svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
/* ================================
   HEADER & NAV TOGGLE FIX
   ================================ */

.site-header .inner {
  display: flex;
  justify-content: space-between; /* logo left, toggle right */
  align-items: center;
}

.site-header .brand {
  flex: 0 0 auto;
}

.nav-toggle {
  margin-left: auto;   /* pushes it far right */
  order: 2;            /* ensure toggle comes after logo */
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;         /* adjust depending on header background */
  z-index: 1001;       /* stays clickable above overlays */
  line-height: 1;
  padding: 0.5rem 1rem;
}



/* Optional: improve positioning if header has padding */
.site-header {
  position: relative;
  z-index: 1000;
  padding: 0.5rem 1rem;
}


/* --- Join section (professional) --- */
.join-section-pro { background:#13181d; padding:56px 20px 80px; }
.join-section-pro .join-wrap { max-width:1100px; margin:0 auto; }

.join-head { margin-bottom:22px; }
.join-head .eyebrow{
  display:inline-block; font-size:.85rem; letter-spacing:.08em; text-transform:uppercase;
  color:#7ea6ff; background:rgba(14,84,255,.12); border:1px solid rgba(14,84,255,.35);
  padding:4px 10px; border-radius:999px; margin-bottom:10px;
}
.join-title { margin:6px 0 10px; font-weight:800; font-size:clamp(26px,3.2vw,34px); color:#fff; }
.join-lead { color:#c7d2de; margin:0 0 10px; max-width:72ch; }

.join-benefits { margin:12px 0 0; padding-left:0; list-style:none; display:grid; gap:6px; }
.join-benefits li {
  display:flex; gap:10px; align-items:flex-start; color:#d5dee8;
}
.join-benefits svg{
  width:18px; height:18px; flex:0 0 18px; margin-top:3px;
  fill:#10b981; filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
}

/* Card */
.join-card{
  margin-top:26px; background:linear-gradient(180deg,#141a21,#151b22);
  border:1px solid #2a3542; border-radius:16px; padding:22px;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.join-card__title{ margin:0 0 12px; color:#eaf2fb; font-size:1.25rem; font-weight:700; }

/* Form */
.join-form{ display:grid; gap:14px; }
.join-form .form-row{ display:grid; gap:14px; }
.join-form .form-row.two{ grid-template-columns:1fr 1fr; }
@media (max-width: 760px){ .join-form .form-row.two{ grid-template-columns:1fr; } }

.join-form .form-field label{
  display:block; font-size:.9rem; color:#c7d2de; margin:0 0 6px;
}
.join-form .form-field .req{ color:#ffb4b4; }

.join-form input,
.join-form textarea{
  width:100%; background:#0f172a; color:#f8fafc; border:1px solid #415065;
  border-radius:10px; padding:12px 12px; line-height:1.25; transition:border-color .2s ease, box-shadow .2s ease;
}
.join-form textarea{ resize:vertical; }
.join-form input:focus,
.join-form textarea:focus{
  outline:none; border-color:#0b66ff; box-shadow:0 0 0 3px rgba(11,102,255,.2);
}

.join-form .actions{
  align-items:center; display:flex; gap:14px; flex-wrap:wrap; margin-top:4px;
}
.join-form .btn-join{
  padding:10px 16px; border-radius:10px; font-weight:700;
}
.join-form .form-note{
  color:#9fb0c2; font-size:.9rem; margin:0;
}

/* Match “sections” width under insights */
.join-section-pro .container{ max-width:1100px; }

/* === Global site background matches Blog section === */
:root{
  --ahva-bg: #1a1e22;       /* Blog section background */
  --ahva-card: #0f1216;     /* Card surface used across site */
}

/* Make the page background the Blog bg */
html, body { background: var(--ahva-bg); }

/* Ensure layout wrappers don't reintroduce other backgrounds */
main, .site-main, .page, .page-wrap, .content, .container,
.theme-ahva, .theme-ahva main { background: transparent !important; }

/* Sections default to the same bg (keeps consistency between bands) */
.section, .section.container,
.insights-band,
.join-section-pro { background: var(--ahva-bg); }

/* Keep cards/pills readable and elevated */
.card, .pill, .quick-actions-pill,
.join-card, .insight-card { background: var(--ahva-card); }

/* If your header/footer should blend with the page */
.site-header, .site-footer { background-color: var(--ahva-bg); }

/* (Optional) If you added a gradient to the join section earlier, flatten it */
.join-card {
  background: var(--ahva-card);   /* replaces gradient so it sits clean on the new bg */
}
.insights-header .insights-title{
  margin:0;
  font-weight:800;
  font-size:clamp(20px, 2.1vw, 28px);  /* tuned to match Quick Actions */
  line-height:1.2;
  color:#fff;
}

/* Floating panel for the hero quote */
.hero-quote {
  padding: clamp(24px, 5vw, 56px) 0;          /* breathing room around panel */
}

/* Floating panel for the hero quote */
.hero-quote {
  padding: clamp(24px, 5vw, 56px) 0;          /* breathing room around panel */
}

.hero-quote .container {
  padding-left: 20px;
  padding-right: 20px;
}

.hero-quote__frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 48px);

  /* Floating rounded card */
  background: rgba(17, 24, 39, 0.72);         /* slate-900 w/ transparency */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),          /* main drop shadow */
    0 2px 6px rgba(0, 0, 0, 0.2) inset;       /* subtle inner depth */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

/* a soft “ground” shadow underneath to help it float */
.hero-quote__frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
              rgba(0, 0, 0, 0.30) 0%,
              rgba(0, 0, 0, 0.0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Typography inside the panel (keeps your existing look) */
.hero-quote__text {
  margin: 0;
  color: #f8fafc;
  font-weight: 650;
  line-height: 1.15;
  font-size: clamp(28px, 4.5vw, 52px);
}

/* Optional: the cyan rule under the quote */
.hero-quote__text + .hero-quote__rule,
.hero-quote__frame .hero-quote__rule {
  display: block;
  width: clamp(140px, 30%, 520px);
  height: 4px;
  margin-top: clamp(18px, 2.2vw, 28px);
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee 0%, #06b6d4 100%); /* cyan-300→cyan-500 */
  opacity: .9;
}
/* --- Join form: left-align labels above inputs and align rows to top --- */
.join-form .form-row { 
  display: grid; 
  gap: 16px; 
  align-items: start;            /* keep labels/inputs aligned to top */
}

.join-form .form-row.two {
  grid-template-columns: 1fr 1fr; /* First/Last, Phone/Company rows */
}

.join-form .form-field {
  display: flex;
  flex-direction: column;        /* label above input */
  align-items: stretch;
}

.join-form .form-field label {
  display: block;
  text-align: left !important;   /* force left alignment */
  margin: 0 0 6px;
  line-height: 1.2;
}

/* Ensure fields span their column and line up cleanly */
.join-form .form-field input,
.join-form .form-field textarea,
.join-form .form-field select {
  width: 100%;
  box-sizing: border-box;
}

/* Optional: make the textarea align with button row visually */
.join-form .form-row.actions { 
  align-items: center;
  gap: 18px;
}
/* Replace yellow glow with a dark-blue glow */
.join-section-pro .btn-join {
  /* keep your existing colors/border-radius, just override the glow */
  box-shadow: 0 10px 28px rgba(11, 102, 255, 0.28);          /* #0b66ff */
}

.join-section-pro .btn-join:hover {
  box-shadow: 0 12px 36px rgba(11, 102, 255, 0.38);
}

.join-section-pro .btn-join:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(11, 102, 255, 0.45),
    0 12px 36px rgba(11, 102, 255, 0.38);
}
/* Center the intro paragraph + bullets under the heading,
   but keep their text left-aligned */
.join-section-pro .join-lead,
.join-section-pro .join-benefits {
  max-width: 900px;      /* tweak to taste: 760–960 works well */
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* (Optional) small polish for bullets when centered */
.join-section-pro .join-benefits {
  padding-left: 1.1rem;  /* space for the check icons */
}
/* Let the join section sit on the same kind of card as the quote */
.join-section-pro { padding: 28px 0 64px; background: transparent; }

/* Use the quote’s panel style, but give the join content comfy padding */
.join-section-pro .hero-quote__frame.join-frame {
  padding: 40px 28px;               /* room inside panel */
}

/* Keep internal grid widths as-is */
.join-section-pro .join-wrap { max-width: 1100px; margin: 0 auto; }

/* If you centered the intro copy earlier, keep it tidy inside the panel */
.join-section-pro .join-lead,
.join-section-pro .join-benefits {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
/* Make the parent frame control width & padding */
.join-section-pro .hero-quote__frame.join-frame {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px;
}

/* Nice spacing inside */
.join-section-pro .join-head { margin-bottom: 24px; }
.join-section-pro .join-card { margin-top: 28px; }
/* Remove the small bar under the H2 */
.join-section-pro .join-title::after {
  display: none;
}

/* Add a full-width accent line across the header area */
.join-section-pro .join-head {
  position: relative;
  padding-bottom: 22px;          /* room for the rule */
}

/* Long cyan→blue divider line */
.join-section-pro .join-head::after {
  content: "";
  position: absolute;
  left: 32px;                    /* match your card’s inner padding */
  right: 32px;                   /* ← stretch toward the right edge */
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  opacity: .9;
}

/* Tighten on small screens so it doesn’t butt into edges */
@media (max-width: 640px) {
  .join-section-pro .join-head::after {
    left: 20px;
    right: 20px;
  }
}
/* Short accent line centered under the title (between title and text) */
.join-section-pro .join-title {
  position: relative;
  margin: 8px 0 22px;           /* space for the line */
  padding: 0;
  text-align: center;           /* keep it centered */
}

.join-section-pro .join-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;                /* sits between title and lead text */
  width: clamp(140px, 28vw, 340px);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  opacity: .95;
}
/* Make the header a positioning context */
.site-header .header-bar {
  position: relative;           /* NEW */
}

/* Center the badge to the full page width */
.site-header .brand-center {
  position: absolute;           /* pull it out of the grid flow */
  left: 50vw;                   /* center of the viewport */
  transform: translateX(-50%);  /* perfect centering */
  top: 50%;                     /* vertically center within header bar */
  transform: translate(-50%, -50%);
  z-index: 2;                   /* keep above background */
}

/* Optional: explicit sizing for the badge */
.site-header .brand-center img {
  height: 48px;                 /* or whatever you prefer */
  width: auto;
}

/* Keep left wordmark and right toggle behaving normally */
.site-header .brand-left { grid-column: 1; }
.site-header .nav-toggle { grid-column: 3; justify-self: end; }

/* Reuse the hero-quote frame as a general panel wrapper */
.hero-quote__frame--panel {
  background: rgba(20, 24, 28, .92);       /* matches your dark aesthetic */
  border: 1px solid #2b3440;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: clamp(18px, 2.4vw, 28px) clamp(16px, 2vw, 24px);
}

/* Make sure headings inside the panel breathe correctly */
.hero-quote__frame--panel h2,
.hero-quote__frame--panel .title,
.hero-quote__frame--panel .insights-header {
  margin-top: 0;
}

/* Don’t squish the cards when wrapped in the panel */
.hero-quote__frame--panel .insights-grid {
  margin-top: 14px;
}

/* If you’re using the blog icon header */
.hero-quote__frame--panel .insights-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
}
.hero-quote__frame--panel .insights-header .insights-icon {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.hero-quote__frame--panel .insights-header .insights-title {
  margin: 0; 
}
.hero-quote__frame--panel .insights-header .insights-lead {
  grid-column: 1 / -1; 
  margin: 4px 0 0;
}

/* --- Fix Blog panel header layout --------------------------------------- */
.hero-quote__frame--panel .insights-header{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;           /* allows lead to drop to a new line */
  margin:0 0 12px;
  text-align:left;
}

.hero-quote__frame--panel .insights-icon{
  width:32px;
  height:32px;
  object-fit:contain;
  flex:0 0 32px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}

.hero-quote__frame--panel .insights-title{
  margin:0;
  line-height:1.15;
  text-align:left !important;  /* kill any inherited right/center align */
}

.hero-quote__frame--panel .insights-lead{
  width:100%;                /* force it to the next line under title */
  margin:4px 0 0;
  text-align:left !important; /* ensure left-aligned */
  opacity:.9;
}

/* Make sure cards have a bit of separation from the header */
.hero-quote__frame--panel .insights-grid{
  margin-top:14px;
}
/* Consistent panel color for all hero-quote frames */
:root{
  --ahva-panel-bg: #0f172a;        /* pick the darker one you prefer */
  --ahva-panel-border: rgba(255,255,255,.06);
  --ahva-panel-shadow: 0 20px 45px rgba(0,0,0,.35);
}

.hero-quote__frame,
.hero-quote__frame--panel{
  background: var(--ahva-panel-bg) !important;
  background-image: none !important;     /* kill any gradient overrides */
  border: 1px solid var(--ahva-panel-border);
  box-shadow: var(--ahva-panel-shadow);
}

/* If one of the sections had a more specific background override, neutralize it */
#insights .hero-quote__frame,
#quick-actions .hero-quote__frame{
  background: var(--ahva-panel-bg) !important;
}
/* Title line: icon + heading in one row */
.insights-header .titleline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Lead sits below the titleline */
.insights-header .insights-lead {
  margin: 6px 0 18px;
  color: #aeb8c2;
  max-width: 70ch;
}

/* Badge style to match Quick Actions */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-blue, #2563eb);       /* same family as QA */
  color: #ffffff;                                 /* icon stroke uses currentColor */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Optional: keep title left-aligned consistently */
.insights-title {
  margin: 0;
  line-height: 1.2;
}
