/* css/form2sect1.css for Home Section */

/* Default styles for all screen sizes (mobile-first base)
    or general styles that apply unless overridden by media queries */

section.hero-section {
     padding-top: 100px;
     max-width: 1200px;
     width: 100%;
     box-sizing: border-box;
}

.hero-top-wrapper {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: center;
     gap: 20px;
     width: 100%;
     margin-bottom: 30px;
}

.container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 20px;
}

.barber-card-at-top {
     display: flex;
     justify-content: center;
     flex: 0 1 350px;
}

.barber-card-at-top .feature-card {
     color: #fff;
     padding: 20px;
     width: 100%;
     max-width: 350px;
     text-align: center;
}
.barber-card-at-top .feature-card h2 {
     color: #fff;
     font-size: 2em;
}
.barber-card-at-top .feature-card .barber-icon img {
     width: 200px;
     height: 170px;
     border-radius: 50%;
     object-fit: cover;
     margin-bottom: 15px;
}

.container.hero-content {
     position: relative;
     flex: 1 1 500px;
     min-width: 300px;
     text-align: center;
}

.hero-top-wrapper > .container.barber-card-at-top,
.hero-top-wrapper > .container.hero-content {
     margin-left: auto;
     margin-right: auto;
}

.hero-content h1 {
     font-size: 3.8em;
     margin-bottom: 20px;
     line-height: 1.1;
     color: #f8f8f8;
     text-align: center;
}

.hero-content p {
     font-size: 1.3em;
     margin-bottom: 30px;
     color: #e0e0e0;
     text-align: center;
}

.hero-content .hero-btn {
     display: inline-block;
}

.hero-section::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
}

.hero-btn {
     background-color: #4f5217;
}

.hero-btn:hover {
     background-color: #549000;
}

/* Why Choose Us? Section */
.why-choose-us-section {
     background-color: #a67bba;
     padding: 60px 0px;
     text-align: center;
     width: 100%;
}
.why-choose-us-section .container {
     max-width: 1200px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 20px;
}

.why-choose-us-section h2 {
     color: #333;
}

.features-grid {
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 30px;
     margin-top: 50px;
     box-sizing: border-box;
}

.why-choose-us-section .feature-card {
     background-color: #f0f0f0;
     border-radius: 10px;
     padding: 30px;
     flex: 1;
     min-width: 280px;
     max-width: 350px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     box-sizing: border-box;
     color: #333;
}
.why-choose-us-section .feature-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.why-choose-us-section .feature-icon {
     margin-bottom: 20px;
}

.why-choose-us-section .feature-icon svg {
     width: 60px;
     height: 60px;
     color: #a020f0;
     stroke-width: 2;
}

.why-choose-us-section .feature-card h3 {
     font-size: 1.5em;
     color: #333;
     margin-bottom: 10px;
}

.why-choose-us-section .feature-card p {
     font-size: 1em;
     color: #444343;
     line-height: 1.5;
     text-align: center;
}

.btn {
     color: white;
     padding: 12px 25px;
     border: none;
     border-radius: 50px;
     cursor: pointer;
     font-size: 1.1em;
     font-weight: bold;
     transition: background-color 0.3s ease, transform 0.2s ease;
     text-decoration: none;
     display: inline-block;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
     transform: translateY(-2px);
}

/* Ready for a Fresh Look? Section */
.fresh-look-section {
     color: #fff;
     padding: 60px 0px;
     text-align: center;
     box-sizing: border-box;
     width: 100%;
}

.fresh-look-section .container.fresh-look-content {
     max-width: 700px;
     margin-left: auto;
     margin-right: auto;
     padding: 0 20px;
}

.fresh-look-section h2 {
     color: #fff;
}

.fresh-look-section h2::after {
     background-color: #a020f0;
}

.fresh-look-section p {
     font-size: 1.2em;
     margin-bottom: 30px;
     color: #fff;
}

.fresh-look-link {
     display: inline-block;
     padding: 10px 20px;
     background-color: #B3420C;
     color: #fff;
     text-decoration: none;
     border-radius: 5px;
     transition: background-color 0.3s ease;
}

