/**
 * cgp-residential-page.css
 *
 * Residential page shell — recharge.gr/residential-el/
 *
 * Scope: all non-calculator page sections (hero, advantages,
 *        charger types, stats, charging levels, tips, FAQ).
 * Does NOT contain: global type/buttons (style.css),
 *                   calculator components (cgp-calculator-residential.css)
 * Complements:      style.css :root tokens, cgp-calculator-residential.css
 *
 * Visual language: "effortlessly calm and confident"
 *   — Geologica (display) + system-font (body)
 *   — Calculator blue (#1665D8) for page CTAs to unify the flow
 *   — Generous whitespace, minimal decoration, confident type
 *
 * @version 1.3.0
 * @date    2026-06-04
 */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700&family=Nunito+Sans:wght@800&display=swap');

/* ============================================================
 * Token bridge
 * ============================================================ */

:root {
  --res-ink:          #0F2237;
  --res-navy:         #2B435E;
  --res-action:       #1665D8;
  --res-action-deep:  #0E4FB2;
  --res-blue:         #527FB3;
  --res-text:         #243C58;
  --res-text-soft:    #5C708A;
  --res-text-faint:   #94A0AE;
  --res-border:       #DDE5EE;
  --res-border-soft:  #EDF1F6;
  --res-surface:      #FFFFFF;
  --res-tint:         #F4F8FD;
  --res-tint-soft:    #F8FAFB;
  --res-r-card:       18px;
  --res-r-pill:       9999px;
  --res-r-btn:        12px;
  --res-shadow-sm:    0 2px 12px rgba(15, 34, 55, 0.07);
  --res-shadow-md:    0 6px 24px rgba(15, 34, 55, 0.10);
  --res-shadow-lg:    0 12px 40px rgba(15, 34, 55, 0.13);
  --res-shadow-cta:   0 6px 20px rgba(22, 101, 216, 0.30);
  --res-f-display:    'Geologica', Helvetica, Arial, sans-serif;
  --res-f-body:       'Helvetica Neue', Helvetica, Arial, sans-serif;
  --res-t:            all 0.20s ease;
  --res-section-v:    88px;
}

/* ============================================================
 * Layout — container + shared primitives
 * ============================================================ */

.cgp-res-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.cgp-res-section-eyebrow {
  display: block;
  font-family: var(--res-f-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--res-text-faint);
  margin-bottom: 12px;
}

.cgp-res-section-title {
  font-family: var(--res-f-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.7vw, 2.3rem);
  color: var(--res-ink);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
}

.cgp-res-section-title .accent { color: var(--res-action); }

.cgp-res-section-lede {
  font-family: var(--res-f-body);
  font-size: 1.03rem;
  color: var(--res-text-soft);
  line-height: 1.70;
  margin: 0;
}

/* ============================================================
 * Buttons — page-level (outside the calculator)
 * ============================================================ */

.cgp-res-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--res-r-btn);
  padding: 14px 28px;
  font-family: var(--res-f-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--res-t);
  border: 1.5px solid transparent;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.cgp-res-page-btn-primary {
  background: var(--res-action);
  color: #fff;
  border-color: var(--res-action);
  box-shadow: var(--res-shadow-cta);
}

.cgp-res-page-btn-primary:hover {
  background: var(--res-action-deep);
  border-color: var(--res-action-deep);
  box-shadow: 0 6px 26px rgba(22, 101, 216, 0.42);
  text-decoration: none;
  color: #fff;
}

.cgp-res-page-btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.30);
}

.cgp-res-page-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
 * HERO — desktop
 * ============================================================ */

.cgp-res-hero {
  position: relative;
  min-height: 100vh;
  background-image: url('https://charge.guide/wp-content/uploads/residential-charger-es2.jpeg');
  background-size: cover;
  background-position: 65% 62%;
  display: flex;
  align-items: center;
}

.cgp-res-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 20, 36, 0.95) 0%,
    rgba(10, 20, 36, 0.84) 30%,
    rgba(10, 20, 36, 0.32) 56%,
    transparent 74%
  );
  pointer-events: none;
  z-index: 0;
}

.cgp-res-hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 88px 48px;
}

