/* ===================================
   FIXWELL APPLIANCES — ENTERPRISE CSS
   Mobile-First • Premium Design System
   =================================== */

/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Colors */
  --slate: #20232A;
  --electric-orange: #FF6B35;
  --steel-grey: #757D8A;
  --white-smoke: #F9F9F9;
  --pure-white: #FFFFFF;
  --orange-glow: rgba(255, 107, 53, 0.15);
  --orange-hover: #FF8555;
  --slate-light: #2D3139;
  --grey-bg: #F4F5F7;
  
  /* Typography - Fluid Scaling */
  --fs-hero: clamp(2.5rem, 6vw + 1rem, 5.5rem);
  --fs-h1: clamp(2.25rem, 5vw + 0.5rem, 4rem);
  --fs-h2: clamp(2rem, 4vw + 0.5rem, 3.25rem);
  --fs-h3: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  --fs-h4: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --fs-body: clamp(1rem, 0.5vw + 0.875rem, 1.25rem);
  --fs-small: clamp(0.875rem, 0.5vw + 0.75rem, 1.125rem);
  --fs-tiny: clamp(0.75rem, 0.3vw + 0.7rem, 1rem);
  
  /* Spacing - Fluid Grid */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1.25rem);
  --space-md: clamp(1.5rem, 2.5vw, 2.5rem);
  --space-lg: clamp(2.5rem, 4vw, 4rem);
  --space-xl: clamp(4rem, 6vw, 6rem);
  --space-2xl: clamp(6rem, 10vw, 10rem);
  
  /* Layout */
  --max-width: 1440px;
  --content-width: 1200px;
  --narrow-width: 800px;
  --section-padding: var(--space-xl);
  
  /* Effects */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(32, 35, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(32, 35, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(32, 35, 42, 0.16);
  --shadow-orange: 0 8px 32px rgba(255, 107, 53, 0.2);
  --blur-subtle: blur(20px);
  
  /* Z-index */
  --z-nav: 1000;
  --z-overlay: 999;
  --z-modal: 1001;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white-smoke);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate);
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

h1 { 
  font-size: var(--fs-h1); 
  font-weight: 800;
  line-height: 1.15;
}

h2 { 
  font-size: var(--fs-h2); 
  font-weight: 700;
  line-height: 1.2;
}

h3 { 
  font-size: var(--fs-h3); 
  font-weight: 700; 
}

h4 { 
  font-size: var(--fs-h4); 
  font-weight: 600; 
}

p {
  margin-bottom: var(--space-sm);
  max-width: 75ch;
}

@media (min-width: 1024px) {
  p {
    font-size: 1.125rem;
    line-height: 1.8;
  }
}

a {
  color: var(--electric-orange);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--orange-hover);
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: clamp(2rem, 4vw, 4rem);
  }
}

.container--narrow {
  max-width: var(--narrow-width);
}

section {
  padding-block: var(--section-padding);
  position: relative;
}

section + section {
  margin-top: 0;
}

@media (min-width: 768px) {
  section {
    padding-block: clamp(4rem, 8vw, 6rem);
  }
}

@media (min-width: 1024px) {
  section {
    padding-block: clamp(5rem, 10vw, 8rem);
  }
}

@media (min-width: 1280px) {
  section {
    padding-block: clamp(6rem, 12vw, 10rem);
  }
}

/* === NAVIGATION === */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(32, 35, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(32, 35, 42, 0.05);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(32, 35, 42, 0.08);
  border-bottom-color: rgba(255, 107, 53, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-sm);
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .nav {
    padding-block: 1rem;
  }
}

.nav__logo {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(32, 35, 42, 0.1));
}

@media (min-width: 768px) {
  .nav__logo {
    height: 52px;
  }
}

@media (min-width: 1024px) {
  .nav__logo {
    height: 56px;
  }
}

@media (min-width: 1280px) {
  .nav__logo {
    height: 60px;
  }
}

.nav__logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: var(--z-modal);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all var(--transition-base);
}

.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 28px; }

.nav__toggle.active span:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 21px;
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 21px;
}

.nav__menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav__menu {
    gap: 0.5rem;
  }
}

@media (min-width: 1280px) {
  .nav__menu {
    gap: 1rem;
  }
}

