/* ==========================================================================
   Kopp Mechanical — Design Tokens
   ========================================================================== */
:root {
  --color-teal-900: #0F373B;
  --color-teal-700: #14454A;
  --color-slate-700: #2E3944;
  --color-slate-500: #55626E;
  --color-orange-500: #E8622C;
  --color-orange-600: #CF4F1D;
  --color-cream-50: #FAF8F4;
  --color-cream-100: #F2EEE6;
  --color-white: #FFFFFF;
  --color-border: #E4E0D8;
  --color-text: #1F2A2C;
  --color-text-muted: #5B6A6C;

  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(15, 55, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 55, 59, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 55, 59, 0.16);

  --header-height: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body, h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-teal-900); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-teal-900);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 3px solid var(--color-orange-500);
  outline-offset: 2px;
}

.eyebrow {
  color: var(--color-orange-600);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--color-cream-100); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-sub { color: var(--color-text-muted); margin-top: 12px; font-size: 1.05rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-orange-500);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-orange-600); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--color-teal-700);
  color: var(--color-white);
}
.btn-secondary:hover { background: var(--color-teal-900); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-teal-700);
  color: var(--color-teal-700);
}
.btn-ghost:hover { background: var(--color-teal-700); color: var(--color-white); }

.btn-light { background: var(--color-white); color: var(--color-teal-900); }
.btn-light:hover { background: var(--color-cream-100); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.7);
  color: var(--color-white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-teal-900); }
.logo-mark { color: var(--color-orange-500); flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-weight: 500; font-size: 1.25rem; }
.logo-text strong { font-weight: 800; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-slate-700);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--color-orange-600); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-teal-900);
}
.phone-link:hover { color: var(--color-orange-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background: var(--color-teal-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(232, 98, 44, 0.14), transparent 60%),
    linear-gradient(180deg, var(--color-cream-50) 0%, var(--color-cream-100) 100%);
  padding: 88px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-sub { font-size: 1.1rem; color: var(--color-text-muted); margin-top: 20px; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-slate-500);
  font-weight: 500;
}

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-badge-card {
  background: var(--color-teal-700);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
}
.hero-badge-card svg { color: var(--color-orange-500); margin-bottom: 12px; }
.hero-badge-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }
.hero-badge-sub { color: rgba(255,255,255,0.75); font-weight: 500; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--color-teal-900); padding: 28px 0; }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-cream-50);
  font-weight: 500;
  font-size: 0.95rem;
}
.trust-item svg { color: var(--color-orange-500); flex-shrink: 0; }

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

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(232, 98, 44, 0.1);
  color: var(--color-orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--color-text-muted); font-size: 0.97rem; }

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.feature-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 28px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-orange-500);
}
.feature-list strong { color: var(--color-teal-900); font-size: 1.02rem; }
.feature-list span { color: var(--color-text-muted); font-size: 0.95rem; }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-orange-500);
}
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; font-weight: 500; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-teal-700), var(--color-teal-900));
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-copy p { color: var(--color-text-muted); margin-top: 16px; }
.about-copy .btn { margin-top: 24px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--color-orange-500); letter-spacing: 2px; }
.testimonial-card p { color: var(--color-text); font-size: 1rem; }
.testimonial-card footer { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 600; }

/* ==========================================================================
   Service Area
   ========================================================================== */
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.area-list li {
  font-weight: 500;
  color: var(--color-teal-900);
  padding-left: 20px;
  position: relative;
}
.area-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange-500);
}
.map-placeholder {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  color: var(--color-orange-500);
  overflow: hidden;
}
.map-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-teal-700), var(--color-teal-900));
  color: var(--color-white);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255,255,255,0.8); margin-top: 12px; font-size: 1.1rem; }
.cta-banner-inner .hero-actions { justify-content: center; margin-top: 28px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-details strong { color: var(--color-teal-900); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-details a, .contact-details span { color: var(--color-text-muted); font-weight: 500; }
.contact-details a:hover { color: var(--color-orange-600); }

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-row-split .form-row { margin-bottom: 0; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--color-teal-900); }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream-50);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-orange-500);
  box-shadow: 0 0 0 3px rgba(232, 98, 44, 0.15);
}
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--color-teal-700); font-weight: 600; min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-teal-900); color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo { color: var(--color-white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-nav a { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-nav a:hover { color: var(--color-orange-500); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.footer-contact a:hover { color: var(--color-orange-500); }
.footer-bottom { padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner, .why-us-grid, .about-grid, .service-area-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 280px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .main-nav, .header-cta .phone-link { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
  }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; }
  .main-nav.is-open a { display: block; padding: 12px 4px; }

  .trust-bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  h1 { font-size: 2.1rem; }
}
