/**
 * CUPRUM INFRASTRUCTURE PRIVATE LIMITED
 * Global CSS & Base Reset
 */

/* 1. Box Sizing & Reset */
*, *::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: 100vw;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.7;
  color: var(--color-body);
  background-color: var(--color-white);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-height) + var(--topbar-height, 38px));
}

main {
  flex: 1 0 auto;
}

/* 2. Skip to Content Link (Accessibility) */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top var(--transition-fast);
  text-decoration: none;
  box-shadow: var(--shadow-copper);
}

.skip-to-content:focus {
  top: 20px;
  outline: 3px solid var(--color-white);
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.375rem, 5vw, 4.25rem); /* 38px to 68px */
  line-height: 1.12;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.875rem, 3.8vw, 3rem); /* 30px to 48px */
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem); /* 22px to 28px */
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

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

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

p.lead {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--color-heading);
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

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

/* 4. Section Rhythm & Architectural Backgrounds */
.section {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.section-sm {
  padding: 70px 0;
}

.section-lg {
  padding: 130px 0;
}

.bg-white {
  background-color: var(--color-white);
  color: var(--color-body);
}

.bg-cream {
  background-color: var(--color-cream);
  color: var(--color-body);
}

.bg-light {
  background-color: var(--color-light);
  color: var(--color-body);
}

.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-body-light);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-heading-light);
}

.bg-dark p {
  color: var(--color-body-light);
}

.bg-dark-deep {
  background-color: var(--color-dark-deep);
  color: var(--color-body-light);
}

.bg-dark-deep h1, .bg-dark-deep h2, .bg-dark-deep h3, .bg-dark-deep h4 {
  color: var(--color-heading-light);
}

.bg-dark-deep p {
  color: var(--color-body-light);
}

/* 5. Container & Grid */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container-fluid {
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

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

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

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

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

/* 6. Section Eyebrow & Header Styles */
.section-header {
  margin-bottom: 56px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-primary);
}

.eyebrow.no-line::before {
  display: none;
}

.text-copper {
  color: var(--color-primary) !important;
}

.text-copper-gradient {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 7. Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  z-index: var(--z-progress);
  transition: width 0.1s ease-out;
}

/* 8. Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0B141B;
}

::-webkit-scrollbar-thumb {
  background: #334150;
  border-radius: 5px;
  border: 2px solid #0B141B;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* 9. Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.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: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.relative { position: relative; }
.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;
}