.cgp-res-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--res-f-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(172, 218, 255, 0.92);
  margin-bottom: 22px;
  padding: 6px 13px;
  border: 1px solid rgba(113, 176, 246, 0.25);
  border-radius: var(--res-r-pill);
  background: rgba(22, 101, 216, 0.16);
}

.cgp-res-hero-title {
  font-family: var(--res-f-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.026em;
  margin: 0 0 24px;
}

.cgp-res-hero-title .hero-accent {
  color: #71B0F6;
}

.cgp-res-hero-sub {
  font-family: var(--res-f-body);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0 0 40px;
  max-width: 450px;
}

.cgp-res-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero — tablet adjustments */
@media (max-width: 1024px) {
  .cgp-res-hero {
    background-position: 72% 68%;
  }
}

@media (max-width: 768px) {
  .cgp-res-hero {
    background-position: 78% 65%;
  }
}

/* Hero — mobile: text over image with bottom gradient */
@media (max-width: 640px) {
  .cgp-res-hero {
    min-height: 100vh;
    background: none;
    flex-direction: column;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
  }

  .cgp-res-hero-img-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://charge.guide/wp-content/uploads/residential-charger-es2.jpeg");
    background-size: cover;
    background-position: 85% center;
    background-repeat: no-repeat;
    margin: 0;
    max-width: 100%;
  }

  .cgp-res-hero-overlay {
    display: block;
    background: linear-gradient(
      to top,
      rgba(10, 20, 36, 0.97) 0%,
      rgba(10, 20, 36, 0.85) 40%,
      rgba(10, 20, 36, 0.15) 70%,
      transparent 85%
    );
  }

  .cgp-res-hero-content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 32px 24px 48px;
    max-width: 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .cgp-res-hero-title {
    color: #ffffff;
    font-size: 1.85rem;
  }

  .cgp-res-hero-title .hero-accent {
    color: #71B0F6;
  }

  .cgp-res-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .cgp-res-hero-eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
    color: rgba(172, 218, 255, 0.92);
    background: rgba(22, 101, 216, 0.16);
    border-color: rgba(113, 176, 246, 0.25);
  }
}

/* ============================================================
 * ADVANTAGES
 * ============================================================ */

.cgp-res-adv {
  padding: var(--res-section-v) 0;
  background: var(--res-tint-soft);
}

.cgp-res-adv-head {
  text-align: center;
  margin-bottom: 48px;
}

.cgp-res-adv-head .cgp-res-section-lede {
  margin: 0 auto;
  max-width: 520px;
}

.cgp-res-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cgp-res-adv-card {
  background: var(--res-surface);
  border-radius: var(--res-r-card);
  padding: 28px 24px 24px;
  border: 1px solid var(--res-border-soft);
  box-shadow: var(--res-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.cgp-res-adv-card:hover {
  box-shadow: var(--res-shadow-md);
  transform: translateY(-2px);
}

.cgp-res-adv-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--res-tint);
  border-radius: 10px;
  color: var(--res-action);
  flex-shrink: 0;
}

