/* ==========================================================================
   ETC (Et Cetera) Business Systems — Site Stylesheet
   Brand tokens pulled directly from the logo: near-black "etc" wordmark +
   soft periwinkle-blue "c". --brand-primary is a darkened, accessible
   version of the logo blue (for buttons/links on white); --brand-primary-light
   is the true logo blue, used for soft fills, badges and backgrounds.
   ========================================================================== */

:root {
  /* ---- Brand tokens (sourced from the ETC logo) ---- */
  --brand-dark:      #15171c;   /* near-black from the logo mark — header/footer bg */
  --brand-primary:   #53719c;   /* accessible darkened logo-blue — buttons, links, headings accents */
  --brand-primary-dark: #3f5878; /* hover/active state */
  --brand-primary-light: #8ab0e8; /* true logo blue — soft fills, badges, highlights */
  --brand-accent:    #8ab0e8;   /* secondary accent — small highlights only (alias of logo blue) */

  /* ---- Neutrals ---- */
  --surface:         #ffffff;
  --surface-alt:      #f6f7fb;
  --border:          #e4e7ee;
  --text-primary:    #16192b;
  --text-secondary:  #545a72;
  --text-muted:      #8a90a6;

  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --max-width: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-primary-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.btn-block { width: 100%; }

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Real logo mark (assets/logo-icon.png — the "etc" glyph, no wordmark) used in the
   header where space is tight. */
.logo-mark {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Full lockup (assets/logo-full.png — glyph + "ET CETERA BUSINESS SYSTEMS" wordmark)
   used in the footer and anywhere there's room to breathe. */
.logo-full {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
  border-color: var(--brand-primary);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav-links.open { max-height: 400px; }
  .nav-links a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .logo small { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(83, 113, 156, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(138, 176, 232, 0.10), transparent 60%),
    var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--brand-primary); }

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.hero-trust strong { color: var(--text-primary); }

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.hero-card .browser-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.hero-card .browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-card .mock-line { height: 10px; border-radius: 6px; background: var(--surface-alt); margin-bottom: 10px; }
.hero-card .mock-block { height: 90px; border-radius: 10px; background: linear-gradient(135deg, rgba(83,113,156,0.12), rgba(138,176,232,0.12)); margin: 16px 0; }
.hero-card .mock-row { display: flex; gap: 10px; }
.hero-card .mock-row .mock-line { flex: 1; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; text-align: left; }
}

/* ---------------- Section scaffolding ---------------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface-alt); }
.section-tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--brand-primary); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 16.5px; }

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(83, 113, 156, 0.10);
  color: var(--brand-primary);
  font-size: 20px;
  margin-bottom: 18px;
}

.card h3 { font-size: 18.5px; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-secondary); font-size: 15px; }
.card a.card-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--brand-primary); }

/* ---------------- Stats strip ---------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat .stat-value { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--brand-primary); }
.stat .stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Process steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-secondary); }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), #2b3242);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; letter-spacing: -0.02em; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 15.5px; }
.cta-banner .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-banner .btn-primary:hover { background: #eef1f8; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; }

/* ---------------- Lists w/ check icons ---------------- */
.check-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; color: var(--text-secondary); }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(138, 176, 232, 0.14); color: var(--brand-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ---------------- Service detail rows ---------------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--border); }
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-visual { order: 2; }
@media (max-width: 900px) { .service-row, .service-row.reverse .service-visual { grid-template-columns: 1fr; order: initial; } .service-row { grid-template-columns: 1fr; } }

.service-visual {
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 32px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual .badge-num { font-size: 64px; font-weight: 800; color: var(--brand-primary); opacity: 0.18; }

/* Browser-frame site preview mockup — used to illustrate "what you get"
   without needing a real screenshot. Swap the mock-grid blocks for an
   actual <img> screenshot whenever one is available. */
.service-visual.has-preview { padding: 0; overflow: hidden; background: #fff; }
.browser-mockup { width: 100%; }
.browser-mockup .browser-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.browser-mockup .browser-dots { display: flex; gap: 6px; }
.browser-mockup .browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.browser-mockup .url-bar {
  flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px;
}
.browser-mockup .url-bar .lock { font-size: 11px; }
.browser-mockup .browser-body { padding: 22px; }
.browser-mockup .mock-hero {
  height: 70px; border-radius: 10px; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(83,113,156,0.16), rgba(138,176,232,0.20));
}
.browser-mockup .mock-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.browser-mockup .mock-product {
  border-radius: 8px; background: var(--surface-alt); border: 1px solid var(--border);
  padding: 8px;
}
.browser-mockup .mock-product .mock-thumb {
  height: 46px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(83,113,156,0.14), rgba(138,176,232,0.24));
  margin-bottom: 8px;
}
.browser-mockup .mock-product .mock-line { height: 6px; border-radius: 4px; background: var(--border); margin-bottom: 6px; }
.browser-mockup .mock-product .mock-line.short { width: 60%; }
.browser-mockup .preview-caption {
  padding: 12px 22px 18px; font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--border);
}

/* ---------------- Founders (About page) ---------------- */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) { .founders { grid-template-columns: 1fr; max-width: 420px; } }

.founder-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.founder-photo { position: relative; aspect-ratio: 1 / 1; background: var(--surface-alt); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,23,28,0.55) 0%, rgba(21,23,28,0) 38%);
  pointer-events: none;
}
.founder-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  background: rgba(255,255,255,0.95);
  color: var(--brand-primary);
  font-size: 12.5px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.founder-body { padding: 28px 30px 32px; }
.founder-body h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.founder-tags span {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 13px; font-size: 12.5px; color: var(--text-secondary); font-weight: 500;
}
.founder-body p.founder-bio { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

.service-copy .kicker { margin-bottom: 10px; }
.service-copy h3 { font-size: 24px; margin-bottom: 14px; letter-spacing: -0.02em; }
.service-copy p.desc { color: var(--text-secondary); margin-bottom: 20px; }

/* ---------------- Who we help chips ---------------- */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-cloud span {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font-size: 14px; color: var(--text-secondary); font-weight: 500;
}

/* ---------------- Values ---------------- */
.value-card { border-left: 3px solid var(--brand-primary); padding-left: 18px; }
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { color: var(--text-secondary); font-size: 14.5px; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--brand-dark);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
}
.contact-info-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-info-card p.muted { color: rgba(255,255,255,0.65); font-size: 14.5px; margin-bottom: 28px; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-method .ci-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px;
}
.contact-method .ci-label { font-size: 12.5px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-method .ci-value { font-size: 15.5px; font-weight: 600; }
.contact-method .ci-value.placeholder { color: rgba(255,255,255,0.5); font-weight: 500; font-style: italic; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text-primary); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface-alt);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-primary); background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.form-success { display: none; background: rgba(20,184,166,0.1); border: 1px solid rgba(20,184,166,0.3); color: #0f766e; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ---------------- FAQ ---------------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--brand-primary); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-secondary); font-size: 14.5px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-tagline { font-size: 14px; max-width: 32ch; color: rgba(255,255,255,0.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45); }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { padding: 64px 0 56px; background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin-bottom: 16px; }
.page-hero p { color: var(--text-secondary); font-size: 17px; max-width: 60ch; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand-primary); }
