/* =========================
   AFB Nexus - Clean Final Styles (No Duplication)
   ========================= */

/* ---- Design Tokens ---- */
:root {
  --bg: #141920;       /* deep charcoal */
  --text: #ffffff;
  --muted: #b7c3cf;
  --accent: #00bcec;   /* logo cyan */
  --accent2: #01a6e1;  /* secondary cyan */

  --card: rgba(255,255,255,0.04);
  --card2: rgba(255,255,255,0.06);

  --line: rgba(255,255,255,0.12);
  --shadow: 0 14px 35px rgba(0,0,0,0.28);

  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
}

/* ---- Base / Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.55;

  background:
    radial-gradient(900px 420px at 20% 10%, rgba(0,188,236,.12), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(1,166,225,.10), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { opacity: 0.95; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: 10px; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-top: 26px; }
h3 { font-size: 1.15rem; margin-top: 18px; }

p {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 78ch;
}

.section-heading {
  text-align: center;
  margin: 40px 0;
}

.hero {
  background-image: url('../assets/business-advisory-accounting-desk.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 260px 0; /* controls height */
  text-align: center;
  color: white; /* ensures text is readable */
  position: relative;
}
.services-hero {
  background-image: url('../assets/business-advisory-accounting-desk.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 160px 20px; /* controls height */
  text-align: center;
  color: white;
  position: relative;
}


/* Dark overlay for readability */
.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.services-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.services-hero h1,
.services-hero p,
.services-hero a {
  color: white;
}

/* Optional: style the TOC links for visibility */
.services-hero .page-toc a {
  color: #fff;
  font-weight: 600;
}

.page-toc {
  text-align: center;
}

.page-toc ul {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.page-toc li {
  display: inline-block;
  margin: 0 12px;
}

/* Optional: dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* adjust darkness */
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2; /* puts text above overlay */
}



ul {
  margin: 10px 0 18px 18px;
  padding: 0;
  color: var(--muted);
  max-width: 78ch;
}

li { margin: 8px 0; }

/* About/Services pages using <main class="container"> */
main.container {
  padding: 40px 20px;
}

/* ---- Header / Nav ---- */
header {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
}

.brand-name.accent { color: var(--accent); }

.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* ---- Header right-side actions (phone + socials) ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header socials layout */
.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slightly smaller icons in header (optional tweak) */
.social-link--header {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.social-link--header .social-icon {
  width: 16px;
  height: 16px;
}

/* optional badge (if used) */
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* active state supports either aria-current OR .active */
nav a[aria-current="page"],
nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
}

/* ---- Header Phone ---- */
.header-contact {
  display: flex;
  align-items: center;
}

.phone-link {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,188,236,0.25);
  background: rgba(0,188,236,0.08);
}

.phone-link:hover {
  background: rgba(0,188,236,0.15);
}

/* ---- CTA Button ---- */
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #061018;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.cta:hover { transform: translateY(-1px); }

/* ---- Hero ---- */
.hero {
  padding: 60px 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 42px);
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 700px;
  margin-bottom: 22px;
}

.hero-trust {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
/* =========================
   Homepage hero – centered
   ========================= */

.hero {
  text-align: center;
}

.hero .hero-sub,
.hero .hero-trust {
  margin-left: auto;
  margin-right: auto;
}

.hero .cta {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Sections & Cards ---- */
.section { padding: 70px 0; }

.section--muted {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* used on homepage: .section-dark */
.section-dark {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.card p { margin-bottom: 0; }

/* ---- Services list (homepage + anywhere) ---- */
.services-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 12px 40px;
  position: relative;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  margin: 0; /* override default li margin inside this component */
}

.services-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #061018;
  font-weight: 800;
  font-size: 12px;
}

/* link under services list (homepage) */
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  margin-top: 8px;
}

.text-link:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* ---- Services page helper spacing ---- */
.section-tight { padding: 18px 0 8px; }
.h2-tight { margin-top: 0; }

/* FAQ blocks */
.faq h3 {
  margin: 14px 0 6px;
  font-size: 16px;
}
.faq p {
  margin: 0 0 10px;
}

/* ---- Packages grid + cards (Services page) ---- */
.packages-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1050px) {
  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  min-height: 220px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.package:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(0,188,236,0.28);
}

