/*
 Theme Name:   NestWay.pl | Twoje Biuro Nieruchomości
 Author:       BarlikSolutions.com
 Author URI:   http://nestway.pl
 Template:     Nestway.pl
 Version:      1.0.0
*/
:root {
  --brand-blue: #193359;
  --brand-gold: #f9ddaa;
  --brand-black: #000000;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-black);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
  font-family: 'Playfair Display', serif;
}

/* Utility Classes */
.bg-brand-blue {
  background-color: var(--brand-blue) !important;
}

.text-brand-blue {
  color: var(--brand-blue) !important;
}

.bg-brand-gold {
  background-color: var(--brand-gold) !important;
}

.text-brand-gold {
  color: var(--brand-gold) !important;
}

.bg-brand-black {
  background-color: var(--brand-black) !important;
}

/* Buttons */
.btn-gold {
  background-color: var(--brand-gold);
  color: var(--brand-blue);
  font-weight: 600;
  border: 2px solid var(--brand-gold);
  padding: 10px 24px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold:hover {
  background-color: transparent;
  color: var(--brand-gold);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--brand-gold);
  font-weight: 600;
  border: 2px solid var(--brand-gold);
  padding: 10px 24px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-outline-gold:hover {
  background-color: var(--brand-gold);
  color: var(--brand-blue);
}

/* Navbar */
.navbar {
  background-color: rgba(25, 51, 89, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-height: 80px;
  /* Stała wysokość navbaru ułatwia centrowanie pionowe */
}

.navbar-brand {
  color: var(--brand-gold) !important;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* Gwarancja wyśrodkowania elementów li */
.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  /* Flexbox dla perfekcyjnego wyśrodkowania tekstu w obu osiach */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 15px !important;
}

.nav-link:hover {
  color: var(--brand-gold) !important;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(25, 51, 89, 0.7), rgba(0, 0, 0, 0.6)), url('https://nestway.pl/wp-content/uploads/2026/06/hero-image-scaled.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  margin-top: 50px;
}

.hero-title {
  color: var(--brand-gold);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* Search Box */
.search-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(249, 221, 170, 0.3);
}

.search-box .form-control,
.search-box .form-select {
  height: 50px;
  border-radius: 4px;
  border: none;
}

.search-box .btn {
  height: 50px;
  border-radius: 4px;
}

/* Nasze Usługi - Image Cards (Homfi Style) */
.service-img-card {
  display: block;
  position: relative;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-img-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 51, 89, 0.9) 0%, rgba(25, 51, 89, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
  transition: background 0.4s ease;
}

.service-img-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 25px;
  color: var(--text-light);
  z-index: 2;
}

.service-img-card h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: transform 0.4s ease;
}

