/*
Theme Name: Lukasz Budek
Theme URI: https://lukasbudek.com
Description: Custom child theme for Lukasz Budek renovation company
Author: Lukasz Budek
Template: astra
Version: 1.0.0
Text Domain: lukasbudek
*/

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --color-primary: #0096C7;
  --color-secondary: #023E8A;
  --color-accent: #FFBE0B;
  --color-text: #403F4B;
  --color-text-light: #666;
  --color-bg-light: #f0f7fb;
  --color-bg-gray: #f8f9fa;
  --color-white: #FFFFFF;
  --color-dark: #1a1a1a;
  --font-main: 'Outfit', sans-serif;
  --container-width: 1200px;
  --section-padding: 80px 0;
}

/* ===== RESET & BASE ===== */
body {
  font-family: var(--font-main) !important;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main) !important;
  color: var(--color-secondary);
}

h1 { font-size: 52px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 38px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 600; }

a { color: var(--color-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--color-secondary); }

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HIDE ASTRA DEFAULTS ===== */
.ast-header-break-point .ast-mobile-header-wrap,
.main-header-bar,
.ast-above-header,
.site-footer,
.ast-footer-overlay,
#ast-scroll-top { display: none !important; }

.site-content { margin-top: 0 !important; }

/* ===== SECTION HELPERS ===== */
.section-label {
  color: var(--color-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 8px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--color-secondary); color: white !important; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--color-accent);
  color: var(--color-secondary) !important;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-secondary) !important; }

.btn-yellow {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-secondary) !important;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
}
.btn-yellow:hover { background: #e6ab00; }

/* ===== TOP BAR ===== */
.lb-top-bar {
  background: var(--color-primary);
  color: white;
  padding: 10px 0;
  font-size: 14px;
}
.lb-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lb-top-bar a { color: white !important; }
.lb-top-bar .contact-info { display: flex; gap: 24px; align-items: center; }
.lb-top-bar .social a {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.3s;
}
.lb-top-bar .social a:hover { background: rgba(255,255,255,0.2); }

/* ===== HEADER ===== */
.lb-header {
  background: white;
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.lb-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lb-logo { display: flex; align-items: center; gap: 12px; }
.lb-logo img { width: 56px; height: 56px; border-radius: 50%; }
.lb-logo-text { font-size: 22px; font-weight: 700; color: var(--color-secondary); }

.lb-nav { display: flex; gap: 28px; align-items: center; }
.lb-nav a {
  color: var(--color-text) !important;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.lb-nav a:hover, .lb-nav a.active { color: var(--color-primary) !important; }
.lb-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
}

.lb-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.lb-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: 75% center;
  background-repeat: no-repeat;
}
.lb-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0.3) 65%, transparent 80%);
  z-index: 1;
}
.lb-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.lb-hero-content {
  max-width: 520px;
}
.lb-hero-label {
  color: var(--color-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  margin-bottom: 16px;
}
.lb-hero h1 { margin-bottom: 20px; }
.lb-hero p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.lb-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== CONTACT BAR ===== */
.lb-contact-bar {
  background: var(--color-primary);
  color: white;
  padding: 24px 0;
}
.lb-contact-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lb-contact-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lb-contact-bar-icon {
  width: 50px; height: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-contact-bar-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 2px;
}
.lb-contact-bar-value {
  color: white !important;
  font-size: 18px;
  font-weight: 600;
}
.lb-contact-bar-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
}
.lb-contact-bar-cta {
  background: var(--color-secondary);
  padding: 16px 32px;
  border-radius: 4px;
  text-align: center;
}
.lb-contact-bar-cta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
}
.lb-contact-bar-cta-text {
  color: var(--color-accent) !important;
  font-weight: 700;
  font-size: 16px;
}

/* ===== MARQUEE ===== */
.lb-marquee {
  background: var(--color-secondary);
  color: white;
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}
.lb-marquee-inner {
  display: inline-block;
  animation: lb-scroll 25s linear infinite;
}
@keyframes lb-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.lb-marquee span { margin: 0 20px; }
.lb-marquee .dot { color: var(--color-accent); }

