/* =========================
   1) Zmienne i reset
   ========================= */
:root {
  color-scheme: only light;
  --black: #14110f;
  --deep-black: #0b0a08;
  --gold: #f6b21e;
  --gold-dark: #d4a400;
  --sand: #f2e5c2;
  --white: #ffffff;
  --dark-grey: #252525;
  --content-max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--deep-black);
  color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Wspólne kontenery szerokości treści */
.top-bar-inner,
.hero-content,
main > section,
.footer-top {
  width: min(var(--content-max-width), 100%);
  margin-inline: auto;
}

/* =========================
   2) Sekcja hero i nawigacja
   ========================= */
.hero {
  background: linear-gradient(180deg, rgba(77, 75, 74, 0.95), rgba(10, 8, 6, 0.92)),
    url("https://firebasestorage.googleapis.com/v0/b/bw-instal.firebasestorage.app/o/nowa_rozdzielnica_5x18_1_1200x1200.webp?alt=media&token=d34c2aeb-38a7-4fc2-9a46-3eb2f2ea557e")
      center/cover no-repeat;
  padding: 120px 6vw;
  position: relative;
  overflow: hidden;
}

.hero-compact {
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120px;
  /*background: linear-gradient(120deg, transparent 0%, var(--gold) 55%, var(--gold-dark) 100%);*/
  left: -10%;
  pointer-events: none;
}

.hero::before {
  top: -40px;
  transform: skewY(-4deg);
}

.hero::after {
  bottom: -60px;
  transform: skewY(4deg);
}

.top-bar {
  background: rgba(10, 9, 7, 0.95);
  border-bottom: 1px solid rgba(246, 194, 30, 0.2);
  padding: 24px 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.top-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-inline: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 48px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--sand);
  align-items: center;
  justify-self: center;
}

.nav-links a {
  font-size: 1.08rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(246, 194, 30, 0.5);
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--gold);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.top-brand {
  display: grid;
  justify-items: center;
  justify-self: start;
  gap: 6px;
}

.top-brand-icon {
  width: 84px;
  height: 84px;
}

.top-brand-icon img {
  width: 68px;
  height: 68px;
}

.top-brand-name {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

/* Treść hero */
.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.eyebrow2 {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 0;
}

.lead {
  color: var(--sand);
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  background: var(--gold);
  color: var(--black);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--gold-dark);
}

