/* ==========================================================================
   DataWise Financials — base styles
   ========================================================================== */

:root {
  --green-900: #0f2b24;
  --green-800: #163c32;
  --green-700: #1c4a3d;
  --green-600: #2f6b52;
  --green-500: #3f8a5f;
  --green-accent: #4caf6b;
  --green-tint: #eef6ee;
  --ink: #16211d;
  --ink-soft: #4d5a55;
  --gray-100: #f7f8f6;
  --gray-200: #ecefec;
  --white: #ffffff;
  --gold: #f4b942;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 43, 36, 0.08);
  --shadow-md: 0 10px 30px rgba(15, 43, 36, 0.14);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; color: var(--green-900); }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .container {
  max-width: 1400px;
}

.center { text-align: center; }

.eyebrow {
  color: var(--green-600);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Single-line, all-caps section heading used instead of an eyebrow + h2
   pair on the niche microsites. */
.caps-heading {
  text-align: center;
  color: var(--green-800);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  margin-bottom: 40px;
}

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-500); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-dark {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}
.btn-outline-dark:hover { background: var(--green-tint); }

.btn-white {
  background: var(--white);
  color: var(--green-800);
}
.btn-white:hover { background: var(--gray-100); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 43, 36, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo { flex-shrink: 0; }
.logo img { height: 78px; width: auto; }

.main-nav { flex-shrink: 0; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  font-size: 0.79rem;
  color: var(--ink);
  padding: 8px 1px;
  position: relative;
  white-space: nowrap;
}
.main-nav a.active,
.main-nav a:hover { color: var(--green-600); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--green-accent);
}

.chev { width: 14px; height: 14px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a { padding: 10px 12px; border-radius: 6px; }
.dropdown li a:hover { background: var(--green-tint); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-actions .btn-primary { padding: 10px 13px; font-size: 0.8rem; }
.header-actions .btn-portal {
  padding: 9px 8px;
  font-size: 0.76rem;
}

/* Only in the mobile hamburger menu — the header-actions button above
   covers desktop, and both share the same >1200px cutoff. */
.nav-portal-item { display: none; }
@media (max-width: 1200px) {
  .nav-portal-item { display: list-item; }
}

.header-phone { display: flex; align-items: center; gap: 8px; color: var(--green-800); }
.header-phone svg { width: 18px; height: 18px; }
.header-phone span { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone strong { font-size: 0.88rem; }
.header-phone small { color: var(--ink-soft); font-size: 0.72rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--green-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--green-900);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: stretch;
  min-height: 420px;
}

.hero-content {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--green-900), var(--green-800) 65%, var(--green-700));
  padding: 36px clamp(24px, 4vw, 56px) 36px max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.hero-text { max-width: 480px; }

.hero-text h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.1;
}
.hero-text h1 .accent { color: var(--green-accent); }

.hero-sub {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-body {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-photo {
  position: relative;
  background-image: url("../assets/images/hero.webp");
  background-size: cover;
  background-position: center;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--green-800) 0%,
    rgba(22, 60, 50, 0.75) 6%,
    rgba(22, 60, 50, 0.35) 16%,
    rgba(22, 60, 50, 0) 32%
  );
}

.stats-bar {
  background: var(--green-800);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 22px 24px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  text-align: left;
}
.stat svg {
  width: 30px;
  height: 30px;
  color: var(--green-accent);
  flex-shrink: 0;
}
.stat strong { display: block; font-size: 1.05rem; font-family: var(--font-heading); }
.stat span { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 68px 0; background: var(--white); }

.services h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 36px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.icon-wrap svg { width: 26px; height: 26px; color: var(--green-600); }
.icon-wrap.small { width: 48px; height: 48px; }
.icon-wrap.small svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   Why DataWise
   ========================================================================== */
.why {
  padding: 48px 0 34px;
  background: var(--green-tint);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-item { text-align: center; }
.why-item .icon-wrap { margin: 0 auto 14px; background: var(--white); }
.why-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); font-size: 0.92rem; }

/* ==========================================================================
   Trust / Testimonials
   ========================================================================== */
.trust { padding: 63px 0 70px; background: var(--gray-100); }

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}
.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 18px 30px;
  box-shadow: var(--shadow-sm);
}
.trust-logo img {
  height: 58px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.testimonials-header {
  border-top: 1px solid var(--gray-200);
  padding-top: 40px;
  margin-bottom: 32px;
}
.testimonials-header h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.testimonials-header .eyebrow { margin-bottom: 8px; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonials--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .testimonials--3col { grid-template-columns: 1fr; }
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1.1rem; }
.testimonial p { color: var(--ink); font-style: italic; margin-bottom: 16px; }
.testimonial span { color: var(--green-600); font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--green-700), var(--green-800));
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 48px 24px;
}

.cta-text { display: flex; align-items: center; gap: 20px; }
.cta-icon { width: 42px; height: 42px; color: var(--green-accent); flex-shrink: 0; }
.cta-text h2 { color: var(--white); font-size: 1.5rem; }
.cta-text p { color: rgba(255, 255, 255, 0.8); margin-top: 6px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   Service Areas
   ========================================================================== */
.areas { padding: 84px 0; background: var(--white); }
.areas .eyebrow { margin-bottom: 40px; font-size: 0.95rem; }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.area-card {
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.area-card .icon-wrap { margin: 0 auto 16px; }
.area-card h3 { margin-bottom: 10px; }
.area-card p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }

.area-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-600);
  font-weight: 600;
  font-size: 0.9rem;
}
.area-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.area-card:hover .area-link svg { transform: translateX(3px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.75); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
  gap: 32px;
  padding: 64px 24px 48px;
}

.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.socials a:hover { background: var(--green-accent); }
.socials svg { width: 16px; height: 16px; fill: currentColor; stroke: none; color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--green-accent); }
.footer-col small { color: rgba(255, 255, 255, 0.55); }

.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.contact-list svg { width: 18px; height: 18px; color: var(--green-accent); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.82rem; text-align: center; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   Mobile call FAB (small screens only)
   ========================================================================== */
.mobile-call-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-accent);
  color: var(--white);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 90;
}
.mobile-call-fab svg { width: 24px; height: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 32px 24px; order: 1; }
  .hero-text { max-width: none; }
  .hero-photo { order: -1; aspect-ratio: 16/9; }
  .hero-photo::before { background: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Nav collapses earlier than the content breakpoints below: the logo +
   single-line nav labels + header actions need ~1140px of room minimum. */
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-actions .btn-portal { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
  }
  .main-nav.open > ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav.open li { width: 100%; }
  .main-nav.open a { width: 100%; padding: 12px 4px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding-left: 12px; }
  .has-dropdown.open .dropdown { display: block; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .areas-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .mobile-call-fab { display: flex; }
}

@media (max-width: 640px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 0.78rem; }
  .logo img { height: 56px; }

  .hero-content { padding: 28px 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .services, .areas { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; padding: 48px 24px 32px; }
}