/* ===== SERVICES GRID ===== */
.lb-services { padding: var(--section-padding); text-align: center; }
.lb-services .section-desc { margin: 0 auto 50px; }
.lb-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.lb-service-card {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
  border: 1px solid #eee;
}
.lb-service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.lb-service-card .icon {
  height: 200px;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-service-card .icon svg { width: 60px; height: 60px; stroke: var(--color-primary); fill: none; stroke-width: 1.5; }
.lb-service-card h3 {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ABOUT ===== */
.lb-about { padding: var(--section-padding); }
.lb-about .container { display: flex; gap: 60px; align-items: center; }
.lb-about-content { flex: 1; }
.lb-about-content .btn-primary { margin-top: 24px; }
.lb-about-images { flex: 1; position: relative; }
.lb-about-images img { border-radius: 8px; width: 100%; height: 400px; object-fit: cover; }
.lb-promo-badge {
  position: absolute;
  top: 20px; right: -20px;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 20px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  border-radius: 8px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ===== STATS ===== */
.lb-stats {
  padding: 60px 0;
  background: var(--color-bg-gray);
}
.lb-stats .container {
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.lb-stat h2, .lb-stat-number { font-size: 48px; color: var(--color-primary); font-weight: 700; margin-bottom: 8px; display: block; font-family: var(--font-main); }
.lb-stat p { font-size: 13px; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-light); }

/* ===== PORTFOLIO PREVIEW ===== */
.lb-portfolio { padding: var(--section-padding); }
.lb-portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.lb-portfolio-tabs { display: flex; gap: 12px; flex-wrap: wrap; }
.lb-portfolio-tabs button {
  padding: 8px 20px;
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 500;
  background: white;
  transition: all 0.3s;
}
.lb-portfolio-tabs button.active,
.lb-portfolio-tabs button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.lb-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lb-portfolio-grid .portfolio-item { overflow: hidden; border-radius: 8px; }
.lb-portfolio-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}
.lb-portfolio-grid img:hover { transform: scale(1.05); }

/* ===== CTA BANNER ===== */
.lb-cta-banner {
  background: var(--color-secondary);
  color: white;
  padding: 50px 0;
}
.lb-cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.lb-cta-banner h2 { font-size: 32px; color: white; margin-bottom: 8px; }
.lb-cta-banner p { font-size: 15px; opacity: 0.8; }

/* ===== CONTACT PREVIEW ===== */
.lb-contact-preview {
  padding: var(--section-padding);
  background: var(--color-bg-light);
}
.lb-contact-preview .container { display: flex; gap: 60px; align-items: center; }
.lb-contact-preview .images { flex: 1; display: flex; gap: 16px; }
.lb-contact-preview .images img { width: 48%; border-radius: 8px; height: 300px; object-fit: cover; }
.lb-contact-preview .content { flex: 1; }
.lb-contact-preview .content h2 { margin-bottom: 16px; }
.lb-contact-preview .content p { color: var(--color-text-light); margin-bottom: 24px; }

/* ===== PAGE HERO ===== */
.lb-page-hero {
  background: var(--color-secondary);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.lb-page-hero h1 { color: white; font-size: 42px; margin-bottom: 8px; }
.lb-page-hero .breadcrumb { color: rgba(255,255,255,0.7); font-size: 14px; }
.lb-page-hero .breadcrumb a { color: var(--color-accent) !important; }

/* ===== SERVICES PAGE ===== */
.lb-service-section { padding: 60px 0; }
.lb-service-section:nth-child(even) { background: var(--color-bg-gray); }
.lb-service-section .container { display: flex; gap: 60px; align-items: center; }
.lb-service-section:nth-child(even) .container { flex-direction: row-reverse; }
.lb-service-content { flex: 1; }
.lb-service-content h2 { font-size: 32px; margin-bottom: 12px; }
.lb-service-content p { color: var(--color-text-light); line-height: 1.8; }
.lb-service-image { flex: 1; }
.lb-service-image img { width: 100%; height: 350px; object-fit: cover; border-radius: 8px; }

/* ===== GALLERY PAGE ===== */
.lb-gallery { padding: var(--section-padding); }
.lb-gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.lb-gallery-tabs button {
  padding: 10px 24px;
  font-size: 14px;
  font-family: var(--font-main);
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 500;
  background: white;
  color: var(--color-text);
  transition: all 0.3s;
}
.lb-gallery-tabs button.active,
.lb-gallery-tabs button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.lb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lb-gallery-grid .gallery-item {
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}
.lb-gallery-grid .gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s;
}
.lb-gallery-grid .gallery-item:hover img { transform: scale(1.08); }
.lb-gallery-grid .gallery-item.hidden { display: none; }

/* Lightbox */
.lb-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lb-lightbox.active { display: flex; }
.lb-lightbox img { max-width: 90%; max-height: 90vh; border-radius: 4px; }
.lb-lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
}
.lb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 48px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 20px;
}
.lb-lightbox-prev { left: 10px; }
.lb-lightbox-next { right: 10px; }

