/*
Theme Name: Veriti Digital
Theme URI: https://veritidigital.com
Author: Veriti Digital LLC
Description: Custom theme for Veriti Digital
Version: 1.0
*/

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #f5f7fa;
  --navy-mid:   #eaeef4;
  --navy-light: #f2f7ff;
  --gold:       #e8721c;
  --gold-light: #f28c3a;
  --slate:      #4a5568;
  --white:      #1a202c;
  --text:       #2d3748;
  --border:     rgba(0,0,0,0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w: 1160px;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: #e8721c; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary.full-width { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(245,247,250,0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 14px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-dropdown-menu-inner {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 5px;
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: #f5f7fa; }
.nav-dropdown-title {
  font-size: 13px;
  font-weight: 500;
  color: #1a202c;
}
.nav-dropdown-sub {
  font-size: 11px;
  color: #718096;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500 !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: 0.2s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.nav-mobile-link {
  padding: 12px 32px;
  font-size: 15px;
  color: #1a202c;
  font-weight: 400;
  transition: background 0.15s;
}
.nav-mobile-link:hover { background: #f5f7fa; }
.nav-mobile-cta {
  margin: 8px 32px 4px;
  padding: 11px 18px;
  background: var(--gold);
  color: #fff !important;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
}
.nav-mobile-cta:hover { background: var(--gold-light); }

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

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

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(30,45,69,0.8) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px 48px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 300;
}

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

.hero-stat-bar {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── SECTION SHARED ────────────────────────────────────────── */
.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-tag.light { color: rgba(201,168,76,0.8); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.section-title.light { color: #fff; }

.section-header {
  margin-bottom: 64px;
}

/* ─── SERVICES ──────────────────────────────────────────────── */
.services {
  padding: 120px 0;
  background: var(--navy-mid);
}

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

.service-card {
  background: var(--navy);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, transform 0.25s;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.25s;
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.24s; }
.service-card:nth-child(5) { transition-delay: 0.32s; }
.service-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-3px); }

.service-icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-list li {
  font-size: 13px;
  color: var(--slate);
  padding: 5px 0;
  border-top: 1px solid var(--border);
}
.service-list li::before {
  content: '→ ';
  color: var(--gold);
  font-size: 11px;
}

.service-card-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.service-card-cta:hover { opacity: 0.75; }

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about {
  padding: 120px 0;
  background: var(--navy);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.about-visual.visible { opacity: 1; transform: translateX(0); }

.about-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.about-card-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.about-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-tag {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold-light);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
}
.about-accent-line {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.about-content {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.about-content.visible { opacity: 1; transform: translateX(0); }
.about-content .section-title { margin-bottom: 28px; }
.about-content p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}
.about-content .btn-primary { margin-top: 12px; }

/* ─── CONTACT ───────────────────────────────────────────────── */
.contact {
  padding: 120px 0;
  background: #ffffff;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.contact-left.visible { opacity: 1; transform: translateY(0); }
.contact-left .section-title { margin-bottom: 20px; color: #1a2a3a; }
.contact-sub {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 300;
}

.contact-form-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.contact-form-wrap.visible { opacity: 1; transform: translateY(0); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-group input,
.form-group textarea {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 12px 16px;
  color: #1a202c;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(139,154,176,0.5); }
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(201,168,76,0.5); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── HOME FAQ ──────────────────────────────────────────────── */
.home-faq-section {
  padding: 120px 0;
  background: var(--navy-mid);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.faq-item {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 36px 40px;
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.faq-item p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.75;
  max-width: 720px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 13px;
  color: var(--slate);
}
.footer-portal {
  font-size: 13px;
  color: var(--gold);
  transition: color 0.2s;
}
.footer-portal:hover { color: var(--gold-light); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-accent-line { display: none; }
  .nav-links { gap: 20px; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stat-bar { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stat-divider { display: none; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ─── PAGE TEMPLATE ─────────────────────────────────────────── */
.page-header {
  padding: 140px 0 60px;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.page-content {
  padding: 64px 0 100px;
  background: var(--navy);
}
.page-content p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.page-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 12px;
}
.page-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content ul, .page-content ol {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 20px;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

/* ─── LOCAL SEO CHECKER TOOL ────────────────────────────────── */
.tool-header {
  padding: 170px 0 60px;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.tool-header-sub {
  max-width: 600px;
  margin-top: 18px;
  font-size: 16px;
  color: var(--slate);
  line-height: 1.75;
  font-weight: 300;
}

.tool-body {
  padding: 64px 0 100px;
  background: var(--navy-mid);
}
.tool-body-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Audit card */
.audit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.audit-card-intro {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 24px;
}

/* Form inside the card */
.audit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-helper {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.audit-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 4px;
}

/* Error banner */
.audit-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: #dc2626;
}

/* Loading / success states */
.audit-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
  gap: 12px;
}
.audit-state-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 0;
}
.audit-state-sub {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 400px;
  margin: 0;
  font-weight: 300;
}

/* Spinner */
.audit-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(232, 114, 28, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: audit-spin 0.8s linear infinite;
  margin-bottom: 8px;
}
@keyframes audit-spin {
  to { transform: rotate(360deg); }
}

/* Success check icon */
.audit-check-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #16a34a;
  margin-bottom: 8px;
  font-weight: 700;
}

/* Sidebar */
.audit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.audit-sidebar-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.audit-check-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.audit-check-section {
  background: var(--navy);
  border: 1px solid var(--border);
  padding: 24px 28px;
}
.audit-check-section:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.audit-check-section:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.audit-check-section-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.audit-pts {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  background: rgba(232,114,28,0.1);
  border: 1px solid rgba(232,114,28,0.2);
  padding: 2px 10px;
  border-radius: 100px;
}
.audit-check-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audit-check-section li {
  font-size: 13px;
  color: var(--slate);
  padding-left: 16px;
  position: relative;
}
.audit-check-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}
.audit-sidebar-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.65;
  padding: 16px 20px;
  background: rgba(232,114,28,0.05);
  border: 1px solid rgba(232,114,28,0.15);
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .tool-body-inner {
    grid-template-columns: 1fr;
  }
  .audit-sidebar { order: -1; }
}
