/*
Theme Name: Faxara
Theme URI: https://faxara.com
Author: Faxara
Author URI: https://faxara.com
Description: Official Faxara virtual assistant services website theme. Professional, fast, and conversion-focused.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: faxara
*/

/* ── CSS VARIABLES ── */
:root {
  --blue: #1A7FE8;
  --blue-light: #E6F1FB;
  --blue-dark: #0C447C;
  --navy: #0A1628;
  --navy-mid: #132035;
  --white: #ffffff;
  --off-white: #F7F9FC;
  --slate: #64748B;
  --border: rgba(0,0,0,0.08);
  --text: #0A1628;
  --text-muted: #64748B;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── NAV ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-mark {
  width: 34px; height: 34px; background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #fff; letter-spacing: -0.5px;
}
.nav-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--navy); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--slate); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links li.current-menu-item a { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none; display: inline-block;
}
.nav-cta:hover { background: #1570cc; transform: translateY(-1px); }

/* ── MOBILE HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); z-index: 99;
  flex-direction: column; padding: 32px 24px; gap: 6px;
  border-top: 1px solid var(--border);
}
.nav-mobile-drawer.open { display: flex; }
.nav-mobile-drawer a {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--navy);
  text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav-mobile-drawer a:hover { color: var(--blue); }
.nav-mobile-drawer .nav-cta {
  margin-top: 16px; text-align: center; font-size: 16px; padding: 14px;
  border-bottom: none;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  padding: 96px 48px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,127,232,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,127,232,0.15); border: 1px solid rgba(26,127,232,0.3);
  color: #85B7EB; font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 99px; margin-bottom: 28px; position: relative;
}
.hero-badge-dot { width: 6px; height: 6px; background: #1A7FE8; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08; letter-spacing: -2px;
  color: #fff; margin-bottom: 22px; position: relative;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: #85B7EB;
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7; font-weight: 300; position: relative;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 64px; }
.btn-primary {
  background: var(--blue); color: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 14px 30px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #1570cc; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 400;
  padding: 14px 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  text-decoration: none; display: inline-block;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.hero-stats {
  display: flex; justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px; position: relative;
}
.stat { flex: 1; max-width: 180px; text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.08); }
.stat:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.stat-lbl { font-size: 12px; color: #85B7EB; margin-top: 4px; }

/* ── SECTION BASE ── */
.site-section { padding: 88px 48px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px; color: var(--navy); margin-bottom: 14px; line-height: 1.15; }
.section-sub { font-size: 16px; color: var(--slate); line-height: 1.75; max-width: 540px; font-weight: 300; }

/* ── SERVICES ── */
.services-section { background: var(--off-white); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 20px;
  cursor: pointer; transition: border-color .2s, transform .2s; text-decoration: none;
}
.svc-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.svc-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-light); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; }
.svc-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.svc-count { font-size: 12px; color: var(--slate); }
.svc-arrow { margin-top: 16px; font-size: 18px; color: var(--blue); opacity: 0; transition: opacity .2s; }
.svc-card:hover .svc-arrow { opacity: 1; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; margin-top: 48px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.step-card { padding: 36px 32px; background: var(--white); }
.step-card:not(:last-child) { border-right: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--blue); background: var(--blue-light); padding: 4px 10px; border-radius: 99px; display: inline-block; margin-bottom: 20px; }
.step-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--slate); line-height: 1.7; font-weight: 300; }

/* ── TESTIMONIALS ── */
.proof-section { background: var(--off-white); }
.proof-header { text-align: center; margin-bottom: 48px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; }
.stars span { color: var(--blue); font-size: 14px; }
.review-text { font-size: 14px; color: var(--slate); line-height: 1.75; margin-bottom: 20px; font-weight: 300; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--blue-dark); flex-shrink: 0; }
.rev-name { font-size: 13px; font-weight: 500; color: var(--navy); }
.rev-role { font-size: 11px; color: var(--slate); margin-top: 1px; }

/* ── SERVICES DETAIL ── */
.services-detail { background: var(--white); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.detail-category { margin-bottom: 36px; }
.detail-cat-title { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.detail-items { display: flex; flex-direction: column; gap: 2px; }
.detail-item { font-size: 13px; color: var(--slate); padding: 7px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(0,0,0,0.04); }
.detail-item::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

/* ── CTA ── */
.cta-section { background: var(--navy); padding: 100px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(26,127,232,0.2) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); font-weight: 700; color: #fff; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 18px; position: relative; }
.cta-section p { font-size: 17px; color: #85B7EB; margin-bottom: 40px; font-weight: 300; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn-outline-white { background: transparent; color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 400; padding: 14px 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; text-decoration: none; display: inline-block; }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

/* ── FOOTER ── */
.site-footer { background: #060E1A; padding: 56px 48px 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: #fff; }
.footer-tagline { font-size: 12px; color: #3D4E63; margin-top: 6px; max-width: 200px; line-height: 1.5; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav-col h4 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #3D4E63; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { font-size: 13px; color: #64748B; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #85B7EB; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; }
.footer-copy { font-size: 12px; color: #3D4E63; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #3D4E63; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: #64748B; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 72px 48px 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(26,127,232,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { position: relative; }
.page-hero .section-h2 { color: #fff; position: relative; }
.page-hero .section-sub { color: #85B7EB; position: relative; margin-top: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  /* About / Contact 2-col grids → single col */
  .about-mission-grid,
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-grid > div:last-child { display: none; } /* hide sidebar on mobile if needed */
}

@media (max-width: 768px) {
  nav.site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero, .site-section, .cta-section { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 60px; padding-bottom: 56px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat { border-right: none; max-width: 140px; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-card:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }

  .detail-grid { grid-template-columns: 1fr; gap: 0; }

  .page-hero { padding: 48px 20px 40px; }

  /* About/Careers 2-col grids */
  .site-section [style*="grid-template-columns:1fr 1fr"],
  .site-section [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Contact form grid */
  .site-section [style*="grid-template-columns:1fr 380px"],
  .site-section [style*="grid-template-columns: 1fr 380px"] { grid-template-columns: 1fr !important; }

  /* Mission stats grid */
  .site-section [style*="grid-template-columns:1fr 1fr;gap:64px"] { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Pricing cards — force single col on very small screens */
  .site-section [style*="grid-template-columns:repeat(auto-fit,minmax(280px"] { gap: 14px !important; }

  .site-footer { padding: 40px 20px 28px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