.package h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.package p {
  margin: 0 0 10px;
  color: var(--muted);
}

.package ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.package li {
  margin: 6px 0;
}

.package li::marker {
  color: var(--accent);
}

/* icon badge in package cards */
.pkg-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0,188,236,0.12);
  border: 1px solid rgba(0,188,236,0.22);
  margin-bottom: 12px;
  position: relative;
}

.pkg-icon::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  position: absolute;
  left: 16px;
  top: 16px;
}

/* ---- Contact form (your current structure uses .contact-form) ---- */
.contact-form {
  padding: 18px;
  max-width: 720px;
}

.contact-form p { margin: 0 0 14px; }

.contact-form label {
  display: inline-block;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0,188,236,0.85);
  box-shadow: 0 0 0 4px rgba(0,188,236,0.20);
}

.contact-form .cta {
  border: none;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

/* ---- Footer (Unified) ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 40px;
  background: rgba(0,0,0,0.25);
}

.footer p {
  margin: 0 0 10px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer-small {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 8px;
}
/* ---- Footer Social Links ---- */
.footer-social {
  display: flex;
  gap: 10px;
  margin: 12px 0 6px;
  align-items: center;
}

.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,188,236,0.22);
  color: var(--text);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* Better focus style for keyboard users */
.social-link:focus-visible {
  outline: 3px solid rgba(0,188,236,0.75);
  outline-offset: 2px;
}

/* ---- Accessibility ---- */
:focus-visible{
  outline: 3px solid rgba(0,188,236,0.75);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---- Responsive / Mobile polish ---- */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo { height: 52px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }

  .hero { padding: 52px 0; }
  .hero h1 { font-size: 34px; }

  .services-list { grid-template-columns: 1fr; }

  .contact-form { padding: 16px; }
}

/* =========================
   Home page image (smaller)
   ========================= */

.home-image {
  margin: 26px auto;
  max-width: 42%;      /* smaller than 60% */
  max-height: 280px;   /* prevents it feeling huge */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.home-image img {
  width: 100%;
  height: 260px;       /* fixed “visual height” */
  object-fit: cover;   /* crops nicely instead of stretching */
  display: block;
}

/* Mobile: full width + normal height */
@media (max-width: 900px) {
  .home-image {
    max-width: 100%;
    max-height: none;
    margin: 22px 0;
  }

  .home-image img {
    height: auto;
  }
}
/* =========================
   Services page images (scaled down)
   ========================= */

.service-image {
  margin: 28px auto;
  max-width: 60%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Extra breathing room for the mid-page image */
.service-image--spaced {
  margin: 42px auto;
}

/* =========================
   FAQ Page
   ========================= */

.faq-hero {
  text-align: center;
}

.faq-hero .hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 70ch;
}

/* FAQ top image */
.faq-image {
  margin: 32px auto 0;
  max-width: 65%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.faq-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-image {
    max-width: 100%;
  }
}

/* Mobile: let images breathe again */
@media (max-width: 900px) {
  .service-image {
    max-width: 100%;
  }
}


/* ---- Blog index page ---- */
.blog-index {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.blog-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}

.blog-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.blog-meta {
  font-size: 13px;
  color: var(--muted);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-index {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 800px) {
  /* Improve tap targets */
  .navbar { gap: 12px; }
  nav ul { gap: 6px; }
  nav a { padding: 12px 14px; font-size: 15px; }

  /* Phone: full width button */
  .header-contact { width: 100%; }
  .phone-link { width: 100%; text-align: center; }
}