/* ============================================================
   Alpha Digital Crew — main.css
   Brand: dark navy #0B1B33 / red accent #E63B3B / light gray #F5F7FA
   Font: Inter (loaded via Google Fonts in functions.php)
   Hand-written, no frameworks. Organized by section.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy: #0B1B33;
  --navy-deep: #071326;
  --navy-grad-end: #14305c;
  --red: #E63B3B;
  --red-hover: #C92F2F;
  --red-dark: #b92a2a;
  --red-soft: rgba(230, 59, 59, .10);
  --white: #ffffff;
  --gray: #F5F7FA;
  --text: #1E2A3A;
  --muted: #5B6B82;
  --border: #e6ebf2;
  --border-input: #dbe2ec;
  --logo-gray: #9aa7bb;
  --gold: #F5A623;
  --shadow-card: 0 10px 30px rgba(11, 27, 51, .06);
  --shadow-lift: 0 20px 40px rgba(11, 27, 51, .10);
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: .3s ease;
}

/* ---------- 2. Base / reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden; /* lock scroll while mobile menu is open */
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--ease);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -.02em;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid rgba(230, 59, 59, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: background var(--ease), color var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(230, 59, 59, .28);
}

.btn-primary:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(230, 59, 59, .34);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Outline button on dark backgrounds (hero, navy bands) */
.hero .btn-outline,
.why-band .btn-outline,
.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, .65);
  color: var(--white);
}

.hero .btn-outline:hover,
.why-band .btn-outline:hover,
.cta-band .btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(11, 27, 51, .18);
}

.btn-light:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 27, 51, .24);
}

/* Slightly smaller primary pill for in-card / compact CTAs */
.cta-pill {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 6px 16px rgba(230, 59, 59, .24);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.cta-pill:hover {
  background: var(--red-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- 5. Topbar ---------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar a {
  color: var(--white);
}

.topbar a:hover {
  color: var(--red);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ---------- 6. Header / navbar ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--ease);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 27, 51, .08);
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 76px;
  width: 100%;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  line-height: 1;
}

.logo-dot {
  color: var(--red);
}

/* wp_nav_menu outputs <ul class="nav-primary"> directly (no wrapper), so style the ul itself */
.nav-primary {
  margin: 0 0 0 48px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-primary a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.nav-primary a:hover {
  color: var(--red);
}

.header-cta {
  margin-left: auto;
}

/* Hamburger (desktop: hidden) */
.hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform var(--ease), opacity var(--ease);
}

/* ---------- 7. Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(11, 27, 51, .12);
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

/* Dimmed overlay behind the mobile menu */
body.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, .5);
  z-index: 150;
}

/* Transparent click-catcher created by JS (the ::after above is not clickable) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), visibility var(--ease);
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  padding: 4px 8px;
  border-radius: 8px;
}

.mobile-menu-close:hover {
  color: var(--red);
}

.mobile-menu ul {
  list-style: none;
  margin-top: 16px;
}

.mobile-menu li {
  border-bottom: 1px solid #eef1f6;
}

.mobile-menu ul a {
  display: block;
  padding: 14px 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
}

.mobile-menu ul a:hover {
  color: var(--red);
}

.mobile-menu .btn,
.mobile-menu .cta-pill {
  margin-top: 24px;
  width: 100%;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1B33, #14305c);
  color: var(--white);
  padding: 110px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(230, 59, 59, .26), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(230, 59, 59, .12), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  max-width: 720px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin-bottom: 36px;
}

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

/* Stats reused inside the dark hero */
.hero-stats {
  margin-top: 56px;
}

.hero .stat-number {
  color: var(--white);
}

.hero .stat-label {
  color: rgba(255, 255, 255, .65);
}

/* ---------- 9. Stats band ---------- */
.stats-band {
  background: var(--white);
  padding: 80px 0;
}

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

.stat {
  text-align: center;
}

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.5px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-number .suffix {
  color: var(--red);
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

/* Stats band placed inside the hero section still needs dark-on-light numbers */
.hero .stats-band .stat-number {
  color: var(--navy);
}

.hero .stats-band .stat-label {
  color: var(--muted);
}

/* ---------- 10. Trusted strip ---------- */
.trusted-strip {
  background: var(--gray);
  padding: 40px 0;
  text-align: center;
}

.trusted-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 22px;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
}

.trusted-logos span {
  font-size: 20px;
  font-weight: 700;
  color: var(--logo-gray);
  letter-spacing: -.3px;
  white-space: nowrap;
}

/* ---------- 11. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-link {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--red-hover);
  gap: 10px;
}

/* ---------- 12. Why band ---------- */
.why-band {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.why-band::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(230, 59, 59, .16), transparent 70%);
  pointer-events: none;
}

.why-band .section-title {
  color: var(--white);
}

.why-band .section-sub {
  color: rgba(255, 255, 255, .7);
}

