/* ============================================================
   Nexcode London — style.css
   Single stylesheet for all pages. Mobile-first.
   ============================================================ */

/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */
:root {
  --color-brand:       #1A1F2E;
  --color-accent:      #0070E0;
  --color-bg:          #F4F6FA;
  --color-bg-alt:      #E8EDF5;
  --color-text:        #1A1F2E;
  --color-text-muted:  #6B7A90;
  --color-white:       #FFFFFF;
  --color-brand-light:    #93C5FD;
  --color-secondary:      #00916E;
  --color-accent-alt:     #6C5CE7;
  --color-border:         #D0D6E0;
  --color-warning:        #FFB703;
  --color-warning-text:   #7A5200;
  --color-success:        #007A52;
  --color-error:          #E8364F;
  --color-success-bg:     #DCFCE7;
  --color-success-text:   #007A52;
  --color-success-border: #86EFAC;
  --color-error-bg:       #FEF2F2;
  --color-error-text:     #E8364F;
  --color-error-border:   #FCA5A5;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Mobile type scale */
  --text-h1:    2.125rem;   /* 34px */
  --text-h2:    1.625rem;   /* 26px */
  --text-h3:    1.25rem;    /* 20px */
  --text-body:  1rem;       /* 16px */
  --text-small: 0.875rem;   /* 14px */

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  --container-max:     1100px;
  --container-pad:     1.25rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-card:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 6px 24px rgba(0,0,0,0.13);

  --transition: 0.2s ease;
  --transition-spring: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.12s ease;
}

@media (min-width: 768px) {
  :root {
    --text-h1:   3.25rem;    /* 52px */
    --text-h2:   2.375rem;   /* 38px */
    --text-h3:   1.5rem;     /* 24px */
    --text-body: 1.125rem;   /* 18px */
  }
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   Skip Link
   ------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ------------------------------------------------------------
   Container & Layout
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

.section--brand   { background-color: var(--color-brand); color: var(--color-white); }
.section--alt     { background-color: var(--color-bg-alt); }
.section--accent  { background-color: var(--color-accent); color: var(--color-white); }
.section--white   { background-color: var(--color-white); }
.section--bg      { background-color: var(--color-bg); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section--brand .section-header p,
.section--accent .section-header p {
  color: rgba(255,255,255,0.8);
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */
h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.125rem; font-weight: 600; }

p + p { margin-top: var(--space-sm); }

.text-muted { color: var(--color-text-muted); }
.text-small { font-size: var(--text-small); }
.text-center { text-align: center; }
.text-bold { font-weight: 700; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #0058B8;
  color: var(--color-white);
  text-decoration: none;
}

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

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-accent);
}

.btn-white:hover {
  background-color: var(--color-bg);
  color: #0058B8;
  text-decoration: none;
}

.btn-full { width: 100%; display: block; }

@media (max-width: 480px) {
  .btn-full-mobile { width: 100%; display: block; }
}

/* ------------------------------------------------------------
   Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: var(--space-md);
}

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

.logo-img {
  display: block;
  width: 182px;
  height: 18px;
}

.site-logo:hover .logo-img { opacity: 0.85; }

.site-footer .logo-img { filter: invert(1) hue-rotate(180deg); }

/* Desktop nav */
.primary-nav {
  display: none;
}

@media (min-width: 900px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
  }
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--color-accent); }
nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  min-height: 48px;
}

.nav-dropdown-toggle:hover { color: var(--color-accent); }

.nav-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  min-width: 220px;
  padding: var(--space-xs);
  border: 1px solid rgba(0,0,0,0.06);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}

.dropdown-menu a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Header CTA */
.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-block;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-brand);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .hamburger { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-sm) var(--container-pad) var(--space-md);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a,
.mobile-menu-services button {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-sans);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu-sub {
  padding-left: var(--space-md);
}

