/* ==========================================================
   BITS — Bharathi Infotech Solutions
   Layout inspired by dolibarr.org
   ========================================================== */

:root {
  --navy: #001636;          /* primary — BITS logo navy */
  --navy-deep: #000c20;
  --saffron: #ec8a1c;       /* accent — BITS logo saffron */
  --saffron-ink: #c46a06;   /* saffron dark enough for text on white */
  --cream: #f6f0e4;         /* BITS logo wordmark */
  --teal: #2d8791;          /* tertiary — inspiration portrait backdrop */
  --teal-bright: #2a9bb0;
  --ink: #1d2433;
  --text: #3a4356;
  --muted: #6b7486;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --skeleton: #e9edf2;

  --teal-transp: rgba(45, 135, 145, 0.55);
  --saffron-transp: rgba(236, 138, 28, 0.55);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-soft: 3px 3px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 1px 1px 5px rgba(0, 0, 0, 0.08);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: Roboto, Arial, Verdana, Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
b, strong { font-weight: 500; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--saffron);
  color: var(--navy);
  font-weight: 500;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 54px; height: 54px; flex: none; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Exo 2", Roboto, Arial, sans-serif; font-size: 1.6rem; font-weight: 700; letter-spacing: .1em; color: var(--cream); }
.brand-sub {
  margin-top: 5px;
  font-family: "Exo 2", Roboto, Arial, sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, 0.75);
}

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav ul a {
  display: block;
  padding: 8px 12px;
  font-size: .95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav ul a:hover,
.site-nav ul a.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); text-decoration: none; }

