/* ============================================
   AJ Audit & Consulting — Modern Redesign
   Font: Nunito (Google Fonts)
   ============================================ */

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

:root {
  --navy:        #0f2a3e;
  --navy-mid:    #163d59;
  --navy-light:  #1a4a6e;
  --accent:      #2980b9;
  --accent-dark: #1a6090;
  --sidebar-bg:  #dee9f1;
  --text:        #333333;
  --text-light:  #555555;
  --white:       #ffffff;
  --border:      #d0dde6;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--navy);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ─── HEADER ─────────────────────────────── */
.site-header {
  background-color: var(--navy);
  padding: 18px 30px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo img {
  height: 72px;
  width: auto;
}

.contact-info {
  color: rgba(255,255,255,0.88);
  text-align: right;
  font-size: 14px;
  line-height: 1.75;
}

.contact-info a {
  color: #7ec8e3;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ─── NAVIGATION ─────────────────────────── */
.site-nav {
  background-color: var(--navy-mid);
  border-bottom: 3px solid var(--accent);
  position: relative;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  width: 100%;
  background: none;
  border: none;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  text-align: left;
  align-items: center;
  gap: 10px;
}

.hamburger span.bar {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  margin-right: 4px;
  vertical-align: middle;
}

.hamburger span.bar::before,
.hamburger span.bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: white;
}

.hamburger span.bar::before { top: -7px; }
.hamburger span.bar::after  { top:  7px; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  transition: background 0.18s, color 0.18s;
  border-right: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}

.nav-links a:hover {
  background-color: var(--accent);
  color: white;
  text-decoration: none;
}

.nav-links a.active {
  background-color: var(--accent);
  color: white;
}

/* ─── PAGE WRAPPER ───────────────────────── */
.page-wrapper {
  background-color: var(--navy);
  padding-bottom: 24px;
}

.content-box {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ─── HERO (home page) ───────────────────── */
.hero-section {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: flex;
}

.hero-main {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-main img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-side {
  flex: 0 0 auto;
}

.hero-side img {
  height: 100%;
  width: auto;
  display: block;
}

/* ─── HOME COLUMNS ───────────────────────── */
.home-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 4px solid var(--accent);
}

.home-col {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--border);
}

.home-col:last-child {
  border-right: none;
}

.home-col .col-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 16px;
}

.col-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-section-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.home-col p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-light);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.15s;
}

.read-more-link::after {
  content: '›';
  font-size: 18px;
  line-height: 1;
}

.read-more-link:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* ─── INNER PAGE LAYOUT ──────────────────── */
.page-top-bar {
  background: var(--navy-mid);
  height: 6px;
}

.page-content {
  padding: 36px 40px 44px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--accent);
  position: relative;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 36px;
  align-items: start;
}

.two-col-wide {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

/* Body text styles */
.body-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.body-text ul {
  padding-left: 22px;
  margin: 10px 0 4px;
}

.body-text ul li {
  margin-bottom: 10px;
}

.body-text p {
  margin-bottom: 14px;
}

/* Section subheadings within content */
.subhead {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 22px 0 6px;
}

.subhead:first-child {
  margin-top: 0;
}

/* ─── SIDEBAR ────────────────────────────── */
.sidebar-box {
  background: var(--sidebar-bg);
  padding: 24px 22px;
  border-radius: 2px;
  border-top: 3px solid var(--accent);
}

.sidebar-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.4;
}

.sidebar-box .body-text {
  font-size: 14px;
}

.sidebar-box ul {
  padding-left: 20px;
}

.sidebar-box ul li {
  margin-bottom: 10px;
}

/* ─── WHY PAGE ───────────────────────────── */
.why-image {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* ─── RESOURCES PAGE ─────────────────────── */
.resources-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 20px 0 10px;
}

.resources-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.resources-grid a:hover {
  opacity: 0.8;
}

.resources-grid img {
  max-height: 180px;
  width: auto;
}

/* ─── CONTACT PAGE ───────────────────────── */
.contact-sidebar {
  background: var(--sidebar-bg);
  padding: 24px 22px;
  border-top: 3px solid var(--accent);
  border-radius: 2px;
}

.contact-sidebar h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.4;
}

.contact-sidebar p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-light);
}

.contact-sidebar a {
  color: var(--accent);
}

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  background-color: var(--navy);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

.site-footer a:hover {
  color: white;
}

/* ─── MOBILE RESPONSIVE ──────────────────── */
@media (max-width: 820px) {

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-info {
    text-align: left;
    font-size: 13px;
  }

  /* Show hamburger, hide nav links by default */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 20px;
    font-size: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Hero — hide hands image, show Cost Effective panel full width */
  .hero-main {
    display: none;
  }

  .hero-side {
    flex: 0 0 auto;
    width: 100%;
  }

  .hero-side img {
    width: 100%;
    height: auto;
  }

  /* Home columns stack */
  .home-columns {
    grid-template-columns: 1fr;
  }

  .home-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 22px;
  }

  .home-col:last-child {
    border-bottom: none;
  }

  /* Inner page */
  .page-content {
    padding: 24px 20px 32px;
  }

  .page-title {
    font-size: 21px;
  }

  .two-col,
  .two-col-wide {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 14px 16px;
  }

  .logo img {
    height: 54px;
  }

  .page-content {
    padding: 20px 16px 28px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 12px 16px;
  }
}
