/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body and HTML */
html,
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
}

strong {
    font-weight: 600;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo img {
    height: 5rem;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    margin: .25rem;
}

.company-name {
    display: block;
}

.company-name h2 {
    font-variant: small-caps;
    /* font-size: 3vw; */
    font-size: clamp(1rem, 3vw, 3.5rem);
    font-weight: 500;
    color: #003f75;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.company-name a {
    text-decoration: none;
    color: inherit;
  }
  
  .company-name a:visited {
    color: inherit;
  }

.phone-placeholder {
    font-size: 1em;
    color: #333;
    margin-top: 1em;
}

.phone-placeholder a {
    text-decoration: none;
    color: inherit;
}

.license-number {
    position: absolute;
    top: 8px;
    right: 1.5vw;
    font-size: 12px;
    color: #666;
    text-align: center;
}

nav {
    background: linear-gradient(to bottom, #e4e4e4, #ffffff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-variant: small-caps;
    font-size: 1.2em;
}

.house-icon {
    stroke: rgb(109, 109, 109);
    /* Change the stroke color */
    width: 35px;
    /* Adjust size */
    height: 35px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    height: 60px;
    border-left: 1px solid lightgray;
}

.nav-links li:last-child {
    border-right: 1px solid lightgray;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.4vw;
    position: relative;
    transition: background-color 0.3s ease;
    color: rgb(109, 109, 109);
    text-align: center;
}


.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a.active {
    color: #003f75;
}

a.active .house-icon {
    stroke: #003f75;
}

a.active:hover {
    cursor: default;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-links a.active:hover::after {
    transform: scaleX(0);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    /* Position it to the right */
    z-index: 15;
    /* Ensure it stays on top */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #003f75;
    margin: 5px;
    border-radius: 1.25em;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile View */
@media screen and (max-width: 850px) {

    main {
        padding: 0;
        margin: 0;
    }

    .logo img {
        height: 3.5rem;
        /* margin: .25rem; */
    }

    .burger {
        display: block;
        position: absolute;
        right: 20px;
        /* Position it to the right */
    }

    nav {
        min-height: 5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 9.85rem;
        /* Adjust this value as needed */
        left: 0;
        transition: all 0.3s ease-in;
        padding-right: 1.25em;
        background-color: #fff;
        z-index: 1;
    }

    .nav-links li {
        border-bottom: 1px solid lightgray;
        border-left: none;
        margin: 0 20px;
    }

    .nav-links li:first-child {
        border-top: 1px solid lightgray;
    }

    .nav-links li:last-child {
        border-right: none;
    }

    .nav-links.active {
        display: flex;
        z-index: 10;
    }
}

@media screen and (max-width: 475px) {

    .top-bar {
        flex-direction: column;
        /* Stack elements vertically */
        align-items: center;
        /* Center elements horizontally */
    }

    .company-name h2 {
        font-size: 1.5em;
        margin-bottom: 10px;
        /* Add space between company name and logo */
        text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
    }

    .logo img {
        margin-bottom: 10px;
        /* Add space between logo and phone number */
        height: 2rem;
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
    }

}

/* -------------------------------------------Home Page-------------------------------------------------------- */

main {
    color: #333;
    margin: 0 auto;
    max-width: 1200px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 1em;
}

main h1 {
    width: 100%;
    text-align: center;
    margin: 1em 0 2vw 0;
    font-size: 2em;
    font-weight: 400;
    font-variant: small-caps;
}

.home-page h1 {
    margin: 2em 0 1em 0;
    font-size: 1.5em;
    font-weight: 500;
}

.desktop-home-sections {
    width: 100%;
}

.image-row {
    display: flex;
    justify-content: space-between; /* Even gaps between images */
    align-items: center;
    flex-wrap: nowrap; /* DO NOT wrap onto new lines */
    gap: 1em; /* Space between images */
    margin: 1em 0;
    padding: 0 1em; /* Optional: add small side padding for nicer look */
}

.image-row img {
    height: auto;
    max-width: 22vw; /* Allow them to shrink proportionally */
    flex: 1 1 auto; /* Allow them to shrink if needed */
    transition: width 0.3s ease;
}

.home-main-content {
    display: flex;
    flex-direction: column;
}

p {
    /* font-size: 1em; */
    color: #666;
}

.paragraphs {
    order: 1;
}
.home-links {
    order: 2;
}

/* Home Page Links Section */
.home-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 2em auto;
    gap: 0.5em; /* Adds nice even spacing */
}

.home-links a {
    background: linear-gradient(to bottom, #d1d1d1, #f0f0f0);
    padding: 0.75em;
    text-align: center;
    font-variant: small-caps;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make sure links stretch full width of column */
}

@media (min-width: 775px) {
    .home-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-links a {
        flex: 1 1 45%;
    }
}

@media (max-width: 720px) {
    .image-row {
        display: none;
    }
    main h1, .home-page h1 {
        font-size: 1.1em;
        margin: 1em 0;
        font-weight: 500;
    }
    main h2 {
        font-size: 1.1em;
    }
    .home-page h1 {
        margin-bottom: 0;
    }
    .paragraphs {
        order: 2;
    }
    .home-links {
        order: 1;
    }
}

.home-links a:hover {
    background: linear-gradient(to bottom, #c0c0c0, #e0e0e0);
    transform: scale(1.03);
    color: #003f75;
}

/* Round Image Styling */
.round-image {
    width: 16vw;
    height: 16vw;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-bottom: 10px;
}

.lightly-bold{ 
    font-weight: 500;
}
/*------------------------------------------------ termite inspections page. ----------------------------------------------*/
.termite-inspections-page p {
    margin-right: auto;
}

.termite-inspections-page main ul {
    list-style: none;
    margin-right: auto;
    margin-left: 1em;
}

.termite-inspections-page main li {
    margin-bottom: 1em;
}

/*------------------------------------------------ termite report page. ----------------------------------------------*/


h2,
h3 {
    color: #333;
    text-align: center;
    font-weight: 500;
    margin: 1em 0;
    font-variant: small-caps;
}

h4 {
    margin: 1em 0;
    font-size: 1.1em;
    font-weight: 500;
}

p {
    margin-bottom: 20px;
    color: #333;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.report-section ol,
.treatment-section ol {
    text-align: left;
    margin-left: 1em;
    margin-bottom: 1em;
}

.report-section ol strong {
    font-weight: 500;
}

.treatment-section ul,
.report-section ul,
.identification-section ul,
.prevention-section ul
 {
    margin-bottom: 20px;
    text-align: left;
    list-style-type: none;
    /* remove bullet points */
    padding-left: 0;
    /* remove default padding */
}

.red-header {
    color: #B22222;
}

.faq-toc {
    margin-bottom: 3em;
    margin-right: auto;
}

.faq-toc li {
    margin-bottom: .5em;
    list-style: none;
    text-align: left;
}

/* Fumigation Specific Styles (Combined with existing rules) */
/* General Container */
.fumigation-content {
    margin: 0 auto;
    /* Center the section horizontally */
}

/* Image Styling */
.fumigation-image {
    float: left;
    /* Floats the image to the left */
    margin-right: 20px;
    /* Adds space between the image and the text */
    max-width: 45vw;
    /* Limits the maximum width of the image container */
}

.fumigation-image img {
    width: 100%;
    /* Ensures the image scales within its container */
    height: auto;
    /* Maintains the aspect ratio */
    border-radius: 8px;
    /* Optional rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    /* Optional shadow effect */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fumigation-image {
        float: none;
        /* Removes float on smaller screens */
        margin: 0 auto;
        /* Centers the image and adds spacing */
        display: block;
        /* Ensures the image behaves like a block element */
        max-width: 100%;
    }

    .fumigation-content {
        text-align: center;
        /* Center-aligns content for smaller screens */
    }
}

.outer-image-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    /* Reduced padding */
    max-height: 32em;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.image-container {
    position: relative;
    max-width: 1100px;
    /* Set your desired max-width */
    width: 90vw;
    /* Use viewport width for smaller screens */
    /* height: 0; */
    padding-bottom: calc(864 / 1023 * 100%);
    /* Maintain aspect ratio */
    margin: 0 auto;
    /* Center the image container */
    transform: scale(0.5);
    /* Scale down by 50% */
}

/* Ensure images fit correctly */
.png-image,
.svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    margin: 0;
    /* Remove any default margin */
    padding: 0;
    /* Remove any default padding */
}


@media (max-width: 1000px) {
    .image-container {
        transform: scale(0.7);
        /* Adjust scale for smaller screens as needed */       
    }
    nav {
        font-size: 1em;
    }
}

@media (max-width: 750px) {
    .image-container {
        transform: scale(1);
        /* Adjust scale for smaller screens as needed */
    }
}


/* ... other styles (text, red, yellow) ... */


.text {
    font-family: Arial;
    font-size: 38px;
    fill: black;
    transition: fill 1s ease-in-out;
    /* Smooth fill transition */
}

.text.red {
    fill: red;
}

.text.yellow {
    fill: yellow;
}


.report-section table {
    /* width: 100%; */
    border-collapse: collapse;
    /* Prevents double borders */
    /* margin: 20px 0; */
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.report-section th,
.report-section td {
    padding: 10px 15px;
    text-align: left;
    /* border: 1px solid #ccc; */
    /* Add borders for visual separation */
    vertical-align: top;
    /* Align cell content to the top */
    border: none;
}

.report-section table p {
    margin: 0;
}


.section th h2 {
    font-weight: bold;
    color: black;
    text-align: left;
    margin: 1em 0;
    position: relative;
    display: inline-block;
}

.section th h2::after {
    font-family: "Font Awesome 6 Free"; /* Or your specific Font Awesome font */
    font-size: 1.5em;
    color: #666;
    font-weight: 900; /* For solid icons */
    content: "\f060"; /* Unicode for a right arrow (check Font Awesome docs) */
    position: absolute;
    top: 50%;
    right: -1.25em; /* Adjust spacing */
    transform: translateY(-50%); /* Vertically center the icon */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.report-comments {
    background-color: #f4f4f4;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    font-family: 'Montserrat', sans-serif;
    border: 1px solid lightgray;
    font-style: italic;
    /* padding: 0; */
}

.report-comments p {
    margin: 0;
}

.report-section-explanation h3 {
    color: #333;
    text-align: left;
    margin-left: 1em;
}




/* ------------------------------------------------Treatment Page----------------------------------------------- */

.intro {
    margin: 3em 0 2em;
}

/* General styles for the treatment section */
.treatment-organisms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    /* gap: 20px; */
    /* Space between items */
    /* margin: 0 auto; */
    /* Center the section horizontally */
}

/* Individual treatment items */
.treatment-organisms-pics {
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Images */
.treatment-organisms-pics img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(.5vw .5vw .25vw rgba(0, 0, 0, 0.3));
    margin: 0 .5vw;
}

/* Headings and text */
.treatment-organisms-pics h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #333;
    min-height: 5rem;
    font-weight: 400;
}

@media (max-width: 720px) {
    .treatment-organisms-pics h2,
    .image-links a {
        font-size: 1.25rem;
        min-height: 3.5rem;
    }
}

.image-links {
    z-index: 1;
    /* border-top: 1px solid #d3d3d3; */
    margin: 0;
    background-color: whitesmoke;
    box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.2);
}

.btn {
    background: linear-gradient(to bottom, #d1d1d1, #f0f0f0);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    font-variant: small-caps;
    font-size: 1.25rem;    
    padding: .5em 1em;
    width: auto;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 400;
    text-decoration: none;
}


/* .btn-identification {
    position: relative;
}

.btn-identification .short-text {
    display: inline;
}

.btn-identification .full-text {
    display: none;
} */

.btn:first-child {
    border-radius: .25em 0 0 .25em;
    margin-right: 0;
    color: #333;
}

.btn:last-child {
    border-radius: 0 .25em .25em 0;
    margin-left: 0;
    border-left: 1px solid rgb(173, 173, 173);
    color: #333;
}

.btn:link,
.btn:visited {
    text-decoration: none;
    color: #333;
}

.faq h3 {
    text-align: left;
}

.treatment-organisms-pics a {
    font-variant: small-caps;
    font-size: 1.25em;
    font-weight: 500;
    margin: .5em;
}

@media (max-width: 720px) {
    .treatment-organisms-pics a {
        font-size: 1.15rem;
        margin: .15em;
    }
}

@media (max-width: 475px) {
    .treatment-organisms-pics a {
        font-size: .9rem;
    }
}

.roof-tile-images-container {
    /* Style the container */
    display: flex;
    /* Use flexbox for horizontal layout */
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    justify-content: space-around;
    /* Distribute space evenly */
    gap: 20px;
    /* Space between items */
    margin-top: 20px;
    /* Add some top margin */
}

.roof-tile-image {
    /* Style each image/text block */
    display: flex;
    /* Enable flexbox on the image container */
    flex-direction: column;
    /* Stack content vertically */
    flex: 1 1 100px;
    /* Distribute available space, minimum width 200px */
    padding: 10px;
    /* Add some padding */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    /* Add a subtle shadow */
    text-align: center;
    /* Center the content */
    border-radius: 8px;
    /* Rounded corners */
    background-color: #f9f9f9;
    /* Light background color */
}

.roof-tile-image span {
    color: #333;
}

.roof-tile-image strong {
    color: #666;
}


.roof-tile-image img {
    max-width: 100%;
    /* Make images responsive */
    height: auto;
    display: block;
    /* Prevents image from affecting vertical spacing */
    margin-top: auto;
}


.treatment-section {
    display: flow-root;
}

.orange {
    float: right;
    height: 30vw;
    max-height: 300px;
     shape-outside: circle(40% at 50% 50%);
  filter: drop-shadow(.3vw .3vw .6vw rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}

.drilling-image {
	float: left;
	max-height: 400px;
	shape-outside: polygon(-0.86% 313px, 114px 67.62%, 119px 1.67%, 61.84% 1.43%, 62.43% 44px, 224px 23.81%, 203px 36.19%, 72.00% 51.20%, 225px 60.24%, 276px 66.43%, 324px 83.52%, 282px 94.94%, 217px 100.81%, -3px 93.9%);
}

/* ------------------------------------------------------------Identification-------------------------------------------------------------- */

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.card {
    /* Style each image/text block */
    display: flex;
    /* Enable flexbox on the image container */
    flex-direction: column;
    /* Stack content vertically */
    flex: 1 1 100px;
    /* Distribute available space, minimum width 200px */
    padding: 10px;
    /* Add some padding */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    /* Add a subtle shadow */
    /* Center the content */
    border-radius: 8px;
    /* Rounded corners */
    background-color: #f9f9f9;
    /* Light background color */
    max-width: 20vw;
    min-width: 16em;
    position: relative;
}

.card img {
    max-width: 100%; /* Image fits inside card */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevents small gap below image */
    cursor: pointer;
}

/* .image-container:nth-of-type(2) img {
    margin-top: .25em;
} */

.card p {
    margin: 0 0 1em 0;
    text-align: left;
}

.image-wrapper {
    position: relative; /* Needed for positioning the icon */
    display: inline-block; /* Prevents icon from pushing image down */    
    margin-top: auto; /* Center the image horizontally */    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.04); /* Slightly increase width */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); /* Add drop shadow */
    z-index: 1; /* Bring hovered image forward */
}

.magnifying-glass {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em; /* Adjust size as needed */
    color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    cursor: pointer; /* Make it clickable */
    transition: color 0.2s ease;
    background-color: #f9f9f99c;
    padding: .5em;
    border-radius: 50%;
}

.image-wrapper:hover .magnifying-glass {
    color: rgba(0,0,0,1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.93);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.bottom {
    margin: 2em 0;
}

b {
    font-weight: 600;
}

/* -----------------------------------------Prevention----------------------------------------------- */
.prevention-section {
    display: block;
}

.prevention-section img {
    /* Ensures the image scales within its container */
    
    /* Maintains the aspect ratio */
    
}

#weep-screed {
    float: right;
    margin-left: 1em;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#insulation {
    max-width: 100%;
}

/* ----------------------------------------------Contact---------------------------------------------------------= */

/* main.contact-section {
    display: block;
    max-width: 100%;
    padding: 0;
}

iframe {
    height: 1500px;
    border: none;
    background-color: blue;
} */

@media (max-width: 850px) {

    /* Adjust 500px to your desired breakpoint */
    .digging-image {
        display: none;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 635px) {

    /* Adjust breakpoint as needed */
    .roof-tile-images-container {
        flex-direction: column;
        /* Stack vertically on smaller screens */
        align-items: center;
        /* Center horizontally */
    }

    .roof-tile-image {
        width: 90%;
        /* Occupy most of the width on smaller screens */
        margin-bottom: 20px;
    }

    #weep-screed {
        float: none;
        margin: 0 auto;
        max-width: 100%;
    }
}
/* --------------------------------------------------------Note----------------------------------------------------- */

@media (max-width: 1025px) {
    .intro {
        margin: .5em 0 .5em;
    /* }
    .image-links {
        flex-direction: column;
    }

    .treatment-organisms {
        gap: 5px;
    }

    .treatment-organisms-pics h3 {
        font-size: 1.1rem;
    }
    .btn:first-child,
    .btn:last-child {
        border-radius: .25em;
        border-left: none;
        margin-bottom: 1em;*/
    } 
    
}

/* @media (min-width: 566px) {
    .btn-identification .short-text {
        display: none;
    }

    .btn-identification .full-text {
        display: inline;
    }
} */

@media (max-width: 565px) {

    .treatment-organisms-pics h3 {
        font-size: 1em;
    }
}

@media (max-width: 475px) {
    .drilling-image {
        float: none; /* Remove float */
        margin: 10px auto; /* Center the image */
        max-width: 90%;
        shape-outside: none; /* Remove shape-outside */
    }
    .report-section table {
        font-size: .8em;
    }

    .treatment-organisms-pics h3 {
        font-size: .8rem;
    }

    .btn {
        font-size: .6rem;
        min-width: 20vw;
    }
    .treatment-organisms-pics h2 {
        font-size: .9rem;
        min-height: 2.5rem;
}
}

/* Footer */
footer {
    background-color: #fff;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #666;
    font-size: 1em;
    text-align: center;
}