/* ========== Basic Reset & Variables ========== */
:root {
  --bg: #0d0f13;
  --card: #12161d;
  --muted: #9fb0c7;
  --text: #e9f1ff;
  --brand: #2ea043;
  --brand-2: #1f6feb;
  --edge: #202531;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0a0c10 0%, #0f1320 100%);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.2px;
}
.section-sub {
  margin: 0 0 24px;
  color: var(--muted);
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 15, 19, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.brand-logo {
  height: 36px;
  width: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--edge);
}
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-link {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}
.nav-link.active,
.nav-link:hover {
  background: #161a23;
}
.cta {
  background: var(--brand);
  color: #03140b;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: var(--text);
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav {
    position: absolute;
    right: 16px;
    top: calc(var(--header-h) + 8px);
    background: #0d1117;
    border: 1px solid var(--edge);
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    display: none;
    width: 220px;
  }
  .nav.open {
    display: flex;
  }
}

/* ========== Hero ========== */
.hero {
  padding-top: 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 8px;
}
.hero-copy p {
  color: var(--muted);
  margin: 0 0 16px;
}
.hero-ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.btn {
  background: linear-gradient(180deg, #2ea043, #20813a);
  border: 0;
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
}
.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--text);
}
.hero-card {
  border-radius: 16px;
  border: 1px solid var(--edge);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.quick-stats {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quick-stats li {
  background: #0e131d;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
}
.quick-stats strong {
  color: var(--text);
  display: block;
  font-size: 18px;
}

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

/* ========== Grid / Cards ========== */
.grid {
  display: grid;
  gap: 16px;
}
.cards {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card .badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ========== Slideshow ========== */
.slideshow {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: #0b0f16;
}
.slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 450ms ease;
}
.slide {
  position: relative;
  height: min(62vh, 520px);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide .caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  backdrop-filter: blur(2px);
}
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.slide-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #9aa4b3;
  background: transparent;
}
.dot.active {
  background: #e9eef8;
}

/* one card per row spanning the whole container */
.founders {
  grid-template-columns: 1fr; /* override the multi-column grid */
}

/* make each founder a horizontal card */
.founder {
  display: grid;
  grid-template-columns: clamp(240px, 32%, 360px) 1fr; /* left photo column, right details */
  align-items: stretch;
  min-height: 280px;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  overflow: hidden;
}

/* left image fills the column */
.founder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* right side content centered nicely */
.founder .body {
  padding: 18px 16px;
  display: grid;
  align-content: center;
}

.founder h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.founder .role {
  color: var(--muted);
  margin: 6px 0 12px;
  font-size: 14px;
}

.founder .socials {
  margin-top: 8px;
}

/* stack on mobile */
@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
    grid-template-rows: 220px auto;
    min-height: unset;
  }
}

/* ========== Contact ========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.address-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.address {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 10px;
}
.address h4 {
  margin: 0 0 4px;
}
.address p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 18px 0;
  background: #0a0d14;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.legal {
  color: var(--muted);
}

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  border: 1px solid var(--edge);
  background: #0d1117;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  display: none;
}
.back-to-top.show {
  display: inline-block;
}

/* ===== Visiting Card (Darshan Constructions) ===== */
.dc-card {
  --brand: #ff6a00;
  --brand2: #ffb142;
  --ink: #0b0f16;
  --rule: #e5e7eb;
  width: 640px;
  max-width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px 22px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dc-top .dc-name {
  font-weight: 700;
  color: #d97706;
  font-size: 18px;
  line-height: 1.2;
}
.dc-top .dc-muted {
  color: #374151;
  margin-top: 2px;
  font-size: 14px;
}
.dc-phones {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.dc-phones a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}
.dc-phones a:hover {
  text-decoration: underline;
}

.dc-brand {
  gap: 18px;
  margin: 4px 0;
}
.dc-brand-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111827;
}
.dc-brand-title .main {
  color: #d97706;
}
.dc-tag {
  color: #111827;
  font-style: italic;
  font-weight: 600;
}
.dc-underline {
  height: 4px;
  width: 220px;
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  border-radius: 999px;
}

.dc-bottom {
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.dc-addr {
  max-width: 60%;
  color: #111827;
  font-size: 14px;
  line-height: 1.35;
}
.dc-email {
  color: #111827;
  font-size: 14px;
}
.dc-email a {
  color: #1f2937;
  text-decoration: none;
}
.dc-email a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .dc-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .dc-addr {
    max-width: 100%;
  }
}

/* Print at business-card size */
@media print {
  #primaryNav,
  .site-header,
  .site-footer,
  #backToTop,
  .btn {
    display: none !important;
  }
  #card .container {
    width: 85.6mm;
  }
  .dc-card {
    width: 85.6mm;
    height: 54mm;
    margin: 0;
    border: 0;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

/* === Founders: full-width, photo-left, details-right (force override) === */
.grid.founders {
  /* override repeat(auto-fill, ...) */
  grid-template-columns: 1fr !important; /* one card per row */
}

#foundersGrid .founder {
  display: grid !important;
  grid-template-columns: minmax(240px, 32%) 1fr !important; /* left image, right body */
  grid-template-rows: unset !important;
  align-items: stretch;
  min-height: 280px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 16px;
  overflow: hidden;
}

#foundersGrid .founder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#foundersGrid .founder .body {
  padding: 18px 16px;
  display: grid;
  align-content: center;
}

#foundersGrid .founder h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

#foundersGrid .founder .role {
  color: var(--muted);
  margin: 6px 0 12px;
  font-size: 14px;
}

@media (max-width: 900px) {
  #foundersGrid .founder {
    grid-template-columns: 1fr !important;
    grid-template-rows: 220px auto !important; /* image on top */
    min-height: unset;
  }
}
