/* Import Google Fonts: Outfit (Regular) and Inter (Regular, Bold, Italic Regular, Italic Bold) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400&family=Inter:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #3f3f46;
  background-color: #fafaf9;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 1rem auto;
  padding: 0 1rem;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 12-column grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

[class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.col-content {
  padding: 1rem;
}

/* Base column widths (mobile-first, default to full width) */
.col-12 {
  width: 100%;
}

/* Breakpoint: sm (≥576px) */
@media (min-width: 576px) {
  .col-sm-6 { width: 50%; }
  .col-sm-12 { width: 100%; }
}

/* Breakpoint: md (≥768px) */
@media (min-width: 768px) {
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}

/* Breakpoint: lg (≥992px) */
@media (min-width: 992px) {
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-6 { width: 50%; }
  .col-lg-12 { width: 100%; }
}

/* Breakpoint: xl (≥1200px) */
@media (min-width: 1200px) {
  .col-xl-1 { width: 8.3333%; }
  .col-xl-2 { width: 16.6667%; }
  .col-xl-3 { width: 25%; }
  .col-xl-4 { width: 33.3333%; }
  .col-xl-6 { width: 50%; }
  .col-xl-12 { width: 100%; }
}

/* Responsive padding for smaller screens */
@media (max-width: 576px) {
  .col-content {
    padding: 0.75rem;
  }
}

/* Typography: Headings (Outfit Regular) */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #18181b;
  transition: color 0.3s ease;
}

/* Responsive font sizes for headings */
h1 {
  font-size: min(3rem, 5vw);
}
h2 {
  font-size: min(2.25rem, 4vw);
}
h3 {
  font-size: min(1.75rem, 3.5vw);
}
h4 {
  font-size: min(1.5rem, 3vw);
}
h5 {
  font-size: min(1.25rem, 2.5vw);
}
h6 {
  font-size: min(1.125rem, 2vw);
}

/* Typography: Paragraphs and text (Inter) */
p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: min(1rem, 2.5vw);
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #3f3f46;
  transition: color 0.3s ease;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

em strong, strong em {
  font-weight: 700;
  font-style: italic;
}

/* Links */
a {
  color: #e11d48;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a {
  color: #18181b;
  text-decoration: none;
}

a:hover {
  color: #be123c;
}

/* Responsive font adjustments for smaller screens */
@media (max-width: 576px) {
  h1 { font-size: min(2.5rem, 6vw); }
  h2 { font-size: min(2rem, 5vw); }
  h3 { font-size: min(1.5rem, 4vw); }
  h4 { font-size: min(1.25rem, 3.5vw); }
  h5 { font-size: min(1.125rem, 3vw); }
  h6 { font-size: min(1rem, 2.5vw); }
  p { font-size: min(0.875rem, 2.5vw); }
}

/* Sekcja Hero */
.hero-section {
    height: calc(100dvh - (var(--logo-size, 70px) + 20px));
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: height 0.3s ease;
}

.site-header.sticky + .site-main .hero-section {
    height: calc(100dvh - ((var(--logo-size, 70px) / 2) + 20px));
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 10;
    opacity: 0.5;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.hero-top {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 5vh; /* 5% od góry */
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: min(3rem, 7vw);
    color: #18181b;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 5vh; /* 5% od dołu */
}

.hero-subtext {
    font-family: 'Inter', sans-serif;
    font-size: min(1.125rem, 3vw);
    color: #3f3f46;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-section {
    background-color: <?php echo esc_attr(get_option('adam_g_hero_settings_background_color', '')); ?>;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-button {
    background-color: #ffffff;
    border: 2px solid #18181b;
    color: #18181b;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: min(1rem, 2.5vw);
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.hero-button:hover {
    background-color: #18181b;
    color: #ffffff;
}

/* Responsywność */
@media (max-width: 576px) {
    .hero-section {
        height: calc(100dvh - (var(--logo-size, 70px) + 20px));
    }

    .site-header.sticky + .site-main .hero-section {
        height: calc(100dvh - ((var(--logo-size, 70px) / 2) + 20px));
    }

    .hero-title {
        font-size: min(2rem, 6vw);
    }

    .hero-subtext {
        font-size: min(1rem, 3.5vw);
        margin-bottom: 1rem;
    }

    .hero-button {
        font-size: min(0.875rem, 3vw);
        padding: 0.5rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem; /* Taka sama odległość w pionie jak w poziomie */
    }
}