/* ==========================
   GLOBAL STYLES
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #1f62cc; /* Blue titles */
}

section {
    padding: 60px 20px;
}

a {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

/* ==========================
   HEADER
========================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 3px solid #a6ce36; /* Green line */
    background: #fff;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #1f62cc;
}

.main-nav a {
    margin-left: 25px;
    font-weight: bold;
    color: #1f62cc;
    transition: 0.3s;
}

.main-nav a:hover {
    color: #a6ce36;
}
/* Responsive*/
@media (max-width: 768px) {
    .logo {
        font-size: 28px;          /* bigger font for logo */
        font-weight: bold;
        line-height: 1.1;         /* tight line spacing for two lines */
		white-space: pre-line;
    }

    .main-nav {
        display: flex;
        flex-direction: column;   /* vertical menu */
        gap: 10px;
        align-items: flex-end;    /* right side */
        margin: 0;
        font-size: 16px;          /* slightly smaller than logo */
        font-weight: normal;
    }
}

/* ==========================
   HERO SECTION
========================== */

.hero-section {
    height: 90vh;
    background: url("images/Hero2.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    margin-left: 80px; /* adjust distance from left edge */
    color: #ffffff;    /* text will be white */
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;    /* white headline */
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ffffff;    /* white paragraph */
}

/* BUTTON ON HERO IMAGE */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: #a6ce36;  /* full green */
    color: #ffffff !important;             /* WHITE letters */
    font-weight: bold;
    border: none;               
    border-radius: 5px;
    outline: 3px solid #ffffff; /* white border */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.btn:hover {
    background-color: #1f62cc;  /* hover blue */
    color: #ffffff;             /* letters stay white on hover */
    outline: 3px solid #ffffff; /* keep white border */
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: auto;             /* fit content */
        padding: 40px 20px;       /* enough space top & bottom */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        align-items: flex-start;  
        background-position: center top; /* keeps bg image in view */
    }
	
	.hero-content h1 {
        font-size: 28px;        /* smaller font for mobile */
        line-height: 1.2;       /* tighter spacing for 2 lines */
        margin-bottom: 15px;
    }

    /* Optional: adjust hero content margin on mobile */
    .hero-content {
        margin-left: 20px;      /* smaller left offset */
        max-width: 90%;         /* fit nicely on screen */
    }

    .hero-content p {
        font-size: 16px;        /* smaller paragraph for mobile */
        line-height: 1.5;
        margin-bottom: 20px;
        color: #ffffff;           /* white text over background */
        white-space: pre-line; 
    }
	
    .btn {
        padding: 12px 25px;     /* slightly smaller button */
        font-size: 14px;
    }
}
/* ==========================
		QUOTE SECTION 
========================== */

.quote-section {
    background: #ffffff;
    padding: 80px 20px;
}

.quote-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* LEFT FORM BOX */

.quote-form-box {
    flex: 1 1 450px;
    max-width: 520px;
    background: #1f62cc;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: #ffffff;
}

.quote-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ffffff;
}

.quote-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* FORM */

.quote-form input,
.quote-form textarea,
.quote-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
}

.quote-form textarea {
    resize: none;
}

.quote-form button {
    background: #a6ce36;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.quote-form button:hover {
    background: #ffffff;
    color: #1f62cc;
}

/* RIGHT TEXT */

.quote-info {
    flex: 1 1 450px;
    max-width: 520px;
    text-align: left;
}

.quote-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1f62cc;
}

.quote-info p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 900px) {
    .quote-container {
        flex-direction: column;
    }

    .quote-form-box,
    .quote-info {
        max-width: 100%;
    }
}
/* ==========================
		ABOUT US
========================== */

.intro-section {
    padding: 80px 20px;
    background: #ffffff;
}

.intro-content {
    max-width: 700px;
    margin-left: 80px; /* left-align like hero */
}

.intro-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f62cc; /* blue title */
}

.intro-content p {
    font-size: 18px;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* PHOTO ROW */

.photo-row {
    display: flex;
    justify-content: flex-start; /* aligned to left */
    gap: 30px;                   /* space between squares */
    margin-left: 80px;           /* same left offset as text */
}

.photo-box {
    width: 420px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;           /* keeps corners rounded */
    border: 2px solid #1f62cc;  /* optional blue border */
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* image covers square */
}

/* Responsive */

@media (max-width: 900px) {
    .intro-content, .photo-row {
        margin-left: 20px;
    }
    .photo-row {
        flex-direction: column;
        gap: 20px;
    }
    .photo-square {
        width: 100%;
        height: 200px;
    }
}

/* ==========================
   SERVICES SECTION
========================== */
.services-section {
    background-color: #1f62cc;
    padding: 80px 20px;
    width: 100%;
    box-sizing: border-box;
}

.services-content {
	max-width: 700px;
    margin-left: 80px;  
    text-align: left;
	margin-bottom: 60px;
}

.services-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.services-content p {
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
}

/* 4 Items in 1 Row Layout */
.services-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 equal columns */
    gap: 25px;
    max-width: 1300px;
	margin-left: 80px;  
    margin-right: 80px; 
}

