body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #2c2c2c;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e5e0 100%);
}

html {
    scroll-behavior: smooth;
}

/* Creative animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature {
    animation: fadeInUp 0.6s ease-out;
}

.service-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Staggered animations for service items */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;        
  background: linear-gradient(135deg, #3d3528 0%, #2a241c 100%);
  position: sticky;
  z-index: 1000;
  padding: 14px 32px;
  top: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  flex-wrap: wrap;
  border-bottom: 3px solid #c9a961;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin-left: 27.5%;
}

.brand {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.tagline {
  color: #e8d9b8;
  font-size: 0.9rem;
  font-style: italic;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
  align-items: center;
  margin-right: 27.5%;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
}

.hero {
      min-height: 75vh;
      background-image: linear-gradient(rgba(61, 53, 40, 0.4), rgba(42, 36, 28, 0.5)), url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=1600&q=80'); 
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      max-width: 1200px; 
      margin: 20px auto;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      border: 3px solid #c9a961;
    }

.overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, rgba(61, 53, 40, 0.7) 0%, rgba(201, 169, 97, 0.3) 100%);
      z-index: 0;
    }

.hero-text {
      position: relative;
      z-index: 1;
      color: white;
      text-align: left;
      margin-left: 5%;
      max-width: 600px;
      padding: 20px;
    }

.hero-text h1 {
      font-size: 3.5rem;
      text-transform: uppercase;
      letter-spacing: 3px;
      line-height: 1.2;
      font-weight: 700;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
      margin-bottom: 15px;
    }

.hero-text p {
      font-size: 1.25rem;
      margin-top: 15px;
      line-height: 1.6;
      text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
      max-width: 550px;
    }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #c9a961 0%, #b8944f 100%);
  color: #ffffff;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
  border: 2px solid transparent;
}

.btn:hover {
  background: linear-gradient(135deg, #d4b572 0%, #c9a961 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.6);
}

.btn.ghost {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.btn.ghost:hover {
  background-color: rgba(255,255,255,0.2);
}

#wyroznia {
  text-align: center;
  font-size: 2.5rem;
  margin-top: 50px;
  margin-bottom: 35px;
  padding: 0 20px;
  color: #3d3528;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

#wyroznia::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
  margin: 15px auto 0;
  border-radius: 2px;
}

#main {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px auto 70px;
  max-width: 1100px;
  padding: 0 20px;
}

.feature {
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(61, 53, 40, 0.12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  border: 2px solid #e8e5e0;
  transition: all 0.3s ease;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #c9a961 0%, #b8944f 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
  transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(61, 53, 40, 0.2);
  border-color: #c9a961;
}

.feature p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #4a4a4a;
}

.feature p a {
  color: #c9a961;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.feature p a:hover {
  color: #b8944f;
  text-decoration: underline;
}

.footer {
  background: linear-gradient(135deg, #3d3528 0%, #2a241c 100%);
  color: #e8d9b8;
  padding: 50px 20px;
  font-size: 0.9rem;
  border-top: 3px solid #c9a961;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
  align-items: flex-start;
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.footer-left h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #c9a961;
}

.footer-left p {
  margin: 8px 0;
}

.footer-map {
  flex: 1.5;
  min-width: 300px;
  max-width: 500px;
}

.footer-right {
  flex: 1;
  min-width: 200px;
  text-align: right;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #ffffff;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

#send-query {
  display: inline-block;
  padding: 8px 16px;
  color: #c9a961;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.2);
  border: 2px solid #c9a961;
  background: rgba(201, 169, 97, 0.1);
}

#send-query:hover{
  background-color: #c9a961;
  color: #3d3528;
  border: 2px solid #c9a961;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.services-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
  font-family: Arial, sans-serif;
  position: relative;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.services-image {
  position: relative;
  max-width: 400px;
  right: 20px;
  width: 100%;
}

.services-image .main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(61, 53, 40, 0.2);
  border: 3px solid #c9a961;
  transition: transform 0.3s ease;
}

.services-image:hover .main-image {
  transform: scale(1.02);
}

.services-image .overlay-image {
  position: absolute;
  top: 95%;
  left: calc(85% - 50px); 
  width: 250px;
  max-width: 60%;
  border-radius: 12px;
  border: 5px solid white;
  box-shadow: 0 8px 30px rgba(61, 53, 40, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.services-image:hover .overlay-image {
  transform: translate(-50%, -50%) scale(1.05);
}

.services-content {
  flex: 2;
  min-width: 300px;
  max-width: 700px;
}

.services-content h2 {
  font-size: 2.5rem;
  margin-left: 0;
  margin-bottom: 40px;
  font-weight: 700;
  color: #3d3528;
  position: relative;
  padding-bottom: 15px;
}

.services-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #c9a961, transparent);
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-left: 0;
  gap: 25px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: all 0.3s ease-out;
  background: #ffffff;
}

.service-item:hover {
  transform: translateY(-8px) scale(1.02);
  border: 2px solid #c9a961;
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.25);
  cursor: pointer;
  background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
}

