:root {
  --tc-primary: #C35B3C;
  --tc-dark: #8A3015;
  --tc-light: #E27D60;
  --bg-base: #FAFAF7;
  --bg-alt: #F0EBE1;
  --text-main: #2A2E2C;
  --text-muted: #555A57;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Merriweather', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--tc-primary);
  margin-top: 15px;
}

.section-heading.centered::after {
  margin: 15px auto 0;
}

.centered {
  text-align: center;
}

a {
  color: var(--tc-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--tc-dark);
}

.inline-link {
  text-decoration: underline;
  text-decoration-color: var(--tc-light);
  text-underline-offset: 3px;
}

/* Header */
.apex-masthead {
  position: sticky;
  top: 0;
  background-color: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  padding: 1rem 0;
}

.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apex-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  background-color: var(--tc-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}

.apex-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.apex-navigation a {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.apex-navigation a:hover {
  color: var(--tc-primary);
}

/* Hero */
.power-hero-pane {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: url('https://loremflickr.com/1920/1080/electrician,wiring?random=165984');
  background-size: cover;
  background-position: center;
  padding: 4rem 2rem;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(20,25,22,0.9) 0%, rgba(20,25,22,0.5) 100%);
  z-index: 1;
}

.hero-content-bound {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: 1.25rem;
  color: #F4F0EB;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.action-trigger {
  display: inline-block;
  background-color: var(--tc-primary);
  color: #fff;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.action-trigger:hover {
  background-color: var(--tc-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
}

.metric-block {
  color: #fff;
}

.metric-val, .metric-sym {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--tc-light);
}

.metric-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* About / Dossier */
.corporate-dossier {
  padding: 7rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.dossier-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cert-micro-detail {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--bg-alt);
  border-left: 4px solid var(--tc-primary);
}

.cert-micro-detail h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cert-list {
  list-style-type: square;
  margin-left: 1.5rem;
  color: var(--tc-dark);
}

.cert-list li {
  margin-bottom: 0.5rem;
}

.dossier-visual img {
  box-shadow: 15px 15px 0px var(--tc-light);
  height: 500px;
}

/* Capabilities */
.capability-matrix {
  background-color: var(--bg-alt);
  padding: 8rem 2rem;
}

.matrix-header {
  max-width: 1280px;
  margin: 0 auto 4rem;
}

.matrix-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.capability-card {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.capability-card:hover {
  transform: translateY(-10px);
}

.capability-card img {
  height: 240px;
}

.card-body {
  padding: 2.5rem 2rem;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials */
.industry-validation {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.validation-track {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 4rem;
  justify-content: center;
}

.testimonial-node {
  flex: 1 1 300px;
  max-width: 400px;
  text-align: center;
  padding: 2rem;
}

.client-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--tc-primary);
}

.client-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
}

.client-identity {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  font-style: normal;
}

/* Contact */
.technical-inquiry {
  padding: 0;
  background-color: var(--bg-alt);
}

.inquiry-split {
  display: flex;
  flex-wrap: wrap;
}

.inquiry-form-wrap {
  flex: 1 1 500px;
  padding: 6rem 4rem;
}

.inquiry-image-wrap {
  flex: 1 1 500px;
  min-height: 400px;
}

.inquiry-image-wrap img {
  height: 100%;
}

.inquiry-prompt {
  margin-bottom: 3rem;
  color: var(--text-muted);
}

.apex-form .form-row {
  display: flex;
  gap: 1.5rem;
}

.apex-form .form-group {
  margin-bottom: 1.5rem;
  flex: 1;
}

.apex-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.apex-form input, .apex-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #dcd8d1;
  background: #fff;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}

.apex-form input:focus, .apex-form textarea:focus {
  outline: none;
  border-color: var(--tc-primary);
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
.apex-footer {
  background-color: #1A1D1B;
  color: #fff;
  padding: 5rem 2rem 2rem;
}

.footer-core {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--tc-light);
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col p, .footer-col a {
  color: #A0A5A2;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--tc-light);
}

.legal-links {
  list-style: none;
}

.legal-links li {
  margin-bottom: 0.5rem;
}

.footer-base {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-base p {
  color: #707572;
  font-size: 0.85rem;
}

.tiny-disclaimer {
  font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
  .dossier-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .dossier-visual img {
    height: 400px;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .apex-brand .brand-text {
    display: none;
  }
  .apex-navigation ul {
    gap: 1rem;
  }
  .hero-metrics {
    flex-direction: column;
    gap: 2rem;
  }
  .inquiry-form-wrap {
    padding: 4rem 2rem;
  }
  .apex-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}