.mobile-menu-sub a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.mobile-menu .btn {
  margin-top: var(--space-sm);
  width: 100%;
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero {
  background-color: var(--color-brand);
  /* Replace with: background-image: url('../images/hero-uk-craft-fair.webp'); */
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Overlay for when real image is added */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26,31,46,0.88);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-light);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  max-width: 580px;
}

@media (min-width: 768px) {
  .hero-sub { font-size: 1.25rem; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1.1em;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: border-color var(--transition), color var(--transition);
}

.hero-scroll-link:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-scroll-link .chevron {
  display: inline-block;
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

.hero-trust {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-sm);
}

/* ------------------------------------------------------------
   Problem / Empathy Block
   ------------------------------------------------------------ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}

.problem-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.problem-icon {
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.125rem;
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  color: var(--color-text);
}

.problem-closer {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand);
  padding-top: var(--space-sm);
}

/* ------------------------------------------------------------
   Services Section
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 700px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-brand);
}

.service-card ul {
  list-style: none;
  margin-bottom: var(--space-md);
  flex: 1;
}

.service-card ul li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.service-price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.0625rem;
  margin-bottom: var(--space-md);
}

.service-card .link-arrow {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.service-card .link-arrow:hover { text-decoration: underline; }

/* Bundle callout */
.bundle-callout {
  background: linear-gradient(135deg, #EEF4FF 0%, #DBEAFE 100%);
  border: 2px solid #BDD6F5;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.bundle-callout h3 {
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.bundle-callout p {
  color: var(--color-text);
  max-width: 620px;
  margin: 0 auto var(--space-md);
  font-style: italic;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   How It Works
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  text-align: center;
  padding: var(--space-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto var(--space-sm);
}

.step h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-brand);
}

.step p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.steps-footnote {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--color-accent);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.25rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
}

/* ------------------------------------------------------------
   Newsletter Section
   ------------------------------------------------------------ */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 500px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-white);
  min-height: 48px;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

.newsletter-form button {
  white-space: nowrap;
}

.newsletter-disclaimer {
  text-align: center;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.newsletter-feedback {
  display: none;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
}

.newsletter-feedback.is-success {
  display: block;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
}

.newsletter-feedback.is-error {
  display: block;
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

/* ------------------------------------------------------------
   Final CTA Section
   ------------------------------------------------------------ */
.final-cta {
  text-align: center;
  padding: var(--space-2xl) var(--container-pad);
}

.final-cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.final-cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  font-size: 1.0625rem;
}

.final-cta-trust {
  margin-top: var(--space-md);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.6);
}

/* ------------------------------------------------------------
   Contact Form
   ------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1fr 380px; }
}

.contact-intro {
  margin-bottom: var(--space-xl);
}

.contact-intro h1 {
  margin-bottom: var(--space-md);
  color: var(--color-brand);
}

.contact-intro p { color: var(--color-text-muted); }

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  color: var(--color-brand);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem; /* min 16px to prevent iOS zoom */
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-white);
  min-height: 48px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,112,224,0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--color-error);
}

.field-error {
  display: none;
  color: var(--color-error);
  font-size: var(--text-small);
  margin-top: 0.375rem;
  font-weight: 500;
}

.field-error.is-visible { display: block; }

/* Checkbox group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  min-height: 48px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: unset;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}

/* GDPR checkbox */
.gdpr-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: border-color var(--transition);
}

.gdpr-checkbox.is-invalid { border-color: var(--color-error); }

.gdpr-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.125rem;
  accent-color: var(--color-accent);
}

.gdpr-checkbox label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}

/* Honeypot — hidden from users visually but accessible to bots */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.form-submit-row {
  margin-top: var(--space-lg);
}

.form-submit-note {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Form feedback messages */
.form-success,
.form-error {
  display: none;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
}

.form-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
}

.form-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

/* Contact aside */
.contact-aside h3 {
  font-size: var(--text-h3);
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.contact-aside p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.contact-alt-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-alt-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  padding: 0.75rem 0;
}

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

