/* ==========================================================================
   Custom CSS for Kino-Mobilne.pl
   Order: fonts > variables > body > header > nav > sections > features >
          tables > forms > gallery > footer > utility > media queries
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. @font-face — Self-hosted fonts (RODO compliant, no Google Fonts)
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Montserrat-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Inter-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}

/* ---------------------------------------------------------------------------
   2. :root variables — Color scheme: dark green/navy + yellow accents
   --------------------------------------------------------------------------- */
:root {
  --color-bg: #1a1a2e;
  --color-bg-alt: #16213e;
  --color-accent: #e8a817;
  --color-accent-hover: #f0b830;
  --color-text: #e0e0e0;
  --color-text-light: rgba(255, 255, 255, 0.65);
}

/* ---------------------------------------------------------------------------
   3. Body / general overrides
   --------------------------------------------------------------------------- */
body {
  background-color: var(--color-bg) !important;
  background-image: none !important;
  color: var(--color-text);
}

/* Override Stellar's wrapper/main backgrounds */
#wrapper {
  background-color: transparent !important;
  background-image: none !important;
}

#main {
  background-color: var(--color-bg) !important;
  background-image: none !important;
  color: var(--color-text);
}

#main > section {
  background-color: var(--color-bg);
}

/* Ensure all text is light on dark */
p,
li,
td,
th,
dt,
dd,
label {
  color: var(--color-text-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #fff !important;
}

strong {
  color: #fff;
}

body,
input,
select,
textarea {
  font-family: "Montserrat", "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
}

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

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

/* ---------------------------------------------------------------------------
   4. Header / Hero
   --------------------------------------------------------------------------- */
#header {
  background-color: var(--color-bg);
  background-image: url("../../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Override header background gradient from Stellar main.css */
#header {
  background-image: url("../../img/hero-bg.jpg") !important;
  background-color: var(--color-bg) !important;
}

/* Dark overlay on hero */
#header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

#header > * {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   5. Navigation
   --------------------------------------------------------------------------- */
#nav {
  background-color: rgba(26, 26, 46, 0.95);
}

.nav-logo {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo img {
  height: 2rem;
  width: auto;
}

/* ---------------------------------------------------------------------------
   6. Sections
   --------------------------------------------------------------------------- */
#main > section {
  border-top-color: rgba(232, 168, 23, 0.2);
}

/* Spotlight section */
.spotlight .content {
  background-color: var(--color-bg-alt);
}

/* Override Stellar's default purple/pink gradient on section headers */
.major::after {
  background-color: var(--color-accent) !important;
}

/* ---------------------------------------------------------------------------
   7. Features / Icons
   --------------------------------------------------------------------------- */
.features li span.icon {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Override Stellar statistics/icon accent colors */
.icon.style1 {
  color: var(--color-accent);
}
.icon.style2 {
  color: var(--color-accent);
}
.icon.style3 {
  color: var(--color-accent);
}
.icon.style4 {
  color: var(--color-accent);
}
.icon.style5 {
  color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   8. Tables
   --------------------------------------------------------------------------- */
table thead {
  border-bottom-color: var(--color-accent);
}

table tbody tr {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------------
   9. Forms / Inputs
   --------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

select {
  color: #fff !important;
}

select option {
  color: #333;
  background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
}

/* Buttons */
.button {
  border-color: var(--color-accent) !important;
  color: var(--color-accent);
}

.button:hover {
  background-color: rgba(232, 168, 23, 0.1);
}

.button.primary {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

.button.primary:hover {
  background-color: var(--color-accent-hover);
}

/* ---------------------------------------------------------------------------
   10. Gallery
   --------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.gallery-grid a {
  overflow: hidden;
  border-radius: 4px;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

/* ---------------------------------------------------------------------------
   11. Footer / KPO Badge
   --------------------------------------------------------------------------- */
#footer {
  background-color: var(--color-bg-alt);
}

.footer-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  display: inline-block;
  margin: 0 0.5rem;
}

/* KPO Badge */
.kpo-badge {
  background: #fff;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  border-radius: 4px;
}

.kpo-badge img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   12. Utility — Sent confirmation banner
   --------------------------------------------------------------------------- */
#sent-confirmation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: var(--color-bg);
  text-align: center;
  padding: 1rem;
  z-index: 10000;
  font-weight: 700;
}

#sent-confirmation button {
  background: none;
  border: none;
  color: var(--color-bg);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 1rem;
}

/* ---------------------------------------------------------------------------
   13. Media queries
   --------------------------------------------------------------------------- */
@media screen and (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 980px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
