:root {
  --ink: #1B1F1D;
  --paper: #F6F5F1;
  --paper-alt: #EFEDE5;
  --card-bg: #FBFAF7;
  --accent: #4A6659;
  --accent-soft: #8FAE9F;
  --line: #DED9CC;
  --line-soft: #E4E0D3;
  --muted: #3F453F;
  --faint: #8A8578;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0;
}

.mono { font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* Header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
#site-header.scrolled {
  background: rgba(246,245,241,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}
.logo {
  font-size: 22px;
  text-decoration: none;
  background: none;
  border: none;
}
.logo .accent { color: var(--accent); }

.desktop-nav { display: none; gap: 32px; }
.navlink {
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 2px;
}
.navlink::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.navlink.active::after, .navlink:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.phone-desktop { display: none; font-size: 13px; color: var(--accent); text-decoration: none; }

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span { width: 20px; height: 1.5px; background: var(--ink); display: block; }

.mobile-menu {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu.open { display: flex; }
.mobile-navlink {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  cursor: pointer;
}

@media (min-width: 860px) {
  .desktop-nav { display: flex; }
  .mobile-toggle { display: none; }
  .phone-desktop { display: inline; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  background: none;
}
.btn-primary { background: var(--ink); color: var(--paper); transition: background 0.25s ease, color 0.25s ease; }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); width: 100%; }

/* Sections */
.section { padding: 96px 0; }
.hero { padding: 88px 24px 96px; }
.eyebrow { font-size: 12px; color: var(--accent); margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  max-width: 820px;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin-top: 28px;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.stats {
  margin-top: 88px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stat-label { font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.stat-value { font-size: 16px; font-weight: 500; }

/* Services */
.services-section { background: var(--paper-alt); }
.services-section h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 56px; max-width: 640px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  background: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27,31,29,0.08); }
.card-code { font-size: 11px; color: var(--faint); margin-bottom: 18px; }
.card h3 { font-size: 24px; margin: 0 0 14px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line-soft); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.about-heading { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-top: 24px; max-width: 480px; }
.about-grid p { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 560px; margin: 0 0 20px; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px;
}
.fact-title { font-size: 15px; font-weight: 600; }
.fact-sub { font-size: 13px; color: #6B6A5E; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* Quote */
.quote-section { background: var(--paper-alt); }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.quote-heading { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-top: 24px; max-width: 480px; }
.quote-lead { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 480px; margin: 20px 0 32px; }
.quote-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; max-width: 480px; }

.quote-section .contact-form input,
.quote-section .contact-form select,
.quote-section .contact-form textarea {
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.quote-section .btn-light { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quote-section .btn-light:hover { background: transparent; color: var(--ink); }
.quote-section .form-success { background: var(--card-bg); border-color: var(--line); }
.quote-section .form-success p { color: var(--muted); }

.file-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.file-label input[type="file"] {
  display: block;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
}
.file-hint { font-size: 12px; color: var(--faint); margin: 0 0 16px; }

@media (min-width: 860px) {
  .quote-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* Service provider */
.provider-section { background: var(--ink); color: var(--paper); }
.provider-section .eyebrow { color: var(--accent-soft); }
.provider-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.provider-heading { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin-top: 24px; max-width: 440px; }
.provider-text { font-size: 16px; line-height: 1.7; color: #C7C9C1; max-width: 560px; margin: 0 0 20px; }

@media (min-width: 860px) {
  .provider-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

/* Contact */
.contact-section { background: var(--ink); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
.contact-eyebrow { color: var(--accent-soft); }
.contact-heading { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; max-width: 420px; margin-top: 24px; }
.contact-lead { font-size: 15px; line-height: 1.7; color: #B8BAB2; max-width: 400px; margin: 24px 0 32px; }
.contact-details { font-size: 15px; line-height: 2.1; }
.contact-details .label { color: var(--accent-soft); font-size: 12px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: #252A27;
  border: 1px solid #3A3F3C;
  color: var(--paper);
  padding: 13px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.contact-form textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; }

.form-success {
  border: 1px solid #3A3F3C;
  padding: 32px;
  background: #212623;
}
.form-success p { font-size: 15px; line-height: 1.6; color: #D8D9D3; margin: 10px 0 0; }

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--faint);
  padding: 24px 0 40px;
  border-top: 1px solid #2C312E;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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