/* ─────────────────────────────────────────
   MEAN MACHINES INC. — Global Stylesheet
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --navy:       #0f2233;
  --navy-mid:   #163448;
  --blue:       #1a5276;
  --blue-accent:#2471a3;
  --steel:      #5d7a8c;
  --ice:        #dde8f0;
  --light:      #f5f7f9;
  --white:      #ffffff;
  --charcoal:   #1c2329;
  --text:       #2c3e50;
  --text-light: #5d6d7e;
  --border:     #ccd6dd;

  --font-head: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --max: 1160px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

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

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

/* ── UTILITIES ── */
.max-w { max-width: var(--max); margin-inline: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-accent);
}

h1,h2,h3,h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}

h2 { font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; color: var(--navy); }
h3 { font-size: 22px; font-weight: 500; color: var(--navy); }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-solid {
  background: var(--blue-accent);
  color: var(--white);
}
.btn-solid:hover { background: #1f618d; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--blue); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-main {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links .nav-cta {
  background: var(--blue-accent);
  color: var(--white);
  margin-left: 8px;
  padding: 9px 22px;
}
.nav-links .nav-cta:hover { background: #1f618d; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 199;
  padding: 12px 0 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 13px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--white); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 40px,
      rgba(255,255,255,0.012) 40px,
      rgba(255,255,255,0.012) 41px
    );
}

/* Right side blue glow */
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(135deg, transparent 30%, rgba(26,82,118,0.45) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--blue-accent);
}

.hero h1 {
  font-size: clamp(64px, 10vw, 130px);
  font-weight: 700;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--blue-accent); }

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-rule {
  position: absolute;
  bottom: 0;
  left: 48px;
  right: 48px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ── SERVICE-PAGE HERO (shorter) ── */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 80px) 48px 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, transparent 0, transparent 40px,
    rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px
  );
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── SECTIONS ── */
.section { padding: 96px 48px; }
.section-sm { padding: 64px 48px; }
.section-dark { background: var(--charcoal); }
.section-navy { background: var(--navy); }
.section-light { background: var(--light); }

/* ── HOME: SERVICES STRIP ── */
.services-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 3px solid var(--blue-accent);
}

.service-block {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-block:last-child { border-right: none; }
.service-block:hover { background: var(--ice); }

.service-block-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--blue-accent);
  margin-bottom: 20px;
}

.service-block h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.1;
}

.service-block p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 28px;
}

.service-block-items {
  list-style: none;
  margin-bottom: 32px;
}
.service-block-items li {
  font-size: 14px;
  color: var(--text-light);
  padding: 5px 0;
  padding-left: 14px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.service-block-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--blue-accent);
  border-radius: 50%;
}

.service-block-link {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-block-link::after {
  content: '→';
  font-family: var(--font-body);
  transition: transform 0.2s;
}
.service-block:hover .service-block-link::after { transform: translateX(4px); }

/* ── HOME: ABOUT SPLIT ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.about-split-text {
  padding: 80px 64px 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-split-text p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 24px;
  margin-bottom: 16px;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--blue-accent);
  padding: 14px 20px;
  margin-top: 12px;
}
.cert-pill-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.3;
}
.cert-pill-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-top: 2px;
  text-transform: uppercase;
}

.about-split-panel {
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.about-split-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent 0, transparent 40px,
    rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px
  );
}
.about-quote {
  position: relative;
  z-index: 1;
}
.about-quote-mark {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 0.7;
  color: var(--blue-accent);
  opacity: 0.35;
  margin-bottom: 8px;
}
.about-quote-text {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.about-quote-attr {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.about-quote-attr strong {
  display: block;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  margin-bottom: 2px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ── WHY GRID ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  margin-top: 56px;
}
.why-item {
  background: var(--charcoal);
  padding: 40px 32px;
  transition: background 0.2s;
}
.why-item:hover { background: #232d36; }
.why-item-num {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--blue-accent);
  margin-bottom: 16px;
}
.why-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}
.why-item p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--blue-accent);
  padding: 72px 48px;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 36px;
}
.cta-band .btn-solid {
  background: var(--white);
  color: var(--blue-accent);
}
.cta-band .btn-solid:hover { background: var(--ice); }

/* ── SERVICE PAGE BODY ── */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: start;
  max-width: var(--max);
  margin-inline: auto;
  padding: 80px 48px;
}

.service-intro {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
  margin: 24px 0 44px;
  max-width: 640px;
}

.service-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 8px;
}

.service-item-card {
  background: var(--white);
  padding: 28px 26px;
  border-left: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.service-item-card:hover {
  border-left-color: var(--blue-accent);
  background: var(--light);
}

.service-item-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-item-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 2px; }

.sidebar-panel {
  background: var(--navy);
  padding: 36px 30px;
  color: var(--white);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-panel h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}
.sidebar-panel > p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
  margin-bottom: 24px;
}

.sidebar-phone {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.sidebar-phone:hover { color: var(--blue-accent); }

.sidebar-phone-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 24px;
}

.sidebar-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 20px 0;
}

.sidebar-note {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}
.sidebar-note strong {
  display: block;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 400;
}

/* ── ABOUT PAGE ── */
.about-body { max-width: var(--max); margin-inline: auto; padding: 80px 48px; }
.about-body p {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.85;
  max-width: 680px;
  margin-bottom: 20px;
}
.about-body strong { color: var(--text); font-weight: 600; }

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 64px;
}
.value-card {
  background: var(--white);
  padding: 40px 32px;
  border-top: 3px solid var(--navy);
  transition: border-top-color 0.2s;
}
.value-card:hover { border-top-color: var(--blue-accent); }
.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}
.value-card p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 80px 48px;
  align-items: start;
}

.contact-heading { margin-bottom: 40px; }

.form-row { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--light);
  border: 1px solid var(--border);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--blue-accent); background: var(--white); }

textarea.form-input { min-height: 128px; resize: vertical; }

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

.form-submit {
  width: 100%;
  margin-top: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 17px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--blue-accent); }

.form-success {
  display: none;
  background: #eaf4ec;
  border: 1px solid #6ab187;
  color: #2d6a4f;
  padding: 16px 20px;
  font-size: 15px;
  margin-top: 16px;
  font-weight: 300;
}

.contact-info { display: flex; flex-direction: column; gap: 2px; }

.info-block {
  background: var(--light);
  padding: 28px 26px;
  border-left: 3px solid var(--navy);
}
.info-block h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.info-block p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.6;
}
.info-block a { color: var(--blue-accent); }
.info-block a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 72px 48px 40px;
}

.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 18px;
}
.footer-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-contact-line {
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  margin-bottom: 6px;
}
.footer-contact-line a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.footer-contact-line a:hover { color: var(--white); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: calc(var(--nav-h) + 40px) 24px 64px; }
  .hero h1 { font-size: 58px; }
  .section, .section-sm { padding: 56px 24px; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 24px 56px; }

  .services-strip { grid-template-columns: 1fr; }
  .service-block { border-right: none; border-bottom: 1px solid var(--border); }

  .about-split { grid-template-columns: 1fr; }
  .about-split-text { padding: 56px 0; }
  .about-split-panel { padding: 48px 32px; }

  .why-grid { grid-template-columns: 1fr 1fr; }

  .service-layout { grid-template-columns: 1fr; padding: 56px 24px; }
  .service-items-grid { grid-template-columns: 1fr; }

  .about-body { padding: 56px 24px; }
  .values-row { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; padding: 56px 24px; }
  .form-grid { grid-template-columns: 1fr; }

  footer { padding: 56px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .cta-band { padding: 56px 24px; }
}
