/* Zesto Tech - Premium Theme (Light Mode) */
:root {
    /* Colors - Light Theme */
    --color-background: #ffffff;
    --color-foreground: #1a1a1a;
    --color-primary: #f5f5f5;
    /* Light grey sections */
    --color-secondary: #439400;
    /* Zesto Green (Primary Brand) */
    --color-secondary-foreground: #ffffff;
    --color-accent: #d4af37;
    /* Gold (Luxury Accent) */
    --color-muted: #f0f0f0;
    --color-muted-foreground: #666666;

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Animation Timing */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease-out;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    background-color: var(--color-background);
    color: var(--color-foreground);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    /* Force dark headers in light mode */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

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

.uppercase {
    text-transform: uppercase;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.font-bold {
    font-weight: 700;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.hidden {
    display: none;
}

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

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:w-3\/5 {
        width: 60%;
    }

    .md\:w-2\/5 {
        width: 40%;
    }
}

/* Animations (Intersection Observer Targets) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

/* COMPONENT STYLES START HERE */

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* Light Mode: White Blur */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 80px;
    }
}


.nav-link {
    color: rgba(0, 0, 0, 0.7);
    /* Light Mode: Dark text */
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 2rem;
    position: relative;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.desktop-menu {
    display: flex;
    align-items: center;
}

#mobile-menu-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    /* Light Mode: Dark Icon */
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    /* Light Mode: White bg */
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-links a {
    display: block;
    font-size: 2rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-foreground);
    margin-left: 1.5rem;
}

.btn-primary:hover {
    background-color: #1a1a1a;
    /* Dark hover */
    color: #fff;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: .3;
    /* Increased visibility for impact */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Lighter gradient to show image */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
    z-index: -1;
}

.hero h1 {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

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

.text-gradient {
    background: linear-gradient(to right, var(--color-secondary), #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(67, 148, 0, 0.1);
    border: 1px solid rgba(67, 148, 0, 0.3);
    color: var(--color-secondary);
    border-radius: 99px;
    font-size: 0.6rem;
    /* Reduced from 0.7rem */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Further reduced */
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
    max-width: 95%;
}

.hero p {
    font-size: 0.9rem;
    /* Reduced from 1rem */
    color: rgba(0, 0, 0, 0.7);
    max-width: 90%;
    margin: 0 auto 1.5rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1.25rem;
        max-width: 800px;
        margin-bottom: 3rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.hero-buttons .btn {
    font-size: 0.75rem;
    /* Smaller for mobile hero */
    padding: 0.6rem 1.2rem;
}

@media (min-width: 768px) {
    .hero-buttons .btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator.fade-up {
    transform: translateX(-50%) translateY(30px);
}

.scroll-indicator.fade-up.visible {
    transform: translateX(-50%) translateY(0);
}

.scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--color-secondary), transparent);
}

/* Partners Strip */
.partners-strip {
    padding: 3rem 0;
    background: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.partners-strip p {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.partners-grid span {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.3s;
    cursor: default;
}

.partners-grid span:hover {
    color: var(--color-secondary);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--color-background);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-header h2 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-desc {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.125rem;
    max-width: 500px;
}

.link-arrow {
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
}

.service-card {
    position: relative;
    padding: 2rem;
    background: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: transparent;
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Service Images */
.service-card:nth-child(1) .card-bg {
    background-image: url('../images/service-joinery.jpg');
    background-size: cover;
}

.service-card:nth-child(2) .card-bg {
    background-image: url('../images/service-mep-updated.jpg');
    background-size: cover;
}

.service-card:nth-child(3) .card-bg {
    background-image: url('../images/service-painting.jpg');
    background-size: cover;
}

.service-card:nth-child(4) .card-bg {
    background-image: url('../images/service-gypsum.jpg');
    background-size: cover;
}

.service-card:nth-child(5) .card-bg {
    background-image: url('../images/service-turnkey.jpg');
    background-size: cover;
}

.service-card:nth-child(6) .card-bg {
    background-image: url('../images/service-fitout.jpg');
    background-size: cover;
}

.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    opacity: 0.05;
    /* Light mode needs minimal opacity */
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card h3,
.service-card p,
.service-icon,
.learn-more {
    position: relative;
    z-index: 1;
}

.service-card:hover .card-bg {
    opacity: 0.4;
    /* Reveal image clearly but keep text readable */
}

.service-icon {
    color: var(--color-secondary);
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.service-card p {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

/* Why Zesto */
.why-zesto-section {
    padding: 6rem 0;
    background: #f9f9f9;
}

.overline {
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
}

.why-content h2 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.why-content p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.why-list {
    list-style: none;
}

.why-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.why-list li:hover {
    background: rgba(0, 0, 0, 0.03);
}

.icon-box {
    background: rgba(67, 148, 0, 0.1);
    color: var(--color-secondary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.why-list h4 {
    color: #1a1a1a;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.why-list p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.placeholder-visual {
    height: 500px;
    background-image: url('../images/why-zesto.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.status-panel {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.status-text {
    font-family: var(--font-mono);
    color: #1a1a1a;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Portfolio */
.portfolio-section {
    padding: 6rem 0;
    background: #ffffff;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .project-item {
        flex-direction: row;
        align-items: center;
    }

    .project-item.reverse {
        flex-direction: row-reverse;
    }
}

.project-image {
    background: #f0f0f0;
    aspect-ratio: 16/9;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67, 148, 0, 0.8), rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s;
    opacity: 0.6;
}

.view-case {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    color: #1a1a1a;
    /* Dark text for contrast against light btn */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-image:hover .view-case {
    opacity: 1;
}

.project-info h3 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.project-info p {
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
}

.project-info ul {
    list-style: none;
}

.project-info ul li {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.category {
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-section {
    padding: 6rem 0;
    background: #f4f4f4;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-header p {
    color: rgba(0, 0, 0, 0.6);
}

.contact-grid {
    display: grid;
    gap: 3rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media(min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.contact-info h3 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info .desc {
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    background: rgba(67, 148, 0, 0.1);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.info-item a,
.info-item p {
    color: #1a1a1a;
    font-size: 1rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

label {
    display: block;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    color: #1a1a1a;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: #fff;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid #eaeaea;
    background: #ffffff;
}

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

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

.footer-brand .logo-img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(0, 0, 0, 0.6);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* Portfolio Section Images */
.projects-list .project-item:nth-child(1) .project-image {
    background-image: url('../images/portfolio-villa.jpg');
    background-size: cover;
    background-position: center;
}

.projects-list .project-item:nth-child(2) .project-image {
    background-image: url('../images/portfolio-office.jpg');
    background-size: cover;
    background-position: center;
}

/* Ensure text stays readable over images */
.service-card:hover h3,
.service-card:hover p {
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
    color: #000;
}

/* Responsive Utilities (Missing) */
.hidden {
    display: none;
}

.flex {
    display: flex;
}

.block {
    display: block;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }

    .md\:flex {
        display: flex;
    }

    .md\:block {
        display: block;
    }

    .md\:w-1\/2 {
        width: 50%;
    }

    .md\:w-3\/5 {
        width: 60%;
    }

    .md\:w-2\/5 {
        width: 40%;
    }
}