
/* ---- MOBILE OVERFLOW FIX ---- */

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header,
.Services,
.testimonials,
.contact-section,
.footer {
  max-width: 100%;
  overflow-x: hidden;
}


/* Header*/
Header{
    margin:0 ;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(47, 49, 52, 0.7),rgba(85, 86, 88, 0.7)), url("Images/Banner.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
}

nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 200px;
    height: 70px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: white;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 15px;

}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: rgb(216, 45, 14);
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;

}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: left;
}
.text-box h1{
    font-size: 50px;
}
.text-box p{
    margin: 10px 0 20px;
    font-size: 20px;
    color:#fff;
}
.text-box h2{
    font-size: 25px;
    font-style: italic;
    color: #FF4C4C;
}
nav .fa{
    display: none;
}
@media(max-width: 700px) {

    .text-box h1{
        font-size: 20px;
    }
    .text-box h2{
        font-size: 15px;
    }
    .text-box p{
        font-size: 15px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: fixed;
        background: rgb(216, 45, 14);
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        z-index: 9999;
        transition: 0.4s ease;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 20px;
    }
}


/*----About------*/

.About{
    min-height: 100vh;
    width: 100%;
    margin: auto;
    text-align: left;
    position: relative;
    background: RGB(247, 238, 224);

}
h1{
    font-size: 20px;
    font-weight: 600;
}

.text-box2{
    width: 90%;
    color: #0d0d0d;
    position: absolute;
    top:  50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: left;
}

.text-box2 h1{
    padding-right: 40px;
    font-size: 30px;
    font-style: italic;
    margin-right: 40px;
}

.text-box2 p{
    margin: 10px 0 20px;
    font-size: 20px;
    color: #FF4C4C;
    padding-right: 40px;
    font-style: italic;
    margin-right: 30px;
    
}

@media(max-width: 700px) {
    .text-box2 h1{
        font-size: 20px;
    }
    .text-box2 p{
        font-size: 15px;
    }
}


/* Services Section */


.Services {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 60px;
}

.Services p {
    padding-bottom: 40px;
    font-size: 16px;
}

.Services h1{
  font-size: 24px;
}
/* Flex row */
.Services .row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individual column */
.Services-col {
    flex-basis: 100%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    box-sizing: border-box;
    background-color: #f9f9f9;
    padding: 15px;
    transition: transform 0.3s;
}

.Services-col:hover {
    transform: translateY(-5px);
}

.Services-col img {
    width: 100%;
    padding: auto;
    border-radius: 30px;
    margin-bottom: 15px;
    height: 350px;
    object-fit: cover;
    transition: 0.5s;
    align-content: center;
}

.Services-col img:hover {
    box-shadow: 0 0 20px 0px #FF4C4C;
}

.Services-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    font-size: 20px;
}

.Services-col p {
    line-height: 1.6;
    font-size: 16px;
}

/* Responsive for tablets */
@media screen and (max-width: 992px) {
    .Services-col {
        flex-basis: 100%;
    }
}

/* Responsive for mobile */
@media screen and (max-width: 600px) {
    .Services-col {
        flex-basis: 100%;       /* full width */
        text-align: center;     /* center all text */
        margin: 10px auto;      /* add vertical spacing between columns */
        padding: 20px;          /* add space inside each column */
        box-sizing: border-box; /* include padding in width */
    }
    .Services-col img {
        height: auto;           /* let image scale naturally */
        margin: 0 auto 15px;    /* center image */
        max-width: 100%;  
         /* prevent overflow */
    }
    .Services-col p {
        font-size: 14px;
        line-height: 1.6;
    }
    .Services-col h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/*-----Testimonials----*/

/* ---------- Testimonials (robust layout) ---------- */

/* Base */
.testimonials {
  background: #f6ebdb;
  padding: 20px 10%;
  font-family: "Georgia", serif;
  color: #1a1a1a;
}

/* Row container */
.testimonial-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 40px;
  flex-wrap: nowrap; /* keep side-by-side on desktop */
}

/* Default ordering: image left, text right */
.testimonial-row .testimonial-image {
  order: 1;            /* image first */
  flex: 0 0 420px;     /* fixed-ish width for image column on desktop */
  max-width: 45%;
}

