/* ============================================================
   Airmarine — Main CSS
   Variables · Reset · Typography · Utilities · Layout
   ============================================================ */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand Colors */
  --air-navy:        #1a2d3a;
  --air-navy-dark:   #14232e;
  --air-navy-mid:    #243646;
  --air-teal:        #0f8080;
  --air-teal-light:  #1aa7a4;
  --air-teal-pale:   #e6f5f5;
  --air-orange:      #ed7317;
  --air-orange-dark: #ce6312;

  /* Neutrals */
  --air-white:       #ffffff;
  --air-gray:        #eef3f2;
  --air-gray-light:  #f7f9f8;
  --air-gray-mid:    #dde6e4;

  /* Text */
  --air-text:        #17242a;
  --air-muted:       #69777c;
  --air-muted-light: #8fa0a8;

  /* Borders */
  --air-border:      rgba(0, 141, 139, 0.28);
  --air-border-navy: rgba(255, 255, 255, 0.12);

  /* Layout */
  --container:       1280px;
  --container-pad:   clamp(20px, 4vw, 48px);
  --section-py:      clamp(64px, 8vw, 120px);
  --section-py-sm:   clamp(48px, 6vw, 80px);

  /* Typography */
  --font-base: 'area-normal', system-ui, -apple-system, sans-serif;
  --font-heading: 'area-extended', 'area-normal', system-ui, -apple-system, sans-serif;

  /* Transitions */
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(20, 35, 46, 0.08);
  --shadow-hover: 0 8px 40px rgba(20, 35, 46, 0.14);

  /* Border radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--air-text);
  background: var(--air-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ─── Layout Utilities ───────────────────────────────────── */
.air-container {
  width: min(100% - var(--container-pad) * 2, var(--container));
  margin-inline: auto;
}

.air-section {
  padding-block: var(--section-py);
}

.air-section--sm {
  padding-block: var(--section-py-sm);
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.15;
  color: var(--air-text);
}

.air-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.air-h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.air-h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.air-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--air-teal);
  display: block;
  margin-bottom: 12px;
}

.air-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--air-muted);
}

/* ─── Buttons ───────────────────────────────────────────── */
.air-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-base);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.air-btn--primary {
  background: var(--air-orange);
  color: var(--air-white);
  border: 2px solid var(--air-orange);
}

.air-btn--primary:hover {
  background: var(--air-orange-dark);
  border-color: var(--air-orange-dark);
  transform: translateY(-1px);
}

.air-btn--outline {
  background: transparent;
  color: var(--air-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.air-btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
}

.air-btn--outline-teal {
  background: transparent;
  color: var(--air-teal);
  border: 2px solid var(--air-border);
}

.air-btn--outline-teal:hover {
  background: var(--air-teal);
  color: var(--air-white);
  border-color: var(--air-teal);
}

.air-btn--ghost {
  background: transparent;
  color: var(--air-orange);
  border: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.air-btn--ghost:hover {
  color: var(--air-orange-dark);
}

/* ─── Section Heading Component ─────────────────────────── */
.air-section-heading {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.air-section-heading__title {
  color: inherit;
}

.air-section-heading__subtitle {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--air-muted);
  font-weight: 400;
}

/* ─── Animations ────────────────────────────────────────── */
/* Elements start visible; JS adds .js-ready to body first, then animates */
body.js-ready .air-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

body.js-ready .air-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
body.js-ready .air-fade-in:nth-child(2) { transition-delay: 0.1s; }
body.js-ready .air-fade-in:nth-child(3) { transition-delay: 0.2s; }
body.js-ready .air-fade-in:nth-child(4) { transition-delay: 0.3s; }
body.js-ready .air-fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ─── Focus Styles (Accessibility) ─────────────────────── */
:focus-visible {
  outline: 2px solid var(--air-teal);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── 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;
}

/* ─── Decorative teal line ───────────────────────────────── */
.air-teal-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--air-teal);
  margin-bottom: 20px;
}

/* ─── Divider ─────────────────────────────────────────────── */
.air-divider {
  border: none;
  border-top: 1px solid var(--air-border);
  margin-block: 24px;
}

.air-divider--navy {
  border-color: var(--air-border-navy);
}

/* ─── WhatsApp Floating Button ───────────────────────────── */
.air-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  color: #fff;
}

.air-whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.air-whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
