/* structure CSS file for Nailed It Renovations */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}
  

.button { *for animating the buton
  background-color: #0468aa;
  border: none;
  color: black;
  padding: 6px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
  transition-duration: 0.4s;
  border-radius: 6px;
  box-shadow: 0 4px 8px 0 blue;
}

.button:hover {  *more depth for buttons*
    box-shadow: 0 8px 16px 0 rgba(15, 120, 146, 0.6);
}

.button:active { * more depth for buttons*
  box-shadow: 0 2px #021752;
  transform: translateY(1px);
}


/* Header and Navigation - Sticky, centered, stretch across screen */
.hero {
    position: relative;
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-text {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.header-text h2 {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
    font-weight: normal;
}

.info {
    text-align: center;
    padding: 15px 0;
    background-color: #f4f4f4;
}

.info ul { /*didtn add in mine. What is it?*/
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info li { /*didtn add in mine. What is it?*/
    display: inline-block;
}

.nav-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #555;
}

/* About Section - title centered, image left, text right */
.about {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-image {
    flex: 0 0 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 15px;
}

/* Services Section - left to right, bullet points on right */
.services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
    font-size: 2em;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.services-list {
    text-align: left;
    max-width: 800px;
}

.services-list ul {
    list-style-type: disc;
    padding-left: 30px;
}

.services-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* Contact Section - centered, form in a box */
.contact {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.contact h2 {
    margin-bottom: 30px;
    font-size: 2em;
}

.contact-info-box {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-details {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.contact-details p {
    margin-bottom: 20px;
}

.contact-form-box {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: left;
}

.contact-form-box h3 {
    margin-bottom: 20px;
    text-align: center;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
}

.contact-form-box label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form-box input[type="text"],
.contact-form-box input[type="tel"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form-box textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.button {
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #555;
}

/* Testimonials Carousel - centered, slides left to right */
.testimonials {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials h2 {
    margin-bottom: 40px;
    font-size: 2em;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-items {
    display: none;
}

.carousel-items.fade {
    display: block;
    animation: fadeIn 0.5s;
}

.carousel-items img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

@keyframes fadeIn {
    from {opacity: 0.4}
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #333;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(255,255,255,0.8);
    text-decoration: none;
    z-index: 10;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: #fff;
}

/* Carousel dots */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Footer - centered */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.footer-social img:hover {
    transform: scale(1.1);
}

.footer-info {
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        flex: 1;
        max-width: 100%;
    }
    
    .contact-info-box {
        flex-direction: column;
    }
    
    .header-text h2 {
        font-size: 0.9em;
    }
    
    .info ul {
        flex-direction: column;
        gap: 10px;
    }
}


/*.contact{ /* was used for refferance to location on moch up*/
/*background-color: blue;*/
/*max-height: 280px*/
/*}

/*label { /*WTF did i use this for
  display: block;*/
/*}
 
input[type=text] {
  width: 100%;
  padding: 24px;
  margin: px 20;
  box-sizing: border-box;
}