/* =============================================================
   Rasiklal Sons — Main stylesheet
   ============================================================= */

/* ----- Tokens ----- */
:root {
  --brand-red: #DE2C26;
  --brand-red-dark: #b91f1a;
  --brand-red-soft: rgba(222, 44, 38, 0.08);
  --ink: #1a1a1a;
  --ink-soft: #333;
  --muted: #666;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --dark: #111;
  --dark-2: #1a1a1a;

  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anek Tamil', 'Roboto', system-ui, sans-serif;
  --font-slab: 'Roboto Slab', Georgia, serif;

  --container: 1200px;
  --container-narrow: 920px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

  --topbar-h: 44px;
  --nav-h: 76px;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-red-dark); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.4em; }

/* ----- Utilities ----- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, var(--container-narrow)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--dark { background: var(--dark-2); color: #fff; }
.section--soft { background: var(--paper-2); }
.section--center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 0; top: 0; z-index: 1000; background: var(--ink); color: #fff; padding: 8px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Section heading with underline accent */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  position: relative;
}
.section-heading h2::after {
  content: "";
  display: block;
  width: 110px;
  height: 3px;
  background: var(--brand-red);
  margin: .5em auto 0;
  border-radius: 2px;
}
.section--dark .section-heading h2 { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.btn-primary:hover { background: var(--brand-red-dark); border-color: var(--brand-red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--brand-red); border-color: var(--brand-red); }
.btn-outline:hover { background: var(--brand-red); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* =============================================================
   Header
   ============================================================= */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  position: relative;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 16px;
}
.topbar-gstin {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.topbar-actions .btn { padding: 8px 18px; font-size: 0.85rem; }

.site-header {
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 8px;
  position: relative;
}
.main-nav a:hover { color: var(--brand-red); background: var(--brand-red-soft); }
.main-nav a.active { color: var(--brand-red); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--brand-red);
  border-radius: 1px;
}

/* Hamburger button (mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--brand-red);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* =============================================================
   Hero (Home)
   ============================================================= */
.hero-home {
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--paper);
}
.hero-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-copy p { font-size: 1.05rem; color: var(--muted); margin-bottom: 28px; max-width: 38ch; }

/* Slider */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
  box-shadow: var(--shadow-lg);
}
.slider-track { position: absolute; inset: 0; }
.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  background-size: cover;
  background-position: center;
}
.slider-slide.is-active { opacity: 1; }
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slider-dots button.is-active { background: var(--brand-red); transform: scale(1.2); }
.slider-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* =============================================================
   Page hero (inner pages)
   ============================================================= */
.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #333 center/cover no-repeat;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0;
}

/* =============================================================
   About section (home & elsewhere)
   ============================================================= */
.about-section {
  background: var(--dark-2) center/cover no-repeat;
  color: #f1f1f1;
  position: relative;
  isolation: isolate;
}
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: -1;
}
.about-section .section-heading h2 { color: #fff; }
.about-section p { color: rgba(255,255,255,0.88); }
.about-section .center-cta { text-align: center; margin-top: 1.5rem; }

/* =============================================================
   Why Choose Us (cards)
   ============================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.feature-card {
  background: var(--paper);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 18px; }
.feature-card h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* =============================================================
   Stats counter strip
   ============================================================= */
.stats {
  background: var(--brand-red);
  color: #fff;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* =============================================================
   Testimonials
   ============================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.testimonial {
  background: var(--paper);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--brand-red);
}
.testimonial-stars { color: #f6b81b; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-quote { font-style: italic; color: var(--ink-soft); margin-bottom: 16px; }
.testimonial-author { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* =============================================================
   CTA banner
   ============================================================= */
.cta-banner {
  background: var(--brand-red);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; font-family: var(--font-display); }
.cta-banner p { font-size: 1.1rem; margin-bottom: 26px; }
.cta-banner .btn { background: #fff; color: var(--brand-red); border-color: #fff; }
.cta-banner .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: #aaa; font-size: 0.95rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: #ccc; font-size: 0.93rem; }
.footer a:hover { color: var(--brand-red); }
.footer-contact p { margin: 0 0 6px; color: #ccc; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 0.85rem;
}

/* =============================================================
   Founder page
   ============================================================= */
.founder-section { padding: 64px 0; }
.founder-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  color: var(--muted);
}
.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.founder-card { text-align: center; }
.founder-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  background: #ddd;
}
.founder-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-red);
  margin: 0;
  font-size: 1.15rem;
}
.founder-card .role { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* =============================================================
   Work culture gallery
   ============================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: #ddd;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-content { position: relative; max-width: min(1100px, 95vw); max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close { top: -56px; right: 0; }
.lightbox-prev  { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--brand-red); }

/* =============================================================
   Contact page
   ============================================================= */
.contact-intro { text-align: center; max-width: 640px; margin: 0 auto 48px; color: var(--muted); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--brand-red);
  color: #fff;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.contact-card img { width: 56px; height: 56px; margin: 0 auto 16px; filter: brightness(0) invert(1); }
.contact-card h3 { color: #fff; font-family: var(--font-display); margin-bottom: 12px; }
.contact-card a { color: #fff; display: block; margin-top: 4px; }
.contact-card a:hover { text-decoration: underline; }

.office-block {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.office-block h3 {
  background: var(--brand-red);
  color: #fff;
  padding: 16px 24px;
  margin: 0;
  font-family: var(--font-display);
}
.office-block-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.office-block-body address { font-style: normal; padding: 8px 24px 8px 0; color: var(--ink-soft); }
.office-block-body iframe { width: 100%; height: 260px; border: 0; display: block; }

/* =============================================================
   Mobile-app page
   ============================================================= */
.app-hero { padding: 64px 0; }
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.app-hero h1 { font-family: var(--font-display); font-weight: 800; }
.app-hero p.lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.app-features { list-style: none; padding: 0; margin: 0 0 28px; }
.app-features li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--ink-soft);
}
.app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.app-store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font-display);
}
.app-store-btn:hover { background: #000; color: #fff; }
.app-store-btn .small { display: block; font-size: 0.72rem; opacity: 0.8; font-weight: 400; }
.app-store-btn .large { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.app-screenshot { display: flex; justify-content: center; }
.app-screenshot img { max-height: 580px; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.2)); }

/* =============================================================
   Long-form (privacy, terms)
   ============================================================= */
.longform { max-width: 800px; margin: 0 auto; padding: 56px 0; color: var(--ink-soft); }
.longform p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.2em; }
.longform h2 { margin-top: 1.6em; }

/* =============================================================
   Tap-to-call FAB (mobile)
   ============================================================= */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  background: var(--brand-red);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 96px 32px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 35;
    overflow-y: auto;
  }
  .main-nav a {
    font-size: 1.1rem;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .main-nav a.active::after { display: none; }
  .nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .hero-home-grid { grid-template-columns: 1fr; }
  .app-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .app-screenshot img { max-height: 480px; }
  .office-block-body { grid-template-columns: 1fr; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 4px; right: 4px; background: rgba(0,0,0,0.7); }
  .fab-call { display: flex; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: 2rem; }
  .feature-card { padding: 28px 22px; }
  .founder-card img { width: 140px; height: 140px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cta-banner { padding: 56px 0; }
  .site-footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
