/* ============================================================
   Bharadwaj Building Construction - main stylesheet
   Shared by all pages. Colors and spacing are controlled
   from the :root variables below.
   ============================================================ */
:root {
  --brand: #e8762a;          /* safety orange - primary accent */
  --brand-dark: #c95f1a;
  --ink: #1b1e24;            /* near-black for text */
  --ink-light: #4a4f57;
  --bg: #ffffff;
  --bg-tint: #f4f2ee;        /* warm light gray */
  --bg-dark: #16181d;        /* dark section background */
  --line: #e4e1da;
  --radius: 10px;
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-dark { background: var(--bg-dark); color: #f2f0eb; }
.section-dark .section-lead { color: #b9b4a8; }
.section-tint { background: var(--bg-tint); }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}

.section-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-bottom: 12px; }
.section-lead { color: var(--ink-light); max-width: 640px; margin-bottom: 40px; font-size: 18px; }
.section-link { display: inline-block; margin-top: 28px; color: var(--brand); font-weight: 700; text-decoration: none; font-size: 17px; }
.section-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #efece5; }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(22,24,29,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo { color: #ffffff; text-decoration: none; font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; }
/*--.logo-img { height: 34px; width: auto; margin-right: 10px; }--*/
/*.logo-img { height: 44px; width: auto; margin-right: 10px; }*/
.logo-img { height: 44px; width: auto; margin-right: 10px;}
.logo-mark { color: var(--brand); margin-right: 4px; }
.logo-accent { color: var(--brand); font-weight: 600; margin-left: 8px; }
.main-nav { display: flex; gap: 20px; margin-left: auto; }
.main-nav a { color: #d8d4cb; text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--brand); }
.main-nav a.active { color: var(--brand); border-bottom-color: var(--brand); }
.header-cta { white-space: nowrap; font-size: 15px; padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  background: url("images/hero.jpg") center/cover no-repeat;
  position: relative; color: #fff;
  padding: 140px 0 80px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,17,21,.88) 20%, rgba(15,17,21,.45) 60%, rgba(15,17,21,.25));
}
.hero-content { position: relative; z-index: 1; max-width: var(--maxw); }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin-bottom: 18px; }
.hero-sub { font-size: 20px; max-width: 600px; color: #e6e1d6; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 34px; color: var(--brand); }
.stat span { font-size: 14px; color: #cfc9bc; }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,118,42,.25), transparent 70%);
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 10px; position: relative; z-index: 1; }
.page-hero p { color: #cfc9bc; font-size: 19px; max-width: 640px; position: relative; z-index: 1; }
.page-hero .section-eyebrow { position: relative; z-index: 1; }

.page-hero .section-eyebrow { position: relative; z-index: 1; }

/* ---------- Hero with logo (contact page) ---------- */
.hero-logo-row { display: flex; align-items: center; gap: 28px; position: relative; z-index: 1; }
.page-hero-logo { height: 110px; width: auto; flex-shrink: 0; }
@media (max-width: 760px) {
  .hero-logo-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero-logo { height: 84px; }
}


/* ---------- Services ---------- */
.services-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.10); transform: translateY(-4px); }
.service-icon { font-size: 38px; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; font-size: 20px; }
.service-card p { color: var(--ink-light); font-size: 16px; }
.service-card .card-link { display: inline-block; margin-top: 14px; color: var(--brand); font-weight: 700; text-decoration: none; font-size: 15px; }
.service-card .card-link:hover { text-decoration: underline; }

