/* ==========================================================================
   SAI VISWA CONSTRUCTIONS - MAIN DESIGN SYSTEM
   Brand Colors: Deep Navy Blue (#0B2545), Sai Viswa Cyan (#0099DD)
   Typography: Outfit (Headings) + Plus Jakarta Sans (Body)
   ========================================================================== */

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

:root {
  /* Brand Color Palette */
  --color-navy-950: #040d1a;
  --color-navy-900: #07172b;
  --color-navy-800: #0b2545;
  --color-navy-700: #133a6b;
  --color-navy-600: #1c5296;

  --color-cyan-600: #0077b6;
  --color-cyan-500: #0099dd;
  --color-cyan-400: #38bdf8;
  --color-cyan-300: #7dd3fc;
  --color-cyan-100: #e0f2fe;
  --color-cyan-50:  #f0f9ff;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  /* Semantic Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #07172b;
  --bg-dark-surface: #0b2545;

  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(11, 37, 69, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(11, 37, 69, 0.08), 0 2px 6px -1px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(11, 37, 69, 0.12), 0 4px 10px -2px rgba(11, 37, 69, 0.06);
  --shadow-xl: 0 20px 35px -5px rgba(11, 37, 69, 0.18), 0 8px 16px -4px rgba(11, 37, 69, 0.08);
  --shadow-blue: 0 8px 25px -4px rgba(0, 153, 221, 0.35);

  /* Transitions */
  --transition-fast: 0.18s ease-in-out;
  --transition-base: 0.28s ease-in-out;
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 980px;
  --header-height: 84px;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
}

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

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

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

/* Architectural Grid Pattern Utility */
.bg-grid-pattern {
  background-image: linear-gradient(to right, rgba(11, 37, 69, 0.035) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(11, 37, 69, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-grid-dark {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy-900);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-navy-800);
}

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

ul, ol {
  list-style: none;
}

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

.container-narrow {
  max-width: var(--container-narrow);
}

.section-py {
  padding-top: clamp(4rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.section-py-sm {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

/* Section Header Structure */
.section-header {
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-cyan-600);
  background-color: var(--color-cyan-50);
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 153, 221, 0.2);
  margin-bottom: 1rem;
}

.section-tag.tag-dark {
  color: var(--color-cyan-400);
  background-color: rgba(0, 153, 221, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-cyan-500);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.section-subtitle.dark {
  color: var(--color-slate-300);
}

/* Text Highlights */
.text-cyan {
  color: var(--color-cyan-500);
}

.text-navy {
  color: var(--color-navy-800);
}

.text-white {
  color: var(--color-white);
}

/* Subtle Architectural Divider */
.arch-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.arch-divider::before,
.arch-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--border-light);
}

.arch-divider-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan-500);
  transform: rotate(45deg);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-navy-900);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  border-radius: var(--border-radius-sm);
  transition: top var(--transition-fast);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
