/* Decade Leap — stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0B0B0C;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --bg-dark: #0B0B0C;
  --accent: #DC2626;
  --accent-dark: #991B1B;
  --muted: #6B7280;
  --border: #E5E7EB;
  --border-dark: #2A2A2E;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

/* Skip link — visually hidden until focused via keyboard */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 200;
  text-decoration: none;
  border-radius: 2px;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visible keyboard focus everywhere — preserves default ring on tab, hides on click */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.section-dark :focus-visible,
.cta-band :focus-visible {
  outline-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.625rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.375rem); letter-spacing: -0.01em; }

p { color: #333; }

a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 480px) {
  .container { padding: 0 1.15rem; }
}

.accent-mark { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  line-height: 1.55;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 0;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  min-height: 44px;
  line-height: 1.4;
}
.nav-links a.btn { min-height: 48px; }
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    align-items: stretch;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.95rem 0.5rem;
    font-size: 1rem;
    min-height: 44px;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links .btn { text-align: center; justify-content: center; padding: 0.95rem 1.5rem; min-height: 48px; margin-top: 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

/* Sections */
section { padding: 6rem 0; }
.hero { padding: 6.5rem 0 5rem; }
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .section-head { margin-bottom: 2.25rem; }
}
@media (max-width: 480px) {
  section { padding: 3.25rem 0; }
  .hero { padding: 2.75rem 0 2.5rem; }
}
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C1C1C4; }
.section-dark .lead { color: #C1C1C4; }
.section-dark .eyebrow { color: var(--accent); }

.section-head {
  max-width: 760px;
  margin-bottom: 3.5rem;
}
.section-head h2 { margin-bottom: 1rem; }

/* Hero */
.hero h1 { max-width: 940px; margin-bottom: 1.5rem; }
.hero-lead {
  max-width: 640px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-ctas { gap: 0.75rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* Grid + cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
@media (max-width: 480px) {
  .card { padding: 1.75rem 1.5rem; }
}
@media (hover: hover) {
  .card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
  }
}
.card-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
.card h3 { margin-bottom: 1rem; }
.card > p { color: var(--muted); margin-bottom: 1.25rem; }

/* Service detail grid (services page) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
}
.service-detail-body > p { margin-bottom: 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 1.55; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
}
.two-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding: 0.75rem 0 0.75rem 1.75rem;
  position: relative;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.98rem;
}
.check-list li:first-child { border-top: none; padding-top: 0; }
.check-list li:first-child::before { top: 0.5rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; }
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.principle {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--ink);
}
.principle h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.principle p { color: var(--muted); font-size: 0.98rem; }

/* Process */
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.process-step h3 { margin-bottom: 0.5rem; }
.process-step p { color: var(--muted); }
@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }
  .process-num { font-size: 1.75rem; }
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 5rem 0;
}
.cta-band h2 { color: #fff; max-width: 720px; margin-bottom: 1rem; }
.cta-band p { color: #C1C1C4; max-width: 600px; margin-bottom: 2rem; font-size: clamp(1rem, 1.6vw, 1.1rem); }
@media (max-width: 768px) {
  .cta-band { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* Contact layout */
.contact-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.email-card {
  padding: 3rem 2.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
@media (max-width: 480px) {
  .email-card { padding: 2rem 1.5rem; }
}
.email-card h2 {
  /* Scales so support@decadeleap.com fits on a single line down to 320px */
  font-size: clamp(1.05rem, 5vw, 2.1rem);
  margin: 0.25rem 0 1.25rem;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}
.email-card-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.05rem);
  margin-bottom: 2rem;
  line-height: 1.55;
}
.email-card .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.email-card-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.info-block {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
}
.info-block h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.info-block p { margin-bottom: 0.75rem; color: var(--ink); font-size: 0.98rem; }
.info-block .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}
.info-block .label:first-child { margin-top: 0; }
.info-block a {
  color: var(--accent);
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  padding: 0.4rem 0;
  min-height: 36px;
}
.info-block p a[href^="mailto:"] {
  padding: 0.5rem 0;
  min-height: 44px;
}
@media (max-width: 480px) {
  .info-block { padding: 1.5rem; }
}

/* Callout (own-brands moment on About) */
.callout {
  margin-top: 2.5rem;
  max-width: 720px;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.callout-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.callout p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 480px) {
  .callout { padding: 1.25rem 1.25rem; }
}

/* Operators grid (Home "Why us" 2-column inside section-dark) */
.operators-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .operators-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.operators-grid h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.operators-grid p {
  margin-bottom: 0.75rem;
  color: #C1C1C4;
  line-height: 1.55;
  font-size: 1rem;
}
.operators-grid p:last-child { margin-bottom: 0; }

/* Image band — full-width photo strip between sections */
.image-band {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg-alt);
  line-height: 0;
}
.image-band picture,
.image-band img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 480px);
  object-fit: cover;
  object-position: center;
}
@media (max-width: 480px) {
  .image-band picture,
  .image-band img { height: 240px; }
}

/* Why-us split — image on one side, copy on the other (Home Why us section) */
.why-us-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (max-width: 900px) {
  .why-us-split { grid-template-columns: 1fr; gap: 2rem; }
}
.why-us-split-image {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.why-us-split-image picture,
.why-us-split-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 900px) {
  .why-us-split-image { min-height: 280px; }
}
@media (max-width: 480px) {
  .why-us-split-image { min-height: 220px; }
}
.why-us-split-body { display: flex; flex-direction: column; justify-content: center; }
.why-us-split-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  margin: 1.25rem 0 0.75rem;
  font-weight: 600;
}
.why-us-split-body h3:first-child { margin-top: 0; }
.why-us-split-body p {
  margin-bottom: 0.5rem;
  color: #C1C1C4;
  line-height: 1.55;
  font-size: 1rem;
}
.why-us-split-body p:last-child { margin-bottom: 0; }

/* Legal body (Privacy + Terms pages) */
.legal-body {
  max-width: 760px;
}
.legal-body h2 {
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}
.legal-body a {
  color: var(--accent);
  font-weight: 500;
  padding: 0.15rem 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #9A9AA0;
  padding: 4rem 0 2rem;
  padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom)));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: 1rem; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid > div:first-child { grid-column: auto; margin-bottom: 0; }
}
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.site-footer p { color: #9A9AA0; font-size: 0.95rem; max-width: 380px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a {
  color: #9A9AA0;
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline-block;
  padding: 0.6rem 0.25rem;
  min-height: 44px;
}
.site-footer a:hover { color: #fff; }
@media (max-width: 700px) {
  .site-footer ul li { margin-bottom: 0.25rem; }
  .site-footer a { padding: 0.85rem 0.25rem; }
}
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Utility */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-3 { margin-top: 3rem; }
