/* ══════════════════════════════════════════════════════════
   BASE.CSS — Reset, Typography, Containers, Buttons
   Dark-dominant PlugJolt theme
   ══════════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--volt-green);
  z-index: 1001;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ── SKIP TO CONTENT ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 1002;
  padding: var(--space-2) var(--space-4);
  background: var(--volt-green);
  color: var(--deep-teal);
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-2);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.7);
  background-color: var(--deep-teal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--size-hero);
  font-weight: var(--weight-bold);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--size-2xl);
}

h4 {
  font-size: var(--size-xl);
}

p {
  max-width: 65ch;
}

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--md {
  max-width: var(--container-md);
}

.container--sm {
  max-width: var(--container-sm);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--volt-green);
  margin-bottom: var(--space-4);
}

/* ── SECTION ── */
.section {
  padding: var(--space-24) 0;
}

.section--dark {
  background-color: var(--deep-teal);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark .eyebrow {
  color: var(--volt-green);
}

.section--grey {
  background-color: var(--section-alt);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__header p {
  margin: var(--space-4) auto 0;
  font-size: var(--size-lg);
  color: var(--text-secondary);
  max-width: 60ch;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--size-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--volt-green);
  color: var(--deep-teal);
}

.btn--primary:hover {
  background-color: var(--volt-green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background-color: var(--volt-green);
  color: var(--deep-teal);
}

.btn--accent:hover {
  background-color: var(--volt-green-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn--text {
  background: none;
  color: var(--text-secondary);
  padding: 0;
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  font-weight: var(--weight-regular);
  font-size: var(--size-sm);
  border-radius: 0;
}

.btn--text:hover {
  color: var(--volt-green);
}

.btn:focus-visible {
  outline: 2px solid var(--volt-green);
  outline-offset: 3px;
}

.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--size-base);
}

/* ── CARDS ── */
.card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-8);
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 200, 83, 0.3);
  box-shadow: var(--shadow-md);
}

/* ── PLACEHOLDER IMAGE ── */
.placeholder-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--section-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: var(--size-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.placeholder-image svg {
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1;
}

.placeholder-image span {
  position: relative;
  z-index: 1;
}

/* ── PAGE HERO (shared across subpages) ── */
.page-hero {
  padding: var(--space-40) 0 var(--space-16);
  text-align: center;
  color: var(--white);
}

.page-hero .eyebrow {
  margin-bottom: var(--space-4);
}

.page-hero h1 {
  margin-bottom: var(--space-4);
  color: var(--white);
}

.page-hero p {
  font-size: var(--size-lg);
  color: var(--text-secondary);
  max-width: 50ch;
  margin: 0 auto;
}

/* ── PRICING CARDS (shared: homepage + pricing page) ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: var(--volt-green);
  transform: scale(1.02);
  z-index: 1;
  overflow: hidden;
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--volt-green);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card--featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--volt-green);
  color: var(--deep-teal);
  font-family: var(--font-display);
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: var(--weight-semi);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--size-4xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.pricing-card__price-unit {
  font-size: var(--size-base);
  font-weight: var(--weight-regular);
  color: var(--text-secondary);
}

.pricing-card__desc {
  font-size: var(--size-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card__feature {
  font-size: var(--size-sm);
  color: rgba(255, 255, 255, 0.7);
  padding-left: var(--space-6);
  position: relative;
}

.pricing-card__feature::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--volt-green);
  font-weight: var(--weight-bold);
}

/* ── TERMS TABLE (shared: homepage + for-properties) ── */
.terms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.terms-table th,
.terms-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.terms-table th {
  font-family: var(--font-display);
  font-size: var(--size-sm);
  font-weight: var(--weight-semi);
  color: var(--white);
  background: var(--section-alt);
  width: 25%;
}

.terms-table td {
  font-size: var(--size-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--leading-relaxed);
}

/* ── FORM INPUTS (global) ── */
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--size-base);
  color: var(--white);
  background: var(--section-alt);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:hover {
  border-color: var(--border-hover);
}

.form-input:focus {
  outline: none;
  border-color: var(--volt-green);
  box-shadow: 0 0 0 3px var(--volt-green-10);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* ── RESPONSIVE ── */
@media (min-width: 769px) {
  .container {
    padding: 0 var(--space-8);
  }

  .section {
    padding: var(--space-40) 0;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-12);
  }
}

@media (max-width: 768px) {
  h1 { font-size: var(--size-4xl); }
  h2 { font-size: var(--size-3xl); }
  h3 { font-size: var(--size-xl); }

  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .btn--lg {
    padding: 14px 32px;
    font-size: var(--size-sm);
  }

  .page-hero {
    padding: var(--space-32) 0 var(--space-12);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    transform: none;
    order: -1;
    border-color: var(--volt-green);
  }

  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }

  .terms-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .terms-table th,
  .terms-table td {
    min-width: 120px;
    white-space: nowrap;
  }

  .terms-table th {
    width: 35%;
  }
}
