/* Global Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #e0e0e0;
    --text-color: #333;
    --light-color: #fff;
    --dark-color: #000;
    --gray-color: #f4f4f4;
    --border-color: #ddd;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

section {
    padding: 40px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

/* Hero Section Styles */
.hero {
    background-color: #f5f7fa;
    padding: 60px 0;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative; /* keep content above overlay */
    z-index: 1;
    align-items: flex-start; /* position content to the top-left */
}

/* Dim overlay over hero background */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: left; /* move text alignment to left */
    max-width: 800px;
    margin: 0; /* remove auto-centering */
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #fff; /* white headline */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    font-style: italic; /* italic subheading */
    color: rgba(255, 255, 255, 0.95); /* near-white subheading */
}

.hero-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white; /* restore white background for Get In Touch */
    padding: 30px;
    border-radius: 8px;
    box-shadow: none; /* keep shadow off unless requested */
}

.hero-form h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
    font-size: 24px;
}

.hero-form .form-group {
    margin-bottom: 15px;
}

.hero-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.hero-form input,
.hero-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: var(--text-color);
    font-size: 16px;
}

.hero-form input:focus,
.hero-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.hero-form button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.hero-form button:hover {
    background-color: var(--secondary-color);
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        align-items: flex-start; /* keep top-left on desktop */
    }
    
    .hero-content {
        flex: 1;
        text-align: left;
    }
    
    .hero-form {
        flex: 1;
    }

    /* Button is absolutely positioned for desktop; no flex override needed */
}

/* Header Styles */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 10px 0;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

.services-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--light-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--gray-color);
    color: var(--primary-color);
}

.services-dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: url('https://kwnhngnzilsjguiaveil.supabase.co/storage/v1/object/public/Gibson/2025-06-16.webp') no-repeat center center/cover;
    color: var(--light-color);
    text-align: center;
    padding: 120px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Featured Services */
.featured-services {
    background-color: var(--gray-color);
}

.featured-services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.services-split {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 30px;
    align-items: stretch;
    margin-bottom: 40px;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.services-image {
    position: relative;
}

.photo-quote {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 70%;
}

@media (max-width: 768px) {
    .photo-quote {
        font-size: 13px;
        max-width: 90%;
        left: 12px;
        bottom: 12px;
        padding: 10px 12px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(180px, 1fr));
    gap: 24px;
    justify-content: center;
    margin-bottom: 12px; /* reduce space below boxes so CTA sits closer */
}

.service-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-card img {
    display: none;
}

.service-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
}

.service-card .service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-top: 10px;
}

/* SVG icons for service cards (cabinet, tiles) */
.service-card .service-icon-svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 10px;
    display: inline-block;
}
.service-card .service-icon-svg .knob {
    fill: var(--primary-color);
}

.service-card p {
    display: none;
}

/* Override inside split: two-column grid of square boxes on the right */
.services-split .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-content: start;
}

@media (max-width: 992px) {
    .services-split {
        grid-template-columns: 1fr;
    }
    .services-split .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-split .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card .btn-secondary {
    margin: 0 20px 20px;
}

.services-cta {
    text-align: center;
    margin-top: 2px; /* move button up closer to boxes */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    grid-column: 2;
    justify-self: center;
}

.services-cta .btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.services-cta .btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
/* Why Choose Us Section */
.why-choose-section {
    padding: 60px 0;
    background-color: #f5f7fa;
}

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

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.benefits-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.benefit-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    background-color: var(--primary-color);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.benefit-card h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}
}

.benefit-icon i {
    font-size: 32px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    color: #333;
    line-height: 1.4;
}

/* Removed conflicting media queries */

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
    
    .benefit-card {
        padding: 25px 15px;
    }
}

.benefit-icon i {
    font-size: 28px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 10px;
}

/* Responsive grid for Why Choose Us section */
@media (min-width: 576px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(5, 1fr);
    }
} 

.benefit-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); 
}

.benefit-icon { 
    font-size: 2rem; 
    color: #0066cc; 
    margin-bottom: 15px; 
    display: inline-block; 
    background-color: rgba(0, 102, 204, 0.08); 
    padding: 15px; 
    border-radius: 50%; 
    width: 70px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
} 

.benefit-card h3 { 
    font-size: 1rem; 
    color: #333; 
    margin-bottom: 0; 
    font-weight: 600; 
    line-height: 1.3; 
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .benefits-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .benefits-container {
        grid-template-columns: 1fr;
    }
}

/* Photo Gallery Section */
.photo-gallery {
    background-color: var(--gray-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0;
    font-size: 18px;
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
}

/* Contact Form Section */
/* Contact Form Section */
.contact-form-section {
    background-color: var(--gray-color);
    padding: 60px 0;
}

.contact-form {
    max-width: 800px;
    margin: 30px auto;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form .btn {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--light-color);
    font-size: 24px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    display: block;
    margin-bottom: 10px;
}

.footer-contact h4, .footer-links h4 {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 15px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        padding-left: 20px;
    }

    .services-dropdown:hover .dropdown-content {
        display: none;
    }

    .services-dropdown.active .dropdown-content {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 30px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Mobile-specific layout fixes */
@media (max-width: 768px) {
    /* Hero: put Gibson Services button under the form */
    .hero .hero-services-btn {
        position: static;
        display: block;
        margin-top: 16px;
        align-self: flex-start;
        width: fit-content;
    }

    /* Services: show grid first, CTA second, image third */
    .services-split {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .services-split .services-grid {
        order: 1;
        margin-bottom: 8px;
    }
    .services-split .services-cta {
        order: 2;
        margin-top: 6px;
        align-self: center; /* center CTA under boxes */
    }
    .services-image {
        order: 3;
        margin-top: 4px;
    }

    /* Why Choose: 2 rows grid-like layout */
    .benefits-wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px !important;
    }
    .benefits-wrap .benefit-card {
        width: calc(50% - 12px) !important;
        height: auto !important;
    }
}

/* Hero Gibson Services Button: desktop bottom-left overlay (default) */
.hero .hero-services-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 14px 22px; /* make a little bigger */
    border-radius: 28px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 18px;
}

.hero .hero-services-btn:hover {
    background-color: var(--secondary-color);
}

/* Nudge hero left text a bit lower */
.hero-container .hero-content {
    margin-top: 28px; /* drop the left words a little more down */
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Ensure mobile places the button under the form (override desktop absolute) */
@media (max-width: 768px) {
    .hero .hero-services-btn {
        position: static !important;
        left: auto;
        bottom: auto;
        display: block;
        margin-top: 16px;
        align-self: center; /* center button on mobile */
        width: fit-content;
    }
}