/**
 * Cloudasys Marketing Website
 * Consolidated Stylesheet
 *
 * Structure:
 * 1. CSS Custom Properties (variables)
 * 2. Reset/Base styles
 * 3. Typography
 * 4. Layout utilities
 * 5. Components (buttons, cards, forms)
 * 6. Navigation
 * 7. Hero/Slider
 * 8. Page sections
 * 9. Calculator specific
 * 10. Footer
 * 11. Responsive overrides
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand Colors */
  --navy: #04042c;
  --purple: #9243f9;
  --purple-dark: #612caa;
  --orange: #ff7854;

  /* Text Colors */
  --text-dark: #1a1a1a;
  --text-body: #444444;
  --text-muted: #666666;
  --text-light: #a7a7b8;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f9f9f9;
  --bg-gray: #f2f2f2;

  /* Borders */
  --border-light: #eeeeee;
  --border-medium: #cccccc;

  /* Feedback */
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Container */
  --container-max: 1200px;
  --container-padding: 16px;

  /* Typography */
  --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
  --font-heading: var(--font-family);
}

/* ==========================================================================
   2. Reset/Base Styles
   ========================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
}

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

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
}

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

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

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

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

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

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

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

/* Flexbox */
.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Section spacing */
.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

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

/* Background variants */
.bg-navy {
  background: var(--navy);
  color: white;
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-navy h5,
.bg-navy h6 {
  color: white;
}

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

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

.bg-gray {
  background: var(--bg-gray);
}

/* Margin utilities */
.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* ==========================================================================
   5. Components - Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary - Purple */
.btn-primary {
  background: var(--purple-dark);
  color: white;
  border-color: var(--purple-dark);
}

.btn-primary:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

/* Secondary - Orange */
.btn-secondary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}

.btn-secondary:hover {
  background: #ff9075;
  border-color: #ff9075;
  color: white;
}

/* Outline - Purple border */
.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover {
  background: var(--purple);
  color: white;
}

/* Outline Light - For dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--navy);
}

/* Large button variant */
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Small button variant */
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* Full width button */
.btn-block {
  display: block;
  width: 100%;
}

/* ==========================================================================
   5. Components - Cards
   ========================================================================== */

.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--border-light);
}

.card-flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--purple);
}

/* Pricing card variant */
.card-pricing {
  text-align: center;
  padding: var(--space-xl);
}

.card-pricing.featured {
  border: 2px solid var(--purple);
  position: relative;
}

.card-pricing .badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--purple);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.card-pricing .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple);
  margin: var(--space-md) 0;
}

.card-pricing .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.card-pricing .features {
  text-align: left;
  margin: var(--space-lg) 0;
}

.card-pricing .features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-pricing .features li:last-child {
  border-bottom: none;
}

.card-pricing .features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* Service card */
.card-service {
  text-align: center;
  padding: var(--space-xl);
}

.card-service .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 12px;
  color: var(--purple);
  font-size: 28px;
}

.card-service h3 {
  margin-bottom: var(--space-sm);
}

.card-service p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* Feature card */
.card-feature {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
}

.card-feature .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  border-radius: 8px;
  color: white;
  font-size: 20px;
}

.card-feature h4 {
  margin-bottom: var(--space-xs);
}

.card-feature p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* ==========================================================================
   5. Components - Forms
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-dark);
}

.form-label.required::after {
  content: '*';
  color: var(--error);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: var(--bg-white);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(146, 67, 249, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control.error {
  border-color: var(--error);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
}

/* Form row for multi-column */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Error message */
.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* Success message */
.form-success {
  color: var(--success);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* Range slider styling */
input[type='range'] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-gray);
  outline: none;
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  transition: background var(--transition-fast);
}

input[type='range']::-webkit-slider-thumb:hover {
  background: var(--purple-dark);
}

input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  border: none;
}

/* ==========================================================================
   5. Components - Alerts
   ========================================================================== */

