/* Keystone Steam Service — Global Stylesheet */

/* =====================
   CSS Variables
   ===================== */
:root {
  --navy: #1a2d4a;
  --navy-dark: #122038;
  --blue: #1e5fa8;
  --blue-light: #2d72c8;
  --steel: #5a7fa0;
  --red: #c0392b;
  --text: #1e2d3d;
  --text-muted: #5a6a7a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-dark: #0e1c2e;
  --border: #d1dce8;
  --shadow: 0 2px 12px rgba(26,45,74,0.10);
  --shadow-md: 0 4px 24px rgba(26,45,74,0.15);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --max-w: 1100px;
}

/* =====================
   Reset
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: var(--navy); }

/* =====================
   Layout Utilities
   ===================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark p { color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* =====================
   Typography
   ===================== */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title { font-size: 2rem; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }
.section-title + .section-subtitle { margin-top: 0.5rem; }
.lead { font-size: 1.15rem; color: var(--text-muted); }

/* =====================
   Buttons
   ===================== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  text-decoration: none;
  border: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,95,168,0.3);
}
.btn-primary:hover { background: var(--blue-light); color: #fff; box-shadow: 0 4px 16px rgba(30,95,168,0.4); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =====================
   Header / Nav
   ===================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-link.active { color: #fff; }
.nav-cta {
  margin-left: 0.75rem;
  background: var(--blue);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-light); text-decoration: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================
   Hero
   ===================== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a3a6a 100%);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d5080' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(30,95,168,0.4);
  border: 1px solid rgba(30,95,168,0.6);
  color: #8ab8e8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 750px;
  line-height: 1.2;
}
.hero h1 span { color: #8ab8e8; }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-value { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 0.3rem; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* =====================
   Trust Bar
   ===================== */
.trust-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.trust-icon {
  width: 32px;
  height: 32px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 16px; height: 16px; fill: #fff; }

/* =====================
   Cards
   ===================== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; fill: #fff; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* =====================
   Process Steps
   ===================== */
.process-steps { display: flex; gap: 0; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(10% + 26px);
  right: calc(10% + 26px);
  height: 2px;
  background: var(--border);
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.step-num {
  width: 52px;
  height: 52px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
}
.step h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* =====================
   CTA Block
   ===================== */
.cta-block {
  background: linear-gradient(135deg, var(--navy), #1a3a6a);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-block h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.cta-block p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }

/* =====================
   Services Page
   ===================== */
.service-group { margin-bottom: 3rem; }
.service-group h3 {
  font-size: 1.3rem;
  color: var(--navy);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.service-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}
.service-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.pricing-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.pricing-table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: var(--bg-alt); }
.pricing-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

/* =====================
   About Page
   ===================== */
.about-stat {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-stat-value { font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 0.5rem; }
.about-stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* =====================
   Contact / Quote Form
   ===================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; fill: var(--navy); }
.contact-detail-text h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-detail-text p, .contact-detail-text a { font-size: 0.95rem; color: var(--text-muted); }
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 0.5rem; }
.form-card .form-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group label .required { color: var(--red); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,95,168,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; border-radius: var(--radius); margin-top: 0.5rem; }
.form-privacy { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* =====================
   FAQ
   ===================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.6rem; }
.faq-item p, .faq-item ul { font-size: 0.95rem; color: var(--text-muted); margin: 0; }
.faq-item ul { margin-top: 0.5rem; }
.faq-item ul li { margin-bottom: 0.25rem; }

.shipping-box {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
  max-width: 760px;
  margin: 0 auto 3rem;
}
.shipping-box h3 { color: #fff; margin-bottom: 1rem; }
.shipping-steps { list-style: none; padding: 0; }
.shipping-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}
.shipping-step-num {
  background: var(--blue);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* =====================
   Page Hero (Interior)
   ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 4rem 0 3.5rem;
}
.page-hero .section-label { color: #8ab8e8; }
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; }

/* =====================
   Footer
   ===================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo-name { font-size: 1.1rem; color: #fff; font-weight: 800; }
.footer-brand .logo-tagline { color: rgba(255,255,255,0.4); }
.footer-brand p { font-size: 0.88rem; margin-top: 1rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact-item { font-size: 0.88rem; margin-bottom: 0.6rem; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-legal { color: rgba(255,255,255,0.4); }
.asme-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

/* =====================
   Alert / Notice
   ===================== */
.notice {
  background: #eff6ff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .process-steps { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .process-steps::before { display: none; }
  .step { text-align: left; display: flex; align-items: flex-start; gap: 1rem; padding: 0; }
  .step-num { flex-shrink: 0; margin: 0; }
  .step-text h4 { margin-bottom: 0.25rem; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .page-hero { padding: 2.5rem 0 2rem; }
  .section-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-meta { gap: 1.5rem; }
  .trust-items { justify-content: flex-start; gap: 1.25rem; }
  .service-list { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; flex-direction: column; }
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 0.65rem 0.85rem; width: 100%; }
  .nav-cta { margin-left: 0; text-align: center; }
  .site-header { position: relative; }
}
