/* ============================================
   VOLTRON SOLUTIONS — style.css
   Matches original site: white bg, navy hero,
   light gray cards, centered logo header
   ============================================ */

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

:root {
  --navy:      #1a2357;
  --navy-dark: #111840;
  --blue-icon: #2d3a7c;
  --blue-link: #1a5276;
  --gray-card: #f0efea;
  --gray-border: #ddd;
  --text-dark: #1a1a1a;
  --text-body: #3a3a3a;
  --text-muted: #666;
  --red:       #c0392b;
  --btn-blue:  #1c5f8a;
  --btn-hover: #154f75;
  --white:     #ffffff;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w: 1200px;
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 90px;
  width: 90px;
  object-fit: contain;
  border-radius: 50%;
}

/* Hamburger — top right absolute */
.hamburger {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 10px 12px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.22s;
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
}

.mobile-menu.open { max-height: 180px; }

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-border);
  transition: background 0.15s;
}

.mobile-menu a:hover { background: #f5f5f5; }

/* ============ HERO ============ */
.hero {
  background: var(--navy-dark);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.15;
  color: var(--white);
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
  max-width: 820px;
  margin: 0 auto;
}

/* ============ HERO ENHANCED ============ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.hero h1 em {
  font-style: normal;
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
}

.hero-btn-primary {
  display: inline-block;
  background: #ffffff;
  color: var(--navy-dark);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-btn-primary:hover {
  background: #e8eaf0;
  transform: translateY(-1px);
}

.hero-btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.hero-btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #ffffff;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  flex: 1 1 120px;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; padding-right: 0; }

.hero-stat strong {
  display: block;
  font-family: 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .hero-stats { gap: 20px; }
  .hero-stat {
    border-right: none;
    padding: 0;
    flex-basis: calc(50% - 10px);
  }
  .hero-stat:last-child { flex-basis: 100%; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-btn-primary, .hero-btn-ghost { width: 100%; text-align: center; }
}

/* ============ SOLUTIONS ============ */
.solutions-section {
  padding: 56px 0 72px;
  flex: 1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-card {
  display: flex;
  flex-direction: column;
  background: var(--gray-card);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  text-decoration: none;
  color: var(--text-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}

.solution-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.solution-card--plain {
  /* no icon, more spacious */
  padding-top: 40px;
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-icon svg { width: 100%; height: 100%; }

.solution-card h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.solution-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.card-link {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 400;
  text-decoration: none;
  margin-top: auto;
}

.solution-card:hover .card-link {
  text-decoration: underline;
}

/* ---- Cards with image (new services) ---- */
.solution-card--image {
  padding: 0;
  overflow: hidden;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-card);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.solution-card--image:hover .card-image img {
  transform: scale(1.04);
}

.solution-card--image h2,
.solution-card--image p,
.solution-card--image .card-link {
  padding-left: 32px;
  padding-right: 32px;
}

.solution-card--image h2 {
  padding-top: 28px;
  margin-bottom: 14px;
}

.solution-card--image p {
  padding-bottom: 0;
  margin-bottom: 24px;
}

.solution-card--image .card-link {
  padding-bottom: 28px;
  display: block;
}

@media (max-width: 600px) {
  .solution-card--image h2,
  .solution-card--image p,
  .solution-card--image .card-link {
    padding-left: 22px;
    padding-right: 22px;
  }
  .solution-card--image h2  { padding-top: 22px; }
  .solution-card--image .card-link { padding-bottom: 22px; }
}

/* ============ CONTACT PAGE ============ */
.contact-section {
  padding: 56px 0 80px;
  flex: 1;
}

.contact-container {
  max-width: 680px;
}

.contact-subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 400;
}

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

.form-field {
  display: flex;
  flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
.input-full {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid #b0b0b0;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

input:focus, textarea:focus {
  border-color: var(--btn-blue);
  box-shadow: 0 0 0 3px rgba(28,95,138,0.15);
}

input.is-invalid, textarea.is-invalid {
  border-color: var(--red);
}

textarea { resize: vertical; min-height: 110px; }

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

.field-error {
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 4px;
  min-height: 16px;
}

.req { color: var(--red); }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-body);
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #aaa;
  border-radius: 3px;
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--btn-blue);
  border-color: var(--btn-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Captcha */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.captcha-question {
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 400;
  white-space: nowrap;
}

.captcha-eq {
  font-size: 1rem;
  color: var(--text-dark);
}

.captcha-input {
  width: 120px !important;
}

/* Submit */
.form-submit-row {
  margin-top: 8px;
  margin-bottom: 20px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-blue);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--btn-hover); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.spin-icon { width: 18px; height: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 0.8s linear infinite; }

/* Form messages */
.form-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-message svg { width: 20px; height: 20px; flex-shrink: 0; }

.form-message--success {
  background: #e8f6ef;
  border: 1px solid #a8dfc0;
  color: #1e5c35;
}

.form-message--error {
  background: #fdf0ef;
  border: 1px solid #f0b8b5;
  color: #7d1f1a;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 32px 24px 28px;
  text-align: center;
  margin-top: auto;
}

.footer-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-nav-row a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-nav-row a:hover { color: var(--btn-blue); text-decoration: underline; }

.footer-sep { color: var(--gray-border); }

.footer-badge {
  margin-bottom: 20px;
}

.registered-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .form-row-two { grid-template-columns: 1fr; }
  .logo-img { height: 72px; width: 72px; }
  .hero { padding: 48px 20px 40px; }
  .solutions-section { padding: 36px 0 48px; }
  .solution-card { padding: 28px 22px 24px; }
  .contact-container { max-width: 100%; }
}

/* ============================================
   INNER SERVICE PAGES (capacity-increase, etc.)
   ============================================ */

/* Hero — black background, left aligned */
.inner-hero {
  background: #000000;
  color: #ffffff;
  padding: 36px 0 44px;
}

.inner-hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 400;
  transition: color 0.15s;
}

.back-link:hover { color: #ffffff; }

.inner-hero-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.inner-hero-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.inner-hero-icon svg { width: 100%; height: 100%; }

.inner-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.15;
}

/* Content area */
.inner-content {
  padding: 56px 0 80px;
  flex: 1;
}

.inner-container {
  max-width: 860px;
}

.intro-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 44px;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.content-block p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-block p:last-child { margin-bottom: 0; }

/* CTA block */
.inner-cta {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.inner-cta p {
  font-size: 1rem;
  color: var(--text-body);
  margin: 0;
}

.btn-cta {
  display: inline-block;
  background: var(--btn-blue);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-cta:hover { background: var(--btn-hover); }

@media (max-width: 600px) {
  .inner-hero-title-row { gap: 14px; }
  .inner-hero-icon { width: 40px; height: 40px; }
  .inner-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- Bullet lists inside inner pages ---- */
.content-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-list li {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.content-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-dark);
  font-weight: 700;
}
