/* ============================================
   HostItBro FAQ Page — style.css
   Colors matched from hostitbro.in
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand-blue:    #0085FF;
  --hero-bg:       #BDE0FE;
  --footer-bg:     #171A22;
  --text-dark:     #1a1a2e;
  --text-muted:    #6c757d;
  --border:        #e8edf2;
  --white:         #ffffff;
  --shadow-sm:     0 2px 12px rgba(0, 133, 255, 0.08);
  --shadow-md:     0 4px 24px rgba(0, 0, 0, 0.10);
  --radius:        12px;
  --radius-sm:     8px;

  /* Category accent colors */
  --cat-start:    #FF4081;
  --cat-domain:   #0085FF;
  --cat-hosting:  #FF6B35;
  --cat-ssl:      #00C853;
  --cat-email:    #00BCD4;
  --cat-tech:     #7C4DFF;
  --cat-billing:  #FFB300;
  --cat-support:  #26A69A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--hero-bg);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-dark);
}
.navbar-brand svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(0,133,255,0.1); }
.btn-client {
  background: var(--brand-blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 9px 18px !important;
}
.btn-client:hover { background: #006fe0 !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ───────────────────────────────── */
.faq-hero {
  background: var(--hero-bg);
  padding: 64px 0 56px;
  text-align: center;
}
.faq-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.faq-hero p {
  font-size: 17px;
  color: #444;
  margin-bottom: 32px;
}
.search-wrapper {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border 0.2s;
}
.search-wrapper:focus-within { border-color: var(--brand-blue); }
.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--text-dark);
}
.search-wrapper button {
  background: var(--brand-blue);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.search-wrapper button:hover { background: #006fe0; }
.search-no-result {
  display: none;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 16px;
}
.search-no-result svg { margin-bottom: 12px; opacity: 0.4; }

/* ─── STATS BAR ──────────────────────────── */
.stats-bar {
  background: var(--white);
  padding: 16px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.stat-item strong { color: var(--text-dark); font-size: 18px; font-weight: 700; }

/* ─── CATEGORY TABS ──────────────────────── */
.category-section {
  background: var(--white);
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tabs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.category-tabs {
  display: flex;
  gap: 8px;
  min-width: max-content;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
  margin-bottom: -2px;
}
.tab-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.tab-btn.active {
  border-color: var(--active-color, var(--brand-blue));
  color: var(--active-color, var(--brand-blue));
  background: color-mix(in srgb, var(--active-color, var(--brand-blue)) 8%, white);
  border-bottom-color: var(--white);
}
.tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot-color, var(--brand-blue));
}

/* ─── MAIN FAQ SECTION ───────────────────── */
.faq-main {
  padding: 40px 0 80px;
  background: #f8fbff;
  min-height: 60vh;
}

/* Category Group */
.faq-group {
  margin-bottom: 52px;
  transition: opacity 0.3s;
  scroll-margin-top: 80px;
}
.faq-group.hidden { display: none; }
.group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.group-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.group-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}
.group-header .count {
  background: var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: auto;
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--item-color, var(--brand-blue)); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}
.faq-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.faq-question h3 {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--item-color, var(--brand-blue));
  color: var(--white);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 20px 20px;
}
.faq-answer p {
  color: #444;
  font-size: 14.5px;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-answer p strong { color: var(--text-dark); }
.faq-answer ul {
  margin-top: 10px;
  padding-left: 20px;
  color: #444;
  font-size: 14.5px;
  line-height: 1.9;
}
.faq-answer a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}
.faq-answer a:hover { text-decoration: underline; }

/* Highlight spans inside answers */
.hl-blue  { color: #0085FF; font-weight: 600; }
.hl-green { color: #00C853; font-weight: 600; }
.hl-orange{ color: #FF6B35; font-weight: 600; }
.hl-purple{ color: #7C4DFF; font-weight: 600; }
.hl-pink  { color: #FF4081; font-weight: 600; }
.hl-amber { color: #FFB300; font-weight: 600; }
.hl-teal  { color: #26A69A; font-weight: 600; }
.hl-cyan  { color: #00BCD4; font-weight: 600; }

/* Category Color Definitions */
.cat-start   { --item-color: var(--cat-start);   }
.cat-domain  { --item-color: var(--cat-domain);  }
.cat-hosting { --item-color: var(--cat-hosting); }
.cat-ssl     { --item-color: var(--cat-ssl);     }
.cat-email   { --item-color: var(--cat-email);   }
.cat-tech    { --item-color: var(--cat-tech);    }
.cat-billing { --item-color: var(--cat-billing); }
.cat-support { --item-color: var(--cat-support); }

.tag-start   { background: #ffe8f0; color: var(--cat-start);   }
.tag-domain  { background: #e6f2ff; color: var(--cat-domain);  }
.tag-hosting { background: #fff1ec; color: var(--cat-hosting); }
.tag-ssl     { background: #e6faf0; color: var(--cat-ssl);     }
.tag-email   { background: #e6f9fc; color: var(--cat-email);   }
.tag-tech    { background: #f0eaff; color: var(--cat-tech);    }
.tag-billing { background: #fff8e1; color: var(--cat-billing); }
.tag-support { background: #e8f5f3; color: var(--cat-support); }

.icon-start   { background: #ffe8f0; }
.icon-domain  { background: #e6f2ff; }
.icon-hosting { background: #fff1ec; }
.icon-ssl     { background: #e6faf0; }
.icon-email   { background: #e6f9fc; }
.icon-tech    { background: #f0eaff; }
.icon-billing { background: #fff8e1; }
.icon-support { background: #e8f5f3; }

/* ─── CTA BANNER ─────────────────────────── */
.cta-banner {
  background: var(--text-dark);
  padding: 52px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { font-size: 16px; opacity: 0.75; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--brand-blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-primary:hover { background: #006fe0; }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--white); }

/* ─── FOOTER ─────────────────────────────── */
footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand-text {
  font-size: 13px;
  opacity: 0.65;
  margin: 14px 0 20px;
  line-height: 1.7;
}
.footer-contact { font-size: 13px; opacity: 0.7; line-height: 2; }
.footer-contact a { color: var(--white); text-decoration: none; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  opacity: 0.9;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; opacity: 0.5; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--brand-blue); }

/* ─── CONTAINER ──────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── BACK TO TOP ────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--brand-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,133,255,0.4);
  border: none;
  font-size: 20px;
  z-index: 888;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: #006fe0; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--white); padding: 16px; box-shadow: var(--shadow-md); gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .stats-bar .container { gap: 24px; }
  .category-section { top: 56px; }
  .faq-question h3 { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .faq-hero { padding: 40px 0 36px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; }
}
