/* ==========================================================================
   ARCHITECTURAL DRAWINGS — London Architectural Technology
   Design system: warm editorial minimalism with architectural precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,200..900,0..100;1,9..144,200..900,0..100&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Palette */
  --bg: #FAFAF7;
  --bg-2: #F2EFE8;
  --bg-deep: #E8E4D8;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --ink-soft: #4A5260;
  --ink-softer: #6B7280;
  --line: rgba(14, 17, 22, 0.08);
  --line-strong: rgba(14, 17, 22, 0.14);
  --accent: #C8664A;
  --accent-deep: #9D4A32;
  --accent-soft: #F5E6DD;
  --accent-glow: rgba(200, 102, 74, 0.12);
  --success: #47845A;
  --warn: #D4A547;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 2px 6px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 17, 22, 0.06), 0 12px 32px rgba(14, 17, 22, 0.05);
  --shadow-lg: 0 24px 60px rgba(14, 17, 22, 0.08), 0 8px 20px rgba(14, 17, 22, 0.05);
  --shadow-glow: 0 20px 60px rgba(200, 102, 74, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container: 1240px;
  --container-tight: 960px;
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--accent); color: #fff; }

/* ============== Typography ============== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-variation-settings: "opsz" 100, "SOFT" 40; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-variation-settings: "opsz" 60; letter-spacing: -0.015em; }
h4 { font-size: 1.3rem; font-variation-settings: "opsz" 36; letter-spacing: -0.01em; }
em, .italic { font-style: italic; }
.serif { font-family: var(--font-display); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.muted { color: var(--ink-soft); }
.tiny { font-size: 0.85rem; }

/* ============== Layout ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section-header { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-header h2 { margin-top: 16px; }
.section-header p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; max-width: 640px; }

/* ============== Nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
}
.logo-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { background: rgba(14, 17, 22, 0.05); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-menu {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .btn-menu { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 12px 18px;
}
.btn-ghost:hover { background: rgba(14, 17, 22, 0.06); }
.btn-outline {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-lg { padding: 18px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

.btn svg { width: 16px; height: 16px; }

/* ============== Hero ============== */
.hero {
  padding: clamp(40px, 7vw, 100px) 0 clamp(60px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 300; }
.hero-lede {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust-item svg { width: 16px; height: 16px; color: var(--success); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 640px;
}
.hero-img-main {
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-float {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}
.hero-card-float .bubble {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.hero-card-float .bubble svg { width: 24px; height: 24px; }
.hero-card-float strong { display: block; font-size: 1.4rem; font-family: var(--font-display); font-variation-settings: "opsz" 36; }
.hero-card-float span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-card-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  max-width: 200px;
  transform: rotate(2deg);
}
.hero-card-badge strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.4rem;
  display: block;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}
@media (max-width: 960px) {
  .hero-visual { margin-top: 20px; max-height: 520px; }
  .hero-card-float { left: -12px; bottom: -20px; }
  .hero-card-badge { right: -8px; top: -12px; transform: rotate(3deg); }
}

/* Decorative background shapes */
.hero-bg-decor {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hero-bg-decor-1 {
  top: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
}

/* ============== Search widget ============== */
.search-widget {
  max-width: 700px;
  margin: 32px 0 0;
  position: relative;
  background: var(--surface);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.search-widget:focus-within { box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-glow); }
.search-widget svg { width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
.search-widget input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 0;
  background: transparent;
  font-size: 1rem;
}
.search-widget input::placeholder { color: var(--ink-softer); }
.search-widget button {
  padding: 12px 20px;
}
.search-suggestions {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-left: 8px;
}
.search-suggestions span { opacity: 0.7; }
.search-suggestions a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s var(--ease);
}
.search-suggestions a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============== Logo strip / social proof ============== */
.logo-strip {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.logo-strip-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-strip-items {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.65;
}
.logo-strip-items span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ============== Services grid ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 32px;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease-spring);
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.4rem; letter-spacing: -0.01em; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.service-card-price { font-family: var(--font-display); font-size: 1.1rem; font-variation-settings: "opsz" 36; }
.service-card-price .from { font-size: 0.8rem; color: var(--ink-softer); font-family: var(--font-body); margin-right: 4px; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  transition: color 0.2s var(--ease), gap 0.3s var(--ease);
}
.service-card:hover .service-card-link { color: var(--accent-deep); gap: 10px; }
.service-card-link svg { width: 14px; height: 14px; }

/* Service card featured variant */
.service-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.service-card.featured h3 { color: var(--bg); }
.service-card.featured p { color: rgba(250,250,247,0.7); }
.service-card.featured .service-icon { background: rgba(200, 102, 74, 0.2); color: var(--accent); }
.service-card.featured .service-card-footer { border-top-color: rgba(250,250,247,0.15); }
.service-card.featured .service-card-link { color: var(--bg); }
.service-card.featured:hover .service-card-link { color: var(--accent); }

/* ============== Process steps (quote entry) ============== */
.process {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 40px;
}
@media (max-width: 960px) { .process-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 520px) { .process-steps { grid-template-columns: 1fr; } }

.process-line {
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
@media (max-width: 960px) { .process-line { display: none; } }

.process-step {
  position: relative;
  text-align: center;
  padding: 0 12px;
  z-index: 1;
}
.process-step-num {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-deep);
  font-style: italic;
  transition: transform 0.3s var(--ease-spring), background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
}
.process-step-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.process-step:hover .process-step-num {
  background: var(--ink);
  color: var(--accent);
  transform: scale(1.05);
}
.process-step:hover .process-step-num::before { opacity: 1; }
.process-step svg { width: 28px; height: 28px; }
.process-step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.88rem; color: var(--ink-soft); }

/* ============== Pricing ============== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pricing-card.popular h3 { color: var(--bg); }
.pricing-popular-tag {
  position: absolute;
  top: -12px;
  right: 36px;
  background: var(--accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
.pricing-price .amount {
  font-size: 3.2rem;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-price .unit { color: inherit; opacity: 0.6; font-size: 1rem; font-family: var(--font-body); }
.pricing-price .from { font-size: 0.85rem; opacity: 0.6; font-family: var(--font-body); margin-right: 4px; }
.pricing-was {
  text-decoration: line-through;
  opacity: 0.4;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.pricing-features li svg {
  width: 18px; height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card.popular .pricing-features li svg { color: var(--accent); }

/* ============== Feature showcase ============== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 10vw, 120px);
}
.feature-split:last-child { margin-bottom: 0; }
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; }
  .feature-split.reverse { direction: ltr; }
}
.feature-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-content h2 { margin-bottom: 24px; }
.feature-content p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.feature-bullets li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-bullets li .check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.feature-bullets li .check svg { width: 14px; height: 14px; }
.feature-bullets li strong { font-weight: 600; }
.feature-bullets li span { color: var(--ink-soft); display: block; font-size: 0.93rem; margin-top: 2px; }

/* ============== Areas / London boroughs ============== */
.boroughs {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.boroughs::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200, 102, 74, 0.3) 0%, transparent 60%);
  filter: blur(50px);
}
.boroughs h2 { color: var(--bg); max-width: 620px; position: relative; }
.boroughs p { color: rgba(250,250,247,0.7); max-width: 620px; margin: 20px 0 40px; position: relative; }
.boroughs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  position: relative;
}
@media (max-width: 900px) { .boroughs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .boroughs-grid { grid-template-columns: repeat(2, 1fr); } }
.boroughs-grid a {
  padding: 14px 16px;
  border: 1px solid rgba(250,250,247,0.1);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  text-align: center;
  transition: all 0.2s var(--ease);
  background: rgba(250,250,247,0.02);
}
.boroughs-grid a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============== Testimonials ============== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 60, "SOFT" 80;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
}
.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.4;
  font-style: italic;
  display: block;
  margin-bottom: -10px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.94rem; }