.service-img-card .btn-link-custom {
  color: var(--brand-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
  display: inline-block;
}

.service-img-card:hover img {
  transform: scale(1.08);
}

.service-img-card:hover .overlay {
  background: linear-gradient(to top, rgba(25, 51, 89, 1) 0%, rgba(25, 51, 89, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
}

.service-img-card:hover h4 {
  transform: translateY(-5px);
  color: var(--brand-gold);
}

.service-img-card:hover .btn-link-custom {
  opacity: 1;
  transform: translateY(0);
}

/* Properties Section */
.properties-section {
  background-color: var(--bg-light);
}

.property-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--brand-gold);
  color: var(--brand-blue);
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.property-price {
  color: var(--brand-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.property-details {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.9rem;
}

.property-details i {
  color: var(--brand-gold);
  margin-right: 5px;
}

/* Trends Section */
.trend-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.trend-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-gold) !important;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

/* Reviews Section (Nowa Sekcja) */
.review-card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06) !important;
}

.review-avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.google-icon {
  color: #4285F4;
  /* Kolor ikony Google dla lepszej rozpoznawalności */
}

/* Stats Section */
.stats-section {
  background-color: var(--brand-blue);
  color: var(--text-light);
  padding: 80px 0;
  background-image: linear-gradient(rgba(25, 51, 89, 0.93), rgba(25, 51, 89, 0.93)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.stat-number {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
  color: var(--brand-gold);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Contact Section */
.contact-section {
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 0.25rem rgba(249, 221, 170, 0.25);
}

/* Footer */
.footer {
  background-color: var(--brand-black);
  color: #aaa;
  padding: 60px 0 20px;
}

.footer-brand {
  color: var(--brand-gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-title {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-gold);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--brand-gold);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--brand-gold);
  color: var(--brand-black);
}

/* Section Title */
.section-title {
  font-size: 2.5rem;
  color: var(--brand-blue);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--brand-gold);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Izolacja typografii w obrębie podstrony */
        .uslugi-scope {
            font-family: 'Montserrat', sans-serif;
            color: var(--brand-black);
            overflow-x: hidden;
            background-color: var(--bg-light);
        }

        .uslugi-scope h1, .uslugi-scope h2, .uslugi-scope h3, .uslugi-scope h4, .uslugi-scope h5, .uslugi-scope h6, .uslugi-scope .brand-font {
            font-family: 'Playfair Display', serif;
        }

        /* Hero Sekcja Usług */
        .uslugi-hero {
            height: 60vh;
            min-height: 400px;
            background: linear-gradient(rgba(25, 51, 89, 0.8), rgba(25, 51, 89, 0.6)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat fixed;
            display: flex;
            align-items: center;
            position: relative;
            margin-bottom: 50px;
        }

        .uslugi-hero-title {
            color: var(--brand-gold);
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .uslugi-hero-subtitle {
            color: var(--text-light);
            font-size: 1.2rem;
            font-weight: 300;
            letter-spacing: 1px;
        }

        /* Tytuł Sekcji na podstronie */
        .uslugi-section-title {
            font-size: 2.5rem;
            color: var(--brand-blue);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }
        
        .uslugi-section-title::after {
            content: '';
            position: absolute;
            width: 60px;
            height: 3px;
            background-color: var(--brand-gold);
            bottom: -10px;
            left: 0;
        }
        
        .text-center .uslugi-section-title::after {
            left: 50%;
            transform: translateX(-50%);
        }

        /* Nawigacja Tabsów (Dla Ciebie / Dla Dewelopera) */
        .uslugi-tabs-container {
            margin-bottom: 40px;
        }

        .uslugi-tab {
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            color: var(--brand-blue);
            background-color: transparent;
            border: 2px solid var(--brand-blue);
            border-radius: 0;
            margin: 5px 10px;
            padding: 12px 40px;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .uslugi-tab:hover {
            background-color: rgba(25, 51, 89, 0.05);
            color: var(--brand-blue);
        }

        .nav-pills .nav-link.uslugi-tab.active, .nav-pills .show>.nav-link.uslugi-tab {
            background-color: var(--brand-blue) !important;
            color: var(--brand-gold) !important;
            border-color: var(--brand-blue) !important;
            box-shadow: 0 10px 20px rgba(25, 51, 89, 0.2);
        }

        /* Kafelki Usług */
        .uslugi-card {
            background-color: #fff;
            padding: 40px 30px;
            border-radius: 0;
            border: 1px solid #eee;
            box-shadow: 0 5px 15px rgba(0,0,0,0.02);
            transition: all 0.3s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .uslugi-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background-color: var(--brand-gold);
            transition: width 0.3s ease;
            z-index: -1;
            opacity: 0;
        }

        .uslugi-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
            border-color: transparent;
        }

        .uslugi-card:hover::before {
            opacity: 1;
        }

        .uslugi-icon-wrapper {
            width: 70px;
            height: 70px;
            background-color: rgba(249, 221, 170, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }

        .uslugi-card:hover .uslugi-icon-wrapper {
            background-color: var(--brand-blue);
        }

        .uslugi-icon {
            font-size: 1.8rem;
            color: var(--brand-blue);
            transition: all 0.3s ease;
        }

        .uslugi-card:hover .uslugi-icon {
            color: var(--brand-gold);
        }

        .uslugi-card-title {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            color: var(--brand-blue);
            margin-bottom: 15px;
            font-size: 1.4rem;
        }

        /* Lista w sekcji dla dewelopera */
        .uslugi-dev-list {
            list-style: none;
            padding-left: 0;
        }
        
        .uslugi-dev-list li {
            position: relative;
            padding-left: 30px;
            margin-bottom: 15px;
            color: #555;
        }
        
        .uslugi-dev-list li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 2px;
            color: var(--brand-gold);
        }

        /* Banner Kontaktowy na dole podstrony */
        .uslugi-cta-banner {
            background-color: var(--brand-blue);
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }
        
        .uslugi-cta-banner::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.1;
        }

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .search-box {
    margin-top: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Poprawki odstępów menu mobilnego */
  .navbar-nav {
    padding-top: 15px;
  }

  .nav-link {
    padding: 15px !important;
  }
}