/*
Theme Name: Aardvark
Theme URI: https://aardvark.zip
Author: Aardvark
Description: Official Aardvark website theme — built on brand, built for people.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: aardvark
*/

/* ============================================================
   BRAND VARIABLES
   ============================================================ */
:root {
  --green:        #679F00;
  --green2:       #527D00;
  --green3:       #2e3d1a;
  --teal:         #53B9C8;
  --teal2:        #00759C;
  --warm:         #A8AD9C;

  --bg:           #0e110a;
  --bg2:          #141a0f;
  --bg3:          #1a2212;
  --bg4:          #202b16;

  --border:       rgba(103,159,0,0.18);
  --border2:      rgba(103,159,0,0.32);

  --text:         #d6e8b8;
  --text2:        #9aad78;
  --text3:        #607048;

  --font: 'Poppins', system-ui, sans-serif;
  --nav-height: 56px;
  --max-width: 1100px;
  --radius: 9px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.section-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(24px, 3.5vw, 32px); color: #e8f4cc; letter-spacing: -0.3px; }
h2 { font-size: clamp(20px, 2.5vw, 24px); color: #e8f4cc; letter-spacing: -0.2px; }
h3 { font-size: 14px; color: #d6e8b8; margin-bottom: 6px; }
p { font-size: 14px; font-weight: 300; color: var(--text2); line-height: 1.8; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-outline  { background: transparent; color: var(--green); border: 1px solid var(--green3); }
.btn-outline:hover { background: var(--bg3); opacity: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a2212;
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img  { height: 36px; width: auto; }
.site-logo-text { font-size: 18px; font-weight: 600; color: #e8f4cc; letter-spacing: 1px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a { font-size: 13px; font-weight: 400; color: var(--text2); transition: color 0.15s; }
.nav-menu a:hover { color: #e8f4cc; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-inner .btn-outline {
  color: var(--text2);
  border-color: var(--border2);
}
.nav-inner .btn-outline:hover { background: var(--bg3); color: #e8f4cc; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text2); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 60px 32px 52px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

#hero h1 { margin-bottom: 16px; }
#hero h1 em { font-style: normal; color: var(--green); }
#hero .hero-sub { max-width: 400px; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-panel { display: flex; flex-direction: column; gap: 12px; }

.hero-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hero-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 10px;
  display: block;
}
.hero-card p { font-size: 13px; }
.hero-card strong { color: var(--green); font-weight: 500; }

.contact-pill {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.contact-pill span { color: var(--text2); font-weight: 300; }
.contact-pill a { color: var(--green); font-weight: 600; }

/* ============================================================
   TRUST BAR
   ============================================================ */
#trust-bar {
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 12px;
  font-weight: 400;
  color: var(--text3);
  white-space: nowrap;
}
.trust-divider {
  font-size: 12px;
  color: var(--border2);
}
.trust-dot { display: none; }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-wrap { padding: 52px 0; border-bottom: 1px solid var(--border); }
.section-wrap.alt { background: var(--bg2); }
.section-intro { margin-bottom: 28px; }
.section-intro h2 { margin-top: 8px; }
.section-intro p { margin-top: 6px; font-size: 13px; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
a.service-card {
  text-decoration: none;
  cursor: pointer;
}
a.service-card:hover { background: var(--bg3); }
a.service-card h3, a.service-card p { color: inherit; }
.service-card:nth-child(2n)   { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }

.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 17px; height: 17px; }
.service-body h3 { font-size: 13px; }
.service-body p  { font-size: 12px; color: var(--text3); line-height: 1.6; }

/* ============================================================
   WHO WE SERVE
   ============================================================ */
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.who-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.who-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.who-icon svg { width: 13px; height: 13px; }
.who-card h3 { font-size: 13px; margin-bottom: 6px; }
.who-card p { font-size: 11.5px; color: var(--text3); line-height: 1.65; margin-top: 0; }

/* ============================================================
   OUR APPROACH
   ============================================================ */
/* ============================================================
   CTA STRIP
   ============================================================ */
#cta {
  padding: 52px 0;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-inner h2 { line-height: 1.3; }
.cta-inner p  { margin-top: 8px; font-size: 13px; }
.cta-buttons  { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* ============================================================
   FOOTER — white so logo sits correctly
   ============================================================ */
#site-footer {
  background: #1a2212;
  border-top: 1px solid var(--border2);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img  { height: 26px; width: auto; }
.footer-logo span { font-size: 14px; font-weight: 600; color: #e8f4cc; letter-spacing: 1px; }
.footer-menu { display: flex; gap: 20px; }
.footer-menu a { font-size: 12px; color: var(--text3); transition: color 0.15s; }
.footer-menu a:hover { color: var(--green); }
.footer-copy { font-size: 11px; color: var(--text3); }

.page-template-page-contact .entry-title,
.page-template-page-about .entry-title,
.page-template-page-services .entry-title,
.page-template-page-contact h1.page-title,
.page-template-page-about h1.page-title,
.page-template-page-services h1.page-title,
.page-template-page-contact .entry-header,
.page-template-page-about .entry-header,
.page-template-page-services .entry-header,
.page-template-page-contact .page-header,
.page-template-page-about .page-header,
.page-template-page-services .page-header,
.page-template-page-contact .wp-block-post-title,
.page-template-page-about .wp-block-post-title,
.page-template-page-services .wp-block-post-title,
.page-template-page-contact article > h1,
.page-template-page-about article > h1,
.page-template-page-services article > h1 { display: none !important; }

/* ============================================================
   WPFORMS — dark theme overrides
   ============================================================ */
.wpforms-form .wpforms-field-label {
  font-family: var(--font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #9aad78 !important;
  letter-spacing: 0.3px !important;
  margin-bottom: 6px !important;
}
.wpforms-form .wpforms-field-sublabel,
.wpforms-form .wpforms-field-description {
  font-family: var(--font) !important;
  font-size: 11px !important;
  color: #607048 !important;
  margin-top: 4px !important;
}
.wpforms-form .wpforms-field-label-hide + input,
.wpforms-form .wpforms-field-label-hide + textarea { margin-top: 0 !important; }
.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form textarea,
.wpforms-form select {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  background: var(--bg3) !important;
  color: var(--text) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  width: 100% !important;
  transition: border-color 0.15s !important;
  box-shadow: none !important;
}
.wpforms-form input[type=text]:focus,
.wpforms-form input[type=email]:focus,
.wpforms-form textarea:focus {
  border-color: var(--green) !important;
  outline: none !important;
  box-shadow: none !important;
}
.wpforms-form textarea { min-height: 120px !important; resize: vertical !important; }
.wpforms-form input[type=text]::placeholder,
.wpforms-form input[type=email]::placeholder,
.wpforms-form textarea::placeholder { color: var(--text3) !important; }
.wpforms-form .wpforms-submit-container { margin-top: 8px !important; }
.wpforms-form button[type=submit],
.wpforms-form input[type=submit] {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background: var(--green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
  transition: opacity 0.15s !important;
  width: 100% !important;
}
.wpforms-form button[type=submit]:hover { opacity: 0.88 !important; }
.wpforms-form .wpforms-field-error { font-size: 12px !important; color: #E24B4A !important; margin-top: 4px !important; }
.wpforms-confirmation-container-full {
  font-family: var(--font) !important;
  font-size: 14px !important;
  color: var(--green) !important;
  background: var(--bg3) !important;
  border: 1px solid var(--border2) !important;
  border-radius: 8px !important;
  padding: 20px 24px !important;
}
.wpforms-form .wpforms-field { margin-bottom: 16px !important; padding: 0 !important; }

/* ============================================================
   FADE-UP ANIMATION
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: row; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: #1a2212; border-bottom: 1px solid var(--border2);
    padding: 20px 24px; gap: 18px; z-index: 99;
  }
  .menu-toggle { display: flex; }
  .container { padding: 0 20px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12px; }
  .nav-btn-text { display: none; }
  .nav-cta { gap: 8px; }
}
@media (max-width: 560px) {
  #trust-bar { flex-wrap: wrap; }
  .trust-bar-inner { flex-direction: column; align-items: center; gap: 8px; padding: 14px 20px; }
  .trust-item { text-align: center; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .who-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE GRID HELPERS
   ============================================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.two-col-grid-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
/* Contact page grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px 64px;
  align-items: start;
}
.contact-intro    { grid-column: 1; grid-row: 1; }
.contact-info-cards { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 14px; }
.contact-right    { grid-column: 2; grid-row: 1 / 3; }

@media (max-width: 680px) {
  .two-col-grid,
  .two-col-grid-center,
  .three-col-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  .contact-intro      { grid-column: 1; grid-row: 1; order: 1; }
  .contact-right      { grid-column: 1; grid-row: 2; order: 2; }
  .contact-info-cards { grid-column: 1; grid-row: 3; order: 3; }
}
   ============================================================ */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(103,159,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103,159,0,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 35% 50%, black 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 35% 50%, black 10%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
#hero > * { position: relative; z-index: 1; }

#hero h1 em {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--green);
  vertical-align: middle;
  margin-left: 1px;
  animation: cursor-blink 0.7s step-end infinite;
}
.hero-cursor.cursor-done {
  animation: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Logo — fluid, never blurry */
.site-logo img {
  height: clamp(28px, 4vw, 40px) !important;
  width: auto !important;
  max-width: 180px !important;
}
.footer-logo img {
  height: clamp(22px, 3vw, 30px) !important;
  width: auto !important;
  max-width: 140px !important;
}

/* Kill any green bar from Neve or other plugins */
.header-main-inner,
.hfg-header,
.hfg-row,
.header-wrapper,
header .container,
#cb-cookie-bar,
.neve-header {
  border-bottom: none !important;
  border-top: none !important;
  box-shadow: none !important;
}
