/* Template B — Hero Image · Action-oriented · True Blue accent */
:root {
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --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,.12);
}

*, *::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 — transparent on hero, solid on scroll */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.header.scrolled {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  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: #fff; letter-spacing: -.02em; transition: color .25s; }
.header.scrolled .logo { color: var(--accent); }

.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: #fff; border-radius: 2px; transition: transform .25s, opacity .25s, background .25s; }
.header.scrolled .nav-toggle span { background: var(--text); }
.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; color: var(--text); }
.nav-link:active { background: var(--bg-alt); }
.nav-cta { background: var(--accent); color: #fff !important; text-align: center; margin-top: 4px; }

/* Hero — full image + overlay */
.hero {
  position: relative; min-height: 85svh; min-height: 85vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 48px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(to right, rgba(15,23,42,.82) 0%, rgba(15,23,42,.55) 100%),
    url('https://images.unsplash.com/photo-1558904541-efa843a96f01?w=1200&q=80') center/cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; color: #fff; max-width: 520px; }
.hero-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700;
  color: var(--accent-bright); margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(26px, 6.5vw, 40px); font-weight: 800;
  line-height: 1.2; letter-spacing: -.02em; margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 8px; font-size: 16px; 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-bright); color: #fff;
  box-shadow: 0 4px 20px rgba(59,130,246,.45);
}
.btn-primary:active, .btn-primary:hover { background: var(--accent); }
.btn-block { width: 100%; border-radius: var(--radius); }

/* 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; box-shadow: var(--shadow-md); background: var(--bg); }
.work-img { height: 180px; background-size: cover; background-position: center; }
.work-img-1 { background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), url('https://images.unsplash.com/photo-1598902108858-999f86077269?w=600&q=80'); }
.work-img-2 { background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=600&q=80'); }
.work-img-3 { background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.1)), url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=600&q=80'); }
.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;
  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(--text); color: #fff;
  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; }

/* CTA banner */
.cta-banner {
  position: relative; padding: 56px 0; overflow: hidden; text-align: center;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15,23,42,.75), rgba(15,23,42,.75)),
    url('https://images.unsplash.com/photo-1585320806297-9794b3e4eeae?w=1200&q=80') center/cover;
}
.cta-banner-inner { position: relative; z-index: 1; color: #fff; }
.cta-banner-text { font-size: clamp(20px, 5vw, 28px); font-weight: 800; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .02em; }
.cta-banner-phone { font-size: 16px; margin-bottom: 24px; opacity: .9; }
.cta-banner-phone a { color: #fff; font-weight: 800; text-decoration: underline; }

/* Footer */
.footer { padding: 32px 0 calc(32px + var(--bottom-h)); text-align: center; background: #0f172a; color: rgba(255,255,255,.6); }
.footer-brand { font-weight: 800; font-size: 15px; color: #fff; margin-bottom: 4px; }
.footer-copy { font-size: 12px; }

/* 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,.08);
  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,.55); }
.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; color: rgba(255,255,255,.9); }
  .header.scrolled .nav-link { color: var(--text); }
  .nav-cta { margin-top: 0; margin-left: 8px; color: #fff !important; }
  .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); }
}

@media (min-width: 900px) {
  .section { padding: 64px 0; }
  .hero { min-height: 75vh; }
}