.service-item .icon {
  font-size: 32px;
  color: #c9a961;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.3));
  transition: transform 0.3s ease;
}

.service-item:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.service-item h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.service-item p {
  margin: 5px 0 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}


.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.submit-btn {
  background-color: #f1c40f;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #d4ac0d;
}

/* Wspólny popup */
.popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.popupcontent-a {
  text-decoration: none;
  color: black;
}

/* Okienko popup */
.popup-content {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #faf9f7 100%);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(61, 53, 40, 0.3);
    border: 3px solid #c9a961;
    font-family: 'DM Serif Text', serif;
}

.small-popup-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.small-popup-icon span {
    filter: drop-shadow(0 4px 8px rgba(201, 169, 97, 0.3));
}

/* Zamknięcie */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.close:hover {
    color: #ff4c4c;
}

/* Formularz */
#query-form input,
#query-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#query-form input:focus,
#query-form textarea:focus {
    border-color: #c9a961;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.4);
    outline: none;
}

#query-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Przycisk wyślij */
#query-form button {
    background: linear-gradient(135deg, #c9a961 0%, #b8944f 100%);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

#query-form button:hover {
    background: linear-gradient(135deg, #d4b572 0%, #c9a961 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
}

/* Komunikat sukcesu */
#query-success {
    color: #28a745;
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* Komunikat błędu */
#query-error {
    color: #dc3545;
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* Komunikat ładowania */
#query-loading {
    color: #1a1a1a;
    font-weight: 500;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablets and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .logo-container {
        margin-left: 0;
    }
    
    .nav-links {
        margin-right: 0;
    }
    
    .services-image {
        right: 0;
        margin-bottom: 20px;
    }
    
    .services-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Medium tablets (max-width: 900px) */
@media (max-width: 900px) {
    .services-image .overlay-image {
        width: 200px;
        max-width: 50%;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    
    .logo-container {
        flex: 1 1 auto;
    }
    
    .brand {
        font-size: 1rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        font-size: 1rem;
    }
    
    .hero {
        min-height: 60vh;
        margin: 10px;
        border-radius: 12px;
    }
    
    .hero-text {
        margin-left: 0;
        padding: 30px 20px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    #wyroznia {
        font-size: 1.5rem;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    #main {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 30px auto 50px;
        padding: 0 15px;
    }
    
    .feature {
        padding: 15px;
    }
    
    .services-section {
        padding: 40px 15px;
    }
    
    .services-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-image {
        max-width: 100%;
        right: 0;
        margin-bottom: 30px;
    }
    
    .services-image .overlay-image {
        display: none; /* Hide overlay image on mobile for better UX */
    }
    
    .footer {
        padding: 30px 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
        width: 100%;
    }
    
    .footer-map {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }
    
    .popup-content {
        max-width: 95%;
        padding: 25px 20px;
        max-height: 85vh;
    }
    
    .popup-content h1,
    .popup-content h2 {
        font-size: 1.5rem;
    }
}

/* Mobile phones (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }
    
    .logo-container {
        gap: 2px;
    }
    
    .brand {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .hero {
        min-height: 50vh;
        margin: 5px;
        border-radius: 8px;
    }
    
    .hero-text {
        padding: 20px 15px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }
    
    #wyroznia {
        font-size: 1.3rem;
        padding: 0 15px;
    }
    
    #main {
        padding: 0 10px;
        gap: 12px;
    }
    
    .feature {
        padding: 12px;
        grid-template-columns: auto 1fr;
        gap: 12px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    .services-section {
        padding: 30px 10px;
    }
    
    .services-content h2 {
        font-size: 1.3rem;
    }
    
    .service-item {
        padding: 10px;
    }
    
    .service-item h3 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 25px 10px;
        font-size: 0.85rem;
    }
    
    .footer-left h3 {
        font-size: 1.1rem;
    }
    
    .footer-map iframe {
        height: 200px;
    }
    
    .popup-content {
        padding: 20px 15px;
        max-height: 90vh;
    }
    
    .popup-content h1 {
        font-size: 1.3rem;
    }
    
    .popup-content h2 {
        font-size: 1.2rem;
    }
    
    .popup-content p {
        font-size: 0.9rem;
    }
    
    #query-form input,
    #query-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #query-form button {
        width: 100%;
        padding: 12px;
    }
    
    .close {
        font-size: 20px;
        top: 8px;
        right: 12px;
    }
}

/* Very small phones (max-width: 360px) */
@media (max-width: 360px) {
    .brand {
        font-size: 0.8rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
    }
    
    #wyroznia {
        font-size: 1.2rem;
    }
    
    .services-content h2 {
        font-size: 1.2rem;
    }
}
