/* AIFreelancePro — Clean Pro Workshop */
:root {
  --bg: #FAFAFA;
  --navy: #1E3A5F;
  --coral: #F97316;
  --slate: #64748B;
  --mint: #6EE7B7;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
  --radius: 8px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --max: 1140px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.35rem; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.logo span { color: var(--coral); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 0.875rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  position: relative;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--coral);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral);
  color: var(--white);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-coral:hover { background: #ea580c; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover { border-color: var(--coral); color: var(--coral); }

main { padding-top: var(--nav-h); }

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero-lead {
  font-size: 1.125rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--coral);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Callout */
.callout {
  background: #FFF7ED;
  border-left: 4px solid var(--coral);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout strong { color: var(--navy); }

/* Stats */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }

.section-header { margin-bottom: 2rem; max-width: 720px; }
.section-header p { color: var(--slate); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.card h3 { margin-bottom: 0.75rem; }

/* Programme cards */
.programme-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.programme-card .ref {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.programme-card .price {
  font-weight: 600;
  color: var(--coral);
  margin: 0.75rem 0;
}

.programme-card .btn { margin-top: auto; align-self: flex-start; }

/* Method steps */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.method-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.method-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--coral);
  display: block;
  margin-bottom: 0.5rem;
}

/* Skills list */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.skills-list {
  list-style: none;
  margin: 0;
}

.skills-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 50%;
}

/* Snapshot */
.snapshot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.snapshot-avatar {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ */
.faq-list { max-width: 800px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--coral);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
  padding: 0 1.25rem 1rem;
  display: none;
  color: var(--slate);
}

.faq-item.open .faq-answer { display: block; }

/* Page hero */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; max-width: 640px; }

/* Content prose */
.prose { max-width: 800px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info dl { margin: 0; }
.contact-info dt {
  font-family: var(--font-head);
  font-weight: 700;
  margin-top: 1rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--slate); margin-left: 0; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--coral);
  border-color: var(--coral);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.checkbox-group {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checkbox-group input { width: auto; margin-top: 0.25rem; }

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: none;
}

.form-status.show { display: block; }
.form-status.ok { background: #ECFDF5; border: 1px solid var(--mint); color: #065F46; }
.form-status.err { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }

/* Disclaimer block */
.disclaimer-block {
  background: #F1F5F9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.9375rem;
  color: var(--slate);
  margin: 2rem 0;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--slate);
}

.trust-bar span::before {
  content: '✓';
  color: var(--coral);
  margin-right: 0.35rem;
  font-weight: 700;
}

/* Image sections */
.img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.img-section img {
  border-radius: var(--radius);
  border-top: 3px solid var(--coral);
}

.programme-detail .ref {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.5rem;
}

.programme-detail .price {
  font-weight: 700;
  color: var(--navy);
  margin: 0.75rem 0 1rem;
}

@media (min-width: 768px) {
  .img-section-reverse {
    direction: rtl;
  }
  .img-section-reverse > * {
    direction: ltr;
  }
}

/* Service detail */
.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.service-block h2 { border-bottom: 2px solid var(--coral); padding-bottom: 0.5rem; }

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.service-meta dt { font-weight: 700; font-family: var(--font-head); }
.service-meta dd { color: var(--slate); margin: 0; }

/* Legal tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.legal-table th { background: var(--bg); font-family: var(--font-head); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: var(--coral); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); margin-bottom: 0.75rem; display: inline-block; }

.footer-nav ul { list-style: none; margin: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { text-decoration: none; }

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 1.25rem;
  z-index: 2000;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-text { flex: 1; min-width: 260px; font-size: 0.9rem; color: var(--slate); }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cookie-customise {
  display: none;
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.cookie-customise.show { display: block; }

.cookie-customise label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

/* Animations */
.js .fade-in,
.js .slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .fade-in.visible,
.js .slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.no-js .fade-in,
.no-js .slide-up { opacity: 1; transform: none; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 560px; margin-inline: auto; }

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0;
  min-height: 60vh;
}

.error-page h1 { margin-bottom: 1rem; }
.error-page p { color: var(--slate); margin-bottom: 2rem; max-width: 480px; margin-inline: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .img-section,
  .contact-grid,
  .skills-grid { grid-template-columns: 1fr; }

  .stats-grid,
  .method-steps { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 0.75rem; }
  .main-nav .btn { text-align: center; margin-top: 0.5rem; }

  .header-cta-desktop { display: none; }

  .stats-grid,
  .method-steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 701px) {
  .main-nav .btn { margin-left: 0.5rem; }
}
