/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #A31E22; /* Red Star Red */
    --text-dark: #1A1A1A;
    --text-light: #555555;
    --bg-light: #F4F6F4; /* Light greenish-grey background seen in screenshots */
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a,
button,
input,
textarea,
select {
    touch-action: manipulation;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    text-wrap: balance;
    scroll-margin-top: 120px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: -100px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 600;
    z-index: 3000;
}

.skip-link:focus-visible {
    top: 10px;
}

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 24px;
}

.logo {
    display: block;
    flex-shrink: 0;
}

.logo img {
    width: clamp(220px, 24vw, 360px);
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    flex-wrap: nowrap;
}

.site-nav {
    margin-left: auto;
}

.menu-toggle {
    display: none;
    border: 1px solid #d1d5db;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-menu li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-menu li a.is-active {
    color: var(--primary-color);
}

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

.nav-menu li a:focus-visible {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
}

.hero-home {
    background-image: url('../images/hydraulic/WhatsApp Image 2026-03-10 at 1.03.35 PM.jpeg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    max-width: 700px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* Common Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .header {
        position: static;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-nav {
        position: relative;
    }
    .site-nav .nav-menu {
        display: none;
        position: absolute;
        right: 0;
        top: calc(100% + 12px);
        min-width: 230px;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        z-index: 1200;
    }
    .logo img {
        width: 210px;
        max-height: 52px;
    }
    .site-nav.is-open .nav-menu {
        display: flex;
    }
    .site-nav .nav-menu a {
        display: block;
        padding: 12px 16px;
    }
    .site-nav .nav-menu a:hover,
    .site-nav .nav-menu a:focus-visible {
        background: #f8fafc;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Detailed Service Sections */
.bg-light {
    background-color: var(--bg-light);
}

.detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.detailed-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.1;
}

.detailed-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.detailed-text h3 {
    font-size: 1.2rem;
    font-family: var(--font-body);
    margin: 30px 0 15px;
}

.detailed-text ul {
    list-style: none;
    margin-bottom: 30px;
}

.detailed-text ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    font-size: 0.95rem;
}

.detailed-text ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.mt-4 {
    margin-top: 30px !important;
}

.warranty-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-top: 40px;
}

.detailed-images.grid-images-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.detailed-images.grid-images-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.detailed-images.grid-images-3 img:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.detailed-images.grid-images-3 img:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.detailed-images.grid-images-3 img:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

/* Why Choose Us */
.why-choose-header {
    grid-column: 1 / 3;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;
    margin-top: 40px;
}

.why-choose-header h2 {
    font-size: 4rem;
    margin-bottom: 0px;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--white);
    padding: 100px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footer-col p {
    color: var(--text-dark);
}

/* Responsive updates for intermediate content */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .detailed-grid, .why-choose-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-choose-header {
        grid-column: 1 / 2;
    }
    .why-choose-header h2 {
        font-size: 3rem;
    }
    .detailed-images.grid-images-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .detailed-images.grid-images-3 img:nth-child(1),
    .detailed-images.grid-images-3 img:nth-child(2),
    .detailed-images.grid-images-3 img:nth-child(3) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* Shared inner page styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0;
}

/* Gallery page */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 36px 0 28px;
}

.filter-btn {
    padding: 9px 22px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.03em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
    opacity: 0.75;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.gallery-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* hide/show filtered items */
.gallery-item.hidden {
    display: none;
}

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

.lightbox.open {
    display: flex;
}

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

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 1001;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 1001;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* Certifications page */
.certifications-wrap {
    padding: 60px 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.certifications-wrap p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.cert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.cert-card {
    background: var(--white);
    padding: 24px 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: box-shadow 0.2s ease;
}

.cert-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.cert-image-link {
    display: block;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cert-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.cert-image-link:hover .cert-image {
    transform: scale(1.03);
}

.cert-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.cert-note {
    margin-top: 40px;
    font-style: italic;
    font-size: 0.95rem;
}

/* Contact page */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
    align-items: start;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-intro {
    margin-bottom: 40px;
    color: var(--text-dark);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(163, 30, 34, 0.2);
}

.form-group:focus-within label {
    color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #8a1518;
}

.btn-submit:active {
    transform: translateY(1px);
}

.form-note {
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

