/* ==========================================================================
   El Paso Instruments, LLC — site styles
   Brand palette pulled from the company logo:
     navy  #14224E   |   orange #F47A21   |   gray #AEB9B7
   ========================================================================== */

:root {
  --navy: #14224e;
  --navy-2: #24356b;
  --orange: #f47a21;
  --orange-dark: #d8681a;
  --gray: #aeb9b7;
  --gray-soft: #eef1f0;
  --ink: #1c2333;
  --muted: #5a6472;
  --white: #ffffff;
  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(20, 34, 78, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.section { padding: 72px 0; }
.section--alt { background: var(--gray-soft); }
.section__lead { max-width: 720px; color: var(--muted); font-size: 1.1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7eae9;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 46px; width: auto; }
.nav__brand-fallback { font-family: Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.nav__links { display: flex; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--navy); font-weight: 600; }
.nav__links a:hover { color: var(--orange-dark); text-decoration: none; }
.nav__links a.active { color: var(--orange-dark); }
.nav__toggle {
  display: none;
  background: none; border: none;
  font-size: 1.7rem; color: var(--navy); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(244,122,33,0.25), transparent 70%);
  border-radius: 50%;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 620px; }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid #e7eae9;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(244,122,33,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7eae9;
  box-shadow: var(--shadow);
}
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { padding: 14px 16px; font-size: 0.95rem; color: var(--muted); }
.gallery figcaption strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Founder photo (About page) — smaller than a full column */
.founder-photo {
  width: 100%;
  max-width: 120px;
  justify-self: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input,
.form-field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cdd4d3; border-radius: 8px;
  font: inherit; color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.contact-info li { margin-bottom: 14px; list-style: none; }
.contact-info ul { padding: 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: Georgia, serif; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 32px; padding-top: 20px;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid--3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav__links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid #e7eae9;
    padding: 12px 24px;
  }
  .nav__links.open { display: flex; }
  .nav__links li { padding: 8px 0; border-bottom: 1px solid #f0f2f1; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2, .gallery { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
