/* ==========================================================================
   KANNAV RENOVATION - CORE DESIGN SYSTEM & STYLESHEET
   White & Red Premium Light Theme
   Matching logo red (#E60000 / #FF1A1A), crisp white (#FFFFFF), and slate typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Chakra+Petch:wght@600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Tokens - White & Red Premium Light Theme */
  --bg-light: #FFFFFF;
  --bg-surface: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-nav: rgba(255, 255, 255, 0.96);
  
  /* Brand Accent: Kannav Renovation Logo Red */
  --accent-red: #E60000;
  --accent-red-hover: #CC0000;
  --accent-red-glow: rgba(230, 0, 0, 0.25);
  
  /* Backward Compatible Alias Tokens */
  --accent-lime: #E60000;
  --accent-lime-hover: #CC0000;
  --accent-lime-glow: rgba(230, 0, 0, 0.25);

  /* Neutral Text & Borders */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  --border-light: #E2E8F0;
  --border-slate: #E2E8F0;
  --border-red: rgba(230, 0, 0, 0.4);
  --border-lime: rgba(230, 0, 0, 0.4);

  /* Typography */
  --font-serif: 'Cinzel', 'Times New Roman', serif;
  --font-heading: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 12px 35px rgba(230, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(230, 0, 0, 0.25);
}

/* Reset & Global Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.heading-industrial {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text-dark);
}

.heading-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.03em;
}

.text-red {
  color: var(--accent-red);
}

.text-lime {
  color: var(--accent-red);
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-red, .btn-lime {
  background-color: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
}

.btn-red:hover, .btn-lime:hover {
  background-color: var(--accent-red-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: #FFFFFF;
  color: var(--text-dark);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background-color: rgba(230, 0, 0, 0.04);
  transform: translateY(-2px);
}

.btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   1.0 NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text-dark);
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-red);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   2.0 HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   3.0 SERVICES CAPABILITIES SECTION
   ========================================================================== */
.capabilities {
  padding: 100px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.capability-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 30px 20px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.capability-card:hover {
  border-color: var(--accent-red);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ==========================================================================
   4.0 WARRANTY BANNER
   ========================================================================== */
.safety-banner {
  background-color: var(--accent-red);
  color: #FFFFFF;
  padding: 24px 0;
}

/* ==========================================================================
   5.0 STATS / METRICS BAR
   ========================================================================== */
.stats-bar {
  padding: 70px 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-transform: uppercase;
}

/* ==========================================================================
   6.0 FEATURED PROJECTS
   ========================================================================== */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
}

/* ==========================================================================
   7.0 OUR PROCESS SECTION
   ========================================================================== */
.process-step {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 36px 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.process-step:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-red);
}

/* ==========================================================================
   8.0 MODAL DIALOGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  width: 90%;
  max-width: 640px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .capabilities-grid-layout {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
}
