/*
 * ============================================================
 * WALTER ELECTRIC ⚡️ — Internal Page Stylesheet
 * ============================================================
 * Loaded ONLY by the secondary pages:
 *   about.html · contact.html · privacy-policy.html
 *   terms-and-conditions.html · refund.html
 *
 * Everything here reuses the tokens and patterns already
 * defined in css/style.css:
 *   --color-primary (#f59e0b) · --color-dark (#1a1a2e)
 *   --color-darker (#0f0f1a) · --nav-height (76px)
 *   .hero-overlay · .hero-content-N .hero-slide-bg
 *   .crop-* · Bootstrap 5 grid + utilities
 *
 * SHARED INTERNAL PAGE STRUCTURE
 *   NAVBAR → .page-hero → .page-section → .cta-band → FOOTER
 *
 * TABLE OF CONTENTS
 *   1. PAGE HERO
 *   2. PAGE SECTIONS & HEADINGS
 *   3. READABLE CONTENT SHELL (legal pages)
 *   4. TABLE OF CONTENTS BLOCK
 *   5. FEATURE / PRINCIPLE CARDS
 *   6. CONTACT PAGE — INFO CARDS & FORM
 *   7. CTA BAND
 *   8. RESPONSIVE
 * ============================================================ */


/* ============================================================
   1. PAGE HERO
   ------------------------------------------------------------
   Deliberately SHORTER than the homepage hero (max 460px of
   visual block) so internal pages feel like a calm extension
   of the same site rather than a second landing page.
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + 24px);
  padding-bottom: 76px;
  background: var(--color-darker);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Absolutely-positioned backdrop (gradient or photo) */
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Reuses the gradient recipes from style.css */
.page-hero-media .hero-slide-bg {
  position: absolute;
  inset: 0;
}

/* Optional real photograph for the hero */
.page-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  z-index: 1;
}

/* Foreground content */
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.page-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.page-hero-lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Centred heroes centre the lead as well */
.page-hero-inner.text-center .page-hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 18px 0 0;
}

/* Small framed label above the H1 */
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}


/* ============================================================
   2. PAGE SECTIONS & HEADINGS
   ============================================================ */
.page-section {
  padding: 72px 0;
  background: var(--color-darker);
}

.page-section--tint {
  background: var(--color-dark);
}

/* Separator between two same-colour sections */
.page-section--divided {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-section-head {
  margin-bottom: 40px;
}

.page-section-head--center {
  text-align: center;
}

.page-heading {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-white);
}

.page-heading--sm {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.page-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 660px;
  line-height: 1.75;
}

.page-section-head--center .page-lead,
.page-section-head--center .page-heading {
  margin-left: auto;
  margin-right: auto;
}

/* Reuses the homepage badge treatment */
.section-badge {
  margin-bottom: 14px;
}

.page-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}


/* ============================================================
   3. READABLE CONTENT SHELL (legal pages)
   ------------------------------------------------------------
   Goal: comfortable line length (~70-80 characters) so long
   policy text never stretches across a wide screen.
   ============================================================ */
.content-shell {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.prose-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 46px);
}

.prose-card > :first-child { margin-top: 0; }
.prose-card > :last-child { margin-bottom: 0; }

/* ─── Document meta line (last updated) ─── */
.policy-meta {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

/* ─── Numbered section headings ─── */
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-white);
  margin: 40px 0 12px;
  scroll-margin-top: 96px;
}

.prose h2:first-of-type { margin-top: 30px; }

.section-num {
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.prose h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 26px 0 8px;
}

.prose p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.prose ul,
.prose ol {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  padding-left: 1.25rem;
  margin: 0 0 16px;
}

.prose li { margin-bottom: 9px; }
.prose li:last-child { margin-bottom: 0; }

.prose li::marker { color: var(--color-primary); }

.prose strong { color: #ffffff; font-weight: 600; }

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

.prose a:hover { color: var(--color-primary-dark); }

/* ─── Highlighted note / key statement ─── */
.callout {
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}

.callout p { margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* ─── Inline definition rows (hours, contact, etc.) ─── */
.fact-list { margin: 0 0 8px; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fact-row:last-child { border-bottom: none; }

.fact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 150px;
}

.fact-value { color: rgba(255, 255, 255, 0.7); }
.fact-value a { color: var(--color-primary); }
.fact-value a:hover { color: var(--color-primary-dark); }


/* ============================================================
   4. TABLE OF CONTENTS BLOCK
   ============================================================ */
.toc {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 28px;
}

.toc-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 34px;
}

.toc-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.toc-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
}

.toc-list a:hover,
.toc-list a:focus { color: var(--color-primary); }

.toc-num {
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   5. FEATURE / PRINCIPLE CARDS
   ============================================================ */
.principle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .principle-list--two { grid-template-columns: 1fr 1fr; }
}

