/*
Theme Name:  AeroIT Child
Description: AeroIT Child Theme — Divi 5
Author:      AeroIT
Template:    Divi
Version:     1.0.0
*/

/* ============================================================
   Design tokens — sync with Divi Global Design System
   ============================================================ */
:root {
  /* Brand palette */
  --color-primary:      #47704C;
  --color-primary-dark: #355239;
  --color-primary-light:#5E8F64;
  --color-ink:          #232122;
  --color-ink-muted:    #5C5959;
  --color-white:        #FFFFFF;
  --color-surface:      #F4F7F4;
  --color-border:       #D8E1D9;

  /* Typography — system stack; Inter added via self-host later */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono",
               Menlo, monospace;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgb(35 33 34 / .10),
               0 1px 2px -1px rgb(35 33 34 / .10);
  --shadow-md: 0 4px 6px -1px rgb(35 33 34 / .10),
               0 2px 4px -2px rgb(35 33 34 / .10);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ============================================================
   Accessible focus states — override Divi defaults
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Remove default focus ring only when focus-visible is supported */
:focus:not(:focus-visible) {
  outline: none;
}

/* Keyboard nav skip link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================================
   Base resets — minimal, Divi-safe
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Smooth scrolling — only when no prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ============================================================
   Staging indicator — remove before go-live
   ============================================================ */
