/* -------------------------
   Base
-------------------------- */
body {
  font-family: "Manrope", system-ui, sans-serif;
  background-color: #f9fafb;
  color: #1e1e1e;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 1rem;
}

/* -------------------------
   Colour Palette
-------------------------- */
:root {
  --ef-blue: #2563eb; /* softened electrician blue */
  --ef-blue-dark: #1e4fd3;
  --ef-yellow: #facc15; /* warm electrician yellow */
  --ef-bg-light: #f9fafb;
  --ef-text-dark: #1e1e1e;
  --ef-text-muted: #6b7280;
}

/* -------------------------
   Hero Section
-------------------------- */
.hero-section {
  padding: 7rem 1rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--ef-blue) 0%, var(--ef-blue-dark) 100%);
  color: white;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
}

.hero-text {
  color: var(--ef-yellow);
}

.hero-btn {
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.9rem 2.2rem;
  background-color: var(--ef-yellow);
  border: none;
  color: #1e1e1e;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #fcd34d;
  transform: translateY(-2px);
}

/* -------------------------
   Features Section
-------------------------- */
.features-section {
  background-color: var(--ef-bg-light);
  color: var(--ef-text-dark);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.75rem;
  color: var(--ef-blue);
}

/* -------------------------
   Simplicity Section (Comparison Table)
-------------------------- */
.simplicity-section {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.simplicity-section h4 {
  color: var(--ef-blue);
}

.table {
  border-radius: 1rem;
  overflow: hidden;
  font-size: 1rem;
}

.table th {
  background-color: #f3f4f6;
  color: var(--ef-text-dark);
  font-weight: 600;
}

.table td {
  vertical-align: middle;
  padding: 0.9rem;
}

.table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.table tbody tr:hover {
  background-color: #f3f4f6;
}

/* -------------------------
   Trust Section
-------------------------- */
.trust-section {
  background-color: var(--ef-blue);
  color: white;
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.trust-section h4 {
  color: white;
}

.trust-section p {
  color: #e5e7eb;
}

/* -------------------------
   Modal
-------------------------- */
.modal-content {
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background-color: var(--ef-blue);
  color: white;
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
}

.btn-close {
  filter: brightness(0) invert(1);
}

.modal-footer {
  border-top: none;
}

.modal-footer .btn-primary {
  background-color: var(--ef-blue);
  border: none;
  border-radius: 0.5rem;
}

.modal-footer .btn-primary:hover {
  background-color: var(--ef-blue-dark);
}

/* -------------------------
   Footer
-------------------------- */
footer.footer,
footer {
  background-color: #f3f4f6;
  color: var(--ef-text-muted);
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
}

footer a {
  color: var(--ef-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* -------------------------
   Utilities
-------------------------- */
.text-primary {
  color: var(--ef-blue) !important;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.lead {
  font-weight: 400;
  color: var(--ef-text-muted);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-section {
    padding: 5rem 1rem 3rem;
  }

  .feature-card {
    padding: 1.75rem 1.25rem;
  }

  table.table th,
  table.table td {
    font-size: 0.95rem;
  }
}

.simplicity-table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.05rem;
}

.simplicity-table thead {
  background: #f3f7fb;
  color: #0a2540;
  font-weight: 600;
}

.simplicity-table th,
.simplicity-table td {
  padding: 1rem;
  vertical-align: middle;
}

.simplicity-table td:first-child {
  background: #f9fbfe;
  font-weight: 500;
  color: #0a2540;
}

.simplicity-table td.yes {
  background: #fffbea;
  color: #3b3b00;
  font-weight: 500;
}

.simplicity-table td.no {
  background: #fff5f5;
  color: #802020;
}

.simplicity-table td.warn {
  background: #fffaf0;
  color: #7a4d00;
}

.simplicity-table tr td:first-child {
  border-left: 4px solid #007bff22;
}

.simplicity-table tbody tr:hover {
  background: #f8fafc;
  transition: background 0.15s ease;
}
