/*
Theme Name: Solpaneler.eu Local
Author: Mahope
Version: 0.1.0
*/

:root {
  --ink: #172024;
  --muted: #5b6669;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --line: #dfe2dc;
  --green: #1f6b52;
  --green-dark: #123d30;
  --sun: #f3b63b;
  --blue: #244b72;
  --clay: #b85f3a;
  --shadow: 0 18px 45px rgba(23, 32, 36, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
p { color: var(--muted); }
h1, h2, h3 { letter-spacing: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 240, 0.94);
  border-bottom: 1px solid rgba(23, 32, 36, 0.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 900; text-decoration: none; }
.brand img { width: 150px; max-height: 46px; object-fit: contain; }
.brand-mark {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 42%, rgba(255,255,255,.45) 42% 58%, transparent 58%), var(--sun);
  border: 3px solid var(--green);
  transform: rotate(45deg);
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 26px); justify-content: center; margin: 0; padding: 0; list-style: none; font-size: .94rem; color: var(--muted); }
.main-nav a, .footer-links a, .clean-link { text-decoration: none; }
.main-nav a:hover, .footer-links a:hover, .clean-link:hover { color: var(--green); }
.header-cta, .button, .wp-block-button__link, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.54);
  color: #fff;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(820px, 86svh);
  padding: clamp(94px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(36px, 7vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 24, 20, .90) 0%, rgba(10, 24, 20, .64) 46%, rgba(10, 24, 20, .18) 100%),
    url("assets/img/hero-solar-roof.jpg") center / cover;
}
.hero-content { width: min(940px, 100%); }
.eyebrow { margin: 0 0 12px; color: var(--sun); font-size: .78rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 8vw, 7.6rem); line-height: .92; }
.hero-copy { width: min(710px, 100%); margin: 24px 0 0; font-size: clamp(1.14rem, 2vw, 1.5rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: min(900px, 100%); margin: 42px 0 0; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.hero-stats div { min-width: 0; padding: 18px; background: rgba(8, 22, 18, .58); }
.hero-stats strong { display: block; font-weight: 900; }
.hero-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); }

.trust-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--panel); }
.trust-item { min-width: 0; padding: 22px clamp(18px, 3vw, 42px); border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--green-dark); }
.trust-item span { display: block; margin-top: 3px; color: var(--muted); }

.section, .contact, .page-main { padding: clamp(56px, 8vw, 108px) clamp(20px, 5vw, 72px); }
.section-heading, .section-copy { width: min(800px, 100%); margin-bottom: 32px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
h3 { margin: 0 0 10px; font-size: 1.16rem; line-height: 1.18; }

.card-grid, .package-grid, .case-grid, .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .package, .case, .article-card, .contact-form, .wp-block-group.is-style-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23,32,36,.06);
}
.card, .case, .article-card { padding: 24px; }
.package { overflow: hidden; }
.package img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef0eb; }
.package .package-body { padding: 22px; }
.package-kicker { margin: 0 0 8px; color: var(--clay); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .86fr); }
.featured img { height: 100%; aspect-ratio: auto; }

.compare { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 760px; }
.compare th, .compare td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { color: var(--green-dark); font-size: .9rem; }
.compare tr:last-child td { border-bottom: 0; }

.calculator { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr); gap: 28px; align-items: center; background: var(--green-dark); color: #fff; }
.calculator p { color: rgba(255,255,255,.78); }
.calc-panel { display: grid; gap: 16px; padding: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.calc-panel input[type="range"] { width: 100%; accent-color: var(--sun); }
.calc-result { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; background: rgba(255,255,255,.12); border-radius: 6px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.steps li { min-width: 0; padding: 24px; background: var(--panel); }
.steps span { display: inline-flex; margin-bottom: 18px; color: var(--clay); font-weight: 900; }

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, .72fr); gap: 34px; background: #eceee6; }
.contact-form { display: grid; gap: 14px; padding: 24px; }
.contact-form label { display: grid; gap: 7px; color: var(--green-dark); font-size: .92rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cad0c5;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.faq-list { display: grid; gap: 10px; width: min(940px, 100%); }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 850; color: var(--green-dark); }

.page-hero { padding: clamp(70px, 9vw, 120px) clamp(20px, 5vw, 72px) 42px; background: var(--green-dark); color: #fff; }
.page-hero h1 { margin: 0; max-width: 980px; font-size: clamp(2.5rem, 6vw, 5.8rem); line-height: .95; }
.page-hero p { width: min(760px, 100%); color: rgba(255,255,255,.78); font-size: 1.12rem; }
.page-main { max-width: 1180px; margin: 0 auto; }
.page-main > *:first-child { margin-top: 0; }
.page-main .wp-block-columns { gap: 22px; }
.page-main .wp-block-column { min-width: 0; }
.page-main .wp-block-image img { border-radius: 8px; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 34px clamp(20px, 5vw, 72px); background: #101917; color: #fff; }
.site-footer p, .footer-links { color: rgba(255,255,255,.7); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .trust-band, .card-grid, .package-grid, .case-grid, .article-grid, .steps, .calculator, .contact { grid-template-columns: 1fr; }
  .featured { grid-column: auto; grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .brand img { width: 126px; }
  .header-cta { padding: 0 12px; min-height: 40px; }
  .hero { min-height: 760px; }
  .hero h1 { font-size: 3.2rem; }
}
