body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: #2e3a59;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}
nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* کمی پایین‌تر شروع کنه */
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
    background-color: #2e3a59;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    flex-direction: column;
    padding: 0.5rem 0;
    border-radius: 8px;
}

/* حالت فعال هنگام hover */
.dropdown:hover .dropdown-content {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}


/* Style dropdown links */
.dropdown-content a {
    color: #ffffff;
    padding: 0.7rem 1rem;
    text-decoration: none;
    display: block;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #0f1116;
    border-radius: 12px;

}


/*   ----   */
main {
    padding: 2rem;
}

/* --- Welcome Section --- */
.welcome-section {
    color: rgb(6, 6, 6); 
    min-height: 200px;
    display: flex;
    justify-content: center;  
    align-items: center;    
    text-align: center;       
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1200px;
}

.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}





@media (max-width: 600px) {
    .welcome-image {
        display: none;
    }
}

/* --- Leistungen Section --- */
.service-container {
  display: grid;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  grid-template-columns: repeat(3, 1fr); /* پیش‌فرض: 3 ستون */
}
.h3 {
    text-align: center;
}

.section-title {
    text-align: center;
}


.service-box {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
  font-weight: bold;
  text-shadow: 0 0 5px black;

  min-height: 150px; /* یا 200px */
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 1rem;
  transition: transform 0.3s ease;
}
.service-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}



/* --- تصاویر پس‌زمینه اختصاصی برای هر باکس به ترتیب --- */
.service-box:nth-child(1) {
    background-image: url('../img/services/boden.jpg');
}

.service-box:nth-child(2) {
    background-image: url('../img/services/maler.jpg');
}

.service-box:nth-child(3) {
    background-image: url('../img/services/montage.jpg');
}

.service-box:nth-child(4) {
    background-image: url('../img/services/mobel.jpg');
}

.service-box:nth-child(5) {
    background-image: url('../img/services/garten.jpg');
}

.service-box:nth-child(6) {
    background-image: url('../img/services/sanitaer.jpg');
}

/* Hover effect */
.service-box:hover {
    transform: scale(1.05);
    opacity: 0.9;
    border-color: #91c788;
}


@media (max-width: 992px) {
  .service-container {
    grid-template-columns: repeat(2, 1fr); /* تبلت */
  }
}

@media (max-width: 600px) {
  .service-container {
    grid-template-columns: 1fr; /* موبایل */
  }
}


.service-box {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    text-shadow: 0 0 4px #000;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-box:hover {
    transform: scale(1.05);
}


.contact-form-box {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form-row > div {
    flex: 1;
    min-width: 200px;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    background-color: #4CAF50;
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: #43a047;
}

.gender-options {
    display: flex;
    gap: 1rem;
    align-items: center;
}
/*--  Footer---------*/
.site-footer {
    background-color: #2e3a59;
    color: white;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content:space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin: 0.3rem 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #705b5b;
    padding-top: 1rem;
    color: #ddd;
}
.designer-credit {
    font-size: 0.85rem;
    color: #ededed;
    margin-top: 0.3rem;
    padding-left: 2rem;
}
/* ----Responsive --------*/
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

