/* ============================================================
   West Coast IT Solutions — v2 redesign concept (light theme)
   Modern light theme · bento grid · floating glass nav
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.09);
  --text: #0f172a;
  --muted: #5a6a84;
  --accent: #0284c7;
  --accent-2: #0d9488;
  --grad: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
  --navy: #0b1f33;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 44px -14px rgba(15, 23, 42, 0.18);
  --radius: 20px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(2, 132, 199, 0.18); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn-grad {
  background: var(--grad); color: #ffffff;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(2, 132, 199, 0.38); }
.btn-outline {
  border: 1px solid var(--line); color: var(--text);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: rgba(2, 132, 199, 0.45); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-light { background: #ffffff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }

/* ---------- Header ---------- */
.v2-header {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 100;
  pointer-events: none;
}
.v2-header .bar {
  pointer-events: auto;
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.12);
}
@media (max-width: 1208px) { .v2-header .bar { margin: 0 24px; } }

.v2-header .logo-img { height: 56px; width: auto; }

.v2-nav { display: flex; align-items: center; gap: 26px; }
.v2-nav > a {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}
.v2-nav > a:hover, .v2-nav > a.active { color: var(--text); }
.v2-nav > a.btn-grad, .v2-nav > a.btn-grad:hover { color: #ffffff; }

.nav-toggle-v2 {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle-v2 span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.v2-hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(700px 420px at 78% 8%, rgba(2, 132, 199, 0.09), transparent 65%),
    radial-gradient(560px 400px at 12% 90%, rgba(13, 148, 136, 0.07), transparent 65%),
    var(--bg);
}
.v2-hero .container { position: relative; z-index: 1; text-align: center; max-width: 900px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(2, 132, 199, 0.07);
  border: 1px solid rgba(2, 132, 199, 0.22);
  padding: 7px 16px; border-radius: 999px;
  margin-bottom: 28px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

.v2-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 700;
  margin-bottom: 24px;
}
.v2-hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-hero .lede {
  font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.hero-stats {
  display: flex; justify-content: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  max-width: 640px; margin: 0 auto;
  list-style: none;
}
.hero-stats li {
  flex: 1; padding: 22px 16px;
  border-right: 1px solid var(--line);
}
.hero-stats li:last-child { border-right: 0; }
.hero-stats strong {
  display: block; font-family: var(--font-display);
  font-size: 24px; letter-spacing: -0.02em; margin-bottom: 2px;
}
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.v2-section { padding: 96px 0; position: relative; }
.v2-section.tint { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 620px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px); line-height: 1.12;
  letter-spacing: -0.02em; font-weight: 700; margin-bottom: 14px;
}
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* ---------- Bento services ---------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}
.bento-card {
  grid-column: span 3;
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  padding: 34px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bento-card.wide { grid-column: span 4; }
.bento-card.narrow { grid-column: span 2; }
.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-lg);
}

.bento-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.18);
  color: var(--accent); margin-bottom: 22px;
}
.bento-icon svg { width: 23px; height: 23px; }

.bento-card h3 {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: -0.01em; margin-bottom: 10px;
}
.bento-card p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.bento-link {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease;
}
.bento-card:hover .bento-link { gap: 10px; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.why-item {
  border-left: 2px solid rgba(2, 132, 199, 0.45);
  padding: 6px 0 6px 22px;
}
.why-item h3 {
  font-family: var(--font-display); font-size: 17px; margin-bottom: 8px;
}
.why-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-v2 {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}
.step-v2 .num {
  font-family: var(--font-display); font-size: 52px; font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px; display: block;
}
.step-v2 h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 10px; }
.step-v2 p { color: var(--muted); font-size: 15px; }

/* ---------- Service areas ---------- */
/* ===== Coverage map ===== */
.coverage-map {
  max-width: 900px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 8px;
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.06);
}
#coverageMap {
  height: 460px; width: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden; z-index: 0;
}
.map-caption {
  text-align: center; color: var(--muted);
  font-size: 0.95rem; margin: 16px auto 0; max-width: 640px;
}

.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: var(--shadow-lg);
}
.area-card .area-pin {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: var(--accent-2); margin-bottom: 18px;
}
.area-card .area-pin svg { width: 21px; height: 21px; }
.area-card h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.area-card p { color: var(--muted); font-size: 14.5px; }
.area-badge {
  display: inline-block; margin-top: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--accent-2);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Page hero (inner pages) ---------- */
.v2-page-hero {
  position: relative;
  padding: 170px 0 70px;
  text-align: center;
  background:
    radial-gradient(700px 380px at 70% 0%, rgba(2, 132, 199, 0.08), transparent 65%),
    var(--bg);
}
.v2-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08; letter-spacing: -0.025em; font-weight: 700;
  margin-bottom: 18px;
}
.v2-page-hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-page-hero p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 auto; }

