/* ===== SING FIELD — DESIGN SYSTEM ===== */
/* No gradients, no rgba, no standard templates */

:root {
  --navy: #0a1628;
  --navy-light: #122040;
  --slate: #1e293b;
  --white: #ffffff;
  --off-white: #f4f5f7;
  --coral: #e8453c;
  --amber: #d4931e;
  --teal: #0d9488;
  --steel: #64748b;
  --ink: #0f172a;
  --border: #e2e8f0;
  --border-dark: #334155;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --side-width: 320px;
  --max-content: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side-width);
  height: 100vh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  z-index: 100;
  border-right: 1px solid var(--border-dark);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}

.sidebar-logo svg { flex-shrink: 0; }

.sidebar-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
}

.sidebar-logo-text span {
  display: block;
  font-size: 0.675rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 2px;
}

.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus-visible {
  background: var(--navy-light);
  color: var(--white);
}

.sidebar-nav a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.sidebar-nav a:hover::before,
.sidebar-nav a:focus-visible::before { opacity: 1; }

.sidebar-footer {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
}

.sidebar-footer p {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.7;
}

.sidebar-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

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

.sidebar-footer-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.8125rem;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
  margin-left: var(--side-width);
  min-height: 100vh;
}

/* ===== HERO — ASYMMETRIC LAYOUT ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  position: relative;
}

.hero-text {
  padding: 120px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--coral);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: #fef2f2;
  z-index: -1;
}

.hero p {
  font-size: 1.125rem;
  color: #475569;
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
  line-height: 1;
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 4px #fecaca;
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--navy);
  background: var(--off-white);
}

.hero-visual {
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-geometric {
  position: relative;
  width: 360px;
  height: 360px;
}

.hero-geometric .shape-a {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  background: var(--navy);
  border-radius: 32px;
}

.hero-geometric .shape-b {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--coral);
  border-radius: 50%;
}

.hero-geometric .shape-c {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: var(--amber);
  border-radius: 20px;
  rotate: 45deg;
}

.hero-geometric .shape-dots {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.hero-geometric .shape-dots span {
  width: 8px;
  height: 8px;
  background: var(--steel);
  border-radius: 2px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  padding: 100px 80px 48px;
  max-width: var(--max-content);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--coral);
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

.section-header p {
  font-size: 1.125rem;
  color: #475569;
  margin-top: 16px;
  max-width: 540px;
  line-height: 1.7;
}

/* ===== SERVICES — MASONRY-INSPIRED GRID ===== */
.services-grid {
  padding: 0 80px 100px;
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
}

.service-card:nth-child(1) { grid-column: span 3; }
.service-card:nth-child(2) { grid-column: span 2; }
.service-card:nth-child(3) { grid-column: span 2; }
.service-card:nth-child(4) { grid-column: span 3; }

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
}

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

.service-card p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
}

.service-card .card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 4px;
}

.service-card:nth-child(1) .card-accent { background: var(--coral); }
.service-card:nth-child(2) .card-accent { background: var(--teal); }
.service-card:nth-child(3) .card-accent { background: var(--amber); }
.service-card:nth-child(4) .card-accent { background: var(--navy); }

/* ===== STATS COUNTER ROW ===== */
.stats-strip {
  background: var(--navy);
  padding: 80px;
  margin: 0 0 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 2px solid #1e3a5f;
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}

.stat-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== APPROACH — TIMELINE STYLE ===== */
.approach-list {
  padding: 0 80px 100px;
  max-width: var(--max-content);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.approach-item:first-child { border-top: 1px solid var(--border); }

.approach-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--coral);
  background: #fef2f2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.approach-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.approach-item p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
}

/* ===== TESTIMONIALS — SINGLE ROW HORIZONTAL ===== */
.testimonials-scroll {
  padding: 0 80px 100px;
  max-width: var(--max-content);
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testimonials-scroll::-webkit-scrollbar { display: none; }

.testimonial-card {
  min-width: 380px;
  scroll-snap-align: start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  flex-shrink: 0;
}

.testimonial-card .quote-mark {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial-card blockquote {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card .author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.testimonial-card .author-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.testimonial-card .author-role {
  font-size: 0.8125rem;
  color: var(--steel);
}

/* ===== CONTACT FORM ===== */
.contact-section {
  padding: 0 80px 120px;
  max-width: var(--max-content);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.9375rem;
  color: #475569;
}

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--navy);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
}

.form-success.show { display: block; }

.form-success .check-icon {
  width: 64px;
  height: 64px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-success p {
  color: #475569;
}

.form-error {
  color: var(--coral);
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.form-error.show { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  margin-left: var(--side-width);
  border-top: 1px solid var(--border);
  padding: 48px 80px 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--steel);
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--coral); }

.footer-bottom {
  margin-left: var(--side-width);
  border-top: 1px solid var(--border);
  padding: 20px 80px;
  font-size: 0.8125rem;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== PRIVACY / TERMS PAGES ===== */
.legal-page {
  margin-left: var(--side-width);
  padding: 80px;
  max-width: 820px;
}

.legal-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 8px;
}

.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: var(--steel);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page address {
  font-style: normal;
  line-height: 1.75;
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0.5;
  z-index: 99;
}

.sidebar-backdrop.show { display: block; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; }
  .hero-text { padding: 80px 48px 48px; }
  .services-grid { grid-template-columns: 1fr 1fr; padding: 0 48px 80px; }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4) { grid-column: span 1; }
  .section-header { padding: 80px 48px 40px; }
  .stats-strip { padding: 60px 48px; grid-template-columns: repeat(2, 1fr); }
  .approach-list { padding: 0 48px 80px; }
  .testimonials-scroll { padding: 0 48px 80px; }
  .contact-section { padding: 0 48px 100px; grid-template-columns: 1fr; }
  .site-footer { padding: 40px 48px 24px; }
  .footer-bottom { padding: 16px 48px; }
  .legal-page { padding: 60px 48px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .site-footer { margin-left: 0; grid-template-columns: 1fr; }
  .footer-bottom { margin-left: 0; flex-direction: column; }
  .hero-text { padding: 80px 24px 40px; }
  .hero h1 { font-size: 2.25rem; }
  .section-header { padding: 60px 24px 32px; }
  .services-grid { padding: 0 24px 60px; grid-template-columns: 1fr; }
  .stats-strip { padding: 48px 24px; grid-template-columns: 1fr 1fr; }
  .approach-list { padding: 0 24px 60px; }
  .approach-item { grid-template-columns: 56px 1fr; gap: 20px; }
  .testimonials-scroll { padding: 0 24px 60px; }
  .testimonial-card { min-width: 280px; }
  .contact-section { padding: 0 24px 80px; }
  .contact-form { padding: 28px; }
  .site-footer { padding: 32px 24px 20px; }
  .footer-bottom { padding: 12px 24px; }
  .legal-page { padding: 80px 24px 60px; }
  .legal-page h1 { font-size: 1.75rem; }
}