.cgp-res-adv-heading {
  font-family: var(--res-f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--res-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cgp-res-adv-body {
  font-family: var(--res-f-body);
  font-size: 0.88rem;
  color: var(--res-text-soft);
  line-height: 1.65;
  flex: 1;
}

.cgp-res-adv-govgr {
  margin-top: 4px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.cgp-res-adv-govgr .gov { color: #003366; }
.cgp-res-adv-govgr .gr  { color: #00AEEF; }

/* ============================================================
 * CALCULATOR SECTION FRAME
 * ============================================================ */

.cgp-res-calc-section {
  padding: 16px 0 var(--res-section-v);
  background: var(--res-surface);
}

.cgp-res-calc-head {
  text-align: center;
  margin-bottom: 56px;
}

.cgp-res-calc-head .cgp-res-section-lede { margin: 0 auto; }

.cgp-res-calc-frame {
  max-width: 880px;
  margin: 0 auto;
}

/* ============================================================
 * MY CALCULATIONS SECTION FRAME
 * ============================================================ */

.cgp-res-my-calcs {
  padding: 64px 0;
  background: var(--res-tint-soft);
  border-top: 1px solid var(--res-border-soft);
}

.cgp-res-my-calcs-head {
  margin-bottom: 28px;
}

.cgp-res-my-calcs-title {
  font-family: var(--res-f-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--res-ink);
  letter-spacing: -0.01em;
  margin: 6px 0 0;
}

/* ============================================================
 * CHARGER INSTALLATION TYPES
 * ============================================================ */

.cgp-res-charger-types {
  padding: var(--res-section-v) 0;
  background: var(--res-surface);
}

.cgp-res-charger-types-head {
  text-align: center;
  margin-bottom: 40px;
}

/* Toggle row */
.cgp-res-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.cgp-res-toggle-label {
  font-family: var(--res-f-display);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--res-text-faint);
  max-width: 160px;
  line-height: 1.4;
  text-align: right;
  transition: color 0.18s ease;
  user-select: none;
}

body .cgp-res-toggle-label.cgp-res-right { text-align: left !important; }
.cgp-res-toggle-label.active { color: var(--res-ink); font-weight: 600; }

/* Toggle switch */
.cgp-res-switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.cgp-res-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cgp-res-switch-track {
  position: absolute;
  inset: 0;
  background: var(--res-border);
  border-radius: 30px;
  transition: background 0.2s ease;
}

.cgp-res-switch input:checked + .cgp-res-switch-track {
  background: var(--res-action);
}

.cgp-res-switch-track::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
}

.cgp-res-switch input:checked + .cgp-res-switch-track::before {
  transform: translateX(24px);
}

/* Content panels */
.cgp-res-charger-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.cgp-res-charger-panel.active { display: grid; }

.cgp-res-charger-panel-img img {
  width: 100%;
  border-radius: var(--res-r-card);
  box-shadow: var(--res-shadow-md);
  display: block;
}

.cgp-res-charger-panel-body p {
  font-family: var(--res-f-body);
  font-size: 0.95rem;
  color: var(--res-text-soft);
  line-height: 1.72;
  margin: 0;
}

/* Brand logos strip */
.cgp-res-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: center;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--res-border-soft);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.cgp-res-logos img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.70;
  filter: grayscale(1) contrast(0.9);
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.cgp-res-logos img:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1);
}

/* ============================================================
 * STATS BAR
 * ============================================================ */

.cgp-res-stats {
  padding: 72px 0;
  background: var(--res-tint);
  border-top: 1px solid var(--res-border-soft);
  border-bottom: 1px solid var(--res-border-soft);
}

.cgp-res-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  align-items: center;
}

.cgp-res-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cgp-res-stat-item + .cgp-res-stat-item {
  border-left: 1px solid var(--res-border-soft);
}

.cgp-res-stat-value {
  font-family: var(--res-f-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--res-ink);
  letter-spacing: -0.04em;
  line-height: 1;
}

.cgp-res-stat-label {
  font-family: var(--res-f-body);
  font-size: 0.88rem;
  color: var(--res-text-soft);
  line-height: 1.5;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  text-align: center;
}

/* ============================================================
 * CHARGING LEVELS (Τι πρέπει να γνωρίζετε)
 * ============================================================ */

.cgp-res-levels {
  padding: var(--res-section-v) 0;
  background: var(--res-surface);
}

.cgp-res-levels-head {
  margin-bottom: 52px;
}

.cgp-res-levels-head .cgp-res-section-title {
  color: rgba(43, 67, 94, 0.72);
}

.cgp-res-levels-subtitle {
  font-family: var(--res-f-display);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--res-blue);
  margin: 16px 0 14px;
  letter-spacing: -0.01em;
}

.cgp-res-level-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--res-border-soft);
}

.cgp-res-level-item:first-of-type { border-top: none; padding-top: 0; }

.cgp-res-level-item img {
  width: 100%;
  border-radius: var(--res-r-card);
  box-shadow: none;
  border: none;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

.cgp-res-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--res-f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--res-text-faint);
  margin-bottom: 10px;
  padding: 4px 10px;
  background: var(--res-tint);
  border-radius: var(--res-r-pill);
  border: 1px solid var(--res-border-soft);
}

