/* ================================================================
   BHAYANI & CO. — Global Design System
   Chartered Accountants | FRN: 164750W | Junagadh, Gujarat
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy: #0A0F1E;
  --navy-800: #111a30;
  --navy-700: #1c2945;
  --indigo: #4F46E5;
  --indigo-600: #4338CA;
  --indigo-400: #818CF8;
  --indigo-300: #A5B4FC;
  --indigo-glow: rgba(79, 70, 229, 0.18);
  --sand: #F5F0E8;
  --sand-200: #EDE8DF;
  --white: #FAFAF9;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-900: #111827;

  --ff-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Courier New', monospace;

  --fs-xs: clamp(0.72rem, 0.7vw + 0.55rem, 0.85rem);
  --fs-sm: clamp(0.85rem, 0.8vw + 0.65rem, 1rem);
  --fs-base: clamp(1rem, 0.9vw + 0.78rem, 1.125rem);
  --fs-lg: clamp(1.1rem, 1.2vw + 0.85rem, 1.4rem);
  --fs-xl: clamp(1.4rem, 1.8vw + 0.95rem, 2rem);
  --fs-2xl: clamp(2rem, 3vw + 1rem, 3.2rem);
  --fs-3xl: clamp(2.8rem, 5vw + 1rem, 5rem);
  --fs-hero: clamp(4rem, 9vw + 1rem, 9.5rem);

  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;

  --container: 1280px;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-snap-type: none;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section,
.hero,
header.page-hero {
  scroll-snap-align: start;
  scroll-margin-top: clamp(6rem, 15vh, 8rem);
}

/* ── Sticky Section Elements ────────────────────────────────── */
@media (min-width: 769px) {

  .philosophy-label-col,
  .contact-info-col,
  .founder-photo-col,
  .svc-block>div:first-child {
    position: sticky !important;
    top: clamp(6rem, 15vh, 10rem);
    height: fit-content;
    z-index: 5;
  }
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(5rem, 12vw, 9rem);
}

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  background: var(--indigo);
  color: white;
  padding: var(--sp-3) var(--sp-6);
  z-index: 1000;
  border-radius: 0 0 var(--r-md) var(--r-md);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: var(--sp-5);
  transition: background var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(10, 15, 30, 0.98);
  padding-block: var(--sp-3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav.light-nav.scrolled {
  background: rgba(250, 250, 249, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 0 var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-main {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.light-nav.scrolled .nav-logo-main {
  color: var(--navy);
}

.nav-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-300);
  font-weight: 600;
}

.light-nav.scrolled .nav-logo-sub {
  color: var(--indigo);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--indigo-400);
  transition: width var(--dur-base) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.light-nav.scrolled .nav-links a {
  color: var(--gray-600);
}

.light-nav.scrolled .nav-links a:hover,
.light-nav.scrolled .nav-links a.active {
  color: var(--gray-900);
}

.light-nav.scrolled .nav-links a::after {
  background: var(--indigo);
}

.nav-cta.nav-cta {
  padding: var(--sp-2) var(--sp-6);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-full);
  color: var(--white) !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-base) var(--ease-out);
}

.nav-cta.nav-cta::after {
  display: none;
}

.nav-cta.nav-cta:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  transform: translateY(-1px);
}

.light-nav.scrolled .nav-cta.nav-cta {
  color: var(--navy) !important;
  border-color: var(--gray-400);
}

.light-nav.scrolled .nav-cta.nav-cta:hover {
  color: var(--white) !important;
  border-color: var(--indigo);
}

.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  transition: background var(--dur-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.light-nav.scrolled .nav-toggle {
  color: var(--gray-900);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--indigo-glow);
}

.btn--primary:hover {
  background: var(--indigo-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
}

.btn--outline:hover {
  background: var(--indigo);
  color: var(--white);
}

.btn--dark {
  background: var(--navy);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
}

.btn .material-symbols-rounded {
  font-size: 1.1em;
}

/* ── Badge / Tag ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--dark {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--indigo-300);
}

.badge--light {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.18);
  color: var(--indigo);
}

.badge .material-symbols-rounded {
  font-size: 0.95em;
}

/* ── Section Labels ──────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--indigo);
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding-top: clamp(7rem, 14vw, 12rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-hero-label {
  margin-bottom: var(--sp-5);
}

.page-hero-label .section-label {
  color: var(--indigo-400);
}

.page-hero-label .section-label::before {
  background: var(--indigo-400);
}

.page-hero h1 {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.05;
  max-width: 18ch;
}

.page-hero p {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.6);
  max-width: 52ch;
  font-weight: 300;
}

/* ── Disclaimer Banner ───────────────────────────────────────── */
.disclaimer {
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-12);
}

.disclaimer .material-symbols-rounded {
  color: var(--indigo);
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--indigo-300);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  margin-bottom: var(--sp-6);
}

.card-icon .material-symbols-rounded {
  font-size: 1.4rem;
}

.card h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.card p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--indigo);
  transition: gap var(--dur-base) var(--ease-out);
}

.card-link:hover {
  gap: var(--sp-3);
}

.card-link .material-symbols-rounded {
  font-size: 1rem;
}

/* ── Dark Card ──────────────────────────────────────────────── */
.card-dark {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
}

.card-dark:hover {
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ── Grid Layouts ────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

/* ── Section Heading ─────────────────────────────────────────── */
.section-heading {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-heading span {
  color: var(--indigo);
}

.section-intro {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--gray-500);
  max-width: 54ch;
  font-weight: 300;
  line-height: 1.7;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.15;
  max-width: 22ch;
  margin-inline: auto;
}

.cta-section p {
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.55);
  max-width: 48ch;
  margin-inline: auto;
  font-weight: 300;
}

.cta-section .cta-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-10);
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--sp-16) var(--sp-10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 28ch;
}

.footer-frn {
  margin-top: var(--sp-5);
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--indigo-400);
  letter-spacing: 0.06em;
}

.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--sp-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col ul a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--dur-fast);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-xs);
  transition: color var(--dur-fast);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ── Scroll Reveal Animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 200ms;
}

.reveal-delay-3 {
  transition-delay: 300ms;
}

.reveal-delay-4 {
  transition-delay: 400ms;
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700, var(--gray-600));
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: var(--sp-3) var(--sp-5);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--gray-900);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-control::placeholder {
  color: var(--gray-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  cursor: pointer;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-10);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  #nav-links a {
    font-size: 1.8rem;
    font-family: var(--ff-display);
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: -0.02em;
  }

  #nav-links a.nav-cta {
    font-size: 1.2rem;
    padding: var(--sp-3) var(--sp-10);
    border-color: var(--indigo-400) !important;
    color: var(--white) !important;
    background: rgba(79, 70, 229, 0.1);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    color: var(--white);
  }

  .light-nav.scrolled .nav-toggle {
    color: var(--navy);
  }

  .site-nav.scrolled .nav-toggle {
    color: var(--white);
  }

  .site-nav.light-nav.scrolled .nav-toggle {
    color: var(--navy);
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}