/* Template A — White Minimal · True Blue accent */
:root {
  --accent: #1d4ed8;
  --accent-dark: #1e3a8a;
  --accent-light: #eff6ff;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --header-h: 56px;
  --bottom-h: 60px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text);
  background: var(--bg); padding-bottom: var(--bottom-h);
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-color: var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-weight: 800; font-size: 16px; color: var(--accent); letter-spacing: -.02em; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--bg); padding: 12px 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-md);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .25s, opacity .25s, visibility .25s;
}
.nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-link { display: block; padding: 12px 16px; border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.nav-link:active { background: var(--bg-alt); }
.nav-cta { background: var(--accent); color: #fff !important; text-align: center; margin-top: 4px; }

/* Hero — white, no image */
.hero {
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 7vw, 44px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.03em; margin-bottom: 16px;
}
.hero-desc { color: var(--text-muted); max-width: 400px; margin-bottom: 28px; font-size: 16px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 50px; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer; transition: transform .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active, .btn-primary:hover { background: var(--accent-dark); }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(22px, 5vw, 28px); font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.section-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card-icon { font-size: 24px; display: block; margin-bottom: 10px; }
.card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Works */
.works-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.work-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.work-img { height: 160px; background-size: cover; background-position: center; }
.work-img-1 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.work-img-2 { background: linear-gradient(135deg, #bfdbfe, #60a5fa); }
.work-img-3 { background: linear-gradient(135deg, #e2e8f0, #64748b); }
.work-card figcaption { padding: 14px 16px; }
.work-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.work-card span { font-size: 12px; color: var(--text-muted); }

/* Areas */
.areas-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer;
  margin-bottom: 0; color: var(--text);
}
.areas-chevron { font-size: 20px; transition: transform .25s; }
.areas-toggle[aria-expanded="true"] .areas-chevron { transform: rotate(90deg); }
.areas-content { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.areas-content.open { max-height: 400px; padding-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px; background: var(--accent-light); color: var(--accent);
  border-radius: 50px; font-size: 13px; font-weight: 600;
}
.areas-note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.areas-note a { color: var(--accent); font-weight: 600; }

/* Contact strip */
.contact-strip {
  background: var(--accent); color: #fff; padding: 32px 0; text-align: center;
}
.contact-strip p { font-size: 14px; opacity: .85; margin-bottom: 8px; }
.contact-phone { font-size: 28px; font-weight: 800; color: #fff; }

/* Footer */
.footer { padding: 32px 0 calc(32px + var(--bottom-h)); text-align: center; background: var(--bg-alt); }
.footer-brand { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }

/* Bottom bar */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; height: var(--bottom-h);
  border-top: 1px solid var(--border); background: var(--bg);
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}
.bottom-call { background: var(--bg); color: var(--text); border-right: 1px solid var(--border); }
.bottom-sms { background: var(--accent); color: #fff; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.modal-box {
  position: relative; width: 100%; max-width: 440px;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px; transform: translateY(100%);
  transition: transform .35s ease;
}
.modal.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border: none; background: var(--bg-alt); border-radius: 50%;
  font-size: 22px; cursor: pointer; line-height: 1; color: var(--text-muted);
}
.modal-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.modal-box label { display: block; margin-bottom: 14px; }
.modal-box label span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.modal-box input, .modal-box select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; background: var(--bg);
}
.modal-box input:focus, .modal-box select:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* Toast */
.toast {
  position: fixed; bottom: calc(var(--bottom-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text); color: #fff; padding: 10px 20px;
  border-radius: 50px; font-size: 14px; font-weight: 500;
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 300; white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Desktop */
@media (min-width: 640px) {
  body { padding-bottom: 0; }
  .nav-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 4px;
    padding: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; background: transparent;
  }
  .nav-link { padding: 8px 12px; font-size: 14px; }
  .nav-cta { margin-top: 0; margin-left: 8px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .bottom-bar { display: none; }
  .footer { padding-bottom: 32px; }
  .toast { bottom: 24px; }
  .modal { align-items: center; }
  .modal-box { border-radius: var(--radius); padding: 28px 24px; transform: translateY(20px) scale(.97); }
  .modal.open .modal-box { transform: translateY(0) scale(1); }
  .hero { padding-top: calc(var(--header-h) + 72px); padding-bottom: 72px; }
}

@media (min-width: 900px) {
  .section { padding: 64px 0; }
}
