@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

@font-face {
  font-family: "CorporateA";
  src: url("../assets/fonts/CorporateA-Light.woff") format("woff");
}

:root {
  --accent: #3da35d;
  --text: #10172c;
  --background: #f0e6ef;
  --shadow: #10172c;

  --huge: 5rem;
  --big: 3.2rem;
  --medium: 2.7rem;
  --between: 2.2rem;
  --small: 1.7rem;
  --little: 1.4rem;
}

body {
  padding: 0;
  margin: 0;
  background-color: var(--background);
}

p,
span,
a,
li,
button,
input,
textarea {
  font-family: "Outfit";
  color: var(--text);
  font-weight: 300;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "CorporateA", sans-serif;
  color: var(--text);
  margin: 0;
}

h1 {
  font-size: var(--big);
}
h2 {
  font-size: var(--medium);
}
a {
  text-decoration: none;
}
section {
  padding: 2.5rem 5rem 2.5rem 5rem;
}
img {
  object-fit: cover;
}
.reverse {
  flex-direction: row-reverse;
}
.flex {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dark {
  border: 0.1rem solid #10172c80;
  background-color: #10172c04;
  color: var(--text);
}
.halftransparent {
  opacity: 0.65;
}

button {
  background-color: #f0e6ef21;
  border: 0.1rem solid #f0e6ef31;
  border-radius: 0.5rem;
  padding: 1rem 3rem 1rem 3rem;

  font-size: var(--small);
  color: var(--background);
  backdrop-filter: blur(3rem);

  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5rem 1.5rem 5rem;

  background-color: rgba(240, 230, 239, 0.75);
  border-bottom: 0.1rem solid var(--shadow);

  position: sticky;
  top: 0;
  z-index: 999;

  backdrop-filter: blur(1rem);
}

header nav a {
  font-size: var(--little);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

footer {
  border-top: 0.1rem solid var(--shadow);
  display: flex;
  justify-content: space-between;
  padding: 2rem 5rem;
}
footer li {
  font-size: var(--small);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  list-style-type: "- ";
  color: rgba(16, 23, 44, 0.5);
  padding: 0.3rem 0;
}
footer ul {
  margin: 0.5rem;
  padding: 0;
}
footer .flex {
  flex-direction: column;
  align-items: end;
}
footer .flex p {
  font-size: var(--small);
  font-family: "CorporateA", sans-serif;
  margin: 0;
}
footer .flex h3 {
  font-size: var(--between);
  color: var(--text);
}
footer .flex hr {
  color: rgba(240, 248, 255, 0);
  width: 100%;
  margin: 0;
  border: 1px solid var(--text);
  opacity: 0.5;
}
footer .flex span {
  margin-top: -0.5rem;
}
.dropdown {
  position: relative;
}
.submenu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
  z-index: 1000;
  border-radius: 1rem;
}
footer .submenu {
  left: 100%;
  transform: translateX(-30%);
}
#oferta-submenu-icon {
  bottom: -100% !important;
  left: 65% !important;
}
.submenu a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
#copyright {
  opacity: 0.7;
}

/* - problem przy skalowaniu

nav a:not(:first-child)::before {
  content: url("../assets/space.svg");
  display: inline-block;
  margin: 0 2rem;
  vertical-align: middle;
}

*/

.welcome {
  padding: 5rem;
}
.welcome h2,
.welcome p {
  color: var(--background);
  font-size: var(--small);
}
.welcome h2 {
  font-size: var(--medium);
  margin: 1rem 0 2rem 0;
}

.information {
  display: flex;
  justify-content: space-between;
}
.information-image {
  width: 45%;
  height: 30rem;
  border-radius: 1rem;
}
.information div {
  width: 50%;
}
.information-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  min-width: 100%;
}
.information-header h3 {
  font-size: var(--medium);
  width: 100%;
}
.information-header img {
  margin-right: 0.5rem;
}
.information p {
  font-size: var(--small);
  margin: 1rem 0 2rem;

  text-align: justify;
  line-height: 1.5;
}
.extra-data {
  color: var(--accent) !important;
  font-size: var(--medium) !important;
  display: inline-block;
  margin-right: 2rem !important;
}
.extra-data::first-letter {
  font-size: 120%;
}

