/* ============================================================
   J.M. Squatch Tech – Global Stylesheet
   tech.jmsquatch.com
   ============================================================ */

:root {
  --primary:     #0a2540;   /* deep navy */
  --accent:      #00c2cb;   /* teal / electric cyan */
  --accent-dark: #009aa3;
  --light-bg:    #f5f8fc;
  --card-bg:     #ffffff;
  --text:        #1a1a2e;
  --muted:       #6b7a99;
  --border:      #dde3ef;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(10,37,64,.10);
  --transition:  .25s ease;
  --max-width:   1140px;
  --font-sans:   'Inter', 'Segoe UI', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p  { color: #3a4a6b; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-alt{ background: #eef3fb; }
.text-center{ text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,194,203,.35);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Nav ────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand .brand-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
}
.nav-brand .brand-sub {
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e3460 60%, #112a55 100%);
  color: #fff;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,194,203,.12) 0%, transparent 65%);
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-text .tagline {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-text h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-text h1 span { color: var(--accent); }
.hero-text p {
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
}
.hero-card .stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-card .stat-item {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.hero-card .stat-item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-card .stat-item .lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-card .pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-card .pill {
  background: rgba(0,194,203,.18);
  color: var(--accent);
  border: 1px solid rgba(0,194,203,.35);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ── Services ───────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: .5rem; }
.service-card p  { font-size: .92rem; }

/* ── Tech Stack / Logos strip ───────────────────────────────── */
.tech-strip { padding: 2.5rem 0; background: var(--primary); }
.tech-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.tech-strip .tech-label {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}
.tech-strip .tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.tech-strip .tech-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  border-radius: 50px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  font-weight: 500;
}

/* ── About preview (homepage) ───────────────────────────────── */
.about-preview .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline-item .tl-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: .45rem;
}
.timeline-item .tl-year {
  flex-shrink: 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  width: 36px;
  margin-top: .2rem;
}
.timeline-item .tl-text strong { font-size: .9rem; color: var(--primary); }
.timeline-item .tl-text span  { font-size: .82rem; color: var(--muted); display: block; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #0e3460);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-banner .cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Page Hero (interior pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0e3460 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── About Page ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.5rem;
  align-items: start;
}
.about-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 88px;
}
.about-sidebar .avatar-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}
.about-sidebar h3 { text-align: center; font-size: 1.05rem; margin-bottom: .25rem; }
.about-sidebar .title { text-align: center; color: var(--accent); font-size: .82rem; font-weight: 600; margin-bottom: 1.25rem; }
.sidebar-links { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
  color: var(--primary);
  padding: .55rem .9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.sidebar-links a:hover {
  border-color: var(--accent);
  background: rgba(0,194,203,.06);
  color: var(--accent);
}
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.skill-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  background: #eef3fb;
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  border: 1px solid var(--border);
}
.chip.accent {
  background: rgba(0,194,203,.12);
  color: var(--accent-dark);
  border-color: rgba(0,194,203,.3);
}

.about-content h2 { margin-bottom: 1rem; }
.about-content h3 { margin: 2rem 0 .75rem; color: var(--primary); }
.about-content p  { margin-bottom: 1rem; }
.about-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.about-content ul li { color: #3a4a6b; margin-bottom: .4rem; font-size: .95rem; }

.exp-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.exp-card .exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}
.exp-card .company { font-size: 1rem; font-weight: 700; color: var(--primary); }
.exp-card .role    { font-size: .88rem; color: var(--accent-dark); font-weight: 600; }
.exp-card .dates   {
  font-size: .78rem;
  color: var(--muted);
  background: var(--light-bg);
  padding: .25rem .75rem;
  border-radius: 50px;
  white-space: nowrap;
}
.exp-card ul { list-style: disc; padding-left: 1.25rem; }
.exp-card ul li { font-size: .88rem; color: #3a4a6b; margin-bottom: .35rem; }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.cert-card .cert-icon { font-size: 1.8rem; margin-bottom: .5rem; }
.cert-card h4 { font-size: .88rem; margin-bottom: .25rem; }
.cert-card span { font-size: .78rem; color: var(--muted); }

.edu-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.edu-item .edu-icon { font-size: 1.75rem; flex-shrink: 0; }
.edu-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.edu-item p  { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.legal-body h1 { margin-bottom: .5rem; }
.legal-body .eff-date { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal-body h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--accent);
}
.legal-body p  { margin-bottom: 1rem; font-size: .95rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ul li { font-size: .95rem; margin-bottom: .4rem; color: #3a4a6b; }
.legal-body .highlight-box {
  background: rgba(0,194,203,.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.legal-body .highlight-box p { margin: 0; font-size: .9rem; }
.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.legal-nav a {
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}
.legal-nav a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand-main { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-brand .brand-sub  { font-size: .65rem; color: var(--accent); letter-spacing: .15em; text-transform: uppercase; }
.footer-brand p { font-size: .85rem; margin-top: .75rem; max-width: 280px; }
.footer h4 { color: #fff; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul li { margin-bottom: .6rem; }
.footer ul li a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer-bottom a { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container      { grid-template-columns: 1fr; }
  .hero-visual          { display: none; }
  .about-preview .container { grid-template-columns: 1fr; }
  .about-grid           { grid-template-columns: 1fr; }
  .about-sidebar        { position: static; }
  .footer .container    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links            { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary); padding: 1.5rem; gap: 1.25rem; }
  .nav-links.open       { display: flex; }
  .hamburger            { display: flex; }
  .footer .container    { grid-template-columns: 1fr; }
  .exp-card .exp-header { flex-direction: column; }
}
