/* ==========================================================================
   VISHAL JAMDHADE BUILDCON — DESIGN SYSTEM & TOKENS
   Premium International Architecture & Structural Engineering Studio
   ========================================================================== */

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

:root {
  /* --- Primary Color Palette (Architecture Industry Standard) --- */
  --bg-dark-primary: #111111;
  --bg-dark-secondary: #181818;
  --bg-dark-card: #1f1f1f;
  --bg-dark-elevated: #242424;
  
  --bg-warm-white: #F6F4EF;
  --bg-warm-card: #FFFFFF;
  --bg-pure-white: #FFFFFF;

  /* --- Text Colors --- */
  --text-dark-title: #141414;
  --text-dark-body: #333333;
  --text-dark-muted: #666666;

  --text-light-title: #F6F4EF;
  --text-light-body: #D1D1D1;
  --text-light-muted: #8E8E8E;

  /* --- Premium Accents (Champagne Gold & Steel Blue) --- */
  --gold-primary: #C9A86A;
  --gold-light: #DFCA9E;
  --gold-dark: #9E7B3F;
  --gold-gradient: linear-gradient(135deg, #DFCA9E 0%, #C9A86A 50%, #9E7B3F 100%);
  --gold-glow: rgba(201, 168, 106, 0.25);

  --steel-blue: #536B78;
  --steel-blue-light: #7C98A6;
  --steel-blue-dark: #32434D;
  --cad-cyan: #38BDF8;
  --cad-cyan-glow: rgba(56, 189, 248, 0.2);

  /* --- Architectural Borders --- */
  --border-dark-subtle: rgba(255, 255, 255, 0.08);
  --border-dark-medium: rgba(255, 255, 255, 0.15);
  --border-light-subtle: rgba(0, 0, 0, 0.08);
  --border-light-medium: rgba(0, 0, 0, 0.16);
  --border-gold-subtle: rgba(201, 168, 106, 0.3);
  --border-gold-accent: rgba(201, 168, 106, 0.7);

  /* --- Typography Families --- */
  --font-heading: 'Cinzel', 'Playfair Display', serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* --- Geometry & Radii --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* --- Shadows & Elevations --- */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.28);
  --shadow-gold: 0 8px 30px rgba(201, 168, 106, 0.2);

  /* --- Transitions --- */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout & Spacing --- */
  --container-max: 1360px;
  --container-narrow: 1100px;
  --section-pad-desktop: 120px 0;
  --section-pad-tablet: 90px 0;
  --section-pad-mobile: 65px 0;
}

/* ==========================================================================
   CSS RESET & BASE SETUP
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-light-body);
  background-color: var(--bg-dark-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background-color: var(--gold-primary);
  color: #111111;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

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

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

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   CONTAINER & GRID UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Monumental Section Titles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: var(--gold-primary);
}

.section-tag.tag-steel {
  color: var(--cad-cyan);
}
.section-tag.tag-steel::before {
  background-color: var(--cad-cyan);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-title-dark {
  color: var(--text-dark-title);
}

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

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  max-width: 680px;
  line-height: 1.7;
}

.section-subtitle-dark {
  color: var(--text-dark-muted);
}

.section-subtitle-light {
  color: var(--text-light-muted);
}

.gold-accent {
  color: var(--gold-primary);
}

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

/* ==========================================================================
   ARCHITECTURAL GRAPHIC ELEMENTS & OVERLAYS
   ========================================================================== */

/* Subtle CAD Grid Overlay */
.cad-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.cad-grid-pattern-light {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

/* Technical Corner Markings [CAD Corners] */
.cad-corner-box {
  position: relative;
}

.cad-corner-box::before,
.cad-corner-box::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--gold-primary);
  pointer-events: none;
  z-index: 2;
  transition: all var(--transition-smooth);
}

.cad-corner-box::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.cad-corner-box::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* Technical Dimension Marker */
.technical-coord {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--steel-blue-light);
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.technical-coord::before {
  content: '+';
  color: var(--gold-primary);
  font-weight: 700;
}

/* Code Pills (IS Codes) */
.is-code-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(83, 107, 120, 0.15);
  border: 1px solid rgba(83, 107, 120, 0.35);
  color: var(--cad-cyan);
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.is-code-pill:hover {
  background: rgba(83, 107, 120, 0.3);
  border-color: var(--cad-cyan);
}

/* Animated Pulse Dot */
.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-primary);
  box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 168, 106, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(201, 168, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 168, 106, 0);
  }
}
