/*
Theme Name: WPM
Theme URI: https://okmar.fbads.pl
Author: WP Media Team
Author URI: https://okmar.fbads.pl
Description: Motyw landing page OKMAR — stolarka otworowa. Konwersja z React/Tailwind do natywnego WordPress.
Version: 1.0.0
Text Domain: wpm
*/

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors — HSL values from original design system */
  --background: 0 0% 100%;
  --foreground: 0 0% 16.5%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 16.5%;
  --primary: 207 100% 16%;
  --primary-foreground: 0 0% 100%;
  --secondary: 226 52% 26%;
  --secondary-foreground: 0 0% 100%;
  --accent: 354 73% 44%;
  --accent-foreground: 0 0% 100%;
  --muted: 220 20% 97%;
  --muted-foreground: 0 0% 45%;
  --destructive: 354 73% 44%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 207 100% 16%;
  --radius: 0px;
  --footer-bg: 210 100% 10%;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   UTILITY / COMPONENT CLASSES
   ========================================= */
.okmar-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

.okmar-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.okmar-heading {
  color: hsl(var(--primary));
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.okmar-red-line {
  display: block;
  width: 40px;
  height: 3px;
  background-color: hsl(var(--accent));
  margin-top: 16px;
}

.okmar-red-line--center {
  margin-left: auto;
  margin-right: auto;
}

.okmar-cta {
  display: inline-block;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  border-radius: 3px;
  text-align: center;
}

.okmar-cta:hover {
  opacity: 0.9;
}

.okmar-body {
  font-size: 15px;
  line-height: 1.7;
  color: hsl(var(--foreground));
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-animate {
  opacity: 0;
  transition: opacity 0.1s;
}

.scroll-animate.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: hsl(var(--background));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.navbar__logo {
  height: 44px;
  width: auto;
  transition: filter 0.3s ease, drop-shadow 0.3s ease;
  /* Subtle shadow for readability on dark hero background */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.navbar.scrolled .navbar__logo {
  filter: none;
}

.navbar__cta {
  font-size: 12px;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.55);
}

.hero__content {
  position: relative;
  padding-top: 112px;
  padding-bottom: 128px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero__subtitle {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 3px;
  color: hsla(var(--primary-foreground) / 0.7);
  margin-bottom: 16px;
}

.hero__title {
  color: hsl(var(--primary-foreground));
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}

.hero__tagline {
  color: hsl(var(--primary-foreground));
  font-size: 28px;
  font-weight: 300;
  margin-top: 4px;
}

.hero__line {
  display: block;
  width: 40px;
  height: 3px;
  background-color: hsl(var(--accent));
  margin-top: 20px;
  margin-bottom: 24px;
}

.hero__desc {
  color: hsla(var(--primary-foreground) / 0.85);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}

/* Hero Form */
.hero-form {
  background: hsl(var(--background));
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  max-width: 448px;
  width: 100%;
}

.hero-form__title {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.hero-form__line {
  display: block;
  width: 32px;
  height: 3px;
  background-color: hsl(var(--accent));
  margin-top: -4px;
  margin-bottom: 8px;
}

.hero-form__fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-form label,
.leadform__right label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
}

.hero-form input[type="tel"],
.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form select,
.leadform__right input[type="tel"],
.leadform__right input[type="text"],
.leadform__right input[type="email"],
.leadform__right select {
  width: 100%;
  border: 1px solid hsl(var(--border));
  padding: 12px 16px;
  font-size: 15px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.hero-form input:focus,
.hero-form select:focus,
.leadform__right input:focus,
.leadform__right select:focus {
  border-color: hsl(var(--primary));
}

.hero-form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-form__checkboxes legend {
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}

.hero-form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: hsl(var(--foreground));
}

.hero-form__checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: hsl(var(--accent));
}

/* File upload */
.hero-form__upload {
  border: 1px dashed hsl(var(--border));
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.hero-form__upload:hover {
  border-color: hsl(var(--primary));
}

.hero-form__upload-icon {
  width: 20px;
  height: 20px;
  color: hsl(var(--muted-foreground));
}

.hero-form__upload-text {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  text-align: center;
}

.hero-form__file-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-form__file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
  padding: 6px 12px;
}

.hero-form__file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 8px;
}

.hero-form__file-remove {
  background: none;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-form__file-remove:hover {
  color: hsl(var(--foreground));
}

.hero-form__submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.hero-form__note {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  text-align: center;
}

/* Thank-you state */
.hero-form__success {
  text-align: center;
  padding: 40px 0;
}

.hero-form__success-icon {
  color: hsl(var(--accent));
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
}

.hero-form__success h3 {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

/* =========================================
   TRUST BAR
   ========================================= */
.trustbar {
  background-color: hsl(var(--muted));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.trustbar__grid {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.trustbar__value {
  color: hsl(var(--primary));
  font-size: 32px;
  font-weight: 700;
}

.trustbar__label {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  margin-top: 4px;
}

/* =========================================
   WHY SECTION
   ========================================= */
.why {
  background-color: hsl(var(--background));
}

.why__heading-wrapper {
  text-align: center;
  margin-bottom: 56px;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.why__card {
  text-align: center;
}

.why__icon {
  color: hsl(var(--primary));
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
}

.why__card h3 {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

/* =========================================
   OFFER SECTION
   ========================================= */
.offer {
  background-color: hsl(var(--muted));
}

.offer__heading-wrapper {
  text-align: center;
  margin-bottom: 56px;
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.offer__item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.offer__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offer__item:hover img {
  transform: scale(1.02);
}

.offer__item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.offer__item:hover .offer__item-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.offer__item-label {
  color: hsl(var(--primary-foreground));
  text-transform: uppercase;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
}

/* =========================================
   STEPS SECTION
   ========================================= */
.steps {
  background-color: hsl(var(--background));
}

.steps__heading-wrapper {
  text-align: center;
  margin-bottom: 56px;
}

.steps__list {
  max-width: 576px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.steps__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.steps__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border-radius: 50%;
}

.steps__item h3 {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 18px;
}

.steps__item p {
  margin-top: 4px;
}

/* =========================================
   LEAD FORM SECTION
   ========================================= */
.leadform {
  background-color: hsl(var(--primary));
  padding-top: 80px;
  padding-bottom: 80px;
}

.leadform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
}

.leadform__left h2 {
  color: hsl(var(--primary-foreground));
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
}

.leadform__line {
  display: block;
  width: 40px;
  height: 3px;
  background-color: hsl(var(--accent));
  margin-top: 16px;
  margin-bottom: 24px;
}

.leadform__desc {
  color: hsla(var(--primary-foreground) / 0.8);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 512px;
}

.leadform__trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.leadform__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leadform__trust-icon {
  color: hsl(var(--accent));
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.leadform__trust-text {
  color: hsla(var(--primary-foreground) / 0.9);
  font-size: 15px;
}

/* Lead form - right side */
.leadform__right {
  background: hsl(var(--background));
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.leadform__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leadform__form input[type="text"],
.leadform__form input[type="tel"],
.leadform__form input[type="email"],
.leadform__form select {
  width: 100%;
  border: 1px solid hsl(var(--border));
  padding: 14px 16px;
  font-size: 15px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.leadform__form input:focus,
.leadform__form select:focus {
  border-color: hsl(var(--primary));
}

.leadform__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.leadform__submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

.leadform__note {
  color: hsl(var(--muted-foreground));
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
}

/* Lead form success */
.leadform__success {
  text-align: center;
  padding: 40px 0;
}

.leadform__success-icon {
  color: hsl(var(--accent));
  margin: 0 auto 16px;
  width: 48px;
  height: 48px;
}

.leadform__success h3 {
  color: hsl(var(--primary));
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

/* =========================================
   THANK YOU PAGE
   ========================================= */
.thankyou-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.thankyou-hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}

.thankyou-card {
  background: hsl(var(--background));
  padding: 48px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 560px;
  width: 100%;
  text-align: center;
}

/* Animated checkmark */
@keyframes checkPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.thankyou-card__icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: checkPop 0.5s ease-out 0.2s both;
}

.thankyou-card__icon {
  width: 36px;
  height: 36px;
  color: hsl(var(--primary-foreground));
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: checkDraw 0.4s ease-out 0.6s forwards;
}

.thankyou-card__title {
  color: hsl(var(--primary));
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 16px;
}

.thankyou-card__desc {
  color: hsl(var(--foreground));
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.thankyou-card__desc strong {
  color: hsl(var(--primary));
}

.thankyou-card__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  margin-bottom: 32px;
  padding: 24px;
  background: hsl(var(--muted));
  border-left: 3px solid hsl(var(--accent));
}

.thankyou-card__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.thankyou-card__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
}

.thankyou-card__step strong {
  display: block;
  color: hsl(var(--primary));
  font-size: 15px;
  margin-bottom: 2px;
}

.thankyou-card__step p {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  line-height: 1.5;
}

.thankyou-card__cta {
  display: inline-block;
  margin-bottom: 16px;
  padding: 14px 36px;
  font-size: 14px;
}

.thankyou-card__contact {
  color: hsl(var(--muted-foreground));
  font-size: 14px;
}

.thankyou-card__contact a {
  color: hsl(var(--primary));
  transition: opacity 0.2s;
}

.thankyou-card__contact a:hover {
  opacity: 0.7;
}

/* Force solid navbar on thank you page */
.page-template-page-dziekujemy .navbar {
  background-color: hsl(var(--background));
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: hsl(var(--footer-bg));
  color: hsl(var(--primary-foreground));
}

.site-footer__inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.site-footer__brand {
  margin-bottom: 16px;
}

.site-footer__logo {
  height: 48px;
  width: auto;
}

.site-footer__desc {
  color: hsla(var(--primary-foreground) / 0.7);
  font-size: 14px;
  line-height: 1.6;
  max-width: 384px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: hsla(var(--primary-foreground) / 0.8);
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__contact-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.site-footer__bottom {
  border-top: 1px solid hsla(var(--primary-foreground) / 0.1);
}

.site-footer__bottom-inner {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: hsla(var(--primary-foreground) / 0.5);
}

/* =========================================
   SVG ICONS (inline)
   ========================================= */
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* =========================================
   RESPONSIVE — md breakpoint (768px)
   ========================================= */
@media (min-width: 768px) {
  .navbar__inner {
    height: 80px;
  }

  .navbar__logo {
    height: 52px;
  }

  .navbar__cta {
    font-size: 14px;
  }

  .okmar-section {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .okmar-heading {
    font-size: 36px;
  }

  .hero__title {
    font-size: 60px;
  }

  .hero__tagline {
    font-size: 36px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .hero-form {
    margin-left: auto;
    padding: 32px;
  }

  .hero__content {
    padding-top: 128px;
    padding-bottom: 128px;
  }

  .trustbar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trustbar__value {
    font-size: 40px;
  }

  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why__card {
    text-align: left;
  }

  .why__icon {
    margin: 0 0 16px;
  }

  .offer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .offer__item-label {
    font-size: 24px;
  }

  .leadform__grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
  }

  .leadform__left h2 {
    font-size: 28px;
  }

  .leadform__right {
    padding: 32px;
  }

  .thankyou-card {
    padding: 56px 48px;
  }

  .thankyou-card__title {
    font-size: 32px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================
   WORDPRESS REQUIRED
   ========================================= */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute!important; height: 1px; width: 1px; overflow: hidden; }