.testimonial-meta { font-size: 0.82rem; color: var(--ink-soft); }
.stars { display: inline-flex; gap: 2px; color: var(--warn); margin-bottom: 4px; }
.stars svg { width: 14px; height: 14px; fill: currentColor; }

/* ============== FAQ ============== */
.faq {
  background: var(--bg-2);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-aside h2 { margin-bottom: 20px; }
.faq-aside p { color: var(--ink-soft); margin-bottom: 24px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-top: 1px solid var(--line-strong);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variation-settings: "opsz" 60;
  color: var(--ink);
  gap: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.faq-q:hover { color: var(--accent-deep); }
.faq-q-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring), background 0.3s var(--ease);
  color: var(--ink-soft);
}
.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 24px;
}

/* ============== CTA Band ============== */
.cta-band {
  padding: clamp(60px, 9vw, 100px) 0;
  text-align: center;
  position: relative;
}
.cta-band h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 820px;
  margin: 0 auto 24px;
}
.cta-band h2 .accent { color: var(--accent); font-style: italic; font-weight: 300; }
.cta-band p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ============== Footer ============== */
.footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: rgba(250, 250, 247, 0.6);
}
.footer .logo { color: var(--bg); }
.footer .logo-mark { background: var(--bg); color: var(--ink); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}
.footer .logo { margin-bottom: 16px; color: var(--bg); }
.footer-col p { color: rgba(250, 250, 247, 0.5); font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; color: rgba(250, 250, 247, 0.6); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ============== Footer SEO link grid ============== */
.footer-seo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 820px) { .footer-seo { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-seo { grid-template-columns: 1fr; } }
.footer-seo h5 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg);
  margin-bottom: 1.25rem;
}
.footer-seo ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-seo a { font-size: 0.85rem; color: rgba(250, 250, 247, 0.45); transition: color 0.3s var(--ease); line-height: 1.4; }
.footer-seo a:hover { color: var(--accent); }

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============== Quote flow (multi-step) ============== */
.quote-page { min-height: 100vh; background: var(--bg-2); padding: 40px 0 80px; }
.quote-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}
.quote-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}
.quote-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.quote-progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
}
.quote-progress-bar.active::before { transform: translateX(0); }
.quote-progress-bar.done::before { transform: translateX(0); background: var(--ink); }