/* ===== CONTACT PAGE ===== */
.lb-contact { padding: var(--section-padding); }
.lb-contact .container { display: flex; gap: 60px; }
.lb-contact-form { flex: 1; }
.lb-contact-details { flex: 1; }
.lb-contact-details h3 { margin-bottom: 20px; }
.lb-contact-details .detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}
.lb-contact-details .detail-item .icon-circle {
  width: 40px; height: 40px;
  background: var(--color-bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* CF7 Form Styling */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 15px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--color-primary);
  color: white;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.wpcf7 input[type="submit"]:hover { background: var(--color-secondary); }

/* Google Maps */
.lb-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin-top: 24px;
}

/* ===== FOOTER ===== */
.lb-footer {
  background: var(--color-secondary);
  color: white;
  padding: 60px 0 0;
}
.lb-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.lb-footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
}
.lb-footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: white;
}
.lb-footer-col a {
  display: block;
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  margin-bottom: 10px;
}
.lb-footer-col a:hover { color: var(--color-accent) !important; }

.lb-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: 12px;
}
.lb-footer-bottom a { color: rgba(255,255,255,0.6) !important; }
.lb-footer-bottom a:hover { color: var(--color-accent) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  h1 { font-size: 38px; }
  h2, .section-title { font-size: 30px; }
  .lb-services-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 50px 0; }
  h1 { font-size: 32px; }
  h2, .section-title { font-size: 26px; }

  .lb-nav { display: none; }
  .lb-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .lb-menu-toggle { display: block; }

  .lb-hero { min-height: 400px; padding: 0 20px; }
  .lb-hero-overlay { background: rgba(255,255,255,0.88) !important; }
  .lb-hero-content { max-width: 100%; }

  .lb-contact-bar .container { flex-direction: column; gap: 20px; text-align: center; }
  .lb-contact-bar-item { justify-content: center; }
  .lb-contact-bar-divider { display: none; }

  .lb-services-grid { grid-template-columns: 1fr; }
  .lb-about .container,
  .lb-service-section .container,
  .lb-service-section:nth-child(even) .container,
  .lb-contact-preview .container,
  .lb-contact .container { flex-direction: column; }

  .lb-stats .container { flex-direction: column; gap: 30px; }
  .lb-portfolio-grid,
  .lb-gallery-grid { grid-template-columns: 1fr; }
  .lb-cta-banner .container { text-align: center; justify-content: center; }

  .lb-footer-top { grid-template-columns: 1fr; }
  .lb-footer-bottom { flex-direction: column; text-align: center; }

  .lb-contact-preview .images { flex-direction: column; }
  .lb-contact-preview .images img { width: 100%; }

  .lb-hero-buttons { flex-direction: column; }
  .lb-hero-buttons a { text-align: center; }
}
