﻿/* ============================================================
   THE AI WEB DEVELOPERS — styles.css
   Global tokens, reset, typography, layout, utilities
   ============================================================ */

/* ── Google Fonts — loaded via <link> in header.php, not @import ── */

/* ── Brand Tokens ─────────────────────────────────────────── */
:root {
  /* Colours */
  --black:        #080808;
  --black-2:      #101010;
  --black-3:      #161616;
  --navy:         #141824;
  --navy-2:       #1e2535;
  --orange:       #F97316;
  --orange-hover: #EA6B0A;
  --orange-dim:   rgba(249, 115, 22, 0.15);
  --white:        #FFFFFF;
  --w80:          rgba(255, 255, 255, 0.80);
  --w55:          rgba(255, 255, 255, 0.55);
  --w35:          rgba(255, 255, 255, 0.35);
  --border:       rgba(255, 255, 255, 0.07);
  --green:        #22C55E;
  --red:          #EF4444;

  /* Extended surface tokens */
  --black-4:      #1c1c1c;
  --border-med:   rgba(255, 255, 255, 0.12);
  --w12:          rgba(255, 255, 255, 0.12);
  --w06:          rgba(255, 255, 255, 0.06);
  --orange-faint: rgba(249, 115, 22, 0.06);

  /* Border radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Typography */
  --ff-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --ff-mono:    'Plus Jakarta Sans', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--ff-body);
  border: none;
  background: none;
}

/* ── Base Typography ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

h1 {
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-align: center;
}

/* Hero H1 centred — max-width controls line-wrap of heading */
section[aria-label="Hero"] h1 {
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section[aria-label="Hero"] .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

section[aria-label="Cost of bad development"] h2::after,
section[aria-label="Why most business websites fail"] h2::after,
section[aria-label="What we build"] h2::after,
section[aria-label="What's included in web development"] h2::after,
section[aria-label="Technology stack"] h2::after,
section[aria-label="Performance standards"] h2::after,
section[aria-label="Development process"] h2::after,
section[aria-label="Web development pricing"] h2::after,
section[aria-label="What's included in web design"] h2::after,
section[aria-label="Web design process"] h2::after,
section[aria-label="Portfolio"] h2::after,
section[aria-label="Who web design is for"] h2::after,
section[aria-label="Web design pricing"] h2::after,
section[aria-label="Client testimonials"] h2::after,
section[aria-label="Frequently asked questions"] h2::after,
section[aria-label="Explore other services"] h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: #F97316;
  border-radius: 2px;
  margin: 14px auto 0;
}

