/*
Theme Name: ElgoTech
Theme URI: https://elgotech.com
Author: ElgoTech
Description: Precision mechanics and specialized tooling
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink:       #0f1419;
  --steel:     #1e2d3d;
  --iron:      #2e4057;
  --mist:      #e8edf2;
  --white:     #f5f7f9;
  --accent:    #c8873a;
  --accent2:   #a0c4d8;
  --rule:      #c2cdd6;
  --text-muted:#5a6a78;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Archivo Narrow', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

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

/* ── UTILITIES ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule-line {
  width: 48px; height: 2px;
  background: var(--accent);
  margin: 1rem 0 1.5rem;
}

/* ── HEADER ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--steel);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo {
  display: flex; align-items: baseline; gap: .4rem;
}
.site-logo .name {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .06em;
}
.site-logo .tagline-short {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
}
nav.main-nav ul {
  display: flex; gap: 2.2rem;
  list-style: none;
}
nav.main-nav a {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
nav.main-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 2px;
}
.nav-cta:hover { background: #b07030 !important; color: #fff !important; }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: var(--steel);
  color: #fff;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,.025) 59px,
      rgba(255,255,255,.025) 60px
    );
  pointer-events: none;
}
.hero-content {
  padding: 6rem 4rem 6rem 6rem;
  position: relative; z-index:1;
}
.hero-content .eyebrow { color: var(--accent); margin-bottom: .75rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #b07030; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  margin-left: 1rem;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  height: 100%;
  min-height: 88vh;
  background:
    linear-gradient(135deg, rgba(30,45,61,.6) 0%, rgba(15,20,25,.8) 100%),
    url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-diagram {
  width: 320px; height: 320px;
  border: 1px solid rgba(200,135,58,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: slow-spin 30s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.hero-diagram::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border: 1px dashed rgba(160,196,216,.25);
  border-radius: 50%;
  animation: slow-spin 20s linear infinite reverse;
}
.hero-diagram::after {
  content: '';
  width: 60px; height: 60px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200,135,58,.4);
}
.hero-tick {
  position: absolute;
  width: 8px; height: 20px;
  background: var(--accent);
  top: -10px; left: 50%;
  transform-origin: 50% 170px;
}

/* ── NUMBERS BAR ──────────────────────────────────── */
.numbers-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.numbers-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}
.number-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  text-align: center;
  color: #fff;
}
.number-item:last-child { border-right: none; }
.number-val {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .35rem;
}
.number-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ── SECTION BASE ─────────────────────────────────── */
section { padding: 6rem 0; }
.section-header { margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--steel);
}

/* ── SERVICES GRID ────────────────────────────────── */
.services-section { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--rule);
}
.service-card {
  background: var(--white);
  padding: 2.5rem;
  transition: background .2s;
}
.service-card:hover { background: var(--mist); }
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.service-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .75rem;
  color: var(--steel);
}
.service-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-card .link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap .2s;
}
.service-card:hover .link-arrow { gap: .7rem; }

/* ── ABOUT SPLIT ──────────────────────────────────── */
.about-split {
  background: var(--mist);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-split > * { padding: 6rem; }
.about-left {
  background: var(--steel);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-left .section-title { color: #fff; }
.about-left p {
  color: rgba(255,255,255,.72);
  margin-top: 1.25rem;
  font-size: .95rem;
  line-height: 1.8;
}
.about-right { display: flex; flex-direction: column; justify-content: center; }
.about-right p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: .95rem;
  line-height: 1.8;
}
.cert-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.cert-list li {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--iron);
}
.cert-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: .6rem;
}

/* ── PROCESS ──────────────────────────────────────── */
.process-section { background: var(--white); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  margin-top: 3rem;
}
.process-step {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.process-step:last-child { border-right: none; }
.step-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.step-title {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: .5rem;
}
.step-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.65; }

/* ── CTA BAND ─────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
}
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: .95rem; }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--steel); }

/* ── QUOTE FORM PAGE ──────────────────────────────── */
.page-hero {
  background: var(--steel);
  color: #fff;
  padding: 5rem 0 4rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  margin: .75rem 0 1rem;
}
.page-hero p { color: rgba(255,255,255,.65); max-width: 560px; font-size: .95rem; line-height: 1.75; }

.quote-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0;
}
.form-section label {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iron);
  margin-bottom: .4rem;
}
.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fff;
  padding: .75rem 1rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  outline: none;
  transition: border-color .2s;
}
.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus { border-color: var(--accent); }
.form-section textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-sidebar .sidebar-card {
  background: var(--mist);
  border-left: 3px solid var(--accent);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.sidebar-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.sidebar-card ul { list-style: none; margin-top: .5rem; }
.sidebar-card ul li {
  font-size: .85rem;
  color: var(--iron);
  padding: .35rem 0;
  border-bottom: 1px solid var(--rule);
}
.sidebar-card ul li:last-child { border-bottom: none; }

/* ── STORY PAGE ───────────────────────────────────── */
.story-content {
  padding: 5rem 0;
}
.story-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}
.story-body h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--steel);
  margin: 3rem 0 1rem;
}
.story-body p { margin-bottom: 1.5rem; }
.pullquote {
  border-left: 3px solid var(--accent);
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: var(--mist);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--steel);
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}
.timeline {
  margin: 3rem 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.timeline-item {
  padding: 0 0 2.5rem 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: .35rem;
}
.timeline-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: .4rem;
}
.timeline-item p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── TEAM ─────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card { border: 1px solid var(--rule); }
.team-photo {
  height: 220px;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--rule);
}
.team-info { padding: 1.5rem; }
.team-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--steel);
}
.team-role {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: .3rem 0 .75rem;
}
.team-bio { font-size: .85rem; color: var(--text-muted); line-height: 1.65; }

/* ── FOOTER ───────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-brand .name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .5rem;
}
.footer-brand p {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 260px;
  margin-top: .75rem;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .06em;
}
.footer-certifs {
  display: flex; gap: 1rem;
  font-size: .7rem;
  color: rgba(255,255,255,.25);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 4rem 2rem; }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .about-split > * { padding: 3rem 2rem; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-step { border-bottom: 1px solid var(--rule); }
  .quote-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .numbers-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── WP BLOCK CONTENT STYLES ──────────────────────── */
.wp-content h1, .wp-content h2, .wp-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--steel);
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.wp-content h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-top: 0; }
.wp-content h2 { font-size: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.wp-content h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 700; color: var(--iron); }
.wp-content p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; font-size: .97rem; }
.wp-content strong { color: var(--steel); }
.wp-content a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.wp-content .wp-block-quote,
.wp-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: var(--mist);
}
.wp-content .wp-block-quote p,
.wp-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--steel);
  margin: 0 0 .5rem;
}
.wp-content .wp-block-quote cite,
.wp-content blockquote cite {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--accent);
  font-style: normal;
}
