@font-face {
    font-family: 'Open Sans';
    src: url('/css/fonts/OpenSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/css/fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/css/fonts/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    color: #fff;
    text-decoration: none;
}

h1, h2 {
    font-weight: 300;
    line-height: 1.2;
}

p {
    margin: 10px 0;
}

img {
    width: 100%;
}

/* ============================================
   MOBILE FIRST BASE STYLES (Default)
   ============================================ */

/* Navbar - Mobile Default */
/* Mobile - Navbar Layout */
.navbar {
    display: flex;
    flex-direction: row; /* Keep horizontal layout */
    align-items: center;
    justify-content: space-between; /* Pushes hamburger to left, logo to right */
    background-color: #333;
    color: #fff;
    opacity: 0.8;
    width: 100%;
    height: 70px; /* Fixed height for consistent layout */
    position: fixed;
    top: 0;
    padding: 0 15px;
    transition: 0.5s;
    z-index: 1000;
    flex-wrap: nowrap;
}

/* Hamburger Button */
.hamburger {
    display: block;
    background: none;
    border: none;
    color: #fff !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    font-size: 1.2rem;
    
}

/* Logo */
.navbar .logo {
    font-weight: 400;
    font-size: 1.1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Ensure the logo link doesn't collapse */
.navbar .logo a {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between text and image */
    color: #fff !important;
    text-decoration: none;
}
.logo-img{
    height: 22px;
}

/* Mobile Nav Links (Hidden by default) */
.navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: #444;
    padding: 15px 0;
    position: absolute;
    top: 70px; /* Below navbar */
    left: 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Show nav links when active */
.navbar.active ul {
    display: flex;
}
.navbar nav{
    order: 3;
    flex-shrink: 0;
}

/* Ensure the hamburger and logo stay on top */
.hamburger, .navbar .logo {
    position: relative;
    z-index: 1001; /* Higher than the dropdown menu */
}

/* ============================================
   HEADER / HERO SECTION
   ============================================ */

.hero {
    background: url('../images/home/showcase.jpg') no-repeat center center/cover;
    height: 100vh;
    position: relative;
    color: #fff;
}

.hero .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 20px;
}

.hero .content h1 {
    font-size: 35px;
}

.hero .content p {
    font-size: 23px;
    max-width: 600px;
    margin: 20px 0 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero * {
    z-index: 10;
}

.content h1 {
    margin-top: 4rem;
}

.logo-img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    margin: 0 10px;
}

.hero.blog {
    background: url('/images/home/fence.jpg') no-repeat center center/cover;
    height: 30vh;
}

/* ============================================
   SECTIONS & COMPONENTS
   ============================================ */

.icons {
    padding: 30px;
}

.icons h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

.icons i {
    color: #28a745;
    padding: 1rem; /* Fixed typo: was "pading" */
}

.icon {
    width: 16px;
    height: 16px;
    color: white;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta .btn {
    white-space: nowrap;
}

/* Ratings */
.rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.star {
    width: 20px;
    height: 20px;
    color: #ffc107;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star:hover {
    color: #ff6b6b;
}

/* Privacy Page Container */
.privacy-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.8;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content .contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.privacy-content .contact-info p {
    margin-bottom: 0.5rem;
}

.cases img:hover {
    opacity: 0.7;
}

/* Photos Gallery */
#photos {
    margin-top: 30px;
}

#photos img {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 0 5px;
}

/* Team */
.team img {
    border-radius: 50%;
}

/* Contact Form */
.callback-form {
    width: 100%;
    padding: 20px 0;
}

.callback-form label {
    display: block;
    margin-bottom: 5px;
}

.callback-form .form-control {
    margin-bottom: 15px;
}

.callback-form input {
    width: 100%;
    padding-block-end: 4px;
    height: 40px;
    border: #f5f5f5 1px solid;
}

.callback-form input:focus {
    outline-color: #28a745;
}

.callback-form .btn {
    padding: 12px 0;
    margin-top: 20px;
}

/* Post */
.post {
    padding: 50px 30px;
}

.post h2 {
    font-size: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: #ccc solid 1px;
}

.post .meta {
    margin-bottom: 30px;
}

.post img {
    width: 300px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 30px;
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Related Services */
.related-services {
    background-color: #f8f9fa;
}

.horizontal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.horizontal-links li {
    flex: 0 0 auto;
}

.horizontal-links a {
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.horizontal-links a:hover {
    background-color: #2980b9;
    color: white;
    border-color: #2c3e50;
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding: 15px 0;
    color: #555;
}

.faq-answer.show {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

.faq-category {
    margin-top: 30px;
}

.faq-category h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #28a745;
}

.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.faq-cta h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.faq-cta a {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.faq-cta a:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 3rem 1rem 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #28a745;
}

.contact-info, .hours-list {
    font-size: 0.9rem;
    line-height: 1.8;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    margin-right: 1rem;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.85rem;
}

/* ENHANCEMENT = Screens 500px and wider */
@media (min-width: 500px) {
    .navbar .logo {
        font-size: 1.5rem; /* Larger size for bigger screens */
    }

    .navbar .logo a {
        gap: 10px; /* Normal spacing */
    }

    .logo-img {
        height: 30px; /* Normal logo size */
    }

    .hamburger {
        padding: 10px;
        font-size: 1.5rem;
    }
}

/* ============================================
   DESKTOP ENHANCEMENTS (768px and up)
   ============================================ */

@media (min-width: 768px) {
    /* Navbar - Desktop */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        height: 70px;
        padding: 0 40px;
    }

    /* Navigation Links */
    .navbar nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        order: 3;

    }

    .navbar ul {
        display: flex !important; /* Force flex to override mobile 'none' */
        flex-direction: row;
        background: transparent;
        width: auto;
        position: static !important; /* CRITICAL: Reset absolute positioning */
        box-shadow: none;
        padding: 0; /* Remove mobile padding */
        gap: 5px;
    }

    .navbar li {
        display: inline-block; /* Or just rely on flex on ul */
    }

    .navbar a {
        padding: 10px 12px;
        margin: 0 3px;
    }

    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        text-align: center;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .footer {
        padding: 3rem 1rem 1rem;
    }

    /* Gallery Photos */
    #photos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 90%;
        margin: auto;
    }

    /* Hero */
    .hero .content h1 {
        font-size: 55px;
    }

    /* Logo */
    .logo-img {
        height: 40px;
    }

    /* Flex Items */
    .flex-items {
        flex-direction: row;
    }

    .flex-columns .column, .flex-grid .column {
        flex: 100%;
        max-width: 50%;
    }

    /* Team */
    .team img {
        width: 70%;
    }

    /* FAQ */
    .faq-container {
        width: 80%;
        margin: 0 auto;
        padding: 40px;
    }

    .faq-header h1 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px;
    }
}

/* ============================================
   TABLET / SMALL DESKTOP (500px - 767px)
   ============================================ */

@media (min-width: 500px) and (max-width: 767px) {
    .navbar {
        padding: 20px;
    }

    .navbar a {
        padding: 10px 10px;
        margin: 0 3px;
    }

    .logo-img {
        height: 50px;
    }

    .flex-items {
        flex-direction: column;
    }

    .flex-columns .column, .flex-grid .column {
        flex: 100%;
        max-width: 100%;
    }

    .team img {
        width: 70%;
    }

    #photos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 6px;
        margin-top: 0;
    }
}