.testimonial-row .testimonial-text {
  order: 2;            /* text second */
  flex: 1 1 520px;     /* text takes remaining space */
  max-width: 55%;
}

/* Reverse layout: force text left, image right on desktop */
.testimonial-row.reverse .testimonial-image {
  order: 2;            /* image comes second in source on desktop */
}

.testimonial-row.reverse .testimonial-text {
  order: 1;            /* text comes first in visual order */
  text-align: left;    /* left-align the text when it's on the left */
}

/* Image styling */
.testimonial-image img {
  width: 100%;
  height: 400px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  align-content: center;
}

/* Text styling */
.testimonial-text {
  /* ensure good line length and spacing */
  padding: 0;
}

.quote {
  font-size: 16px;
  line-height: 1.6;
  color: #242424;
  margin: 0 0 8px 0;
}

.client {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #6a6a6a;
}

/* Title */
.section-title {
  font-size: 48px;
  margin: 40px 0 80px;
  color: #1a1a1a;
}

/* ----------------------- Responsive (tablet / mobile) ----------------------- */
@media (max-width: 1000px) {

  /* Stack rows vertically on smaller screens */
  .testimonial-row,
  .testimonial-row.reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    margin-bottom: 5px;
    flex-wrap: wrap;
  }

  /* Make image full width (but constrained) */
  .testimonial-row .testimonial-image,
  .testimonial-row.reverse .testimonial-image {
    order: 1;           /* image on top on mobile */
    flex: 0 0 auto;
    max-width: 90%;
    width: 90%;
  }

  .testimonial-row .testimonial-text,
  .testimonial-row.reverse .testimonial-text {
    order: 2;           /* text below image on mobile */
    max-width: 90%;
    width: 90%;
    text-align: center; /* center text on mobile for readability */
  }

  .section-title {
    font-size: 38px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .section-title { font-size: 32px; }
  .quote { font-size: 15px; }
  .testimonial-row { margin-bottom: 0px; gap: 0px; }
  .testimonial-image { max-width: 100%; width: 100%; }
  .testimonial-text { max-width: 100%; width: 100%; }
}


/*----Contact----*/

.contact-section {
  background: #e3c499;
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  font-family: "Georgia", serif;
}

.contact-section h1{
    font-size: 30px;
    margin-bottom: 20px;
}

/* LEFT SIDE */
.contact-left {
  flex: 1;
}

.contact-description {
  max-width: 480px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}


/* RIGHT SIDE */
.contact-right {
  flex: 1;
  margin-bottom: 20px;
  margin-top: 20px;
}

/* FORM STYLES */
.contact-form label {
  display: block;
  margin-top: 25px;
  margin-bottom: 25px;
  font-size: 15px;
  color: #333;
}

.contact-form span {
  font-size: 12px;
  color: #555;
}

.name-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}


.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #888;
  padding: 10px 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.submit-btn {
  margin-top: 30px;
  background: #6e6c54;
  color: white;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background: #545340;
}

/* ---------------------- */
/*      RESPONSIVE        */
/* ---------------------- */

@media (max-width: 900px) {

  .contact-left h1{
    margin-bottom: 3px;
  }

  .contact-left p{
    margin-bottom:3px ;
  }
  .contact-section {
    flex-direction: column;
    text-align: center;
  }

  .name-row {
    flex-direction: column;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }

}

@media (max-width: 500px) {
  .contact-description {
    font-size: 14px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }
}

/*------Footer----*/

.footer {
  background: rgb(61, 61, 61);
  padding: 60px 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  font-family: "Georgia", serif;
}

.footer{
    width: 100%;
    text-align: center;
    padding: 30px 0;
}

.icons .fa{
    color: #FF4C4C;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
    size: 40px;
}

.footer-right {
  flex: 1;
  margin-bottom: 20px;
  margin-top: 20px;
}

.footer-left {
  flex: 1;
}

.footer h1{
    font-size: 30px;
    margin-bottom: 40px;
}

.footer p{
  font-size: 20px;
  color: black;
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .footer {
    font-size: 14px;
  }
}