.principle-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  height: 100%;
  transition: border-color var(--transition-fast);
}

.principle-item:hover {
  border-color: rgba(245, 158, 11, 0.28);
}

.principle-item i {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-top: 3px;
}

.principle-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.principle-item p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}


/* ============================================================
   6. CONTACT PAGE — INFO CARDS & FORM
   ============================================================ */
.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 26px 24px;
  height: 100%;
  transition: border-color var(--transition-fast);
}

.info-card:hover { border-color: rgba(245, 158, 11, 0.28); }

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.info-card-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.info-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-block;
  overflow-wrap: anywhere;
}

.info-card-value:hover { color: var(--color-primary-dark); }

.info-card-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin: 8px 0 0;
}

/* ─── Form shell ─── */
.form-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 40px);
}

.form-card .form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 7px;
}

.form-card .form-control,
.form-card .form-select {
  background: rgba(15, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
}

.form-card .form-control::placeholder { color: rgba(255, 255, 255, 0.32); }

.form-card .form-control:focus,
.form-card .form-select:focus {
  background: rgba(15, 15, 26, 0.9);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-card .form-select option {
  background: #14141f;
  color: #ffffff;
}

.form-card textarea.form-control { min-height: 130px; resize: vertical; }

.form-hint {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 7px;
}

.form-card .invalid-feedback {
  font-size: 0.79rem;
}

/* Neutral informational strip above the form */
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
}

.form-note i {
  color: var(--color-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-note p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* Appears after the request has been handed to the email client */
.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 20px;
}

.form-status.is-visible { display: flex; }

.form-status i {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-status p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}


/* ============================================================
   7b. FAQ ACCORDION (faq.html)
   ------------------------------------------------------------
   The Bootstrap accordion restyled for the dark page
   background: each question is its own card, the caret and
   the active question follow the amber accent.
   ============================================================ */
.faq-accordion {
  --bs-accordion-color: rgba(255, 255, 255, 0.75);
  --bs-accordion-bg: rgba(255, 255, 255, 0.04);
  --bs-accordion-border-color: rgba(255, 255, 255, 0.09);
  --bs-accordion-border-radius: 14px;
  --bs-accordion-border-width: 1px;
  --bs-accordion-btn-color: var(--color-white);
  --bs-accordion-btn-bg: transparent;
  /* The two names Bootstrap 5.3 actually reads for the OPEN question */
  --bs-accordion-active-color: var(--color-primary);
  --bs-accordion-active-bg: rgba(245, 158, 11, 0.1);
  /* Focus ring: Bootstrap's default is blue — keep it amber */
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.35);
  --bs-accordion-btn-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f59e0b'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f59e0b'><path fill-rule='evenodd' d='M1.646 11.354a.5.5 0 0 0 .708.708L8 6.414l5.646 5.647a.5.5 0 0 0 .708-.708l-6-6a.5.5 0 0 0-.708 0l-6 6'/></svg>");
  display: grid;
  gap: 12px;
}

.faq-accordion .accordion-item { overflow: hidden; }

.faq-accordion .accordion-button {
  gap: 8px;
  font-weight: 600;
  padding: 18px 20px;
}

/* Never let Bootstrap's blue focus ring appear on a question */
.faq-accordion .accordion-button:focus,
.faq-accordion .accordion-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.35);
}

/* The clicked question keeps the amber highlight while it stays open
   (this rule also overrides the focus ring on the open question) */
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background-color: rgba(245, 158, 11, 0.1);
  box-shadow: none;
}

.faq-accordion .accordion-button i { color: var(--color-primary); }

.faq-accordion .accordion-body {
  padding: 0 20px 20px;
  line-height: 1.75;
}


/* ============================================================
   7. CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 46px);
}

.cta-band .page-heading { margin-bottom: 10px; }

.cta-band .page-lead { color: rgba(255, 255, 255, 0.72); }


/* ============================================================
   8. RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 991px) {
  .page-section { padding: 60px 0; }
  .toc-list { columns: 2; column-gap: 26px; }
}

/* Phone */
@media (max-width: 767px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 52px;
  }
  .page-section { padding: 50px 0; }
  .page-section-head { margin-bottom: 30px; }
  .prose h2 { margin-top: 32px; scroll-margin-top: 130px; }
  .fact-label { min-width: 100%; }
  .toc { padding: 20px; }
  .toc-list { columns: 1; }
}

/* Small phone */
@media (max-width: 575px) {
  .page-hero { padding-bottom: 44px; }
  .prose-card { border-radius: 14px; }
  .info-card { padding: 22px 20px; }
  .cta-band { border-radius: 16px; }
  .info-card-value { font-size: 1.02rem; }
}
