/* ARUDRAH INTERIORS - MAIN BASE STYLES */
@import url('variables.css');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  max-width: 100%;
  width: 100%;
}

/* Critical Initial Reveal States to prevent FOUC / layout shake on reload */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur {
  opacity: 0;
}
.reveal {
  transform: translateY(20px);
}
.reveal-left {
  transform: translateX(-24px);
}
.reveal-right {
  transform: translateX(24px);
}
.reveal-blur {
  filter: blur(8px);
  transform: translateY(12px);
}
.reveal-scale {
  transform: scale(0.97);
}

/* Numeric alignment to prevent stats counters from shaking centered layout */
[data-counter], .stat-item h3, .eng-metric-val {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Custom Cursor Glow */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.08) 0%, rgba(200, 16, 46, 0) 70%);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* Typography Hierarchy - Modern Refined Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h1 strong, h2 strong, h3 strong, .highlight-keyword {
  color: var(--color-primary);
  font-weight: 800;
}

h1 {
  font-size: clamp(1.8rem, 5vw + 0.8rem, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.4rem, 3vw + 0.8rem, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.15rem, 2vw + 0.6rem, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 600;
}

p {
  color: var(--color-text-secondary);
  font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.05rem);
  line-height: 1.7;
}

p.lead {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 700px;
  line-height: 1.65;
}

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

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

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.container-narrow {
  max-width: 920px;
}

.section {
  padding-top: clamp(3.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-dark {
  background-color: var(--color-surface-dark);
  color: var(--color-text-light);
}

.section-dark h1, 
.section-dark h2, 
.section-dark h3, 
.section-dark h4 {
  color: #FFFFFF;
}

.section-dark p {
  color: #A1A1A6;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

/* Flex & Grid Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: 1rem; }
.gap-md { gap: 2rem; }
.gap-lg { gap: 3rem; }

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flex-mobile-col { flex-direction: column; }
  
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  p.lead {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .gap-lg { gap: 1.75rem; }
  .gap-md { gap: 1.25rem; }
}

/* Badge & Kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(200, 16, 46, 0.15);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center p.lead {
  margin-left: auto;
  margin-right: auto;
}