.quote-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-aside {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 32px;
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
}
.quote-consultant {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.quote-consultant-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-soft) url('../img/technologist-working-640.avif') center/cover;
  color: var(--accent-deep);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  flex-shrink: 0;
  overflow: hidden;
}
.quote-consultant strong { font-size: 1.05rem; display: block; }
.quote-consultant span { font-size: 0.82rem; color: var(--ink-soft); }

.quote-aside p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  font-variation-settings: "opsz" 60, "SOFT" 60;
  color: var(--ink);
}
.quote-aside p em { color: var(--accent); }
.quote-aside .tiny { color: var(--ink-soft); margin-top: 16px; }

.quote-main {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.quote-step { display: none; }
.quote-step.active { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.quote-step-num { color: var(--accent); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.quote-step h2 { margin: 8px 0 32px; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }

.choice-card {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}
.choice-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.choice-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.choice-card svg {
  width: 40px; height: 40px;
  color: var(--accent-deep);
}
.choice-card span {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.2;
}

.quote-field {
  margin-bottom: 20px;
}
.quote-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.quote-field textarea { min-height: 120px; resize: vertical; }

.quote-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.quote-summary {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.94rem;
  margin-bottom: 24px;
}
.quote-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.quote-summary-row strong { color: var(--ink); }
.quote-summary-row.total {
  border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-variation-settings: "opsz" 60;
}

/* ============== Portal ============== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } }
.auth-visual {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
@media (max-width: 860px) { .auth-visual { display: none; } }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,17,22,0.3) 0%, rgba(200, 102, 74, 0.3) 100%);
}
.auth-visual-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  color: var(--bg);
  z-index: 1;
}
.auth-visual-content h2 {
  color: var(--bg);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.auth-visual-content p { color: rgba(250,250,247,0.8); max-width: 420px; }

.auth-form-shell {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-form {
  width: 100%;
  max-width: 420px;
}
.auth-form h1 { font-size: 2.4rem; margin-bottom: 8px; }
.auth-form > p { color: var(--ink-soft); margin-bottom: 32px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-link-row {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.auth-link-row a { color: var(--accent-deep); font-weight: 600; }

/* Portal dashboard */
.portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; } }
.portal-sidebar {
  background: var(--ink);
  color: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 860px) { .portal-sidebar { position: static; height: auto; } }
.portal-sidebar .logo { color: var(--bg); }
.portal-sidebar .logo-mark { background: var(--bg); color: var(--ink); }
.portal-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.portal-nav a {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-sm);
  color: rgba(250,250,247,0.7);
  font-size: 0.94rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.portal-nav a:hover { background: rgba(250,250,247,0.08); color: var(--bg); }
.portal-nav a.active { background: var(--accent); color: #fff; }
.portal-nav svg { width: 18px; height: 18px; }
.portal-user {
  margin-top: auto;
  padding: 16px;
  background: rgba(250,250,247,0.06);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.portal-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  color: #fff;
}
.portal-user strong { font-size: 0.92rem; display: block; color: var(--bg); }
.portal-user span { font-size: 0.78rem; color: rgba(250,250,247,0.6); }

.portal-main { padding: 40px; background: var(--bg); }
@media (max-width: 520px) { .portal-main { padding: 24px 16px; } }
.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.portal-header h1 { font-size: 2.2rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.stat-card-label { color: var(--ink-soft); font-size: 0.84rem; margin-bottom: 8px; }
.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-card-trend { font-size: 0.82rem; color: var(--success); margin-top: 8px; }

.project-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.project-item {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.project-item:last-child { border-bottom: 0; }
.project-item:hover { background: var(--bg-2); }
@media (max-width: 720px) {
  .project-item { grid-template-columns: 1fr; gap: 8px; }
}
.project-title { font-weight: 600; font-size: 1.02rem; }
.project-meta { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; }
.badge {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pending { background: rgba(212, 165, 71, 0.15); color: #8F6E18; }
.badge-active { background: rgba(71, 132, 90, 0.15); color: var(--success); }
.badge-review { background: var(--accent-soft); color: var(--accent-deep); }
.badge-done { background: rgba(14, 17, 22, 0.08); color: var(--ink); }

.file-drop {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  background: var(--surface);
}
.file-drop:hover, .file-drop.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-drop svg { width: 40px; height: 40px; color: var(--ink-soft); margin: 0 auto 12px; }
.file-drop strong { display: block; margin-bottom: 4px; }
.file-drop span { font-size: 0.84rem; color: var(--ink-soft); }

/* ============== Utilities ============== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* Print */
@media print {
  .nav, .footer, .cta-band { display: none; }
  body { background: white; color: black; }
}
