/* Bhagirathi Infracon — frontend */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--body-font, "Inter", "Segoe UI", Arial, sans-serif);
    background: var(--body-bg, #f7f5f0);
    color: var(--text, #2b2b2b);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
    font-family: var(--heading-font, "Playfair Display", Georgia, serif);
    color: var(--primary, #0b1d3a);
    letter-spacing: .01em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; }
.muted { color: #6b7280; }
.text-center { text-align: center; }

/* ===================== Top bar ===================== */
.topbar {
    background: var(--header-bg, #ffffff);
    border-bottom: 1px solid #e5e7eb;
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
/* Topbar band — 35% slimmer; brand anchored to top-left */
.topbar-inner {
    display: flex;
    align-items: flex-start;            /* brand sits at the top of the band */
    padding: .3rem 1rem;                /* trimmed from .55rem 1.2rem */
}
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;            /* logo + name both left-aligned */
    gap: .15rem;
    text-decoration: none;
    margin-top: .1rem;
}
.brand-logo {
    height: 86px;                       /* bigger — the logo PNGs have a lot of white padding around the design */
    width: auto;
    display: block;
    object-fit: contain;
}
.brand-text {
    display: block;
    line-height: 1.1;
    text-align: left;                   /* name extends past the logo to the right */
}
.brand strong, .brand-text strong {
    display: block;
    font-family: var(--heading-font);
    font-size: .85rem;
    color: var(--primary);
    letter-spacing: .01em;
    text-transform: none;               /* sentence case — show the name as stored */
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;                /* no wrap; flow past the logo edge */
}
.brand small, .brand-text small { display: none; }
/* Vertically center the nav and toggle within the shorter band */
.mainnav { align-self: center; }
.nav-toggle { align-self: center; }
@media (max-width: 600px) {
    .brand-logo { height: 64px; }       /* mobile */
    .brand strong, .brand-text strong { font-size: .72rem; }
}

.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.mainnav li { position: relative; }
.mainnav a {
    color: #1f2937; font-weight: 500; font-size: .92rem;
    padding: .4rem .1rem; display: inline-block;
    border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav li.has-sub:hover > a { color: var(--primary); border-bottom-color: var(--secondary); }
.mainnav .submenu {
    display: none; position: absolute; top: 100%; left: 0;
    min-width: 220px; background: #fff;
    border: 1px solid #e5e7eb; border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    flex-direction: column; padding: .35rem 0; gap: 0;
}
.mainnav li.has-sub:hover .submenu { display: flex; }
.mainnav .submenu a { display: block; padding: .55rem 1rem; border-bottom: none; font-weight: 400; }
.mainnav .submenu a:hover { background: #f7f5f0; color: var(--primary); }

.cta .btn-cta {
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    padding: .55rem 1.1rem;
    border-radius: var(--btn-radius, 4px);
    font-weight: 600;
    border: none;
}
.cta .btn-cta:hover { background: var(--btn-hover); color: var(--btn-fg) !important; }

.nav-toggle { display: none; background: none; border: 1px solid #d1d5db; color: var(--primary); font-size: 1.2rem; padding: 4px 10px; cursor: pointer; margin-left: auto; border-radius: 4px; }
@media (max-width: 920px) {
    .nav-toggle { display: inline-block; }
    .mainnav { display: none; width: 100%; }
    body.nav-open .mainnav { display: block; margin: 1rem 0 .5rem; }
    .mainnav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    .mainnav ul li { width: 100%; border-top: 1px solid #e5e7eb; }
    .mainnav .submenu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
    .topbar-inner { flex-wrap: wrap; }
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    color: #fff;
    min-height: 78vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: linear-gradient(120deg, var(--primary) 0%, #142a4b 60%, #1e3a8a 100%);
}
.hero .slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: opacity 1s ease;
}
.hero .overlay { position: absolute; inset: 0; pointer-events: none; }
.hero .hero-inner { position: relative; z-index: 2; max-width: 1080px; padding: 4rem 1.5rem; }
.hero h1 { color: #fff; max-width: 880px; line-height: 1.1; }
.hero .sub { font-size: 1.05rem; max-width: 700px; margin: 1rem 0 1.6rem; opacity: .95; }
.hero .btn-cta {
    display: inline-block; padding: .8rem 1.6rem;
    background: var(--btn-bg); color: var(--btn-fg);
    border-radius: var(--btn-radius); font-weight: 600;
    letter-spacing: .02em;
}
.hero .btn-cta:hover { background: var(--btn-hover); color: var(--btn-fg); }
.hero .text-left   { text-align: left; }
.hero .text-center { text-align: center; }
.hero .text-right  { text-align: right; }
.hero .dots { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; z-index: 3; }
.hero .dots button {
    width: 10px; height: 10px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.4); margin: 0 4px; cursor: pointer;
}
.hero .dots button.active { background: var(--secondary); }

/* ===================== Sections ===================== */
section.block { padding: 4.5rem 0; }
.section-title {
    text-align: center; margin: 0 0 .35rem;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.section-sub { text-align: center; color: #4b5563; max-width: 760px; margin: 0 auto 2.5rem; }
.gold-bar { width: 60px; height: 3px; background: var(--secondary); margin: 0 auto 1.4rem; }

/* Cards grid */
.grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
    background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(11,29,58,.06);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(11,29,58,.12); }
.card .thumb { height: 200px; background: linear-gradient(120deg, #d4d4d4, #f3f3f3); background-size: cover; background-position: center; }
.card .body { padding: 1.1rem 1.2rem 1.4rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.card .meta { font-size: .82rem; color: #6b7280; margin-bottom: .5rem; }
.card .desc { font-size: .9rem; color: #374151; }
.card .more { margin-top: .8rem; display: inline-block; color: var(--secondary); font-weight: 600; }
.card .more:hover { color: var(--primary); }

/* Leadership cards — portrait thumbs so 5:7 director shots fit without cropping. */
.leadership-grid               { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.leadership-grid .leader-card  { display: flex; flex-direction: column; overflow: hidden; }
.leadership-grid .thumb {
    height: auto;
    aspect-ratio: 5 / 7;              /* matches the photo aspect — no truncation */
    background-color: #f4eedd;        /* warm cream fallback when no photo */
    background-size: cover;
    background-position: center top;  /* anchor faces near the top */
    position: relative;
}
.leadership-grid .thumb[data-placeholder]::after {
    /* Initial-letter placeholder for leaders without a photo */
    content: attr(data-placeholder);
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--heading-font);
    font-size: 4rem;
    color: var(--secondary, #bf9a4e);
    background: linear-gradient(135deg, var(--primary, #0b1d3a) 0%, #1e3a8a 100%);
    opacity: .9;
}
.leadership-grid .leader-card .body { flex: 1; }
@media (max-width: 600px) {
    .leadership-grid             { gap: 1.4rem; }
    .leadership-grid .thumb      { aspect-ratio: 4 / 5; }  /* slightly wider on phones */
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; text-align: center; }
.stats .stat { padding: 1.2rem; background: #fff; border-radius: 6px; box-shadow: 0 2px 8px rgba(11,29,58,.05); }
.stats .num { font-family: var(--heading-font); font-size: 2.4rem; color: var(--primary); display: block; }
.stats .label { color: #6b7280; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* MD message */
.md-block { display: grid; gap: 2rem; grid-template-columns: 1fr 1.4fr; align-items: center; }
@media (max-width: 800px) { .md-block { grid-template-columns: 1fr; } }
.md-block .portrait {
    background: linear-gradient(120deg, var(--primary), #1e3a8a);
    aspect-ratio: 4 / 5; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.4); font-family: var(--heading-font); font-size: 5rem;
}
.md-block blockquote {
    margin: 0; padding: 0; border: none; position: relative; padding-left: 1.6rem;
}
.md-block blockquote::before {
    content: "\201C"; position: absolute; left: -.4rem; top: -1.5rem;
    font-family: var(--heading-font); font-size: 6rem; line-height: 1;
    color: var(--secondary); opacity: .35;
}
.md-block .name { font-weight: 600; color: var(--primary); margin-top: 1rem; }
.md-block .designation { font-size: .85rem; color: #6b7280; }

/* CTA strip */
.cta-strip { background: var(--primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip .btns a {
    display: inline-block; margin: .4rem;
    padding: .8rem 1.6rem; border-radius: var(--btn-radius);
    background: var(--secondary); color: var(--btn-fg) !important; font-weight: 600;
}
.cta-strip .btns a:hover { background: var(--btn-hover); }

/* Footer */
.site-footer { background: var(--footer-bg, #0b1d3a); color: var(--footer-fg); margin-top: 4rem; }
.site-footer h3.ft-brand { font-family: var(--heading-font); color: #fff; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .6rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: var(--footer-fg); }
.site-footer a:hover { color: var(--secondary); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; padding: 3rem 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35rem 0; }
.footer-grid .muted { color: #a3acb8; font-size: .85rem; }
.footer-grid p { font-size: .9rem; line-height: 1.55; }
.socials { margin-top: .8rem; }
.socials a { display: inline-block; margin-right: .8rem; font-size: .85rem; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0 1.5rem; font-size: .8rem; }
.ft-bottom .disclaimer { color: #8a96a5; max-width: 880px; }
.ft-bottom .ft-notice { color: #a3acb8; max-width: 900px; line-height: 1.5; }
.ft-bottom .ft-notice strong { color: #cbd5e1; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating buttons */
.float-whatsapp, .float-top {
    position: fixed; bottom: 1rem; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.float-whatsapp { right: 1rem; background: #25d366; }
.float-top      { right: 4.5rem; background: var(--primary); }
.float-whatsapp:hover, .float-top:hover { color: #fff; opacity: .9; }

/* Forms */
form .row { margin-bottom: .9rem; }
form label { display: block; font-weight: 600; margin-bottom: .25rem; color: #1f2937; font-size: .9rem; }
form input, form select, form textarea {
    width: 100%; padding: .6rem .8rem;
    border: 1px solid #d1d5db; border-radius: 4px;
    font-size: 1rem; font-family: var(--body-font); background: #fff;
}
form textarea { min-height: 110px; }
form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { form .grid2 { grid-template-columns: 1fr; } }
.btn, button.btn {
    display: inline-block; padding: .7rem 1.4rem;
    background: var(--btn-bg); color: var(--btn-fg);
    border-radius: var(--btn-radius); font-weight: 600;
    border: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-secondary { background: var(--primary); color: #fff !important; }
.btn-secondary:hover { background: #142a4b; color: #fff !important; }

/* Flash messages */
.flash {
    max-width: 1180px; margin: 1rem auto; padding: .8rem 1.2rem;
    border-radius: 6px; font-size: .95rem;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* Page hero (for inner pages) */
.page-hero {
    background: linear-gradient(120deg, var(--primary), #142a4b);
    color: #fff; padding: 4rem 0 3rem;
}
.page-hero h1 { color: #fff; }
.page-hero .crumbs { font-size: .85rem; opacity: .8; }

/* Badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .72rem; font-weight: 600;
         background: #e5e7eb; color: #374151; text-transform: uppercase; letter-spacing: .04em; }
.badge.gold { background: var(--secondary); color: var(--btn-fg); }
.badge.navy { background: var(--primary); color: #fff; }

/* Filters bar */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.5rem 0; }
.filters select, .filters input[type=text] { width: auto; min-width: 180px; }

/* Project detail */
.project-detail .meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1rem 0 2rem; font-size: .9rem; color: #4b5563; }
.project-detail .meta span strong { color: var(--primary); margin-right: .35rem; }

/* Disclaimer */
.rera-disclaimer {
    background: #fff7e6; border-left: 4px solid var(--secondary);
    padding: 1rem 1.2rem; border-radius: 4px; font-size: .85rem; color: #5a4310;
    margin: 1.5rem 0;
}