.cgp-res-level-title {
  font-family: var(--res-f-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--res-ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.cgp-res-level-subtitle {
  font-family: var(--res-f-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--res-text-faint);
  margin: 0 0 16px;
}

.cgp-res-level-body {
  font-family: var(--res-f-body);
  font-size: 0.92rem;
  color: var(--res-text-soft);
  line-height: 1.72;
  margin: 0;
}

/* ============================================================
 * TIPS
 * ============================================================ */

.cgp-res-tips {
  padding: 52px 0;
  background: var(--res-tint-soft);
  border-top: 1px solid var(--res-border-soft);
  border-bottom: 1px solid var(--res-border-soft);
}

.cgp-res-tips-inner {
  background: var(--res-surface);
  border-radius: var(--res-r-card);
  padding: 28px 32px 28px;
  border: 1px solid var(--res-border-soft);
  box-shadow: var(--res-shadow-sm);
}

.cgp-res-tips-eyebrow {
  font-family: var(--res-f-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--res-text-faint);
  margin-bottom: 14px;
}

.cgp-res-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.cgp-res-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-family: var(--res-f-body);
  font-size: 0.90rem;
  color: var(--res-text-soft);
  line-height: 1.68;
}

.cgp-res-tips-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--res-action);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ============================================================
 * FAQ
 * ============================================================ */

.cgp-res-faq {
  padding: var(--res-section-v) 0;
  background: var(--res-surface);
}

.cgp-res-faq-head {
  margin-bottom: 40px;
}

.cgp-res-faq-head .cgp-res-section-title {
  color: rgba(43, 67, 94, 0.72);
}

.cgp-res-faq-list {
  max-width: 760px;
}

.cgp-res-faq-item {
  border-top: 1px solid var(--res-border-soft);
}

.cgp-res-faq-item:last-child {
  border-bottom: 1px solid var(--res-border-soft);
}

.cgp-res-faq-q {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  font-family: var(--res-f-display);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--res-ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}

.cgp-res-faq-q:hover { color: var(--res-action); }

.cgp-res-faq-icon {
  flex-shrink: 0;
  color: var(--res-text-faint);
  transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), color 0.15s ease;
}

.cgp-res-faq-item.open .cgp-res-faq-icon {
  transform: rotate(45deg);
  color: var(--res-action);
}

.cgp-res-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding-bottom 0.22s ease;
}

.cgp-res-faq-item.open .cgp-res-faq-a {
  max-height: 600px;
  padding-bottom: 20px;
}

.cgp-res-faq-a p {
  font-family: var(--res-f-body);
  font-size: 0.91rem;
  color: var(--res-text-soft);
  line-height: 1.72;
  margin: 0;
}

/* ============================================================
 * INSTALLATION GALLERY
 * ============================================================ */

.cgp-res-gallery {
  padding: 16px 0 60px;
  background: var(--res-surface);
}

.cgp-res-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.cgp-res-gallery-item {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1 / 1;
}

.cgp-res-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(0.85) brightness(0.95);
  transition: filter 0.28s ease, transform 0.28s ease;
}

.cgp-res-gallery-item:hover img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.04);
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 900px) {
  .cgp-res-adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --res-section-v: 60px;
  }

  .cgp-res-container { padding: 0 22px; }

  .cgp-res-adv-head  { margin-bottom: 32px; }
  .cgp-res-calc-head { margin-bottom: 36px; }

  .cgp-res-charger-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cgp-res-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .cgp-res-stat-item + .cgp-res-stat-item { border-left: none; }

  .cgp-res-level-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cgp-res-level-item img { max-height: 220px; }

  .cgp-res-toggle-label { max-width: 120px; font-size: 0.85rem; }

  .cgp-res-logos { margin-top: 36px; gap: 14px 22px; }

  .cgp-res-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .cgp-res-adv-grid   { grid-template-columns: 1fr; }
  .cgp-res-stats-grid { grid-template-columns: 1fr; text-align: left; }
  .cgp-res-stat-value { font-size: 2rem; }
  .cgp-res-tips-inner { padding: 22px 20px; }

  .cgp-res-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
}

/* Needs-charger panel — products full width, text below */
.cgp-res-needs-charger {
  display: none;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}

.cgp-res-needs-charger.active {
  display: flex;
}

.cgp-res-needs-charger-products {
  width: 100%;
}

.cgp-res-needs-charger-text {
  margin-top: 24px;
  max-width: 100%;
}

.cgp-res-needs-charger-text p {
  font-family: var(--res-f-body);
  font-size: 0.95rem;
  color: var(--res-text-soft);
  line-height: 1.72;
  margin: 0;
}
