/* Glob Energy — landing (kolory i font jak sklep) */
:root {
  --bg: #191919;
  --bg-elevated: #222;
  --surface: #ffffff;
  --surface-muted: #f3f3f3;
  --text: #2a2a2a;
  --text-muted: #777777;
  --text-on-dark: #ffffff;
  --accent: #fe7140;
  --accent-hover: #e85f30;
  --border: #e0e0e0;
  --header-h: 72px;
  --font: "Ubuntu", sans-serif;
  --radius: 2px;
  --max: 1120px;
  --ease: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-on-dark);
  background: transparent;
  text-decoration: none;
}

.btn:hover {
  color: var(--text-on-dark);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-on-dark);
}

.btn-phone {
  background: transparent;
  border-color: transparent;
  color: var(--text-on-dark);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  text-transform: none;
  letter-spacing: 0;
}

.btn-phone:hover {
  color: var(--accent);
}

.btn-dark {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--text-on-dark);
}

.btn-dark:hover {
  background: #000;
  border-color: #000;
  color: var(--text-on-dark);
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid #2a2a2a;
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand img {
  width: clamp(140px, 28vw, 200px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--text-on-dark);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid #444;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-on-dark);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--text-on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 25, 25, 0.92) 0%, rgba(25, 25, 25, 0.72) 48%, rgba(25, 25, 25, 0.35) 100%),
    linear-gradient(0deg, rgba(25, 25, 25, 0.85) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem 3rem;
  max-width: 36rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  animation: fade-up 0.7s ease both;
}

.hero-brand {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--surface);
  color: var(--text);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Services — lista jak kategorie w sklepie, bez „kartowych” cieni */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.service {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background-color var(--ease);
}

.service:nth-child(3n) {
  border-right: none;
}

.service:nth-child(n + 4) {
  border-bottom: none;
}

.service:hover {
  background: var(--surface-muted);
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service h3 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.section-about {
  background: var(--bg-elevated);
  color: var(--text-on-dark);
  padding: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  align-items: stretch;
  width: min(100%, var(--max));
  padding: 0;
}

.about-media {
  min-height: 320px;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fade-up 0.6s ease 0.1s both;
}

.about-copy h2 {
  color: var(--text-on-dark);
}

.about-tag {
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-top: -0.4rem;
}

.about-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.about-points {
  margin: 0.5rem 0 1.5rem;
}

.about-points li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}

/* CTA */
.section-cta {
  background: var(--accent);
  color: var(--text-on-dark);
  text-align: center;
  padding: 3.5rem 0;
}

.cta-box h2 {
  color: var(--text-on-dark);
  margin-bottom: 0.4rem;
}

.cta-box > p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-cta .btn-accent {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--text);
}

.section-cta .btn-accent:hover {
  background: var(--surface-muted);
  border-color: var(--surface-muted);
  color: var(--text);
}

.cta-meta {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.footer-contact p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-contact strong {
  color: var(--text-on-dark);
  font-weight: 500;
}

.footer-contact a,
.footer-links a {
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-links a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1rem 0;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }

  .service:nth-child(3n) {
    border-right: 1px solid var(--border);
  }

  .service:nth-child(2n) {
    border-right: none;
  }

  .service:nth-child(n + 4) {
    border-bottom: 1px solid var(--border);
  }

  .service:nth-child(n + 5) {
    border-bottom: none;
  }

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

  .about-media {
    max-height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--bg);
    border-bottom: 1px solid #2a2a2a;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #2a2a2a;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .header-actions {
    width: 100%;
    order: 3;
    justify-content: stretch;
    padding-bottom: 0.35rem;
  }

  .header-actions .btn {
    flex: 1;
  }

  .btn-phone {
    border: 1px solid #444;
    justify-content: center;
  }

  .hero {
    min-height: min(70vh, 560px);
    align-items: flex-end;
  }

  .hero-media img {
    object-position: 70% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(25, 25, 25, 0.35) 0%, rgba(25, 25, 25, 0.88) 55%, rgba(25, 25, 25, 0.95) 100%);
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    width: min(100% - 2rem, var(--max));
    padding-block: 2.5rem 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

  .service {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .service:last-child {
    border-bottom: none !important;
  }

  .about-copy {
    padding: 2rem 1.25rem 2.5rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content,
  .about-copy {
    animation: none;
  }
}