.shape {
  position: relative;
  width: calc(100% - 10rem);
  background: url("../assets/shapes/photovoltaics.svg") no-repeat center / cover;
  clip-path: polygon(
    0% 100%,
    0% 4%,
    24.17% 7.86%,
    100% 0%,
    100% 100%,
    83.15% 97.69%,
    0% 100%
  );
  -webkit-clip-path: polygon(
    0% 100%,
    0% 4%,
    24.17% 7.86%,
    100% 0%,
    100% 100%,
    83.15% 97.69%,
    0% 100%
  );
  color: var(--background);
  padding: 6rem 5rem;
  overflow: hidden;
}

.shape .content {
  position: relative;
  z-index: 1;
}

.shape h2,
.shape p,
.shape .hexagon {
  color: var(--background);
}

.shape p {
  font-size: var(--small);
  width: 80%;
  max-width: 1200px;
  margin-top: 0.5rem;
  text-align: justify;
}

.tiles {
  display: flex;
  margin-top: 2rem;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.tile {
  display: flex;
  align-items: center;
  background-color: #f0e6efcb;
  border-radius: 1rem;
  padding: 2rem;
  gap: 3rem;
  flex: 1;
  box-sizing: border-box;
}

.tile h4,
.tile p {
  color: var(--text);
  width: 85%;
}
.tile h4 {
  font-size: var(--between);
}
.tile p {
  font-size: var(--small);
}
.tile div {
  margin-bottom: auto;
}
.tile .data {
  color: var(--accent);
  font-size: var(--huge);
  margin: 0 auto 0 auto;
  text-align: center;
  font-family: "CorporateA", sans-serif;
}
#contentCentered {
  text-align: center;
  width: auto;
}
#contentHeader {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.flex-line {
  flex-grow: 1;
  border: 0.1rem solid var(--background);
}

.contact-info p {
  font-size: var(--small);
}
#contact-form-div {
  background: url("../assets/blurred/panels-crop.webp") no-repeat center / cover;
  padding: 3rem;
  box-sizing: border-box;
  width: 40%;
  border-radius: 1rem;
}
#contact-form-div p,
#contact-form-div span {
  color: var(--background);
  text-align: left;
  font-size: var(--small);
}
#contact-form-div span {
  text-transform: uppercase;
  opacity: 0.75;
  font-size: var(--little);
}
#contact-form-div label {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 0.5rem 0;
  gap: 5rem;
  align-items: center;
}
#contact-form-div input,
#contact-form-div textarea {
  background-color: #f0e6ef63;
  border: 0.1rem solid #f0e6ef31;
  border-radius: 0.3rem;
  padding: 1rem 0;

  font-size: var(--little);
  color: var(--background);
  backdrop-filter: blur(3rem);
  width: 100%;

  cursor: pointer;
  text-indent: 1rem;
}
#contact-form-div textarea {
  resize: none;
  height: 10rem;
}
#contact-form-div .flex {
  margin-top: 3rem;
  justify-content: space-between;
}
#contact-info-div {
  display: flex;
  flex-direction: column;
  width: 30%;
}
#contact-info-div h3 {
  font-size: var(--big);
  color: var(--text);
}
#contact-info-div hr {
  border-top: 0.1rem solid var(--text);
  width: 100%;
  margin: 1rem 0;
}
#contact-info-div p {
  font-size: var(--between);
}

#contact-info-div div {
  margin-bottom: 0.5rem;
}
#phone-icon {
  width: 33px;
}
#contact-info-div #contact-image {
  flex-grow: 1;
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 1rem;
}
#contact {
  display: flex;
  align-items: stretch;
  gap: 3rem; /* Optional: spacing between the two sides */
}

.buttons {
  width: 100% !important;
}

/* Header dropdown should open below the toggle link */
header nav .dropdown .submenu {
  top: 100%; /* drop down from the bottom of the toggle */
  bottom: auto; /* cancel the “bottom: 100%” from the global .submenu */
  margin-top: 0.5rem; /* optional spacing */
}

/* Make sure the footer still opens upwards */
footer .dropdown .submenu {
  top: auto; /* cancel any global top */
  bottom: 100%; /* open above in the footer as before */
  margin-bottom: 0.5rem;
}

header nav .dropdown .submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

#offer .content {
  padding: 3rem 0;
}
#icon-menu {
  display: none;
}
#icon-menu img {
  width: 2rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     white-space: nowrap;
     border: 0;
}

h1, h2, h3, h4, h5, h6 { 
font-weight: normal !important; 
}