/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Jake's Plumbing Color System */
    --background: #FFFFFF;
    --foreground: #0A2A43;
    --card: #EBF5FC;
    --card-foreground: #0A2A43;
    --primary: #0A2A43;
    --primary-foreground: #FFFFFF;
    --secondary: #A9D3F5;
    --secondary-foreground: #0A2A43;
    --muted: #F0F7FC;
    --muted-foreground: #4A6B85;
    --destructive: #EF4444;
    --border: #D1E5F4;
    --radius: 0.75rem;
    --light-blue-soft: #EBF5FC;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Styles */
.section-padding {
    padding: 4rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 6rem 2rem;
    }
}

.section-light-blue {
    background-color: var(--light-blue-soft);
}

.section-secondary {
    background-color: var(--secondary);
}

.section-secondary-light {
    background-color: rgba(169, 211, 245, 0.3);
}

.section-dark-blue {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.section-dark-blue .section-header h2 {
    color: var(--primary-foreground);
}

.section-dark-blue .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(10, 42, 67, 0.25);
}

.btn-primary:hover {
    background-color: rgba(10, 42, 67, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 42, 67, 0.35);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--background);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    background-color: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    display: none;
}

@media (min-width: 640px) {
    .logo-text {
        display: block;
    }
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-desktop a {
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    color: var(--muted-foreground);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-mobile a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background-color: var(--background);
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 36rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-cta {
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.trust-badge .stars {
    display: flex;
    color: var(--primary);
}

.trust-badge .stars i {
    font-size: 1.25rem;
}

.trust-badge span {
    font-weight: 500;
}

.hero-image .image-wrapper {
    position: relative;
}

.hero-image .image-wrapper::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background-color: rgba(169, 211, 245, 0.5);
    border-radius: 1rem;
    z-index: -1;
}

.hero-image img {
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    object-fit: cover;
}

/* About Section */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-wrapper-circle {
    position: relative;
    width: 16rem;
    height: 16rem;
}

@media (min-width: 768px) {
    .image-wrapper-circle {
        width: 20rem;
        height: 20rem;
    }
}

.image-wrapper-circle::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background-color: rgba(10, 42, 67, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.image-wrapper-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-color: white;
    padding: 1rem;
}

.about-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: 2.25rem;
    }
}

.about-content > p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--background);
    border-radius: var(--radius);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Services Section */
.services-grid {
    display: grid;
    gap: 2rem;
}

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

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

.service-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card ul li {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.75;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-card ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    margin-top: 0.125rem;
}

/* Qualifications Section */
.qualifications-grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .qualifications-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.qualification-card {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qual-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.qual-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.qualification-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.qualification-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qualification-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted-foreground);
}

.qualification-card ul li i {
    color: var(--primary);
    margin-top: 0.25rem;
}

/* Why Choose Section */
.trust-grid {
    display: grid;
    gap: 1.5rem;
}

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

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

.trust-card {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
}

.trust-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.trust-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.trust-content p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.quote-text {
    text-align: center;
    margin-top: 2.5rem;
}

.quote-text p {
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
    color: var(--primary);
}

/* Portfolio Section */
.before-after {
    margin-bottom: 3rem;
}

.before-after h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1rem;
}

.before-after-desc {
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.before-after-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr auto 1fr;
    }
}

.ba-image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ba-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ba-image:hover img {
    transform: scale(1.05);
}

.ba-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.ba-before {
    background-color: var(--destructive);
    color: white;
}

.ba-after {
    background-color: #16a34a;
    color: white;
}

.ba-arrow {
    display: none;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .ba-arrow {
        display: flex;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

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

.portfolio-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--card);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 42, 67, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    background-color: rgba(10, 42, 67, 0.2);
}

.portfolio-overlay i {
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.portfolio-item:hover .portfolio-overlay i {
    opacity: 1;
}

.portfolio-cta {
    text-align: center;
}

/* Suppliers Section */
.suppliers-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
}

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

.supplier-card {
    background-color: var(--background);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.supplier-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.supplier-card img {
    height: 7rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
}

.supplier-card p {
    color: var(--muted-foreground);
}

/* Payment Section */
.payment-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

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

.payment-item {
    text-align: center;
}

.payment-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.payment-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.payment-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.payment-item p {
    color: var(--muted-foreground);
}

/* CTA Section */
.cta-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.service-areas {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-areas i {
    margin-top: 0.25rem;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.lightbox-label {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.lightbox-label.before {
    background-color: var(--destructive);
    color: white;
}

.lightbox-label.after {
    background-color: #16a34a;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out forwards;
    animation-delay: 200ms;
}
