:root {
    --primary:        #059669; /* Updated to Green to match logo center */
    --primary-hover:  #047857;
    --accent:         #F97316; /* Orange from logo gears */
    --accent-hover:   #C2410C;
    --brand-green:    #059669;
    --whatsapp-bg:    #25D366;

    --text:           #1F2937;
    --text-invert:    #FFFFFF;
    --text-muted:     #4B5563;
    --bg:             #FFFFFF;
    --bg-subtle:      #F3F6F9;
    --border:         #E5E7EB;
    --footer-bg:      #111827;

    --ring:           color-mix(in oklab, var(--primary) 50%, transparent);
    --shadow-sm:      0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
    --shadow-md:      0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:      0 10px 30px rgba(0,0,0,.1);

    --radius:         8px;
    --container:      1200px;
    --gutter:         clamp(1rem, 5vw, 5rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --text:        #E5E7EB;
        --text-invert: #111827;
        --text-muted:  #9CA3AF;
        --bg:          #0B1220;
        --bg-subtle:   #111827;
        --border:      #1F2937;
        --footer-bg:   #060B16;
    }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Global justification for all paragraphs */
p {
    text-align: justify;
}

h1, h2, h3, h4, .logo, .brand-tagline {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--primary); color: #fff;
    padding: 12px 20px; z-index: 2000;
    border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Top Bar */
.top-bar {
    background: var(--primary); color: #fff;
    padding: 8px var(--gutter);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px 20px; font-size: .85rem;
}
.top-bar-tagline { font-weight: 600; letter-spacing: .3px; }
.top-bar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.top-bar a:hover { color: rgba(255,255,255,.85); }

/* Header */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg); box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 14px; padding-inline: var(--gutter);
}

.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo { font-size: clamp(1.4rem, 1rem + 1.5vw, 1.8rem); color: var(--text); }
.logo span { color: var(--brand-green); }

.brand-logo-img {
    height: clamp(2.8rem, 2.4rem + 1.5vw, 3.2rem); 
    width: auto; max-width: none; flex-shrink: 0; align-self: center;
}

.brand-tagline { 
    font-size: .95rem; color: var(--text-muted); 
    letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; 
}

/* Nav Menu */
.nav-menu { display: flex; gap: clamp(8px, 2vw, 24px); align-items: center; }
.nav-menu > li > a { font-weight: 600; font-size: .95rem; padding-block: 6px; position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-menu > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s ease; }
.nav-menu > li > a:hover::after, .nav-menu > li > a[aria-current="page"]::after { right: 0; }
.nav-menu > li > a:hover { color: var(--primary); }

/* Dropdown CSS */
.has-submenu { position: relative; }
.submenu {
    position: absolute; top: 100%; left: 0; background: var(--bg);
    box-shadow: var(--shadow-md); border: 1px solid var(--border);
    border-radius: var(--radius); min-width: 280px; padding: 12px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 1001;
}
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; }
.submenu a:hover { background: var(--bg-subtle); color: var(--primary); }
.submenu-toggle {
    background: transparent; border: none; color: inherit; cursor: pointer;
    font-size: 0.75rem; padding: 4px; transition: transform 0.2s ease;
}

/* Quote Button */
.btn-quote {
    background: var(--accent); color: #fff; padding: 10px 22px; border: 0;
    border-radius: var(--radius); font: 600 .95rem 'Inter', sans-serif; cursor: pointer;
    transition: background .2s ease, transform .15s ease; display: inline-flex; align-items: center; gap: 8px;
}
.btn-quote:hover { background: var(--accent-hover); }
.btn-quote:active { transform: translateY(1px); }

/* Hamburger */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 44px; height: 44px; font-size: 1.4rem; color: var(--text); }
.nav-toggle[aria-expanded="true"] .fa-bars { display: none; }
.nav-toggle[aria-expanded="false"] .fa-xmark { display: none; }

/* Hero Slider */
.hero-slider { position: relative; height: clamp(300px, 50vw, 450px); overflow: hidden; background: var(--bg-subtle); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease-in-out; background-size: cover; background-position: center; }
.slide.active { opacity: 1; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6)); }

/* Main */
main { display: block; }
.section-block { padding-block: clamp(32px, 4vw, 64px); padding-inline: var(--gutter); }
.container { max-width: var(--container); margin-inline: auto; }
.section-block h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 24px; color: var(--primary); }
.bg-white { background: var(--bg); }
.bg-light { background: var(--bg-subtle); border-block: 1px solid var(--border); }

/* About Section / Generic Grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text-muted); font-size: 1.05rem; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-card img { width: 100%; height: 200px; object-fit: cover; background: var(--bg-subtle); }
.product-card h3 { padding: 16px 20px; font-size: 1.1rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.product-card h3 i { color: var(--accent); transition: transform .2s ease; }
.product-card:hover h3 i { transform: translateX(4px); }

/* Stats Section */
.stats-section { background: var(--primary); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.stat-item i { font-size: 2.5rem; margin-bottom: 16px; color: var(--accent); }
.stat-item h3 { font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.5rem); margin-bottom: 8px; }
.stat-item p { color: rgba(255,255,255,.9); font-size: 1rem; font-weight: 500; }

