/* ============================================
   Service Spectrum — Website Design & Management
   ============================================ */

:root {
  --gold: #F2A93B;
  --orange: #F07818;
  --red: #E8402A;
  --magenta: #B21E8E;
  --blue: #2E62C6;
  --green: #7CB92C;

  --ink: #1C1E26;
  --ink-soft: #4A4E5A;
  --paper: #FFFFFF;
  --paper-soft: #F6F7F9;
  --line: #E5E7EC;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 30, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 30, 38, 0.14);

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.brand img { height: 40px; width: auto; }

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-name span { display: block; font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(178, 30, 142, 0.07), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgba(46, 98, 198, 0.07), transparent 60%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 22px;
}

.spectrum-text {
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red), var(--magenta), var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 34px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  border: 2px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(380px, 80%); filter: drop-shadow(0 24px 40px rgba(28, 30, 38, 0.14)); }

/* Spectrum divider bar */
.spectrum-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--orange), var(--red), var(--magenta), var(--blue), var(--green));
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head { max-width: 640px; margin-bottom: 52px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

.alt { background: var(--paper-soft); }

/* ---------- Services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--accent, var(--red));
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--accent, var(--red)) 12%, white);
}

.card .icon svg { width: 26px; height: 26px; stroke: var(--accent, var(--red)); }

.card h3 { font-size: 1.18rem; margin-bottom: 10px; letter-spacing: -0.01em; }

.card p { color: var(--ink-soft); font-size: 0.97rem; }

.c-gold    { --accent: var(--gold); }
.c-orange  { --accent: var(--orange); }
.c-red     { --accent: var(--red); }
.c-magenta { --accent: var(--magenta); }
.c-blue    { --accent: var(--blue); }
.c-green   { --accent: var(--green); }

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--orange), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.about-grid p { color: var(--ink-soft); margin-bottom: 16px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.stat {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

.value-list { list-style: none; display: grid; gap: 14px; }

.value-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.value-list .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 7px;
}

.value-list b { display: block; margin-bottom: 2px; }
.value-list p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }

/* ---------- Insights / content ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.insight {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.insight .banner { height: 8px; }

.insight-body { padding: 28px 26px; }

.insight h3 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.insight p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; letter-spacing: -0.02em; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 28px; }

.contact-lines { list-style: none; display: grid; gap: 16px; }

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.contact-lines .badge {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
}

.contact-lines .badge svg { width: 20px; height: 20px; stroke: var(--ink); }

.contact-lines small { display: block; font-weight: 500; color: var(--ink-soft); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9CBD3;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #9DA1AD; }

.footer-grid p { font-size: 0.92rem; margin-top: 14px; max-width: 30em; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; display: grid; gap: 10px; }

.footer-grid a { color: #C9CBD3; font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #9DA1AD;
}

/* ---------- Legal pages ---------- */
.legal {
  padding: 72px 0 96px;
  max-width: 780px;
}

.legal h1 { font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin-bottom: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 64px 0 56px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(280px, 70%); }
  .card-grid, .insight-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 5%;
    gap: 18px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }

  .card-grid, .insight-grid, .steps, .form-row, .stat-row { grid-template-columns: 1fr; }

  section { padding: 64px 0; }
}
