/*
Theme Name: Fox Engineering
Theme URI: https://fox-engineering.de/
Author: Fox Engineering
Description: Darkes WordPress-Theme für Fox Engineering mit pflegbaren Referenzprojekten und Startseiten-Karten.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fox-engineering
*/

:root {
  --bg: #f3f5f4;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-dark: #101815;
  --text: #15201b;
  --muted: #58645f;
  --line: rgba(21, 32, 27, 0.1);
  --accent: #71dc87;
  --accent-strong: #45b85d;
  --accent-soft: rgba(113, 220, 135, 0.13);
  --shadow: 0 24px 80px rgba(8, 15, 12, 0.1);
  --radius: 28px;
  --font-body: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --font-display: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f7faf8 0%, var(--bg) 100%);
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.project-tile-media img,
.project-detail-cover img,
.gallery-item img,
.wp-block-image img,
.wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(113, 220, 135, 0.18), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(17, 25, 23, 0.05), transparent 16%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(237, 242, 239, 0.96));
}

.page-shell {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(255, 111, 37, 0.12));
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0b130f;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(69, 184, 93, 0.24);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 4.5rem 0 2.5rem;
}

.hero-copy,
.hero-panel,
.service-card,
.benefit-card,
.highlight-card,
.process-card,
.sector-card,
.contact-card,
.note-box,
.reference-cta,
.legal-page {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-badge-logo {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.hero-badge strong,
.reference-cta strong {
  display: block;
  font-size: 0.95rem;
}

.hero-badge span {
  color: var(--muted);
  font-size: 0.82rem;
}

.eyebrow {
  margin: 1.25rem 0 1rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.panel-head h2,
.highlight-card h2,
.company-copy h2,
.legal-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6rem);
}

.hero-text,
.hero-note,
.section-heading p,
.panel-note,
.service-card p,
.process-card p,
.sector-card p,
.company-copy p,
.contact-card p,
.note-box p,
.site-footer p,
.reference-cta p,
.legal-page p {
  color: var(--muted);
}

.hero-text {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-points {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.hero-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem;
  background:
    linear-gradient(180deg, rgba(16, 24, 21, 0.97), rgba(16, 24, 21, 0.9)),
    linear-gradient(160deg, rgba(113, 220, 135, 0.12), transparent 55%);
  color: #f6fbf7;
}

.panel-kicker {
  margin: 0 0 0.75rem;
  color: rgba(113, 220, 135, 0.98);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel-note {
  margin: 0;
  color: rgba(246, 251, 247, 0.74);
  line-height: 1.7;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-grid article {
  padding: 1rem;
  border: 1px solid rgba(113, 220, 135, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.stat-grid strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.stat-grid span {
  color: rgba(246, 251, 247, 0.7);
  line-height: 1.45;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0 0 2.4rem;
}

.signal-strip span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.section {
  padding: 2.8rem 0;
}

.section-grid {
  display: grid;
  gap: 1.5rem;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  max-width: 60rem;
}

.section-heading .eyebrow {
  margin-top: 0;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-heading p {
  margin: 0;
  max-width: 60ch;
  line-height: 1.75;
}

.service-grid,
.benefit-grid,
.process-grid,
.sector-grid,
.reference-grid {
  display: grid;
  gap: 1rem;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-card,
.benefit-card,
.process-card,
.sector-card,
.reference-card {
  padding: 1.45rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 800;
}

.service-card h3,
.benefit-card h3,
.process-card h3,
.sector-card h3,
.contact-card h3,
.note-box h3,
.reference-card h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.service-card p,
.benefit-card p,
.process-card p,
.sector-card p,
.contact-card p,
.note-box p,
.company-copy p,
.reference-card p {
  margin: 0;
  line-height: 1.7;
}

.highlight-section {
  padding-top: 0.6rem;
}

.loxone-section {
  padding-top: 0.6rem;
}

.partner-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.partner-callout .eyebrow {
  margin-top: 0;
}

.partner-callout strong {
  display: block;
  font-size: 1.1rem;
}

.partner-callout p:last-child {
  margin: 0.45rem 0 0;
  max-width: 56ch;
  line-height: 1.75;
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.highlight-card {
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(113, 220, 135, 0.14), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.76);
}

.highlight-card .eyebrow {
  margin-top: 0;
}

.highlight-card h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  max-width: 18ch;
}

.highlight-card p:last-child {
  max-width: 70ch;
  margin-top: 1rem;
  line-height: 1.75;
}

.reference-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.reference-cta p {
  margin: 0.4rem 0 0;
  max-width: 45ch;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sector-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-label {
  display: inline-flex;
  margin: 0;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.company-copy,
.company-facts,
.reference-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.company-copy,
.legal-page {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.company-copy h2,
.legal-page h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  max-width: 18ch;
}

.company-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.company-facts article {
  display: grid;
  gap: 0.35rem;
  padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.94);
}

.company-facts span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-facts strong {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: stretch;
}

.contact-card,
.note-box {
  padding: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.contact-list a,
.contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 3.3rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.contact-note {
  display: flex;
}

.note-box {
  width: 100%;
}

.reference-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reference-card {
  min-height: 17rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-tile {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px rgba(8, 15, 12, 0.14);
}

.project-tile-media,
.project-detail-cover,
.gallery-item {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
}

.project-tile-media::before,
.project-detail-cover::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 10, 0.12), rgba(7, 12, 10, 0.55)),
    radial-gradient(circle at top right, rgba(113, 220, 135, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(16, 24, 21, 0.18));
}

.project-tile-neubau {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 12, 10, 0.18)),
    linear-gradient(135deg, #dbe7e2 0%, #9eb8af 46%, #344b43 100%);
}

.project-tile-renovierung {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 12, 10, 0.18)),
    linear-gradient(135deg, #eadfcb 0%, #c9b28c 44%, #5a4c3d 100%);
}

.project-tile-kernsanierung {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 12, 10, 0.18)),
    linear-gradient(135deg, #dbe3ea 0%, #9caebd 44%, #31404d 100%);
}

.project-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.project-tile-copy {
  padding: 1.35rem;
}

.project-tile-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.project-tile-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.project-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.project-detail-cover {
  min-height: 24rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-detail-intro {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.project-detail-intro .eyebrow {
  margin-top: 0;
}

.project-detail-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.project-detail-intro p {
  color: var(--muted);
  line-height: 1.8;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.project-facts article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.project-facts span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts strong {
  font-size: 1rem;
}

.project-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reference-meta {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-placeholder {
  margin-top: 1.2rem;
  height: 9rem;
  border: 1px dashed rgba(21, 32, 27, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(113, 220, 135, 0.1), rgba(255, 255, 255, 0.65));
}

.legal-page {
  max-width: 56rem;
}

.legal-page .eyebrow {
  margin-top: 0;
}

.legal-page p {
  line-height: 1.8;
}

.content-copy > *:first-child {
  margin-top: 0;
}

.content-copy p,
.content-copy li {
  color: var(--muted);
  line-height: 1.8;
}

.content-copy h2,
.content-copy h3 {
  letter-spacing: -0.02em;
}

.project-detail-content {
  display: grid;
  gap: 1rem;
}

.project-tile-generic {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 12, 10, 0.18)),
    linear-gradient(135deg, #dbe7e2 0%, #9eb8af 46%, #344b43 100%);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.site-footer strong,
.footer-links a {
  font-weight: 800;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.35rem 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 0.6rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .service-grid,
  .benefit-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-strip,
  .reference-grid,
  .project-grid,
  .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .hero,
  .company-section,
  .contact-layout,
  .sector-grid,
  .site-footer,
  .reference-grid,
  .project-grid,
  .project-detail-hero,
  .project-text-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    width: 100%;
  }

  .hero h1,
  .company-copy h2,
  .legal-page h1 {
    max-width: none;
  }

  .reference-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .site-nav,
  .site-header > .button-ghost {
    display: none;
  }

  .signal-strip,
  .service-grid,
  .benefit-grid,
  .process-grid,
  .sector-grid,
  .stat-grid,
  .reference-grid,
  .project-grid,
  .project-gallery,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .service-card,
  .benefit-card,
  .process-card,
  .sector-card,
  .contact-card,
  .note-box,
  .company-copy,
  .reference-card,
  .legal-page {
    padding: 1.35rem;
  }

  .project-tile-copy h3 {
    font-size: 1.2rem;
  }

  .project-detail-cover {
    min-height: 18rem;
  }

  .project-tile-media,
  .gallery-item {
    min-height: 13rem;
  }

  .project-detail-intro {
    padding: 1.35rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .brand-logo {
    width: 2.6rem;
    height: 2.6rem;
  }
}


/* Dark glass interface: the original layout now uses the requested night palette. */
:root {
  color-scheme: dark;
  --bg: #080e0b;
  --surface: rgba(17, 27, 22, 0.74);
  --surface-strong: #14221b;
  --surface-dark: #0b130f;
  --text: #f2f7f3;
  --muted: #b5c2b9;
  --line: rgba(226, 245, 233, 0.13);
  --accent: #9af0ae;
  --accent-strong: #62d786;
  --accent-soft: rgba(119, 222, 147, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(56, 105, 76, 0.2), transparent 52%),
    #080e0b;
}

.site-bg {
  background:
    radial-gradient(circle at 82% 5%, rgba(97, 210, 132, 0.15), transparent 28%),
    radial-gradient(circle at 7% 32%, rgba(56, 112, 82, 0.14), transparent 24%),
    linear-gradient(160deg, rgba(8, 14, 11, 0.96), rgba(10, 18, 14, 0.98));
}

.site-header,
.hero-copy,
.service-card,
.benefit-card,
.highlight-card,
.process-card,
.sector-card,
.contact-card,
.note-box,
.reference-cta,
.legal-page,
.project-tile,
.project-detail-intro,
.company-copy,
.company-facts {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(125%);
}

.site-header {
  background: rgba(11, 19, 15, 0.78);
}

.site-nav {
  color: var(--muted);
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.brand-logo {
  filter: drop-shadow(0 8px 22px rgba(97, 210, 132, 0.16));
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: rgba(20, 33, 26, 0.72);
  color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(154, 240, 174, 0.42);
  background: rgba(29, 48, 37, 0.86);
}

.hero-badge,
.signal-strip span,
.partner-callout,
.contact-list a,
.contact-list span,
.project-facts article {
  border-color: var(--line);
  background: rgba(20, 33, 26, 0.66);
}

.hero-panel {
  border: 1px solid rgba(171, 230, 188, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(105, 210, 137, 0.16), transparent 38%),
    linear-gradient(150deg, rgba(20, 34, 27, 0.94), rgba(10, 17, 13, 0.96));
}

.stat-grid article,
.company-facts article {
  border-color: rgba(226, 245, 233, 0.1);
  background: rgba(226, 245, 233, 0.055);
}

.highlight-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(119, 222, 147, 0.14), transparent 34%),
    rgba(17, 27, 22, 0.82);
}

.partner-callout {
  background: rgba(17, 27, 22, 0.78);
}

.card-icon,
.card-label,
.reference-meta {
  background: var(--accent-soft);
  color: var(--accent);
}

.project-tile {
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 240, 174, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.project-tile-copy {
  background: rgba(16, 26, 20, 0.78);
}

.project-chip {
  border: 1px solid rgba(226, 245, 233, 0.16);
  background: rgba(11, 19, 15, 0.82);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.project-detail-intro,
.project-detail-cover,
.gallery-item {
  border: 1px solid var(--line);
}

.project-detail-intro {
  background: rgba(17, 27, 22, 0.82);
}

.reference-placeholder {
  border-color: rgba(226, 245, 233, 0.18);
  background:
    linear-gradient(135deg, rgba(119, 222, 147, 0.12), rgba(17, 27, 22, 0.72));
}

.content-copy a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(20, 33, 26, 0.9);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: inherit; list-style: none; padding: 0; margin: 0; }
:where(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.official-partner-logo { display: inline-flex; background: #fff; padding: 12px 16px; border-radius: 8px; max-width: 100%; }
.official-partner-logo img { display: block; width: auto; height: auto; max-width: 180px; max-height: 85px; object-fit: contain; }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; color: #101815; border: 1px solid #dce5de; border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 650; }
.faq-item p { margin: 12px 0 0; }
/* Keep muted answer text readable against the light FAQ surface. */
.content-copy .faq-item p, .content-copy .faq-item li { color: #65736b; }
.content-copy .faq-item a { color: #28643e; }

.energy-flow { max-width: 760px; margin: 1.5rem auto; }
.energy-flow svg { display: block; width: 100%; height: auto; }
.energy-flow figcaption { text-align: center; font-size: .9rem; }

/* Launch refinements: restrained headline, compact partner panel. */
.hero { align-items: start; }
.hero h1 { font-size: clamp(2.45rem, 5.2vw, 4.5rem); line-height: 1.06; font-weight: 720; max-width: 16ch; }
.hero-panel { align-content: start; grid-auto-rows: max-content; }
.official-partner-logo { display: block; width: fit-content; max-width: 100%; background: transparent; padding: 0; border-radius: 0; margin-top: 1.4rem; }
.official-partner-logo img { display: block; width: 220px; max-width: 100%; height: auto; max-height: none; }
@media (max-width: 680px) { .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); } .hero-panel { gap: 1rem; } }

.smart-home-functions { display:flex; flex-wrap:wrap; gap: .55rem; list-style:none; padding:0; margin:1rem 0 0; }
.smart-home-functions li { border:1px solid currentColor; border-radius:999px; padding:.45rem .8rem; font-size:.9rem; }
.highlight-section { display:grid; gap:1rem; }

.about-portrait { margin: 0 0 1.25rem; max-width: 290px; }
.about-portrait img { display:block; width:100%; height:auto; border-radius:1rem; }
.about-portrait figcaption { color:var(--muted); font-size:.75rem; margin-top:.4rem; }

/* Contact form: responsive fields with readable labels and visible focus. */
.fox-contact-form input:not([type="hidden"]), .fox-contact-form textarea { width: 100%; padding: .75rem; font: inherit; box-sizing: border-box; }
.fox-contact-form label { font-weight: 600; color: var(--text); }
.fox-contact-form p { margin: 0 0 1rem; }
.fox-contact-form a { color: var(--accent); text-decoration: underline; }
.fox-contact-form textarea { resize: vertical; }