/* ------------------------------------------------------------
   Portfolio
   ------------------------------------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 700px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.portfolio-card:hover { box-shadow: var(--shadow-card-hover); }

.portfolio-screenshot {
  width: 100%;
  height: 200px;
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: 500;
  /* Replace with actual screenshot image */
}

.portfolio-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card-body {
  padding: var(--space-md);
}

.portfolio-card-body h3 {
  color: var(--color-brand);
  margin-bottom: 0.25rem;
}

.portfolio-type {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.tag {
  display: inline-block;
  background: #E0EEFF;
  color: #0058B8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   Blog
   ------------------------------------------------------------ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow-card-hover); }

.blog-date {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.blog-card h2 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.blog-card h2 a {
  color: var(--color-brand);
  text-decoration: none;
}

.blog-card h2 a:hover { color: var(--color-accent); }

.blog-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.link-arrow {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.link-arrow:hover { text-decoration: underline; }

/* Article */
.article-header {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  background: var(--color-brand);
  color: var(--color-white);
}

.article-header h1 { color: var(--color-white); }

.article-meta {
  margin-top: var(--space-sm);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.65);
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-xl) var(--container-pad);
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--color-brand);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-cta {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
  margin-top: var(--space-xl);
}

.article-cta p {
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-brand);
}

/* ------------------------------------------------------------
   Service Pages
   ------------------------------------------------------------ */
.page-hero {
  background-color: var(--color-brand);
  color: var(--color-white);
  padding: var(--space-2xl) var(--container-pad);
  text-align: center;
}

.page-hero h1 { color: var(--color-white); margin-bottom: var(--space-sm); }

.page-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Lucide inline SVG icon sizing */
.icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.service-card-icon .icon {
  width: 2rem;
  height: 2rem;
}

.contact-alt-links .icon {
  width: 1.125rem;
  height: 1.125rem;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.feature-item h4 { margin-bottom: 0.25rem; color: var(--color-brand); }
.feature-item p { font-size: 0.9375rem; color: var(--color-text-muted); }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  vertical-align: top;
}

.comparison-table th {
  font-weight: 700;
  color: var(--color-brand);
  background: var(--color-bg-alt);
  font-size: 0.9375rem;
}

.comparison-table tr:last-child td { border-bottom: none; }

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  font-size: 0.9375rem;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.pricing-table th {
  background: var(--color-brand);
  color: var(--color-white);
  font-weight: 600;
}

.pricing-table td:nth-child(2) { font-weight: 700; color: var(--color-accent); font-size: 1.125rem; }

.pricing-note {
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xl);
}

/* ------------------------------------------------------------
   Privacy Policy
   ------------------------------------------------------------ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--container-pad);
}

.prose h1 {
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.prose h2 {
  color: var(--color-brand);
  font-size: 1.375rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg-alt);
}

.prose p, .prose li {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

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

.prose .intro-date {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

/* ------------------------------------------------------------
   Page Intro (non-hero pages)
   ------------------------------------------------------------ */
.page-intro {
  background: var(--color-brand);
  color: var(--color-white);
  padding: var(--space-xl) var(--container-pad);
}

.page-intro h1 { color: var(--color-white); margin-bottom: var(--space-sm); }
.page-intro p {
  color: rgba(255,255,255,0.8);
  font-size: 1.0625rem;
  max-width: 600px;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--color-brand);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

.footer-brand .site-logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
  line-height: 1.6;
}

.footer-nav h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-nav ul li a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.5);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-legal p { line-height: 1.6; }
.footer-legal a { color: rgba(255,255,255,0.6); }
.footer-legal a:hover { color: var(--color-white); }