.service-box {
    background: #f5f5f5;
    border: 4px solid #a6ce36;
    border-radius: 15px;
    padding: 25px 15px;
    min-height: 200px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.service-box h3 {
    margin-bottom: 12px;
    color: #1f62cc;
    font-size: 1.1rem;
}

.service-box p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-box:hover {
    background-color: #e6f5d6;
    border-width: 6px;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.btn-supplies {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #a6ce36; /* Green */
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-supplies:hover {
    background-color: #1f62cc; /* Blue */
    color: #ffffff;
}

.supplies-box {
    height: auto; /* Changed from fixed height to auto for better fit */
    min-height: 280px; 
    padding-bottom: 30px;
}

/* Responsive */

@media (max-width: 1024px) {
    .services-row {
        grid-template-columns: repeat(2, 1fr);}
    .services-content {
        padding-left: 0;
        text-align: center;}
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;}
    .services-row {
        grid-template-columns: 1fr; /* Stacked */
        gap: 15px;}
    .services-content {
        padding-left: 0;
        text-align: left;}
    .service-box {
        width: 100%;
        min-height: 150px;}
}

/* ==========================
	SUPPLIES SECTION 
========================== */
.supplies-section {
    background-color: #1f62cc; /* Blue background */
    padding: 80px 0;
    width: 100%;
}

.supplies-content {
    max-width: 700px;
    margin-left: 80px;
    text-align: left;
    margin-bottom: 50px;
}

.supplies-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.supplies-content p {
    font-size: 18px;
    color: #e0e0e0;
    line-height: 1.6;
}

.supplies-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 30px;
    margin-left: 80px;
    margin-right: 20px;
}

.supplies-box {
    width: 420px; 
    height: 250px;
    border-radius: 15px;
    border: 4px solid #a6ce36;
    background: #f5f5f5;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.supplies-box h3 {
    margin-bottom: 12px;
    color: #1f62cc;
    font-size: 1.2rem;
}

.supplies-box p {
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.supplies-box:hover {
    background-color: #e6f5d6;
    border-width: 8px;  
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .supplies-content, .supplies-row {
        margin-left: 20px !important;
        margin-right: 20px !important;
    }
    .supplies-box {
        width: 100% !important; 
        height: auto;
        min-height: 200px;
    }
}

/* ==========================
     CONTACT SECTION
========================== */

.contact-section {
    background-color: #ffffff;    /* white background */
    padding: 80px 20px;
    color: #1f62cc;              /* blue text */
}

.contact-container {
    display: flex;
    justify-content: center;     /* center horizontally */
    align-items: flex-start;     /* keep both columns top-aligned */
    gap: 80px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;              /* center container */
}

.contact-left,
.contact-right {
    flex: 1 1 300px;        /* grow/shrink as before */
    min-width: 280px;
    
    display: flex;           /* use flex to center content horizontally */
    flex-direction: column;  /* stack title + content vertically */
    align-items: center;     /* center everything horizontally in the column */
    text-align: center;      /* center text inside the column */
}


.contact-left .section-title h2,
.contact-right .section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f62cc;
    text-align: center;  /* <-- centers the title inside its column */
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-line strong {
    width: 90px;
}

.contact-line a {
    color: #1f62cc;
    text-decoration: none;
    transition: 0.3s;
}

.contact-line a:hover {
    color: #a6ce36;
}

.contact-icon {
    width: 30px;
    height: 30px;
}

.business-hours {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.6;
}

.business-hours li {
    margin-bottom: 8px;
    color: #333333; /* dark gray for easier reading */
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        margin-left: 20px;
    }

    .contact-left, .contact-right {
        min-width: 100%;
    }

    .contact-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-line strong {
        width: auto;
    }
}

/* ==========================
   FOOTER
========================== */

.site-footer {
    background-color: #a6ce36;   /* green background */
    text-align: center;
    padding: 40px 20px;          /* gives visible block */
    font-size: 16px;
    border-top: 3px solid #1f62cc; /* optional blue top border */
}

.site-footer .footer-main {
    color: #ffffff;    /* white text */
    font-weight: bold;
    margin-bottom: 10px;
}

.site-footer .footer-credit {
    color: #1f62cc;    /* blue text */
    font-size: 14px;
    font-weight: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        font-size: 14px;
        padding: 20px 15px;
    }
}
/* ==========================
   MOBILE OVERFLOW FIXES
========================== */
@media (max-width: 768px) {
    
    /* 1. Prevent Horizontal Scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. Reset the 80px Left Margins */
    .hero-content, 
    .intro-content, 
    .photo-row, 
    .services-content, 
    .services-row {
        margin-left: 0 !important;
        padding: 0 20px; /* Use padding for safe spacing instead */
        width: 100%;
    }

    /* 3. Fix the Header & Logo */
    .site-header {
        padding: 15px 20px;
    }
    .logo {
        font-size: 24px !important;
        white-space: normal; /* Prevents logo from pushing wide */
    }

    /* 4. Make Boxes Fluid (Crucial) */
    .photo-box, 
    .service-box, 
    .quote-form-box, 
    .quote-info {
        width: 100% !important; /* Forces boxes to stay inside the screen */
        max-width: 100% !important;
        height: auto;
        min-height: 200px;
        flex-basis: 100%; /* Ensures they stack vertically */
    }

    /* 5. Center Hero Text */
    .hero-section {
        height: auto;
        padding: 60px 0;
        text-align: left;
    }
    .hero-content {
        margin: 0 auto !important;
    }
	
	/* Reduce space at the bottom of the Quote section */
    .quote-section {
        padding-bottom: 20px !important;
    }

    /* Reduce space at the top of the About/Intro section */
    .intro-section {
        padding-top: 20px !important;
    }
	
    /* Force both containers to use the exact same spacing */
    .quote-container, 
    .intro-section,
    .intro-content,
    .services-content,
    .contact-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;  /* This is your new "Master Margin" */
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block; /* Ensures they all stack and align the same way */
    }

    /* Fix for the photo row which might still be trying to use desktop margins */
    .photo-row, .services-row {
        margin-left: 0 !important;
        padding-left: 20px !important;
        width: 100%;
    }
	
    /* Add space specifically between the blue form and the text below it */
    .quote-form-box {
        margin-bottom: 40px !important; 
    }

    /* Ensure the text below the form aligns perfectly left with the form edge */
    .quote-info {
        padding-left: 0 !important; 
        text-align: left;
    }

    .quote-info h2 {
        margin-top: 0; /* Remove any extra top push on the heading */
    }
	
	.quote-info h2 {
        font-size: 24px !important;   /* Same size as the other title for consistency */
        line-height: 1.2 !important;  /* Keeps the lines tight */
        text-align: left;             /* Ensures it stays hard-left */
        margin-bottom: 15px;
        display: block;               /* Ensures it behaves as a full-width block */
    }

    /* This forces any manual line breaks to ignore their "break" command 
       if the screen is too narrow */
    .quote-info h2 br {
        display: none; 
    }
	
	.intro-content h2 {
        font-size: 24px !important;   /* Smaller size to fit more words per line */
        line-height: 1.2 !important;  /* Tighten space between lines */
        white-space: normal !important; /* Allows natural wrapping */
        word-spacing: normal;
        margin-bottom: 15px;
    }

    /* Optional: If the Hero title has the same issue, do it here too */
    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.1;
    }
	
@media (max-width: 768px) {
    /* 1. The Container */
    .contact-line {
        display: block !important; /* Forces a simple top-to-bottom flow */
        text-align: left !important;
        margin-bottom: 25px;
        width: 100%;
    }

    /* 2. The Icon - Keep it inline with the Title */
    .contact-icon {
        display: inline-block !important;
        vertical-align: middle;
        width: 24px;
        height: 24px;
        margin-right: 10px;
        margin-bottom: 0 !important;
    }

    /* 3. The Title (Phone, Email, etc.) */
    .contact-line strong {
        display: inline-block !important;
        vertical-align: middle;
        width: auto !important;
        font-size: 18px;
        color: #1f62cc;
        text-align: left;
    }

    /* 4. The Info (The actual number/email) */
    .contact-line a, 
    .contact-line span {
        display: block !important; /* This forces it to the next line */
        padding-left: 34px !important; /* Aligns it under the "P" in Phone */
        text-align: left !important;
        font-size: 16px;
        color: #333;
        margin-top: 5px;
    }
}