/* =========================================================================
   SM & associates — customer-facing site styles
   Dependency-free (no external fonts/images). Professional navy + gold theme,
   light sections with deep-navy hero, CEO band and footer.
   ========================================================================= */

:root {
  --ink:        #16232f;   /* navy-slate text */
  --ink-soft:   #3b4a5a;
  --muted:      #667585;
  --line:       #e4e8ee;
  --bg:         #ffffff;
  --bg-alt:     #f4f6f9;   /* cool off-white */
  --accent:     #c19a4e;   /* refined gold — primary accent / CTAs */
  --accent-600: #a8843b;   /* darker gold (hover) */
  --accent-100: #f3ecda;   /* pale gold tint */
  --dark:       #0f2237;   /* deep navy — dark sections */
  --dark-2:     #16304a;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 10px 30px rgba(15,34,55,.07);
  --shadow-lg:  0 24px 60px rgba(15,34,55,.15);
  --maxw:       1140px;
  --font:       "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --serif:      Georgia, "Times New Roman", "Times", serif;
}

/* Serif display type for the wordmark + headings — an established, editorial feel */
.brand-name, .hero h1, .section-title, .featured-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}
.hero h1 { letter-spacing: -.5px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 7px;
  padding: .7rem 1.35rem; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: .5rem 1rem; font-size: .92rem; }
.btn-lg  { padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px rgba(193,154,78,.30); }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-600); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.2px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; display: block; }
.footer-logo { width: 46px; height: 46px; border-radius: 12px; display: block; margin-bottom: .8rem; }
.brand-name { font-size: 1.12rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--accent-600); }
.nav-links .nav-cta { color: #fff; }
.nav-getapp::before { content: "📱"; margin-right: .35rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(195,155,82,.22), transparent 60%),
    linear-gradient(180deg, rgba(15,17,21,.84) 0%, rgba(20,23,28,.93) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 92px 20px 84px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -1px; margin: 0 0 1.1rem; max-width: 16ch; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: #c7ccd6; max-width: 60ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 720px; }
.hero-stats .stat { padding: 1rem 0; border-top: 2px solid rgba(255,255,255,.14); }
.hero-stats .stat .num { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: #fff; }
.hero-stats .stat .lbl { font-size: .84rem; color: #aeb4bf; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .76rem; font-weight: 700; color: var(--accent-600); margin: 0 0 .6rem; }
.section-eyebrow.light { color: var(--accent); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.6px; margin: 0 0 .8rem; }
.section-lead { color: var(--muted); max-width: 62ch; font-size: 1.06rem; margin: 0 0 2.4rem; }
.section-lead.light { color: #b9bfca; }
.grid { display: grid; gap: 1.4rem; }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-100); }
.service-ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-100); color: var(--ink); margin-bottom: 1.1rem;
}
.service-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Why ---------- */
.why-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2.4rem; }
.why-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.why-item .tick {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); font-weight: 700;
}
.why-item h3 { margin: .1rem 0 .3rem; font-size: 1.08rem; }
.why-item p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Presence / Map ---------- */
.presence { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.presence-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem .8rem; }
.presence-list li { display: flex; align-items: center; gap: .55rem; color: #cfd4dd; font-size: .96rem; }
.presence-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,131,36,.18); }
.presence-map { display: grid; place-items: center; }
.presence-viz { width: 100%; max-width: 460px; height: auto;
  background: radial-gradient(60% 60% at 45% 40%, rgba(217,131,36,.10), transparent 70%);
  border-radius: 16px; }