.why-band .section-eyebrow {
  color: var(--red);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.why-item {
  /* items sit directly on the navy band */
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(230, 59, 59, .35);
}

.why-icon svg {
  width: 26px;
  height: 26px;
}

.why-item h3 {
  color: var(--white);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-item p {
  color: rgba(255, 255, 255, .75);
  font-size: 15px;
}

/* ---------- 13. Process timeline ---------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-step {
  position: relative;
}

.step-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.process-step h3 {
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 14. Testimonials ---------- */
.testimonials {
  background: var(--gray);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 17px;
  margin-bottom: 18px;
}

.quote {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  flex-grow: 1;
}

.author {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
}

.role {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 15. Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}

.post-thumb {
  overflow: hidden;
}

.post-thumb img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  transition: transform .5s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.4;
  flex-grow: 1;
}

.post-card h3 a {
  color: var(--navy);
}

.post-card h3 a:hover {
  color: var(--red);
}

.read-more {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

.read-more:hover {
  color: var(--red-hover);
  text-decoration: underline;
}

/* ---------- 16. FAQ accordion ---------- */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.faq-item.open {
  border-color: rgba(230, 59, 59, .35);
  box-shadow: var(--shadow-card);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  padding: 20px 24px;
  text-align: left;
}

.faq-icon {
  color: var(--red);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg); /* + becomes × */
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-item.open .faq-a {
  max-height: 500px;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #E63B3B, #b92a2a);
  color: var(--white);
  border-radius: 24px;
  padding: 72px;
  margin: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band-inner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.5px;
}

.cta-band-inner p {
  color: rgba(255, 255, 255, .9);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 17px;
}

/* ---------- 18. Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0B1B33, #14305c);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(230, 59, 59, .22), transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-inner h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.page-hero .hero-sub {
  margin-bottom: 0;
}

.breadcrumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--white);
  text-decoration: underline;
}

.breadcrumbs a:hover {
  color: var(--red);
}

/* ---------- 19. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  margin-top: 14px;
}

.footer-contact p {
  color: rgba(255, 255, 255, .7);
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-contact strong {
  color: var(--white);
}

.footer-contact a {
  color: rgba(255, 255, 255, .7);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .6);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- 20. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact-info-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info-card h4 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-info-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.contact-info-card strong {
  color: var(--navy);
}

/* Form elements — styled so Contact Form 7 looks decent out of the box */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap input[type="url"],
.contact-form-wrap input[type="number"],
.contact-form-wrap textarea,
.contact-form-wrap select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-input);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  margin-bottom: 16px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.contact-form-wrap textarea,
.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(230, 59, 59, .12);
}

.contact-form-wrap label,
.wpcf7-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}

.contact-form-wrap button,
.contact-form-wrap input[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(230, 59, 59, .28);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.contact-form-wrap button:hover,
.contact-form-wrap input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

.wpcf7-response-output {
  border-radius: 10px;
  font-size: 14px;
}

/* ---------- 21. 404 ---------- */
.error-404 {
  text-align: center;
  padding: 120px 0;
}

.error-404 h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.error-404 p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

/* ---------- 22. Pagination ---------- */
.pagination {
  text-align: center;
  margin-top: 48px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  margin: 0 4px;
  background: var(--white);
}

.pagination a.page-numbers:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ---------- 23. Responsive: tablets & small laptops ---------- */
@media (max-width: 1024px) {
  .stats-grid,
  .services-grid,
  .why-grid,
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-cards,
  .blog-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 44px;
  }

  .section-title {
    font-size: 34px;
  }

  .cta-band {
    padding: 56px 32px;
  }

  .nav-primary {
    margin-left: 28px;
    gap: 20px;
  }
}

/* ---------- 23b. Responsive: narrow desktop (long menus) ---------- */
@media (max-width: 1150px) {
  .nav-primary {
    gap: 18px;
    margin-left: 24px;
  }

  .nav-primary a {
    font-size: 14px;
  }

  .navbar-inner .cta-pill {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ---------- 24. Responsive: mobile ---------- */
@media (max-width: 768px) {
  .topbar,
  .nav-primary,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .navbar-inner {
    height: 68px;
  }

  .logo-text {
    font-size: 24px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-stats {
    margin-top: 40px;
  }

  .services-grid,
  .process-timeline,
  .testimonial-cards,
  .blog-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-wrap {
    padding: 28px 24px;
  }

  .cta-band {
    padding: 48px 24px;
    margin: 48px 0;
  }

  .cta-band-inner h2 {
    font-size: 30px;
  }

  .page-hero {
    padding: 56px 0;
  }

  .page-hero-inner h1 {
    font-size: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .error-404 {
    padding: 80px 0;
  }
}

/* ---------- 25. Responsive: small phones ---------- */
@media (max-width: 520px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-number {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }

  .cta-band {
    border-radius: 16px;
  }

  .trusted-logos {
    gap: 16px 28px;
  }

  .trusted-logos span {
    font-size: 17px;
  }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