/* Dolibarr-style large header button */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: .95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition: background-color .2s ease, border-color .2s ease;
}
.header-cta svg { width: 18px; height: 18px; }
.header-cta:hover { background: var(--saffron); border-color: var(--saffron); color: var(--navy); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0, 22, 54, 0.3); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 10px 24px rgba(0, 22, 54, 0.35); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 88px) 0;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(42, 155, 176, 0.14), transparent 70%),
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Exo 2", Roboto, Arial, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
}
/* tapered saffron rules, as on the BITS logo */
.rule { display: inline-block; flex: none; width: 44px; height: 4px; background: var(--saffron); }
.rule-left { clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.rule-right { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-title {
  margin-top: 20px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .3em;
}
.hero-title .accent { color: var(--saffron-ink); }
.hero-title .accent-teal { color: var(--teal); }
.hero-sub { margin-top: 14px; font-size: 1.15rem; font-weight: 400; color: var(--teal); }

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-visual { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 940px; }

.window {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 50px rgba(0, 22, 54, 0.14);
  overflow: hidden;
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--navy);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.window-bar i:first-child { background: var(--saffron); }
.window-url {
  margin-left: 14px;
  padding: 3px 14px;
  font-size: .78rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.window-body {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
}
.mock-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 18px;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.mock-main { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.sk, .sk-card, .sk-panel { display: block; background: var(--skeleton); border-radius: 6px; }
.sk { height: 12px; }
.sk.short { width: 60%; }
.sk-logo { height: 26px; width: 70%; margin-bottom: 10px; background: rgba(0, 22, 54, 0.15); }
.sk-card { height: 86px; border-radius: var(--radius); }
.sk-card:nth-child(2) { background: rgba(45, 135, 145, 0.14); }
.sk-panel { flex: 1; min-height: 160px; border-radius: var(--radius); }

.window-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.overlay-logo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 22, 54, 0.35); }

.badge-soon {
  display: inline-block;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
}

/* shimmer on skeleton placeholders */
.sk, .sk-card, .sk-panel,
.placeholder-lines b, .tile-icon, .tile-label, .news-thumb {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}

/* ---------- Statement ---------- */
.statement {
  padding-block: clamp(48px, 7vw, 80px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}
.statement-title {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.statement-title b { font-weight: 700; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: center;
}
.section-title svg { width: 1.05em; height: 1.05em; color: var(--teal); }
.section-lede { margin-top: 10px; text-align: center; color: var(--muted); font-size: 1.05rem; }

/* ---------- About / pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
}
.pillar {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 22, 54, 0.12); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-bright), var(--navy));
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(45, 135, 145, 0.3);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge-saffron { background: linear-gradient(135deg, #f6a646, var(--saffron)); box-shadow: 0 6px 16px rgba(236, 138, 28, 0.3); }

/* Dolibarr "magical underline" */
.underline-title { margin-top: 22px; font-size: 1.5rem; font-weight: 400; }
.underline-title span { position: relative; display: inline-block; z-index: 0; }
.underline-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3em;
  z-index: -1;
  width: 100%;
  height: 0.25em;
  background: linear-gradient(120deg, var(--teal-transp) 0%, var(--saffron-transp) 100%);
  transform: skewY(-1.6deg);
  border-radius: 5px 5px 0 0;
}

.placeholder-lines { display: grid; gap: 10px; margin-top: 26px; }
.placeholder-lines b { display: block; height: 11px; background-color: var(--skeleton); border-radius: 6px; }
.placeholder-lines b.short { width: 62%; }

.soon-note { margin-top: 18px; font-size: .9rem; font-style: italic; color: var(--muted); }
.see-more { display: inline-block; margin-top: 18px; font-weight: 500; font-size: .95rem; }

/* ---------- Inspiration ---------- */
.inspiration {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 110px);
  color: #fff;
  background:
    radial-gradient(700px 500px at 18% 50%, rgba(42, 155, 176, 0.55), transparent 70%),
    linear-gradient(120deg, #1f6f82 0%, var(--navy) 55%, var(--navy-deep) 100%);
}
.inspiration::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(236, 138, 28, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.inspiration-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.inspiration-photo { position: relative; margin: 0; }
.inspiration-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--saffron);
  border-radius: var(--radius-lg);
}
.inspiration-photo img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
}
.inspiration-title {
  margin-top: 14px;
  max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.inspiration-role {
  margin-top: 14px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
}
.inspiration-rule { display: block; width: 64px; height: 4px; margin-top: 30px; background: var(--saffron); border-radius: 2px; }
.founder-credit { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.founder-credit-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.founder-credit-name { font-size: 1.25rem; font-weight: 500; color: #fff; }

/* ---------- Solutions (Dolibarr feature tiles) ---------- */
.solutions { background: var(--bg-soft); }

.tile-group {
  margin: 40px auto 0;
  max-width: 900px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.tile-group-head { display: flex; justify-content: center; margin-bottom: 22px; }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 96px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px dashed #d5dbe3;
}
.tile-icon { width: 30px; height: 30px; border-radius: 8px; background-color: rgba(45, 135, 145, 0.16); }
.tile:nth-child(3n+2) .tile-icon { background-color: rgba(0, 22, 54, 0.12); }
.tile:nth-child(4n) .tile-icon { background-color: rgba(236, 138, 28, 0.2); }
.tile-label { width: 58%; height: 9px; border-radius: 6px; background-color: var(--skeleton); }

/* ---------- News ---------- */
.news-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.news-card {
  position: relative;
  padding: 18px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.news-thumb {
  height: 180px;
  border-radius: 8px;
  background-color: var(--skeleton);
}
.news-card:nth-child(2) .news-thumb { background-color: rgba(45, 135, 145, 0.12); }
.news-date {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 2px 10px;
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
}
.news-card .placeholder-lines { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
}
.contact-card {
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.contact-card h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 500; }
.contact-card p,
.contact-card address { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { color: rgba(255, 255, 255, 0.75); background: var(--navy); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-block: 56px 36px;
}
.footer-tagline { margin-top: 16px; max-width: 28ch; font-style: italic; }
.footer-col h4 {
  margin-bottom: 14px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: #fff; }
.footer-col address { line-height: 1.9; }


.footer-bottom { background: var(--navy-deep); font-size: .88rem; }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 16px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav ul a { padding: 8px 9px; font-size: .9rem; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px var(--gutter) 20px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav ul a { padding: 12px; font-size: 1rem; }
  .header-cta { justify-content: center; }

  .pillars { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .inspiration::after { display: none; }
  .inspiration-inner { grid-template-columns: 1fr; text-align: center; }
  .inspiration-photo { max-width: 340px; margin-inline: auto; }
  .inspiration-title { margin-inline: auto; }
  .inspiration-rule { margin-inline: auto; }

  .contact-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .hero-kicker { gap: 8px; font-size: .7rem; letter-spacing: .12em; }
  .hero-kicker .rule { width: 22px; }
  .hero-title { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .hero-title .nowrap { white-space: normal; }
  .window-body { grid-template-columns: 1fr; min-height: 240px; }
  .mock-side { display: none; }
  .mock-row { grid-template-columns: repeat(2, 1fr); }
  .mock-row .sk-card:nth-child(3) { display: none; }

  .news-grid { grid-template-columns: 1fr; }
  .tile-group { padding: 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col-office { grid-column: 1 / -1; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; max-width: 320px; margin-inline: auto; }
  .inspiration-photo::before { inset: 12px -12px -12px 12px; }
}

/* very small phones: keep the brand on one line */
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-name { font-size: 1.4rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .06em; }
}

/* ---------- 404 page ---------- */
.notfound {
  padding-block: clamp(64px, 10vw, 120px);
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 100%, rgba(236, 138, 28, 0.1), transparent 70%),
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}
.notfound-logo { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 22, 54, 0.3); }
.notfound h1 { margin-top: 16px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.notfound p.lede { margin-top: 12px; color: var(--muted); }
.notfound .btn { margin-top: 30px; }