/* ------------------------------------------------------------
   Cookie Consent Banner
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-brand);
  color: rgba(255,255,255,0.9);
  padding: var(--space-md) var(--container-pad);
  z-index: 200;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

@media (min-width: 700px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner p {
  font-size: 0.9375rem;
  margin: 0;
  flex: 1;
}

.cookie-banner a { color: var(--color-brand-light); }

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-buttons button {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 44px;
  border: 2px solid transparent;
  transition: background-color var(--transition);
}

#cookie-accept {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

#cookie-accept:hover { background: #0058B8; }

#cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

#cookie-decline:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   Utility classes
   ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: var(--space-xl) 0;
}

/* ============================================================
   Micro-Animations & Motion
   ============================================================ */

/* ------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0, 112, 224, 0.45); }
  60%  { box-shadow: 0 0 0 10px rgba(0, 112, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 112, 224, 0); }
}

@keyframes gradient-shift {
  0%, 100% { background-color: #0070E0; }
  50%       { background-color: #005BB5; }
}

/* ------------------------------------------------------------
   Hero entrance — staggered fade+slide on page load
   ------------------------------------------------------------ */
.hero-eyebrow {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.25s;
}

.hero-sub {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.4s;
}

.hero-ctas {
  animation: fadeSlideUp 0.5s ease both;
  animation-delay: 0.55s;
}

.hero-trust {
  animation: fadeSlideUp 0.4s ease both;
  animation-delay: 0.7s;
}

/* ------------------------------------------------------------
   Scroll reveal — base state (hidden until .is-visible added by JS)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger within grids */
.problem-grid .reveal:nth-child(2),
.services-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.problem-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.problem-grid .reveal:nth-child(4) {
  transition-delay: 240ms;
}

.steps .reveal:nth-child(2) {
  transition-delay: 80ms;
}

/* ------------------------------------------------------------
   Problem card icon — spring scale + rotate on hover
   ------------------------------------------------------------ */
.problem-icon svg {
  transition: transform var(--transition-spring);
}

.problem-card:hover .problem-icon svg {
  transform: scale(1.15) rotate(6deg);
}

/* ------------------------------------------------------------
   Service card — accent ring on hover
   ------------------------------------------------------------ */
.service-card {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 112, 224, 0.4);
  box-shadow: var(--shadow-card-hover), 0 0 0 3px rgba(0, 112, 224, 0.10);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Step number — pulsing ring on loop
   ------------------------------------------------------------ */
.step-number {
  animation: pulse-ring 2.5s ease-out infinite;
}

/* Step numbers stagger their ring pulse */
.steps .step:nth-child(2) .step-number { animation-delay: 0.8s; }
.steps .step:nth-child(3) .step-number { animation-delay: 1.6s; }

/* ------------------------------------------------------------
   Button — press feedback on :active
   ------------------------------------------------------------ */
.btn {
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

/* ------------------------------------------------------------
   Link arrow — slides right on hover
   ------------------------------------------------------------ */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 0.5em;
  text-decoration: none;
}

/* ------------------------------------------------------------
   CTA section — slow background pulse
   ------------------------------------------------------------ */
.section--accent {
  animation: gradient-shift 6s ease-in-out infinite;
}

/* ------------------------------------------------------------
   Testimonial cards — lift on hover
   ------------------------------------------------------------ */
.testimonial-card {
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------------
   Reduced Motion — disable all custom animations
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  /* Hero entrance — instant display */
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-ctas,
  .hero-trust {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Scroll reveal — immediately visible, no transition */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Step ring off */
  .step-number { animation: none; }

  /* CTA gradient shift off */
  .section--accent { animation: none; }

  /* Bounce (existing) — off */
  .hero-scroll-link .chevron { animation: none; }

  /* Smooth scroll — instant */
  html { scroll-behavior: auto; }

  /* Hover transforms off */
  .problem-card:hover .problem-icon svg { transform: none; }
  .service-card:hover { transform: none; }
  .testimonial-card:hover { transform: none; }
  .btn:active { transform: none; }
}