section[aria-label="Cost of bad development"] .lead,
section[aria-label="Why most business websites fail"] .lead,
section[aria-label="What we build"] .lead,
section[aria-label="What's included in web development"] .lead,
section[aria-label="Technology stack"] .lead,
section[aria-label="Performance standards"] .lead,
section[aria-label="Development process"] .lead,
section[aria-label="Web development pricing"] .lead,
section[aria-label="What's included in web design"] .lead,
section[aria-label="Web design process"] .lead,
section[aria-label="Portfolio"] .lead,
section[aria-label="Who web design is for"] .lead,
section[aria-label="Web design pricing"] .lead,
section[aria-label="Explore other services"] .lead {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-divider {
  border: none;
  border-top: 2px solid #F97316;
  width: 80px;
  margin: 48px auto 0;
}

/* ── Web Design Approach — 2-col layout ───────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
}

section[aria-label="Web design approach"] h2,
section[aria-label="AI-accelerated difference"] h2 {
  text-align: left;
}

section[aria-label="Web design approach"] .perf-stat {
  text-align: left;
  padding: 20px 24px;
  background: #08090d;
  border-color: rgba(147, 197, 253, 0.2);
}

section[aria-label="Web design approach"] .perf-stat .value {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.approach-visual {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.2);
}

@media (max-width: 900px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-visual {
    display: none;
  }
}

section[aria-label="What's included in web design"] .service-card,
section[aria-label="What's included in web development"] .service-card {
  background: #08090d;
}

section[aria-label="What's included in web development"] .service-card::before {
  display: none;
}

section[aria-label="Technology stack"] .caption {
  text-align: center;
}

section[aria-label="Technology stack"] .flex {
  justify-content: center;
}

section[aria-label="Performance standards"] .perf-stat {
  background: #08090d;
}

section[aria-label="Development process"] .process-step {
  text-align: center;
}

section[aria-label="Development process"] .process-step .step-num {
  margin-left: auto;
  margin-right: auto;
}

section[aria-label="Performance standards"] .perf-stat .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section[aria-label="Cost of bad development"] .text-white.text-center,
section[aria-label="Why most business websites fail"] .text-white.text-center,
section[aria-label="Cost of neglected maintenance"] .text-white.text-center {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
}

h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
}

h4 {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

p {
  color: var(--w55);
  font-weight: 300;
  line-height: 1.75;
}

.lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--w55);
  line-height: 1.8;
}

.caption {
  font-size: 11px;
  font-weight: 300;
  color: var(--w35);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Grid Utilities ───────────────────────────────────────── */
.grid-col-span-2 { grid-column: span 2; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── Spacing Utilities ────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 64px 0;
}

/* Hero section always gets extra breathing room */
main > section:first-child {
  padding: 86px 0 80px;
}

section[aria-label="Hero"] .before-after-card {
  padding: 12px 16px;
}

section[aria-label="Hero"] .grid-3 {
  max-width: 56%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Section Backgrounds ──────────────────────────────────── */
.section-black {
  background: var(--black);
}

.section-navy {
  background: var(--navy);
}

/* ── Section heading alignment ────────────────────────────── */
.section-navy h2,
.section-black h2 {
  text-align: center;
}

/* ── Section lead paragraph ───────────────────────────────── */
.section-lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 16px;
  font-weight: 300;
  color: var(--w55);
}

/* ── Colour Utilities ─────────────────────────────────────── */
.text-orange {
  color: var(--orange);
}

.text-muted {
  color: var(--w55);
}

.text-dim {
  color: var(--w35);
}

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

.text-green {
  color: var(--green);
}

/* ── Alignment ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left !important; }
.text-right  { text-align: right; }

/* ── Flex Utilities ───────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* ── Spacing Helpers ──────────────────────────────────────── */
.mb-6  { margin-bottom: 6px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Responsive Breakpoints ───────────────────────────────── */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* Grid goes 2-col on tablet before full collapse */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  h1 {
    font-size: clamp(36px, 5vw, 46px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 72px 0;
  }

  .section-sm {
    padding: 48px 0;
  }

  main > section:first-child {
    padding: 80px 0 60px;
  }

  h1 {
    font-size: clamp(28px, 6vw, 38px);
  }

  h2 {
    font-size: clamp(24px, 5vw, 36px);
  }
}

/* Full collapse to 1 col on mobile */
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .grid-2 > *,
  .grid-3 > * {
    min-width: 0;
  }

  .service-card h3 {
    white-space: normal;
  }

  section[aria-label="Our services"] .grid-4 > div {
    flex-direction: column;
    gap: 24px;
  }

  section[aria-label="Our services"] .grid-4 > div > .service-card {
    flex: unset !important;
    width: 100%;
  }

  section[aria-label="How it works"] .process-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

section[aria-label="Website maintenance pricing"] .pricing-card,
section[aria-label="RespondAI pricing"] .pricing-card,
section[aria-label="AI strategy pricing"] .pricing-card,
section[aria-label="Pricing plans"] .pricing-card {
  background: var(--black);
}

section[aria-label="AI consultancy pricing"] .pricing-card .plan-features {
  text-align: center;
}

section[aria-label="AI consultancy pricing"] .pricing-card .plan-features li {
  justify-content: center;
}

section[aria-label="AI consultancy pricing"] .pricing-card .price-row {
  justify-content: center;
}

section[aria-label="AI strategy pricing"] .pricing-card .plan-features {
  text-align: center;
}

section[aria-label="AI strategy pricing"] .pricing-card .plan-features li {
  justify-content: center;
}

section[aria-label="AI strategy pricing"] .pricing-card .price-row {
  justify-content: center;
}

/* ── AI Plan — step progress labels & section labels ─────── */
.step-label,
.step-pct,
.card-step-label,
.why-label,
.plan-includes-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