.fresh-look-link:hover {
     background-color: #61853C;
}

/* General .feature-card styles */
.feature-card {
     border-radius: 10px;
}

/* ========================================= */
/* Media Queries - Mobile-First Approach (Smallest screens first) */
/* ========================================= */

/* Styles for screens up to 576px (Very Small Devices) */
@media (max-width: 576px) {
     .barber-card-at-top {
          padding: 0 5px;
     }
     .barber-card-at-top .feature-card {
          max-width: 300px;
          width: 95%;
     }
     .hero-content h1 {
          font-size: 2em;
     }
     .hero-content p {
          font-size: 0.9em;
     }
     .hero-content .hero-btn {
          padding: 8px 20px;
          font-size: 0.9em;
     }
     .why-choose-us-section .feature-card {
          width: 95%;
          max-width: 300px;
          padding: 20px;
     }
     .why-choose-us-section .feature-icon svg {
          width: 50px;
          height: 50px;
     }
     .why-choose-us-section .feature-card h3 {
          font-size: 1.3em;
     }
     .fresh-look-section h2 {
          font-size: 1.8em;
     }
     .fresh-look-section p {
          font-size: 0.9em;
     }
}

/* Styles for screens up to 768px (Tablets and smaller desktops) */
@media (max-width: 768px) {
     .hero-section {
          padding: 20px 10px;
     }
     .hero-top-wrapper {
          flex-direction: column;
          align-items: center;
          gap: 30px;
     }
     .barber-card-at-top {
          width: 100%;
          display: flex;
          justify-content: center;
          padding: 0 10px;
          box-sizing: border-box;
          margin-top: 30px;
     }
     .barber-card-at-top .feature-card {
          max-width: 350px;
          width: 90%;
     }
     .container.hero-content {
          min-width: auto;
          flex: 1 1 auto;
          padding: 0 15px;
          text-align: center;
     }
     .hero-content h1 {
          font-size: 2.5em;
          margin-bottom: 15px;
          text-align: center;
     }
     .hero-content p {
          font-size: 1em;
          margin-bottom: 25px;
          text-align: center;
     }
     .hero-content .hero-btn {
          padding: 10px 25px;
          font-size: 1em;
     }
     .why-choose-us-section,
     .fresh-look-section {
          padding: 40px 0px;
     }
     .why-choose-us-section .container,
     .fresh-look-section .container.fresh-look-content {
          padding-left: 10px;
          padding-right: 10px;
     }
     .features-grid {
          flex-direction: column;
          align-items: center;
          gap: 20px;
     }
     .why-choose-us-section .feature-card {
          width: 90%;
          max-width: 350px;
     }
}

/* ========================================= */
/* Media Queries - For screens greater than 768px (Desktops and larger tablets) */
/* Using min-width for mobile-first progression */
/* ========================================= */

@media (min-width: 769px) {
     .hero-top-wrapper {
          flex-direction: row;
          justify-content: center;
          align-items: flex-start;
     }

     .barber-card-at-top {
          justify-content: center;
          flex: 0 1 350px;
          padding: 20px;
     }

     .barber-card-at-top .feature-card {
          width: 100%;
          max-width: 350px;
     }

     .container.hero-content {
          text-align: center;
          flex: 1 1 500px;
          padding-left: 20px;
          padding-right: 20px;
     }

     .hero-content h1 {
          font-size: 3.8em;
          text-align: center;
     }

     .hero-content p {
          font-size: 1.3em;
          text-align: center;
     }

     .why-choose-us-section,
     .fresh-look-section {
          padding: 60px 0;
     }

     .why-choose-us-section .container,
     .fresh-look-section .container.fresh-look-content {
          padding: 0 20px;
     }

     .features-grid {
          flex-direction: row;
          justify-content: center;
          gap: 30px;
     }

     .why-choose-us-section .feature-card {
          min-width: 280px;
          max-width: 350px;
          flex: 1;
     }
}

/* Styles for screens greater than 992px (Larger Desktops) */
@media (min-width: 993px) {
     .hero-content h1 {
          font-size: 4.2em;
     }
}
