/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #7AC4ED;
    --dark-blue: #2B5F82;
    --light-bg: #F8FCFF;
    --white: #ffffff;
    --text-dark: #1A3C54;
    --accent-color: #7AC4ED;
    --success-color: #4CAF50;
    --border-radius: 10px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

html {
    height: 100%;
}

body {
    font-family: 'Geometria', sans-serif;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar & Navbar - Always at the top */
.top-bar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-bar {
    padding: 0.25rem;
    text-align: center;
    background-color: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.contact-bar a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar {
    padding: 0.25rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Hero Section with Video */
.hero {
    min-height: 85vh;
    margin-top: 3.5rem;
    position: relative;
    overflow: hidden;
    padding: 1rem 1rem 0 1rem;
    margin-bottom: 0;
}

.hero-container {
    display: flex;
    min-height: 85vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto -1px auto; /* Added negative bottom margin */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--white);
    border-radius: 20px 20px 0 0; /* Removed bottom radius */
    overflow: hidden;
}

.hero-video {
    flex: 1.2;
    min-height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 20px 0 0 20px;
}

.hero-video video {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(to right, rgba(255,255,255,0.7), var(--white));
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 0 20px 20px 0;
    overflow-y: auto;
}

.hero-logo {
    max-width: 500px;
    width: 85%;
    height: auto;
    margin-bottom: -4rem;
    margin-top: -2rem;
    filter:
        drop-shadow(0 0 4px rgba(0,0,0,0.2))
        drop-shadow(0 0 8px rgba(0,0,0,0.1));
}

.hero-promotion {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem;
    padding: 1rem 2rem;
    background: var(--primary-blue);
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.hero-promotion:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    background: linear-gradient(to right, var(--primary-blue), #5eb8e7);
}

.why-choose-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 2rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.75rem;
}

.why-choose-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
}

.hero-text {
    max-width: 90%;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Hero Highlights Section */
.hero-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

.hero-highlights .highlight-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-highlights .highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-highlights .highlight-item i {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.hero-highlights .highlight-item h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-highlights .highlight-item p {
    color: var(--text-dark);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Service Areas Section */
.service-areas {
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(122,196,237,0.2);
}

.service-areas h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.service-areas h3:after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.area-tags span {
    background: rgba(122,196,237,0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--dark-blue);
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.area-tags span:hover {
    background: rgba(122,196,237,0.3);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}

/* Instagram Widget - Fixed to bottom right */
.instagram-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    background-color: #E1306C; /* Instagram color */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instagram-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.instagram-widget a {
    color: white;
    font-size: 1.5rem;
}

/* About Highlights Section */
.about-highlights-section {
    padding: 2rem 2rem;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.highlight-item h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight-item p {
    color: var(--text-dark);
    font-size: 1rem;
}

/* About Section */
.about-section {
    padding: 2rem 2rem 4rem;
    background-color: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Gallery Section (for About page) - ORIGINAL STYLING */
.gallery-section {
    margin-top: 4rem;
    text-align: center;
}

.gallery-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 220px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
    opacity: 0;
}

.gallery-item:hover .gallery-overlay,
.gallery-item.gallery-selected .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

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

.gallery-item.gallery-selected {
    z-index: 2;
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Consistent Spacing for Sections */
section {
    padding: 4rem 2rem;
    position: relative;
    margin: 0;
}

.services h2, 
.contact-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.services h2:after, 
.contact-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px;
}

.services {
    background-color: var(--light-bg);
    margin-top: -1px; /* Negative margin to eliminate gap */
    padding-top: 4rem;
    border-top: 1px solid rgba(43,95,130,0.05);
}

.contact-section {
    background-color: var(--white);
    border-top: 1px solid rgba(43,95,130,0.05);
}

/* HOME PAGE (3-column grid layout) */
.home .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* SERVICES PAGE (Horizontal row layout) */
.services-page .service-cards {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-page .service-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.services-page .service-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* Common Service Card Styles */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Bullet list inside each card */
.includes {
    list-style: none;
    margin: 1.5rem 0;
}

.includes li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.includes li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Service Image Styles */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    box-shadow: var(--box-shadow);
}

.services-page .service-image {
    width: 400px;
    height: 260px;
    margin-top: 0;
}

/* Contact Now Button */
.contact-now-btn {
    background: var(--dark-blue);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.contact-now-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43,95,130,0.2);
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Modern Form Styles */
.modern-form {
    background: linear-gradient(145deg, #f8fcff, #e6f5ff);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
}

.textarea-container i {
    top: 18px;
    transform: none;
}

.input-with-icon input,
.input-with-icon textarea {
    padding-left: 40px;
    border-radius: 100px;
    width: 100%;
    border: 1px solid rgba(43,95,130,0.2);
    padding: 0.75rem 0.75rem 0.75rem 40px;
    transition: var(--transition);
}

.input-with-icon textarea {
    border-radius: 15px;
    padding-top: 1rem;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    outline: none;
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(122,196,237,0.3);
}

/* Service Selection */
.service-selection {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.service-option {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(43,95,130,0.15);
    background: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.service-option i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.service-option span {
    font-weight: 500;
    text-align: center;
}

.service-option input {
    position: absolute;
    opacity: 0;
}

.service-option.selected {
    background: rgba(122,196,237,0.15);
    border-color: var(--primary-blue);
    box-shadow: 0 3px 10px rgba(43,95,130,0.1);
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Geometria', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.submit-btn i {
    font-size: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(43,95,130,0.25);
    background: linear-gradient(to right, var(--dark-blue), var(--primary-blue));
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-bg);
    color: var(--text-dark);
    border-top: 1px solid rgba(43,95,130,0.1);
    margin-top: auto; /* Pushes footer to the bottom if page is short */
}

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.rise-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
}

.rise-link {
    color: #ff5967;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.001rem;
    transition: opacity 0.3s ease;
}

.rise-link:hover {
    opacity: 0.8;
}

/* Main content wrapper */
main {
    flex: 1 0 auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-bar {
        padding: 0.25rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    .contact-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        font-size: 0.9rem;
    }
    .navbar {
        padding: 0.5rem;
    }
    .nav-links {
        gap: 0.5rem;
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Mobile Hero Section */
    .hero {
        padding: 0.5rem;
    }
    .hero-container {
        flex-direction: column;
        border-radius: 15px;
        min-height: auto;
    }
    .hero-video {
        min-height: 40vh;
        border-radius: 15px 15px 0 0;
    }
    .hero-content {
        padding: 1.5rem 1rem;
        border-radius: 0 0 15px 15px;
        min-height: auto;
    }
    .hero-logo {
        margin-top: 0;
        max-width: 220px;
        margin-bottom: 1rem;
    }
    .hero-promotion {
        font-size: 1.3rem;
        padding: 0.75rem 1.25rem;
        margin-bottom: 0.75rem;
    }
    .why-choose-title {
        margin-top: 1rem;
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile Hero Highlights */
    .hero-highlights {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-highlights .highlight-item {
        max-width: 100%;
        width: 100%;
        padding: 0.75rem;
    }
    .hero-highlights .highlight-item i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .hero-highlights .highlight-item h3 {
        font-size: 1rem;
    }
    .hero-highlights .highlight-item p {
        font-size: 0.85rem;
    }
    
    /* Mobile Service Areas */
    .service-areas {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
    .service-areas h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    .area-tags {
        gap: 0.4rem;
    }
    .area-tags span {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
    
    /* Mobile Spacing Consistency */
    section {
        padding: 2.5rem 1rem;
    }
    
    /* Services mobile view */
    .service-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    .service-image {
        width: 100% !important;
        height: auto !important;
        margin-top: 1rem;
    }
    .services {
        padding: 2rem 1rem;
    }
    
    /* Modern Form on mobile */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    .modern-form {
        padding: 1.5rem;
    }
    .service-selection {
        flex-direction: column;
    }
    .contact-section {
        padding: 2rem 1rem;
    }
    
    /* Gallery on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* FIX FOR INNER PAGES (Services, Estimate, About) */
    /* Added top margin to inner pages to make content visible below navbar */
    .estimate-page .contact-section,
    .about-page .about-section {
        margin-top: 80px !important;
    }
    
    /* Fix specifically for the services page on mobile */
    .services-page .services {
        margin-top: 100px !important;
        padding-top: 1rem !important;
    }

    .services-page .services h2 {
        margin-top: 1rem;
        padding-top: 0.5rem;
    }

    .services-page br + br {
        display: block;
        content: "";
        margin-top: 1rem;
    }

    .services-page .service-info {
        margin-top: 1rem;
    }
    
    /* Instagram Widget on mobile */
    .instagram-widget {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 15px;
    }
}