/* assets/css/style.css */

:root {
  --gray-dark:    #575755;
  --gray-light:   #F5F5F5;
  --blue-accent:  #54B5CC;
  --black:        #151515;
  --text-dark:    #151515;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure full‐height background */
html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  /* Full-page background image */
  background: url('/assets/back.png') no-repeat center/cover fixed;
  color: var(--gray-light);
  line-height: 1.6;
}

/* Reusable container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  background-color: var(--gray-light);
  border-bottom: 4px solid var(--blue-accent);
  color: var(--text-dark);
}

.header img {
  height: 50px;
  margin-right: 1rem;
}

/* Navigation */
.nav {
  background-color: var(--black);
  border-radius: 4px;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav a {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  color: var(--gray-light);
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav a:hover,
.nav a.active {
  background-color: var(--blue-accent);
  color: var(--black);
}

/* Main content area */
.content-area {
  background-color: rgba(245,245,245,0.85);
  padding: 2rem;
  border-radius: 8px;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* Headings & paragraphs */
h2 {
  margin-bottom: 1rem;
}

p,
ul {
  margin-bottom: 1rem;
}

ul {
  list-style: disc inside;
}

ul li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  padding: 1rem 0;
  background-color: var(--gray-light);
  border-top: 4px solid var(--blue-accent);
  text-align: center;
  color: var(--text-dark);
}

/* Logos grid for References page */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.brand-item {
  position: relative;
  display: flex;
  align-items: center;      /* wyśrodkuje logo w pionie */
  justify-content: center;  /* wyśrodkuje logo w poziomie */
  text-align: center;
  padding: 1rem;
  background-color: rgba(255,255,255,0.5);
  border-radius: 8px;
  border: 2px solid var(--blue-accent);
  height: 250px;            /* stała wysokość */
  overflow: hidden;
}

.brand-item img {
  max-width: 80%;
  max-height: 100px;
  object-fit: contain;
  z-index: 1;
}

.brand-item p {
  position: absolute;
  bottom: 10px;             /* stała odległość od dołu */
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  color: var(--text-dark);
  margin: 0;
  z-index: 2;
}

