@import "/variables.css";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: var(--font-family);
}


body {
    min-width: 100vw;
    min-height: 100vh;
    background-color: var(--background-color);
    padding-top: 10px;
    /* to avoid the navbar */
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
}

h2,
h3,
p {
    margin: 0;
    text-align: left;
}

/* Section headings */
h2 { font-size: var(--h2-font-size); }
h3 { font-size: var(--h3-font-size); }



/* Island intro text */
.island-text {
  font-size: var(--island-text-font-size);
}

/* “Contact me” link */
.link2contact {
  font-size: var(--link2contact-font-size);
}

/* Service links on homepage */
.service-anchor {
  font-size: var(--service-anchor-font-size);
}

/* Contact‐details hover */
.info {
  font-size: var(--contact-details-font-size);
}
.info:hover {
  font-size: calc(var(--contact-details-font-size) + 1px);
}


/* header */
.header {
    width: 100%;
    text-align: center;
    color: #000;
}

/* 1) Base (mobile) styles */
/* Control of the first section of the page */
/* The island with dad's photo */
/* Classes flow as they appear*/
.island-container {
    width: 100%;
    height: 100%;
    color: #0d1f22;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.island {
    background-color: var(--section-color);
    height: 100%;
    width: 90%;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-evenly;
    border: 4px solid var(--border-color);
    border-radius: 30px;
    padding: 15px;
    gap: 20px;
    flex: 1;
    margin: 0 auto;
    max-width: 90%;
    color: var(--text-color);
}

.island-text {
    width: 95%;
    text-align: left;
    padding: 10px 0;
}

/* The anchor style */
.link2contact {
    text-align: left;
    background-color: section-color;
    font-size: 18px;
    color: var(--text-color);
    transition: .2s ease;
}

.link2contact:hover {
    color: #424242;
}

.island-photo {
    margin: 0 auto;
    width: 100%;
    height: auto;
    flex: 0 0 100%;
    object-fit: contain;
    border: 3px solid var(--inside-border-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
}

/* The services section */
.services-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;

}

.services {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    background-color: var(--service-color);
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    width: 90%;
    border: 4px solid var(--border-color);
    border-radius: 30px;
}

.services-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* The following four classes help form the hover effect for the services*/
.service-item {
    padding: 10px;
    display: block;
}

.service-item:hover {
    background-color: #7F8C8D;
    border-radius: 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.service-anchor {
    color: #000;
    text-decoration: none;
    transition: .6s ease;
    font-size: 20px;
}

.service-anchor:hover {
    color: #f1f1fa;
}

.service-name {
    padding-top: 10px;
    font-weight: 500;
    text-align: center;
}

.service-image {
    margin: 0 auto;
    width: 100%;
    height: auto;
    flex: 0 0 100%;
    object-fit: contain;
    border: 3px solid var(--inside-border-color);
    border-radius: 25px;
    display: flex;
    align-items: center;
}

/* need to include the hover effect */

/* The about section */
.about-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 90%;
    margin: 0 auto;
}

.estimate-container,
.contact-container {
    background-color: var(--section-color);
    border-radius: 25px;
    border: 5px solid var(--border-color);
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 20px;
}

/* The logo section for the social media*/
/* Left align the logo and the text */
.contact-info {
    text-align: left;
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 20px;

}

/* Logo container and style */
.logo-options {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.img-logo {
    width: 50px;
    height: auto;
    transition: .7s ease;
    display: block;
}

.img-logo:hover {
    width: 55px
}

.nextdoor,
.tiktok {
    border: .125em solid #000;
    border-radius: 5px;
}

/* The container for the contact details */
.contact-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    flex-wrap: wrap;
    color: #000;
    font-size: 17px;
}

/* Holds the type and contact details */
.detail {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

/* Hover effect for contacting dad*/
.info {
    color: #000;
    font-size: 17px;
    transition: .7s ease;
}

.info:hover {
    color: #424242;
    font-size: 18px;
}

/* Need to left align */
.estimate-text {
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}


.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quote-icon {
    height: auto;
    width: auto;
    max-width: 100%;
    display: inline-block;
    object-fit: contain;
    border: 3px solid var(--inside-border-color);
    border-radius: 25px;
    max-height: 250px;
}


/*text styles*/
.text,
.island-text {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: left;
    padding: 10px 10px 0;
    font-size: 15px;
}

/* Make scrolling smooth */
html {
    scroll-behavior: smooth;
}

/* Off set id's for the nav bar */
#Reviews,
#Services,
#Contact {
    scroll-margin-top: 100px;
}


/* =======================
   Tablet styles (iPads)
   ======================= */
@media (min-width: 768px) and (max-width: 1023px) {

    /* fixing the font size first */
    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    .text,
    .island-text {
        font-size: 18px;
    }

    .header {
        margin-top: 40px
    }


    /* Content Style */
    /*Island Section*/
    .island {
        flex-direction: column;
    }

    .island-photo {
        width: 50%;
    }

    /* Services Section */
    .service-image {
        width: 50%;
    }

    /* Contact/About Section */
    .about-container {
        display: flex;          
        flex-direction: row;    
        flex-wrap: nowrap;      
        gap: 20px;              
        width: 90%;
        margin: 0 auto;
      }
    
      .contact-container,
      .estimate-container {
        flex: 0 0 auto;         /* let width control the size */
      }
    
      .contact-container {
        width: 40%;
      }
    
      .estimate-container {
        width: 60%;
      }
}

/* =======================
     Laptop & desktop styles
     ======================= */
@media (min-width: 1024px) {
    body {
        padding-top: 20px;
        gap: 30px;
    }

    .header {
        font-size: 2.5rem;
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 40px;
    }

    /* center and constrain main wrapper */
    .island-container,
    .services-container,
    .about-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .island-text{
        font-size: 18px;
    }

    /* island: maintain row layout */
    .island {
        flex-direction: row;
        justify-content: space-between;
        max-width: 100%;
        padding: 40px;
    }

    .island-content {
        flex: 1;
        padding-right: 40px;
    }

    .island-photo {
        flex: 1;
        max-width: 400px;
    }

    /* services: four-column grid */
    .services-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .service-anchor {
        font-size: 24px;
    }

    /* about/contact: two columns */
    .about-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .contact-container,
    .estimate-container {
        width: 100%;
    }

    /* typography */
    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 22px;
    }

    p,
    .text {
        font-size: 18px;
    }
}


/* Refine typography and spacing*/
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .header {
        padding-top: 50px;
        font-size: 1.5rem;
    }

    .service-anchor {
        font-size: 18px;
    }

    .contact-details .text {
        font-size: 16px;
    }
}