/* Clients Marquee */
.clients-section { padding-block: 60px; overflow: hidden; background: var(--bg); }
.clients-section h2 { text-align: center; margin-bottom: 40px; }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 25s linear infinite; }
.client-logo { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text-muted); padding: 15px 30px; border: 2px solid var(--border); border-radius: var(--radius); min-width: 160px; text-align: center; transition: color .2s, border-color .2s; }
.client-logo:hover { color: var(--primary); border-color: var(--primary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== SHARED PAGE STYLES (Tables, Lists, Headings, CTAs) ===== */

/* Smaller, black heading style for sub-sections */
.section-title {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem !important; 
    color: #000000 !important; 
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    text-wrap: balance;
}

/* Wrapper for wide tables */
.table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 32px; }

/* General Data Table Styles */
.data-table {
    width: 100%; border-collapse: collapse; box-shadow: var(--shadow-sm);
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; min-width: 300px; table-layout: auto; 
}
.data-table th, .data-table td {
    padding: 14px 20px; text-align: left; vertical-align: middle;
    border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
    color: #000000; font-size: 0.95rem;
}
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: none; }
.data-table th:last-child, .data-table td:last-child { border-right: none; }
.data-table th:first-child, .data-table td:first-child { color: var(--primary); font-weight: 600; }
.data-table th { background: transparent; font-family: 'Inter', sans-serif; font-weight: 600; width: 25%; }

/* Properties Table specific styling */
.properties-table { table-layout: fixed; }
.properties-table th, .properties-table td { font-size: 0.9rem; word-break: break-word; }
.properties-table thead th { background: transparent; color: #000000; border-bottom: 2px solid var(--border); font-weight: 700; }
.properties-table thead tr:nth-child(2) th { border-bottom: 1px solid var(--border); font-weight: 600; }
.table-footnote { font-size: 0.85rem; color: var(--text-muted); margin-top: -20px; margin-bottom: 32px; font-style: italic; text-align: left; }

/* Checkmark List Styles */
.why-list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 16px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 1rem; text-align: justify; }
.why-list li i { color: var(--primary); margin-top: 5px; font-size: 1rem; flex-shrink: 0; }
.why-list li strong { color: var(--text); font-weight: 600; }
.why-heading { margin-top: 40px; color: var(--primary); font-size: 1.5rem; font-family: 'Rajdhani', sans-serif; font-weight: 700; }

/* CTA Text Styling */
.cta-text {
    text-align: center; font-size: 1.2rem; color: var(--text); font-weight: 600;
    margin-top: 40px; padding: 20px; background: var(--bg-subtle);
    border-radius: var(--radius); border: 1px solid var(--border); display: block;
}
.cta-text a { color: var(--accent); text-decoration: underline; }

/* Text container styling */
.text-container { max-width: 900px; margin-inline: auto; }
.text-container p { margin-bottom: 16px; }

/* ===== END SHARED STYLES ===== */

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; background-color: var(--whatsapp-bg);
    color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }

/* Footer */
.footer { background: var(--footer-bg); color: #D1D5DB; padding: 60px var(--gutter) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr 1fr; gap: 40px; max-width: var(--container); margin-inline: auto; margin-bottom: 40px; }
.footer-col h3 { color: #fff; margin-bottom: 18px; font-size: 1.15rem; }
.footer-col p { margin-bottom: 12px; font-size: .9rem; }
.footer-col ul li { margin-bottom: 10px; font-size: .9rem; display: flex; align-items: flex-start; }
.footer-col ul li i { margin-right: 8px; font-size: 0.9em; color: var(--accent); margin-top: 5px; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-logo { color: #fff; }
.footer-tagline { color: #9CA3AF; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--accent); margin-top: 5px; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a { display: inline-grid; place-items: center; width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; color: #fff; transition: background .2s ease, transform .15s ease; }
.social-icons a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .85rem; color: #9CA3AF; }

/* Responsive Nav */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: block; }
    .nav-wrapper { position: fixed; inset: 0 0 0 auto; width: min(320px, 80vw); background: var(--bg); box-shadow: var(--shadow-md); padding: 80px 24px 24px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
    .nav-wrapper[data-open="true"] { transform: translateX(0); }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .nav-menu > li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-menu > li > a { padding: 14px 0; font-size: 1.05rem; justify-content: space-between; }
    .nav-menu > li > a::after { display: none; }

    .has-submenu { flex-direction: column; align-items: stretch; }
    .submenu-toggle { position: absolute; right: 0; top: 0; height: 48px; width: 48px; display: grid; place-items: center; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 10px 15px; min-width: auto; display: none; }
    .has-submenu[data-open="true"] .submenu { display: block; }
    .has-submenu[data-open="true"] .submenu-toggle i { transform: rotate(180deg); }

    .nav-menu .btn-quote { margin-top: 15px; justify-content: center; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease; }
    .nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; } 
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar { justify-content: center; text-align: center; }
    .brand-tagline { margin-left: 0; text-align: center; }
    .logo { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .marquee-track { animation: none; }
}

@media print {
    .top-bar, .header, .footer, .btn-quote, .nav-toggle, .hero-slider, .clients-section, .whatsapp-float { display: none !important; }
    body { color: #000; background: #fff; }
}