/* ---------- CTA ---------- */
.v2-cta { padding: 40px 0 110px; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(700px 340px at 25% -30%, rgba(2, 132, 199, 0.35), transparent 70%),
    radial-gradient(600px 300px at 90% 130%, rgba(13, 148, 136, 0.3), transparent 70%),
    var(--navy);
  padding: 72px 40px; text-align: center;
  color: #ffffff;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-card p { color: rgba(255, 255, 255, 0.75); margin-bottom: 32px; font-size: 16.5px; }

/* ---------- Footer ---------- */
.v2-footer { padding: 64px 0 0; background: var(--navy); color: #e8edf4; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
}
.footer-grid .logo-img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: rgba(232, 237, 244, 0.65); font-size: 14.5px; max-width: 320px; }
.footer-grid h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(232, 237, 244, 0.55); margin-bottom: 16px; font-weight: 600;
}
.footer-grid a { display: block; color: rgba(232, 237, 244, 0.72); font-size: 14.5px; padding: 5px 0; transition: color 0.2s; }
.footer-grid a:hover { color: #ffffff; }
.footer-bottom-v2 {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 0; color: rgba(232, 237, 244, 0.55); font-size: 13.5px;
}

/* ---------- Inner pages: shared ---------- */
.container-narrow { max-width: 820px; }

.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tech {
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: #ffffff; border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tech:hover { color: var(--accent); border-color: rgba(2, 132, 199, 0.4); transform: translateY(-2px); }

/* Two-column service detail layout */
.split { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 48px; align-items: start; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px; letter-spacing: -0.01em;
  margin: 36px 0 14px;
}
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose ul:not(.ticks) { color: var(--muted); padding-left: 22px; margin-bottom: 16px; font-size: 15.5px; }
.prose ul:not(.ticks) li { margin-bottom: 6px; }
.prose .updated { font-size: 13.5px; color: var(--muted); font-style: italic; }

.ticks { list-style: none; }
.ticks li {
  position: relative; padding: 6px 0 6px 30px;
  color: var(--text); font-size: 15px; font-weight: 500;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(13, 148, 136, 0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230d9488" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
  border: 1px solid rgba(13, 148, 136, 0.25);
}
.ticks a { color: var(--accent); }
.ticks a:hover { text-decoration: underline; }
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #ffffff; padding: 28px 26px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 10px; }
.panel p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.panel-cta {
  border-color: rgba(2, 132, 199, 0.3);
  background:
    radial-gradient(300px 160px at 85% -20%, rgba(2, 132, 199, 0.08), transparent 70%),
    #ffffff;
}
.btn-block { width: 100%; justify-content: center; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: #ffffff; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15.5px;
  padding: 18px 48px 18px 22px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 22px 18px; }

/* Contact page */
.contact-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.contact-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.18);
  color: var(--accent);
}
.contact-ic svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--accent); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #ffffff; padding: 34px 32px;
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; background: #ffffff;
  border-color: rgba(2, 132, 199, 0.55);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.field textarea { resize: vertical; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.form-note.success { color: var(--accent-2); font-weight: 600; }
.form-note.error { color: #dc2626; font-weight: 600; }

/* About page */
.about-split { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center; }
.avatar {
  width: 100%; max-width: 300px; aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 84px; font-weight: 700; color: #ffffff;
  background:
    radial-gradient(220px 220px at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--grad);
  box-shadow: var(--shadow-lg);
  object-fit: cover; /* applies when .avatar is an <img> */
}
.about-stats { display: flex; gap: 40px; margin-top: 30px; }
.about-stats strong {
  display: block; font-family: var(--font-display);
  font-size: 34px; letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Reveal animation ----------
   Content is visible by default; the `js` class (added by script.js as its
   first action) opts in to the scroll fade-in. If JS ever fails to load,
   the site still renders fully. */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .bento-card, .bento-card.wide, .bento-card.narrow { grid-column: span 6; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps-v2 { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split, .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .avatar { max-width: 240px; font-size: 68px; }
}
@media (max-width: 760px) {
  .v2-nav {
    position: fixed; inset: 84px 24px auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 16px; backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .v2-nav.open { display: flex; }
  .v2-nav > a { padding: 10px 14px; border-radius: 10px; font-size: 16px; }
  .v2-nav > a:hover { background: var(--bg-soft); }
  .nav-toggle-v2 { display: flex; }
  .v2-hero { padding: 150px 0 80px; }
  .hero-stats { flex-direction: column; }
  .hero-stats li { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats li:last-child { border-bottom: 0; }
  .why-grid, .areas-grid { grid-template-columns: 1fr; }
  .v2-section { padding: 72px 0; }
  .v2-page-hero { padding: 140px 0 56px; }
  .include-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 22px; }
  .about-stats { gap: 28px; }
}