/* ---------- Service detail (services page) ---------- */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 48px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-detail:last-child { border-bottom: none; padding-bottom: 0; }
.service-detail:first-child { padding-top: 8px; }
.service-detail .service-icon { font-size: 46px; }
.service-detail h2 { font-size: 28px; margin-bottom: 10px; }
.service-detail .lead { color: var(--ink-light); margin-bottom: 18px; font-size: 17px; }
.included-box { background: var(--bg-tint); border-radius: var(--radius); padding: 28px; }
.included-box h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); margin-bottom: 14px; }
.included { list-style: none; display: grid; gap: 10px; }
.included li { padding-left: 28px; position: relative; color: var(--ink-light); font-size: 16px; }
.included li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 24px;
}
.project-card {
  background: #22252c;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s ease;
}
.project-card:hover { transform: translateY(-4px); }
/*.project-card img { height: 240px; width: 100%; object-fit: cover; }*/
.project-card img { height: 300px; width: 100%; object-fit: contain; background: #101216; }
.project-body { padding: 24px; }
.project-tag { color: var(--brand); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.project-card h3 { margin-bottom: 6px; }
.project-card p { color: #b9b4a8; font-size: 15px; }
.projects-note { color: #8f8a7d; font-size: 14px; }
.inline-link { color: var(--brand); font-weight: 700; }
.inline-link:hover { text-decoration: underline; }
.video-spotlight { text-align: center; }
.video-spotlight h2 { margin: 8px 0 4px; }
.video-spotlight video { width: 100%; max-width: 820px; border-radius: 12px; margin-top: 24px; }


/* ---------- Process ---------- */
.process-steps {
  list-style: none;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.process-steps li {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.process-steps h3 { margin-bottom: 8px; }
.process-steps p { color: var(--ink-light); font-size: 15px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: var(--ink-light); margin-bottom: 20px; }
.about-points { list-style: none; display: grid; gap: 12px; }
.about-points li { padding-left: 28px; position: relative; }
.about-points li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.about-badges { display: grid; gap: 16px; }
.badge {
  border: 2px solid var(--brand); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.badge strong { display: block; font-size: 22px; }
.badge span { font-size: 14px; color: var(--ink-light); }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--brand); color: #fff; padding: 64px 0; }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.cta-banner p { font-size: 18px; opacity: .95; }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.quote-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: inherit; padding: 13px 15px;
  border-radius: var(--radius);
  border: 1px solid #3a3e46;
  background: #22252c; color: #f2f0eb;
  width: 100%;
}
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #7d7885; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--brand); border-color: var(--brand);
}
.quote-form .invalid { border-color: #e05252; }
.form-note { min-height: 24px; font-size: 15px; }
.form-note.ok { color: #7fd08a; }
.form-note.err { color: #ff9d9d; }
.contact-info { background: #22252c; border-radius: var(--radius); padding: 34px 30px; border: 1px solid rgba(255,255,255,.08); }
.contact-info h3 { margin-bottom: 14px; }
.contact-info p { margin-bottom: 16px; color: #cfc9bc; font-size: 16px; }
.contact-info a { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }
.contact-info a { overflow-wrap: anywhere; }
.ig-note { font-size: 14px; color: #8f8a7d; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0f13; color: #8f8a7d; padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #b9b4a8; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #16181d; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open a { padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.06); }
  .main-nav a.active { border-bottom-color: transparent; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 130px 0 64px; }
  .page-hero { padding: 130px 0 56px; }
}
@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .site-header .logo { font-size: 15px; }
  .site-header .logo img { height: 34px; width: auto; }
}
html, body { overflow-x: clip; }


/* ---------- Project gallery lightbox ---------- */
.project-card[data-project] { cursor: pointer; }
.gallery-hint { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 700; font-size: 15px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.lightbox-box { position: relative; z-index: 1; max-width: min(960px, 92vw); width: 100%; margin: 0; }
.lightbox-media { background: #000; border-radius: 10px; overflow: hidden; }
.lightbox-media img, .lightbox-media video { width: 100%; max-height: 74vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox-close { position: absolute; top: -46px; right: 0; background: none; border: none; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; font-size: 24px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--brand); }
.lightbox figcaption { text-align: center; margin-top: 12px; }
.lightbox-caption { color: #f2f0eb; font-size: 16px; }
.lightbox-counter { color: #8f8a7d; font-size: 14px; }



/* ---------- Leadership ---------- */
.leaders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.leader-card { background: #1d2027; border: 1px solid #2b2f38; border-radius: 14px; padding: 36px 32px; }
.leader-top { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.leader-top img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: top center; border: 3px solid var(--brand); flex-shrink: 0; }
.leader-card:first-child .leader-top img { object-position: center 10%; }
.leader-card h3 { color: #f5f2ea; font-size: 22px; margin: 0 0 4px; }
.leader-role { color: var(--brand); font-weight: 600; font-size: 15px; margin: 0; }
.leader-card blockquote { font-style: italic; color: #e8e4da; border-left: 3px solid var(--brand); padding-left: 16px; margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.leader-card p:last-child { color: #b9b4a8; font-size: 15px; line-height: 1.7; margin: 0; }
@media (max-width: 760px) { .leaders-grid { grid-template-columns: 1fr; } }
