@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* Reset and Base Styles */
:root {
    --color-sky: #77c6ff;
    --color-navy: #1e3c72;
    --color-slate: #6b7280;
    --color-ink: #1f2937;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f7fb;
    --color-outline: rgba(30, 60, 114, 0.18);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.16);
    --radius-card: 16px;
    --radius-button: 12px;
    --transition-base: 200ms ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--color-ink);
    background: linear-gradient(180deg, #bfe4ff 0%, #89b7dd 55%, #5d7b94 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Navigation Styles */
nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(0, 43, 4);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 75px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu li a {
    color: var(--color-navy);
    text-decoration: none;
    padding: 1rem 1rem;
    border-radius: 999px;
    transition: background-color var(--transition-base), color var(--transition-base);
    display: block;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    min-width: fit-content;
}

/* Desktop: Logo left, nav right */
@media (min-width: 1300px) {
    .nav-container {
        justify-content: space-between;
    }
    
    .logo {
        order: 1;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        order: 2;
        display: flex;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: rgba(30, 60, 114, 0.25);
    color: var(--color-navy);
}

/* Show hamburger menu when nav items would be cut off */
@media (min-width: 769px) and (max-width: 1299px) {
    .hamburger {
        display: flex;
        order: 1;
        position: relative;
        z-index: 1001;
    }
    
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .nav-overlay.active {
        display: block;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        padding: 1rem;
        font-size: 1rem;
        text-align: left;
        width: 100%;
        display: block;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a.active {
        background-color: rgba(0, 43, 4, 0.1);
    }
}

/* Header Styles */
header {
    background: url('../backgrounds/water-texture-2.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    padding: 4.5rem 0 4rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    color: white;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.25));
    z-index: 0;
}

header h1,
header p {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    color: white;
}

header p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Section Styles */
.before-after-section {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.before-after-section h2 {
    color: #2a5298;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #2a5298;
    padding-bottom: 0.75rem;
}

.content-section {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-outline);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.content-section h2 {
    color: var(--color-navy);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid rgba(30, 60, 114, 0.35);
    padding-bottom: 0.75rem;
}

.content-section h3 {
    color: var(--color-navy);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section ul li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.content-section.contact-centered {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-section.contact-centered h2 {
    text-align: center;
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

.contact-card {
    text-align: center;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-button);
    background: var(--color-navy);
    color: var(--color-surface);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.contact-button:hover {
    background: var(--color-sky);
    color: var(--color-surface);
    box-shadow: var(--shadow-hover);
}


/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    padding: 2rem;
    border-left: 4px solid var(--color-navy);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: inherit;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
    opacity: 0.8;
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 0;
}
/* Before and After Grid */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.before-after-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    background: #e0e0e0;
}

.before-after-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.before-after-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Review Widget Container */
.review-widget-container {
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    margin-top: 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.review-widget-container iframe {
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.review-widget-container script {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Ensure Elfsight widget is responsive */
.review-widget-container .elfsight-app-*,
.review-widget-container [class*="elfsight-app-"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Hide any visible JSON-LD that might be incorrectly displayed */
script[type="application/ld+json"],
.review-widget-container script[type="application/ld+json"],
.review-widget-container > script,
.review-widget-container pre {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide any text nodes or elements containing JSON that appear after the widget */
.review-widget-container::after {
    display: none !important;
    content: none !important;
}

/* Ensure only the Elfsight widget is visible */
.review-widget-container > *:not(.elfsight-app-*):not(iframe) {
    display: none !important;
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
    background: var(--color-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    transition: background 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev::before {
    content: '‹';
    font-size: 50px;
    line-height: 1;
}

.lightbox-next::before {
    content: '›';
    font-size: 50px;
    line-height: 1;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #244b86 0%, #1a3560 100%);
    color: white;
    padding: 3rem;
    border-radius: var(--radius-card);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

.cta-section h2 {
    color: white;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
    max-width: 720px;
}

.cta-button {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-sky);
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.cta-button:hover {
    background: var(--color-sky);
    color: var(--color-surface);
    box-shadow: var(--shadow-hover);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-navy);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.08);
}

/* Reduce hover motion on touch devices */
@media (hover: none) {
    .content-section:hover,
    .feature-card:hover,
    .gallery-item:hover,
    .cta-button:hover {
        transform: none;
        box-shadow: var(--shadow-soft);
    }
}

/* Modern focus states */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible {
    outline: 3px solid rgba(159, 215, 255, 0.9);
    outline-offset: 3px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.bbb-link {
    grid-column: 1;
    justify-self: start;
}

.footer-text {
    grid-column: 2;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1299px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }

    /* Hamburger button visible on mobile */
    .hamburger {
        display: flex;
        order: 1;
        position: relative;
        z-index: 1001;
    }

    /* Logo centered on mobile */
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }

    .logo img {
        height: 50px;
        max-width: 200px;
    }

    /* Nav menu hidden by default on mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 4rem 1.5rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }

    /* Nav menu visible when active */
    .nav-menu.active {
        left: 0;
    }

    /* Overlay when menu is open - separate element approach */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        z-index: 1001;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu li a {
        padding: 1rem;
        font-size: 1rem;
        text-align: left;
        width: 100%;
        display: block;
        position: relative;
        z-index: 1002;
        pointer-events: auto;
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        background-color: rgba(0, 43, 4, 0.1);
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    main {
        padding: 1.5rem 1rem;
        overflow-x: hidden;
    }

    .content-section {
        padding: 1.5rem;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .before-after-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 35px;
        height: 35px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 15px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-prev::before,
    .lightbox-next::before {
        font-size: 40px;
    }

    .lightbox-content img {
        max-height: 85vh;
    }

    .review-widget-container {
        min-height: 300px;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .review-widget-container .elfsight-app-*,
    .review-widget-container [class*="elfsight-app-"] {
        width: 100% !important;
        max-width: 100% !important;
        transform: scale(1) !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bbb-link {
        grid-column: 1;
        justify-self: center;
        margin-bottom: 0rem;
    }

    .footer-text {
        grid-column: 1;
    }
}
