/* ============================================
   Drishti Infrastructure - Redesigned Stylesheet
   Preserving original dark/brown/tan aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-black: #111111;
    --color-near-black: #1a1a1a;
    --color-charcoal: #2A2A2A;
    --color-dark-gray: #3d3d3d;
    --color-brown-dark: #7A5640;
    --color-brown-heading: #4A3828;
    --color-tan: #C8956E;
    --color-tan-light: #D4A882;
    --color-tan-dark: #A87A58;
    --color-text: #444444;
    --color-text-light: #777777;
    --color-white: #FFFFFF;
    --color-bg: #F5F3F0;
    --color-section-alt: #FAFAF8;
    --color-border: #DDD5CC;

    --font-heading: 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
    --font-body: 'Trebuchet MS', Arial, sans-serif;

    --max-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-tan-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--color-tan);
}

ul {
    list-style: none;
}

/* --- Header --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-near-black);
    border-bottom: 1px solid var(--color-dark-gray);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    gap: 16px;
}

/* --- Logo --- */
#logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
}

.tagline {
    color: var(--color-tan);
    font-size: 0.78em;
    margin-top: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* --- Navigation (always visible as buttons) --- */
#nav ul {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#nav a {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82em;
    border-radius: var(--radius);
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

#nav a:hover {
    background: var(--color-brown-dark);
    color: var(--color-white);
}

#nav a.active {
    background: var(--color-tan);
    color: var(--color-white);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 66px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px 24px;
}

.hero-logo {
    max-width: 620px;
    width: 90%;
    height: auto;
    margin: 0 auto 20px;
    filter: brightness(1.15) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.4));
}

.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05em;
    margin-bottom: 16px;
    line-height: 1.8;
}

.hero-establishment {
    font-style: italic;
    color: var(--color-tan-light) !important;
    font-size: 0.95em !important;
}

.btn {
    display: inline-block;
    margin-top: 16px;
    padding: 13px 36px;
    background: var(--color-tan-dark);
    color: var(--color-white);
    font-size: 0.95em;
    border-radius: var(--radius);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: var(--color-tan);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* --- Sections Common --- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--color-brown-heading);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-tan);
    border-radius: 2px;
}

/* --- Works Section --- */
#works {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.work-category {
    margin-bottom: 48px;
}

.work-category:last-of-type {
    margin-bottom: 0;
}

.work-category h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--color-brown-heading);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-tan);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.caption {
    padding: 10px 12px;
    font-size: 0.85em;
    color: var(--color-text);
    text-align: center;
    background: var(--color-white);
}

/* --- Clients Section --- */
.clients-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.clients-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--color-brown-heading);
    text-align: center;
    margin-bottom: 24px;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}

.clients-grid span {
    padding: 8px 18px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.88em;
    color: var(--color-text);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.clients-grid span:hover {
    border-color: var(--color-tan);
    color: var(--color-brown-dark);
    background: #FDF8F4;
}

/* --- About Section --- */
#about {
    padding: var(--section-padding);
    background: var(--color-section-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-equipment {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-equipment h3 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--color-brown-heading);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-tan);
}

.equipment-list {
    columns: 1;
}

.equipment-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    line-height: 1.6;
    color: var(--color-text);
}

.equipment-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--color-tan);
    border-radius: 50%;
}

/* --- Contact Section --- */
#contact {
    padding: var(--section-padding);
    background: var(--color-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 48px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--color-brown-heading);
    margin-bottom: 8px;
}

.contact-name {
    font-size: 1.15em;
    color: var(--color-tan);
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-details {
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
}

.contact-details p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-details a {
    color: var(--color-tan-dark);
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--color-tan);
}

.contact-statement {
    color: var(--color-text-light);
    font-size: 0.92em;
    margin-top: 16px;
    line-height: 1.7;
}

/* --- CEO Section --- */
#ceo {
    padding: var(--section-padding);
    background: var(--color-section-alt);
}

.ceo-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.ceo-info {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ceo-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--color-brown-heading);
    margin-bottom: 4px;
}

.ceo-role {
    color: var(--color-tan);
    font-style: italic;
    margin-bottom: 16px;
    font-size: 0.95em;
}

.ceo-info p {
    margin-bottom: 14px;
    line-height: 1.8;
}

.ceo-guidelines {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ceo-guidelines h3 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--color-brown-heading);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-tan);
}

.ceo-guidelines ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.6;
}

.ceo-guidelines ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--color-tan);
    border-radius: 50%;
}

/* --- Footer --- */
#footer {
    background: var(--color-near-black);
    padding: 36px 24px;
    text-align: center;
    border-top: 3px solid var(--color-tan-dark);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88em;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--color-tan);
}

.copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82em;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* --- Tablet and below --- */
@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Tablet portrait --- */
@media (max-width: 800px) {
    :root {
        --section-padding: 60px 0;
    }

    #hero {
        min-height: 70vh;
    }

    .hero-logo {
        max-width: 420px;
        width: 90%;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ceo-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .gallery-item img {
        height: 180px;
    }
}

/* --- Mobile --- */
@media (max-width: 500px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    body {
        font-size: 14px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 16px;
        gap: 8px;
    }

    #logo {
        width: 100%;
    }

    .logo-img {
        height: 36px;
    }

    #nav {
        width: 100%;
    }

    #nav ul {
        gap: 4px;
        justify-content: flex-start;
    }

    #nav a {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    .tagline {
        font-size: 0.68em;
    }

    #hero {
        min-height: 60vh;
    }

    .hero-content {
        padding: 24px 16px;
    }

    .hero-logo {
        max-width: 320px;
        width: 95%;
    }

    .hero-content p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.5em;
        margin-bottom: 28px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item img {
        height: 140px;
    }

    .caption {
        padding: 6px 8px;
        font-size: 0.78em;
    }

    .about-equipment {
        padding: 20px;
    }

    .ceo-info,
    .ceo-guidelines {
        padding: 24px;
    }

    .contact-card {
        padding: 28px 20px;
    }

    .clients-grid span {
        font-size: 0.82em;
        padding: 6px 12px;
    }

    .footer-nav {
        gap: 6px 16px;
    }
}

/* --- Very small screens --- */
@media (max-width: 360px) {
    .logo-img {
        height: 30px;
    }

    .hero-logo {
        max-width: 260px;
        width: 95%;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.88em;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gallery-item img {
        height: 120px;
    }

    .caption {
        font-size: 0.72em;
        padding: 4px 6px;
    }

    #nav a {
        padding: 5px 8px;
        font-size: 0.7em;
    }
}
