/* Astrafuse Brand Colors */
:root {
  /* Violet Blue Spectrum (Primary: 4th swatch - medium-dark blue) */
  --violet-blue-1: #E8EAF6;
  --violet-blue-2: #C5CAE9;
  --violet-blue-3: #9FA8DA;
  --violet-blue-primary: #5C6BC0; /* Primary - 4th swatch */
  --violet-blue-5: #3F51B5;
  --violet-blue-6: #3949AB;
  --violet-blue-7: #303F9F;
  --violet-blue-8: #283593;
  
  /* Fuchsia Spectrum (Primary: 6th swatch - dark magenta-purple) */
  --fuchsia-1: #FCE4EC;
  --fuchsia-2: #F8BBD0;
  --fuchsia-3: #F48FB1;
  --fuchsia-4: #F06292;
  --fuchsia-5: #EC407A;
  --fuchsia-primary: #C2185B; /* Primary - 6th swatch */
  --fuchsia-7: #AD1457;
  --fuchsia-8: #880E4F;
  
  /* Magenta Spectrum (Primary: 3rd swatch - vibrant magenta) */
  --magenta-1: #F3E5F5;
  --magenta-2: #E1BEE7;
  --magenta-primary: #BA68C8; /* Primary - 3rd swatch */
  --magenta-4: #AB47BC;
  --magenta-5: #9C27B0;
  --magenta-6: #8E24AA;
  --magenta-7: #7B1FA2;
  --magenta-8: #6A1B9A;
  
  /* Neutral Gray Spectrum */
  --gray-1: #FFFFFF;
  --gray-2: #F5F5F5;
  --gray-3: #EEEEEE;
  --gray-4: #E0E0E0;
  --gray-5: #BDBDBD;
  --gray-6: #9E9E9E;
  --gray-7: #757575;
  --gray-8: #424242;
  --gray-9: #212121;
  --gray-10: #000000;
  
  /* Semantic Colors */
  --primary: var(--violet-blue-primary);
  --secondary: var(--fuchsia-primary);
  --accent: var(--magenta-primary);
  --text-primary: var(--gray-9);
  --text-secondary: var(--gray-7);
  --background: var(--gray-1);
  --background-alt: var(--gray-2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Site header – default dark bar; on homepage overlays hero with white links */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gray-10);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.site-header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  /* keep .container’s padding: 0 1rem for left/right so logo aligns with hero and other content */
}
.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-header__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}
.site-header__menu a:not(.btn) {
  color: var(--gray-1);
}
.site-header__menu a:not(.btn):hover {
  color: var(--gray-3);
  opacity: 0.9;
}
.site-header__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-1);
}

/* Homepage: header overlays hero, transparent so hero shows through; body stays default (white below hero) */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  box-shadow: none;
}
.page-home .site-header__menu a:not(.btn) {
  color: #fff !important;
}
.page-home .site-header__menu a:not(.btn):hover {
  color: rgba(255, 255, 255, 0.9) !important;
}
.page-home .site-header__toggle {
  color: #fff !important;
}
.page-home .site-header__cta {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
}
.page-home .site-header__cta:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

/* Homepage hero – left-aligned to container; height: 100vh on small, max 650px on large */
.hero-home {
  position: relative;
  background-color: #000;
  background-image: url("../img/hero-home.webp");
  background-size: cover;
  background-position: 32% center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 0 8rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-home {
    min-height: 0;
    height: 650px;
    max-height: 650px;
    padding: 4rem 0;
  }
}

/* Dark gradient overlay (left side) so text sits over dark area; matches reference */
.hero-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.12) 75%, transparent 100%);
  pointer-events: none;
}

/* Hero content: use container’s padding so left edge matches logo and other sections */
.hero-home__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  color: #fff;
  text-align: left;
  margin: 0;
  /* do not override .container padding – leave 0 1rem so hero aligns with logo and “What we do” */
}

.hero-home__title,
.hero-home__subtitle,
.hero-home__cta {
  max-width: 560px;
  margin-left: 0;
  margin-right: 0;
}

.hero-home__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  margin-top: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-home__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Schedule Call: white border (must override .btn border:none), transparent background */
.hero-home__cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hero-home__cta:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

section {
  padding: 4rem 0;
}

/* Reduce padding on last section before footer */
section:last-of-type {
  padding-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--violet-blue-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--violet-blue-5);
  color: white;
}

.btn-secondary {
  background-color: var(--fuchsia-primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--fuchsia-7);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--violet-blue-primary);
  color: var(--violet-blue-primary);
}

.btn-outline:hover {
  background-color: var(--violet-blue-primary);
  color: white;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Ensure grid items align properly - only apply to cards */
.grid > .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  section {
    padding: 2rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
  
  .grid > .card {
    height: auto !important;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