.nav__link {
  font-weight: 500;
  color: var(--slate);
  padding: 0.75rem 1.25rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-orange), #ff8555);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav__link:hover {
  color: var(--electric-orange);
  background: rgba(255, 107, 53, 0.05);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--electric-orange);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--slate);
    flex-direction: column;
    padding: 80px var(--space-md);
    align-items: flex-start;
    transition: right var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }
  
  .nav__menu.active {
    right: 0;
  }
  
  .nav__link {
    color: var(--white-smoke);
    font-size: var(--fs-h4);
    width: 100%;
  }
  
  .nav__link::after {
    left: 0;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 1.75rem;
  font-family: 'Manrope', sans-serif;
  font-size: var(--fs-body);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

@media (min-width: 768px) {
  .btn {
    padding: 1rem 2.25rem;
    min-height: 52px;
    font-size: 1.0625rem;
  }
}

@media (min-width: 1024px) {
  .btn {
    padding: 1.125rem 2.5rem;
    min-height: 56px;
    font-size: 1.125rem;
    border-radius: 10px;
  }
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--electric-orange) 0%, #ff8555 100%);
  color: var(--pure-white);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
  transform: translateY(-3px);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--slate);
  border: 2px solid var(--slate);
  box-shadow: 0 2px 8px rgba(32, 35, 42, 0.1);
}

.btn--secondary:hover {
  background: var(--slate);
  color: var(--pure-white);
  box-shadow: 0 4px 20px rgba(32, 35, 42, 0.2);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--electric-orange);
  border: 2px solid var(--electric-orange);
}

.btn--ghost:hover {
  background: var(--electric-orange);
  color: var(--pure-white);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  transform: translateY(-2px);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: clamp(550px, 85vh, 900px);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1d23 0%, var(--slate) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(32, 35, 42, 0.97), rgba(32, 35, 42, 0.88));
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--pure-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title span {
  background: linear-gradient(135deg, var(--electric-orange), #ff8555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero__subtitle {
  font-size: var(--fs-h4);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  max-width: 60ch;
  line-height: 1.7;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  z-index: 1;
  filter: grayscale(20%);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.15), transparent 70%),
              linear-gradient(135deg, rgba(32, 35, 42, 0.4), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-orange), transparent);
  opacity: 0.5;
  z-index: 3;
}

@media (min-width: 768px) {
  .hero {
    min-height: clamp(600px, 90vh, 1000px);
  }
  
  .hero__content {
    padding: var(--space-2xl);
  }
  
  .hero__title {
    margin-bottom: var(--space-xl);
  }
  
  .hero__subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    max-width: 65ch;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.3fr 1fr;
    min-height: clamp(650px, 95vh, 1100px);
  }
  
  .hero__content {
    background: linear-gradient(90deg, rgba(32, 35, 42, 0.98), rgba(32, 35, 42, 0.75));
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 6vw, 5rem);
    justify-content: center;
  }
  
  .hero__title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    max-width: 20ch;
  }
  
  .hero__subtitle {
    font-size: clamp(1.25rem, 1.5vw, 1.625rem);
    max-width: 55ch;
    margin-bottom: 3rem;
  }
  
  .hero__cta {
    gap: 1.5rem;
  }
  
  .hero__image {
    position: relative;
    opacity: 1;
    filter: grayscale(0%);
  }
}

@media (min-width: 1280px) {
  .hero__content {
    padding: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 7rem);
  }
}

/* === CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .card-grid {
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.card {
  background: var(--pure-white);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: 0 4px 20px rgba(32, 35, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 35, 42, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .card {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .card {
    padding: 2.5rem;
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--electric-orange), #ff8555);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 107, 53, 0.03), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(32, 35, 42, 0.15);
  border-color: rgba(255, 107, 53, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  color: var(--electric-orange);
  filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .card__icon {
    width: 72px;
    height: 72px;
  }
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(5deg);
}

.card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
  font-weight: 700;
  background: linear-gradient(135deg, var(--slate), #2d3139);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card__text {
  color: var(--steel-grey);
  line-height: 1.8;
  font-size: var(--fs-body);
  flex-grow: 1;
}

@media (min-width: 1024px) {
  .card__text {
    font-size: 1.0625rem;
    line-height: 1.9;
  }
}

/* === IMAGES === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

.img-lazy {
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.img-lazy.loaded {
  opacity: 1;
}

/* === FORMS === */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
}

@media (min-width: 768px) {
  .form {
    gap: var(--space-lg);
    max-width: 650px;
  }
}