.nav-phone-btn {
  justify-self: end;
  color: var(--black);
  font-weight: 800;
  font-size: 1.24rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.hero-card {
  background: rgba(20, 17, 15, 0.85);
  border: 1px solid rgba(246, 194, 30, 0.3);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.hero-card h2 {
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-hero-card {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 50px; 
  font-weight: 600;
}

.phone-icon {
  display: inline-flex;
  width: 1.2em;       
  height: 1.2em;
  color: var(--gold);
}

.phone-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.phone-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-card li::before {
  content: "•";
  color: var(--gold);
  margin-right: 10px;
}

.hero-content > .hero-card {
  margin-inline: auto;
  width: min(100%, 520px);
}

/* Warianty hero dla podstron */
.hero-title-only {
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-content-centered {
  justify-items: center;
}

.hero-text-centered {
  text-align: center;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
  justify-content: center;
  align-items: center;
  margin: 36px auto;
  padding: 12px 28px;
}

.hero-services p {
  display: inline-flex;
  gap: 12px;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.7vw, 1.8rem);
  line-height: 1.2;
  color: var(--sand);
}

.hero-text-centered .cta-row {
  justify-content: center;
}

/* =========================
   3) Układ głównej treści
   ========================= */
main {
  padding: 72px 6vw 80px;
  background:#f1f0ed; /*var(--black);*/
}
.icon {
  width: 32px; /* dopasuj wielkość do tekstu */
  height: auto;
  margin-right: 10px; /* odstęp od napisu */
  vertical-align: middle; /* wyrównanie do środka wysokości tekstu */
}
.highlights {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin-bottom: 0;
}

@media (min-width: 901px) {
  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fi-sr-plug-cable {
  font-size: 70px;    /* Wielkość ikonki */
  color: var(--dark-grey); /* Twój kolor złoty */
  vertical-align: middle;
  text-align: center;
  margin-right: 8px;  /* Odstęp od tekstu */
}
.fi-sr-bolt {
  font-size: 70px;    /* Wielkość ikonki */
  color: var(--dark-grey); /* Twój kolor złoty */
  vertical-align: middle;
  text-align: center;
  margin-right: 8px;  /* Odstęp od tekstu */
}
.fi-sr-shield-check {
  font-size: 70px;    /* Wielkość ikonki */
  color: var(--dark-grey); /* Twój kolor złoty */
  vertical-align: middle;
  text-align: center;
  margin-right: 8px;  /* Odstęp od tekstu */
}
.highlight {
  padding: 24px;
  background: var(--gold);/*rgba(35, 33, 33, 0.85);*/
 /* border: 1px solid rgba(246, 194, 30, 0.2);*/
  border-radius: 16px;
}

.highlight h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 12px;
}

.highlight-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.home-sections {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
}

.home-section-card {
  background: transparent;/* rgba(26, 25, 25, 0.8);*/
  /*border: 1px solid rgba(246, 194, 30, 0.2);*/
  /*border-radius: 16px;*/
  padding: 24px;
  display: grid;
  gap: 20px;
}

.home-section-card-split {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
}

.home-section-split-content {
  display: grid;
  gap: 18px;
}

.home-section-split-media img {
  width: 100%;
  height: clamp(240px, 28vw, 340px);
  object-fit: cover;
  border-radius: 40px;
  /*border: 1px solid rgba(246, 194, 30, 0.28);*/
}
.image-caption {
  color: #000000;      /* Czarny kolor tekstu */
  font-style: italic;  /* Kursywa */
  text-align: center;
  font-size: 0.9em;    /* Opcjonalnie: nieco mniejsza czcionka dla lepszego wyglądu */
  display: block;      /* Upewnia się, że tekst trafi pod obrazek */
}

.home-section-heading {
  display: grid;
  gap: 8px;
}

.home-section-heading h2 {
  display: flex;
  align-items: center;
  color: var(--deep-black);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.home-section-intro {
  color: var(--deep-black);
  font-weight: 600;
}

.home-section-content {
  display: grid;
  gap: 18px;
}

.home-section-content > p {
  font-weight: 450;
  color: var(--dark-grey);
}

.home-gallery {
  display: grid;
  gap: 12px;
}

.home-gallery-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-gallery-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-gallery img {
  width: 100%;
  height: clamp(200px, 25vw, 280px);
  object-fit: cover;
  border-radius: 12px;
  /*border: 1px solid rgba(246, 194, 30, 0.28);*/
}

.home-service-highlights {
  align-items: stretch;
}

.service-highlight-card {
  background: var(--gold);/*rgba(35, 33, 33, 0.85);*/
  /*border: 1px solid rgba(246, 194, 30, 0.28);*/
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 10px;
}

.service-highlight-icon {
  font-size: 2rem;
  line-height: 1;
}

.service-highlight-card p {
  color: var(--white);
  font-weight: 500;
  margin: 0;
}

.home-section-actions {
  display: flex;
  justify-content: flex-start;
}

/* =========================
   4) Formularze i kontakt
   ========================= */
.form-section {
  margin-top: 24px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact-section {
  color : var(--black);
  margin-top: 72px;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-details,
.contact-section > .service-form {
  width: 100%;
}

.contact-card
{
  background:  rgba(43, 42, 42, 0.9);
  /*border: 1px solid rgba(246, 194, 30, 0.2);*/
  border-radius: 16px;
  padding: 24px;
}
.map-card {
  background: transparent; /*rgba(0, 0, 0, 0.9);*/
  /*border: 1px solid rgba(246, 194, 30, 0.2);*/
  border-radius: 16px;
  padding: 24px;
}

.contact-card h2,
.map-card h3 {
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  color: var(--sand);
}

.contact-list span {
  display: block;
}

.contact-list a {
  color: var(--gold);
  font-weight: 600;
}

.map-embed {
  width: 100%;
  min-height: 260px;
  border: 0;
  /*border-radius: 12px;*/
}

.form-intro h2 {
  color: var(--gold);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
}

.form-intro p {
  color: var(--deep-black);
}

.service-form {
  background: rgba(255, 255, 255, 0.9);
  /*border: 1px solid rgba(246, 194, 30, 0.25);*/
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.service-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.service-form input,
.service-form textarea {
  background: rgb(255, 255, 255);
  color: var(--black);
  border: 1px solid rgb(0, 0, 0);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
}
.service-form input::placeholder,
.service-form textarea::placeholder {
  color: #6b6b6b;
}

.service-form input:focus,
.service-form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

.contact-section > .service-form {
  align-self: start;
}

.contact-section > .map-card {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--sand);
  font-size: 0.9rem;
}

/* =========================
   5) Stopka
   ========================= */
.footer {
  background: #0a0907;
  color: var(--sand);
 /* border-top: 1px solid rgba(246, 194, 30, 0.2);*/
}

.footer-top {
  padding: 50px 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: center;
}

.footer-bulb {
  display: flex;
  justify-content: center;
}

.bulb-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulb-circle img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.top-brand-icon.bulb-circle {
  width: 84px;
  height: 84px;
}

.top-brand-icon.bulb-circle img {
  width: 68px;
  height: 68px;
}

.footer-contact,
.footer-call {
  display: grid;
  gap: 8px;
}

.footer-contact h3,
.footer-call h3 {
  color: var(--gold);
}

.footer-contact a {
  color: var(--gold);
}

.footer-call p {
  color: var(--sand);
  max-width: 34ch;
}

.footer-call .btn {
  width: fit-content;
  color: var(--black);
}

.footer-call .footer-call-number {
  color: #000;
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 194, 30, 0.2);
  padding: 24px 0;
}

.footer-bottom-content {
  width: min(var(--content-max-width), 100%);
  margin-inline: auto;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(242, 229, 194, 0.85);
}

.footer a {
  color: var(--gold);
  display: block;
}

/* =========================
   6) Podstrona usług
   ========================= */
.services-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  align-items: start;
}

.services-buttons {
  display: grid;
  gap: 10px;
}

.service-tab {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 0px solid rgba(246, 194, 30, 0.35);
  background: rgba(165, 164, 164, 0.8);
  color: var(--black);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  transition: background 1s ease, color 1s ease, border-color 0.2s ease;
}

.service-tab:hover,
.service-tab.is-active {
  background: rgba(246, 194, 30, 1);
  color: var(--white);
  border-color: rgba(246, 194, 30, 0.8);
}

.service-detail {
  background: rgba(255, 255, 255, 0.04);
 /* border: 1px solid rgba(246, 194, 30, 0.25);*/
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 20px;
}

.service-detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  /*height: clamp(220px, 30vw, 360px);*/
  object-fit: cover;
  border-radius: 40px;
}

.service-detail h2 {
  color: var(--gold);
  margin-bottom: 10px;
}

.service-detail p {
  color: var(--black);
  font-weight: 500;
}

/* =========================
   7) Podstrona realizacji
   ========================= */
.projects-section {
  display: grid;
  gap: 28px;
}

.section-heading {
  width: 100%;
  display: grid;
  gap: 12px;

}

.section-heading h2 {
  color: var(--gold);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  text-align: center;
  
}

.section-heading p {
  color: var(--black);
  font-weight: 500;
  text-align: center;
}

.projects-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  background: rgba(6, 6, 6, 0.8);
 /* border: 1px solid rgba(246, 194, 30, 0.25);*/
  border-radius: 16px;
  overflow: hidden;
  display: grid;
}

.project-card img {
  margin: 5% auto 0 auto;
  width: 90%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.project-card div {
  padding: 18px;
}

.project-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.project-card p {
  color: var(--sand);
}

/* =========================
   8) Responsywność
   ========================= */
@media (max-width: 1200px) {
  :root {
    --content-max-width: 100vw;
  }
}

@media (max-width: 900px) {
  .home-section-card-split,
  .home-gallery-two,
  .home-gallery-three,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-section > .map-card {
    grid-column: auto;
  }

  .services-layout,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-phone {
    gap: 8px;
  }

  .phone-number {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .top-bar {
    padding: 8px 0;
  }

  .top-bar-inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding-inline: 10px;
  }

  .top-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    display: grid;
    justify-items: center;
    gap: 4px;
  }

  .top-brand-icon {
    width: 48px;
    height: 48px;
  }

  .top-brand-icon img {
    width: 36px;
    height: 36px;
  }

  .top-brand-name {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 1.4px;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    padding: 8px;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(246, 194, 30, 0.2);
    background: rgba(20, 17, 15, 0.92);
  }

  .top-bar-inner.menu-open .nav-links {
    display: flex;
  }

  .nav-phone-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    font-size: 0.95rem;
    line-height: 1;
    padding: 10px 12px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text-centered .cta-row {
    align-items: center;
  }
  .footer-top {
    text-align: center;
    justify-items: center;
  }

  .footer-bulb {
    justify-content: center;
  }

  .footer-contact,
  .footer-call {
    justify-items: center;
  }

  .footer-call p {
    max-width: 30ch;
  }

  .footer-call .btn {
    margin-inline: auto;
  }
}