.alert {
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-warning {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.alert-info {
  background: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* ==========================================================================
   5. Components - Badges
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-purple {
  background: var(--purple);
  color: white;
}

.badge-orange {
  background: var(--orange);
  color: white;
}

.badge-success {
  background: var(--success);
  color: white;
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */

.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10000;
  padding: 6px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
  font-size: 0.9375rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.nav-overlay.show {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   7. Hero/Slider
   ========================================================================== */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 44, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding);
  padding-left: 60px;
  color: white;
  text-align: left;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--orange);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
  max-width: 550px;
  color: white;
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Hero button overrides */
.hero-btns .btn {
  border-radius: 4px;
  padding: 14px 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btns .btn-primary,
.hero-btns .btn-orange {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.hero-btns .btn-primary:hover,
.hero-btns .btn-orange:hover {
  background: #ff9075;
  border-color: #ff9075;
}

.btn-purple,
.hero-btns .btn-purple {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: white;
}

.btn-purple:hover,
.hero-btns .btn-purple:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.hero-btns .btn-secondary,
.hero-btns .btn-navy {
  background: rgba(4, 4, 44, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.hero-btns .btn-secondary:hover,
.hero-btns .btn-navy:hover {
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Slider - Full width with slide transitions */
.hero-slider {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Overlay moved to .hero-slide::before */

/* Hero slider headline - orange */
.hero-slider h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  font-weight: 700;
  color: var(--orange);
}

/* Hero slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 44, 0.35);
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hero content over slider */
.hero-slider .hero-content {
  position: relative;
  z-index: 2;
}

/* Slider navigation arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: background var(--transition-fast);
  z-index: 2;
}

.slider-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.slider-dot:hover,
.slider-dot.active {
  background: white;
}

/* Page Hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: var(--space-sm);
  color: var(--orange);
}

.page-hero p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   8. Page Sections
   ========================================================================== */

/* Section headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* CTA Strip */
.cta-strip {
  background: var(--navy);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-strip h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-strip p {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Why Choose section */
.why-choose-item {
  text-align: center;
  padding: var(--space-lg);
}

.why-choose-item .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: 50%;
  color: var(--purple);
  font-size: 32px;
}

.why-choose-item h4 {
  margin-bottom: var(--space-sm);
}

.why-choose-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Contact page layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-sidebar {
  background: var(--bg-light);
  border-radius: 12px;
  padding: var(--space-xl);
}

.contact-sidebar h3 {
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  border-radius: 8px;
  color: white;
  font-size: 18px;
}

.contact-info-item h5 {
  margin-bottom: var(--space-xs);
}

.contact-info-item p {
  color: var(--text-muted);
  margin: 0;
}

.contact-info-item a {
  color: var(--purple);
}

/* Datacenter cards */
.datacenter-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.datacenter-card .code {
  display: inline-block;
  background: var(--purple);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.datacenter-card h4 {
  margin-bottom: var(--space-xs);
}

.datacenter-card p {
  color: var(--text-muted);
  margin: 0;
}

.datacenter-card.primary {
  border: 2px solid var(--purple);
}

.datacenter-card.primary::after {
  content: 'Primary';
  display: block;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--purple);
  font-weight: 600;
}

/* Mission statement card */
.mission-card {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: white;
  border-radius: 16px;
  padding: var(--space-2xl);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.mission-card h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.mission-card p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--purple);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding-bottom: var(--space-lg);
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   9. Calculator Specific
   ========================================================================== */

.calculator {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.calc-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

/* Preset buttons */
.preset-btns {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.preset-btn {
  flex: 1;
  padding: var(--space-md);
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.preset-btn:hover,
.preset-btn.active {
  border-color: var(--purple);
  background: white;
}

.preset-btn h4 {
  margin-bottom: 4px;
  color: var(--purple);
  font-size: 1rem;
}

.preset-btn span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Slider group */
.slider-group {
  margin-bottom: var(--space-lg);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.slider-label span {
  font-weight: 600;
}

.slider-value {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--purple);
  min-width: 80px;
  text-align: center;
}

/* Toggle switches */
.toggle-group {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.toggle-option input[type='radio'],
.toggle-option input[type='checkbox'] {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
}

.toggle-option .price-addon {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Checkbox addons */
.addon-group {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-light);
  border-radius: 8px;
}

.addon-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.addon-option:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.addon-option label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.addon-option input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
}

.addon-option .addon-price {
  color: var(--purple);
  font-weight: 600;
  font-size: 0.875rem;
}

/* VM count input */
.vm-count-input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.vm-count-input input {
  width: 60px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}

/* Term slider with discount display */
.term-slider-group {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.discount-badge {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-left: var(--space-sm);
}

/* Quote preview */
.quote-preview {
  background: var(--bg-light);
  border-radius: 12px;
  padding: var(--space-lg);
  position: sticky;
  top: 80px;
}

.quote-preview h3 {
  margin-bottom: var(--space-xs);
}

.quote-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

.quote-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  font-weight: 600;
}

.quote-table th:last-child {
  text-align: right;
}

.quote-table td {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.quote-table td:first-child {
  color: var(--text-muted);
  width: 40px;
}

.quote-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.quote-summary {
  margin-bottom: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.summary-row.discount {
  color: var(--success);
}

.summary-row.total {
  border-top: 2px solid var(--navy);
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
}

/* Quote form */
.quote-form {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
}

.quote-form h4 {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.quote-form h4::before {
  content: '✉';
}

.quote-form .form-control {
  margin-bottom: var(--space-sm);
  padding: 10px 14px;
}

.quote-form-btns {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quote-form-btns .btn {
  flex: 1;
  padding: 10px 16px;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.footer {
  background: var(--navy);
  color: white;
  padding-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-logo img {
  height: 70px;
  width: auto;
}

.footer-tagline {
  color: var(--text-light);
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
}

.footer h5 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: var(--space-sm);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin: 6px 0;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--purple);
}

.footer-contact a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  list-style: none;
  padding: 0;
}

.footer-social a {
  color: var(--text-light);
  font-size: 20px;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--container-padding);
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* ==========================================================================
   11. Responsive Overrides
   ========================================================================== */

/* Large tablets and small desktops */
@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .calculator {
    grid-template-columns: 1fr;
  }

  .quote-preview {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    order: -1;
  }
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 44, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: var(--space-md);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  padding: var(--space-2xl);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 32px;
}

.modal-icon.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.modal-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.modal h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.modal p {
  color: var(--text-body);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  text-align: left;
}

.modal p strong {
  color: var(--text-dark);
}

.modal .btn {
  min-width: 140px;
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-sm {
    padding: var(--space-2xl) 0;
  }

  /* Navigation mobile */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 260px;
    background: var(--navy);
    flex-direction: column;
    padding: 80px 20px 20px;
    gap: 0;
    transition: left var(--transition-normal);
    z-index: 10001;
    overflow-y: auto;
  }

  .nav-links.show {
    left: 0;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    color: white;
    font-size: 1.1rem;
  }

  /* Hero */
  .hero,
  .hero-slider {
    min-height: 400px;
  }

  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .hero-btns {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .hero-btns .btn {
    padding: 12px 20px;
    font-size: 11px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  /* Page hero */
  .page-hero {
    padding: var(--space-2xl) 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Calculator */
  .preset-btns {
    flex-direction: column;
  }

  .toggle-group {
    flex-direction: column;
    gap: var(--space-md);
  }

  .quote-form-btns {
    flex-direction: column;
  }

  /* Cards */
  .card {
    padding: var(--space-md);
  }

  .card-pricing {
    padding: var(--space-lg);
  }

  .card-service {
    padding: var(--space-lg);
  }
}

/* Small phones */
@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 14px;
  }

  .hero {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .card-pricing .price {
    font-size: 2rem;
  }

  .summary-row.total {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .slider-nav,
  .slider-dots,
  .btn,
  .quote-form {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: none !important;
    color: black;
  }

  .hero::before {
    display: none;
  }

  .hero h1,
  .hero p {
    color: black;
  }

  .quote-preview {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Utility: Screen reader only */
.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;
}

/* Utility: Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility: Hidden */
.hidden {
  display: none !important;
}

/* Utility: Visually hidden but focusable */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
