/* ==========================================================================
   AGRAWAL GROUP — OFFICIAL DESIGN SYSTEM & STYLESHEET
   Theme: Royal Obsidian & Imperial Gold Glassmorphism
   Tagline: "Building Trust. Creating Legacy."
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette — Royal Obsidian & Imperial Gold */
  --obsidian-deep: #050608;
  --obsidian-bg: #090B0F;
  --obsidian-surface: #10141C;
  --obsidian-elevated: #161C26;
  --obsidian-card: rgba(16, 20, 28, 0.72);
  --obsidian-border: rgba(212, 163, 61, 0.18);
  --obsidian-border-hover: rgba(245, 213, 128, 0.45);

  /* Imperial Gold Tones */
  --gold-highlight: #FFE699;
  --gold-light: #F5D580;
  --gold-primary: #D4A33D;
  --gold-rich: #C99738;
  --gold-deep: #9E7422;
  --gold-dark: #684C16;
  --gold-shadow: rgba(212, 163, 61, 0.25);
  --gold-glow: rgba(212, 163, 61, 0.35);

  /* Text & Neutrals */
  --text-primary: #F4F5F0;
  --text-secondary: #B9C1C0;
  --text-muted: #7E8B89;
  --text-gold: #E5BE65;

  /* Accent & Status */
  --emerald-accent: #1C5248;
  --ruby-accent: #782424;

  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #FFE699 0%, #D4A33D 50%, #9E7422 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(245, 213, 128, 0.15) 0%, rgba(212, 163, 61, 0.05) 100%);
  --gold-text-gradient: linear-gradient(135deg, #FFF0B8 0%, #D4A33D 45%, #B3832B 100%);
  --dark-glass-gradient: linear-gradient(145deg, rgba(22, 28, 38, 0.75) 0%, rgba(10, 13, 18, 0.85) 100%);
  --radial-gold-glow: radial-gradient(circle at 50% 0%, rgba(212, 163, 61, 0.18) 0%, rgba(9, 11, 15, 0) 70%);

  /* Typography */
  --font-heading: 'Cinzel', 'Fraunces', serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-gold: 0 0 30px rgba(212, 163, 61, 0.2);
  --shadow-gold-lg: 0 0 60px rgba(212, 163, 61, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1280px;
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--obsidian-bg);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(212, 163, 61, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(201, 151, 56, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(201, 151, 56, 0.04) 0%, transparent 50%);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Texture Pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(212, 163, 61, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* Typography Presets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.text-gold {
  color: var(--gold-light);
}

.text-gold-gradient {
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.sub-kicker {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sub-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
}

.sub-kicker.center {
  justify-content: center;
}
.sub-kicker.center::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

p.lead {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: rgba(9, 11, 15, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 163, 61, 0.12);
}

.site-header.scrolled {
  background: rgba(9, 11, 15, 0.88);
  height: 74px;
  border-bottom: 1px solid rgba(212, 163, 61, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  z-index: 1002;
}

.brand-crest {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 163, 61, 0.4);
  box-shadow: 0 0 16px rgba(212, 163, 61, 0.25);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-link:hover .brand-crest {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(212, 163, 61, 0.45);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-name span {
  color: var(--gold-primary);
}

.brand-motto {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  opacity: 0.85;
  margin-top: 4px;
  text-transform: uppercase;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(212, 163, 61, 0.3);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(212, 163, 61, 0.1);
  border-color: var(--gold-light);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0B0E14;
  box-shadow: 0 4px 20px rgba(212, 163, 61, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 163, 61, 0.55);
  color: #000;
}

.btn-glass {
  background: rgba(22, 28, 38, 0.6);
  color: var(--text-primary);
  border: 1px solid rgba(212, 163, 61, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 163, 61, 0.2);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.02rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(212, 163, 61, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 163, 61, 0.3);
}

/* ==========================================================================
   PAGE HERO SECTIONS
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 60px) 0 70px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 163, 61, 0.15);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.8) brightness(0.6);
  z-index: 0;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.7) 0%, rgba(9, 11, 15, 0.96) 80%, #090B0F 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--gold-light);
}

.breadcrumb span.sep {
  opacity: 0.4;
}

/* ==========================================================================
   STAT COUNTER CARDS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid rgba(212, 163, 61, 0.2);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: radial-gradient(circle, rgba(212, 163, 61, 0.6) 0%, transparent 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand-crest {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 1px solid rgba(212, 163, 61, 0.35);
  box-shadow: 0 0 20px rgba(212, 163, 61, 0.2);
  margin-bottom: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact-icon {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a:hover {
  color: var(--gold-light);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 20, 28, 0.85);
  border: 1px solid rgba(212, 163, 61, 0.4);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-primary);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 163, 61, 0.5);
}