@media (min-width: 1024px) {
  .form {
    max-width: 700px;
  }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form__label {
  font-weight: 600;
  color: var(--slate);
  font-size: var(--fs-small);
  letter-spacing: 0.3px;
}

.form__input,
.form__textarea,
.form__select {
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  border: 2px solid rgba(117, 125, 138, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 48px;
  background: var(--pure-white);
}

@media (min-width: 1024px) {
  .form__input,
  .form__textarea,
  .form__select {
    padding: 1rem 1.25rem;
    min-height: 52px;
    font-size: 1.0625rem;
  }
}

.form__input:hover,
.form__textarea:hover,
.form__select:hover {
  border-color: rgba(117, 125, 138, 0.5);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--electric-orange);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1), 0 2px 8px rgba(255, 107, 53, 0.15);
  transform: translateY(-1px);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, var(--slate) 0%, #1a1d23 100%);
  color: var(--white-smoke);
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-orange), transparent);
  opacity: 0.3;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .footer__content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__section h4 {
  color: var(--pure-white);
  margin-bottom: var(--space-md);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer__section p,
.footer__section a {
  color: var(--white-smoke);
  font-size: var(--fs-small);
  line-height: 1.8;
  opacity: 0.9;
}

.footer__section a:hover {
  color: var(--electric-orange);
  opacity: 1;
  transform: translateX(3px);
  transition: all 0.2s ease;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__bottom p {
  margin-bottom: var(--space-sm);
  max-width: 100%;
  margin-inline: auto;
}

.footer__legal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer__legal a:hover {
  color: var(--electric-orange);
  background: rgba(255, 107, 53, 0.1);
}

/* === LEGAL PAGES === */
.legal {
  background: var(--grey-bg);
  padding-block: var(--space-2xl);
}

.legal__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.legal__content {
  background: var(--pure-white);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  max-width: var(--narrow-width);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .legal__content {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .legal {
    padding-block: clamp(5rem, 10vw, 8rem);
  }
  
  .legal__content {
    padding: clamp(2.5rem, 5vw, 4rem);
    max-width: 900px;
  }
}

.legal__toc {
  background: var(--grey-bg);
  padding: var(--space-md);
  border-radius: 8px;
  margin-bottom: var(--space-lg);
}

.legal__toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.legal__toc a {
  color: var(--slate);
  font-weight: 500;
}

.legal__section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--grey-bg);
}

.legal__section:last-child {
  border-bottom: none;
}

.legal__section h2 {
  margin-top: var(--space-md);
  scroll-margin-top: 100px;
}

.legal__section h3 {
  margin-top: var(--space-md);
  color: var(--steel-grey);
  font-size: var(--fs-h4);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-orange { color: var(--electric-orange); }

.bg-white { 
  background: var(--pure-white); 
}

.bg-grey { 
  background: linear-gradient(180deg, var(--grey-bg) 0%, #f1f2f4 100%);
  position: relative;
}

.bg-grey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(32, 35, 42, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

.bg-slate { 
  background: linear-gradient(135deg, var(--slate) 0%, #1a1d23 100%); 
  color: var(--white-smoke);
  position: relative;
}

.bg-slate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.bg-slate > * {
  position: relative;
  z-index: 1;
}

.bg-grey > * {
  position: relative;
  z-index: 1;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--orange-glow), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.glow:hover::after {
  opacity: 1;
}

/* === DESKTOP ENHANCEMENTS === */
@media (min-width: 1024px) {
  h1 {
    letter-spacing: -0.02em;
  }
  
  h2 {
    letter-spacing: -0.015em;
  }
  
  .text-center h2,
  .text-center h3 {
    max-width: 30ch;
    margin-inline: auto;
  }
  
  .text-center p {
    max-width: 65ch;
    margin-inline: auto;
  }
  
  /* Better content centering on desktop */
  section > .container > div[style*="text-align: center"] {
    margin-inline: auto;
  }
  
  /* Improve section spacing hierarchy */
  .hero + section {
    padding-top: clamp(6rem, 12vw, 10rem);
  }
}

@media (min-width: 1280px) {
  body {
    font-size: 1.125rem;
  }
  
  /* Optimal reading width for large screens */
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  
  /* Extra breathing room on very large screens */
  .card-grid {
    gap: 3rem;
  }
}

/* === RESPONSIVE IMAGES === */
@media (max-width: 768px) {
  .hero__cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === PRINT STYLES === */
@media print {
  .header,
  .footer,
  .nav,
  .hero__cta {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