.map-line { stroke: rgba(217,131,36,.30); stroke-width: 1; stroke-dasharray: 3 4; }
.marker-dot { fill: var(--accent); }
.marker-primary { fill: #ffd08a; }
.marker-pulse { fill: var(--accent); opacity: .5; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.marker-label { fill: #cfd4dd; font-size: 10px; font-family: var(--font); }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(3.4); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .marker-pulse { animation: none; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-details li { display: flex; gap: .9rem; }
.contact-details .ci { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-100); color: var(--ink); display: grid; place-items: center; }
.contact-details a { color: var(--accent-600); font-weight: 600; }
.stack-links { display: flex; flex-direction: column; gap: .15rem; }
.stack-links a { color: var(--accent-600); font-weight: 600; }
.contact-quick { display: flex; flex-wrap: wrap; gap: .7rem; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.8rem; }
.query-form .field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.query-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.query-form label .opt { color: var(--muted); font-weight: 400; }
.query-form input, .query-form select, .query-form textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .72rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.query-form input:focus, .query-form select:focus, .query-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(195,155,82,.28);
}
.query-form textarea { resize: vertical; }
.query-form input.invalid, .query-form textarea.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.form-note { min-height: 1.2rem; margin: .8rem 0 0; font-size: .92rem; }
.form-note.ok { color: #15803d; }
.form-note.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: #c7ccd6; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 56px 20px 40px; }
.footer-brand .brand-name { color: #fff; font-size: 1.25rem; font-weight: 800; }
.footer-tag { color: #9aa1ad; margin: .5rem 0 0; max-width: 30ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.footer-col p, .footer-col li { margin: .3rem 0; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bar .container { padding: 18px 20px; font-size: .88rem; color: #8b929e; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: none; place-items: center;
  background: var(--dark); color: #fff; box-shadow: 0 12px 26px rgba(15,34,55,.4);
}
.fab-call:hover { background: var(--dark-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; transform: translateY(-140%);
    transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: .6rem; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .presence, .contact { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .fab-call { display: grid; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .presence-list { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 20px 56px; }
}

/* ---------- Services: 3-up for six service lines ---------- */
.services-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- Clients strip ---------- */
.clients-strip { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.clients-strip .container { padding-top: 26px; padding-bottom: 26px; }
.clients-label { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 0 0 1rem; }
.clients-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.7rem; }
.client-name { font-weight: 800; letter-spacing: -.2px; color: #9aa1ad; font-size: 1.02rem; }

/* ---------- Sectors ---------- */
.sectors { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.sectors-label { text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; font-weight: 700; color: var(--accent-600); margin: 0 0 1rem; }
.sector-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.sector-tag { background: var(--accent-100); color: var(--accent-600); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; }

/* ---------- Featured project ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.4rem; align-items: center; }
.featured-main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.featured-thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.fthumb { flex: 1; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; background: none; line-height: 0; }
.fthumb img { width: 100%; height: 56px; object-fit: cover; display: block; }
.fthumb.active { border-color: var(--accent); }
.featured-name { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .3rem; letter-spacing: -.5px; }
.featured-meta { color: var(--accent-600); font-weight: 700; font-size: .95rem; margin: 0 0 1rem; }
.featured-blurb { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.6rem; }

/* ---------- Projects grid ---------- */
.projects-grid { grid-template-columns: repeat(4, 1fr); }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-100); }
.project-sector { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--accent-600); margin-bottom: .35rem; }
.project-name { margin: 0; font-size: 1.1rem; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; gap: 1.4rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .fthumb img { height: 44px; }
}

/* ---------- 360° Approach ---------- */
.approach-grid { grid-template-columns: repeat(3, 1fr); gap: .4rem 2.2rem; margin-top: .8rem; }
.approach-item { position: relative; padding: 1.3rem 0 1.3rem 3.1rem; border-top: 1px solid var(--line); }
.approach-num { position: absolute; left: 0; top: 1.35rem; font-size: 1.05rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.approach-item h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.approach-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.clientele { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.clientele-label { text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; font-weight: 700; color: var(--accent-600); margin: 0 0 1rem; }
.clientele-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.clientele-tag { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- CEO's desk (statement band on dark) ---------- */
.ceo-card { max-width: 880px; margin: 0 auto; }
.ceo-statement { font-size: clamp(1.22rem, 2.3vw, 1.7rem); line-height: 1.45; font-weight: 600; color: #eef1f5; letter-spacing: -.2px; margin: .7rem 0 1.8rem; border-left: 3px solid var(--accent); padding-left: 1.4rem; }
.ceo-sign { display: flex; flex-direction: column; padding-left: 1.4rem; }
.ceo-name { font-weight: 800; font-size: 1.12rem; color: #fff; }
.ceo-title { color: var(--accent); font-size: .9rem; font-weight: 600; letter-spacing: .3px; margin-top: .15rem; }

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .approach-grid { grid-template-columns: 1fr; }
  .ceo-card { padding: 0; }
}

/* ---------- Capabilities ---------- */
.cap-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cap-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.4rem; box-shadow: var(--shadow); }
.cap-title { margin: 0 0 .9rem; font-size: 1.05rem; padding-bottom: .7rem; border-bottom: 2px solid var(--accent-100); }
.cap-card ul { list-style: none; margin: 0; padding: 0; }
.cap-card li { position: relative; padding: .42rem 0 .42rem 1.1rem; color: var(--ink-soft); font-size: .92rem; border-bottom: 1px solid var(--line); }
.cap-card li:last-child { border-bottom: 0; }
.cap-card li::before { content: ""; position: absolute; left: 0; top: .92rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cap-grid { grid-template-columns: 1fr; } }
