/* ==========================================================================
   ARKS International — Base / Reset / Typography
   ========================================================================== */

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

html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--color-white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-soft); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.h-display { font-size: clamp(2.75rem, 5vw, 4.75rem); font-weight: 600; letter-spacing: -0.02em; }
.h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
.h4 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

p { margin: 0 0 var(--space-sm); }
.lead { font-size: 1.15rem; color: var(--text-muted); font-weight: 400; }

.container-xl { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

section { position: relative; }
.section-pad { padding-block: clamp(4rem, 8vw, 7rem); }
.section-pad-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---- Eyebrow / kicker ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-emerald);
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.text-center { margin-inline: auto; text-align: center; }

/* ---- Text utilities ---- */
.text-navy { color: var(--color-navy) !important; }
.text-teal { color: var(--color-teal) !important; }
.text-emerald { color: var(--color-emerald) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Backgrounds ---- */
.bg-light-gray { background: var(--color-light-gray); }
.bg-soft-blue { background: var(--color-soft-blue); }
.bg-navy { background: var(--color-navy); }
.bg-dark-navy { background: var(--color-dark-navy); }
.bg-gradient-primary { background: var(--gradient-primary); }

/* ---- Focus states (accessibility) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--color-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
  transition: top var(--dur-fast) var(--ease-soft);
}
.skip-link:focus { top: 1rem; }

/* ---- Selection ---- */
::selection { background: var(--color-teal); color: #fff; }

/* ---- Scrollbar (webkit) ---- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-light-gray); }
::-webkit-scrollbar-thumb { background: var(--color-navy); border-radius: var(--radius-pill); }

/* ---- Preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease-soft), visibility .6s var(--ease-soft);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__mark {
  width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--color-teal);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- CMS rich-text content (TinyMCE-authored: About Us, Contact intro,
   Page Manager content, News articles) ---- */
.theme-cms-content { color: var(--text-body); line-height: 1.8; }
.theme-cms-content h1, .theme-cms-content h2, .theme-cms-content h3,
.theme-cms-content h4, .theme-cms-content h5, .theme-cms-content h6 { margin-top: 1.75rem; margin-bottom: 0.9rem; color: var(--text-heading); }
.theme-cms-content h1:first-child, .theme-cms-content h2:first-child, .theme-cms-content h3:first-child { margin-top: 0; }
.theme-cms-content p { margin-bottom: 1.25rem; }
.theme-cms-content ul, .theme-cms-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.theme-cms-content li { margin-bottom: 0.5rem; }
.theme-cms-content img { border-radius: var(--radius-md); margin-block: 1rem; }
.theme-cms-content a { color: var(--color-teal); font-weight: 600; text-decoration: underline; }
.theme-cms-content blockquote { border-left: 3px solid var(--color-teal); padding-left: 1.25rem; color: var(--text-muted); font-style: italic; margin: 1.5rem 0; }
.theme-cms-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.theme-cms-content table td, .theme-cms-content table th { border: 1px solid var(--color-light-gray); padding: 0.6rem 0.9rem; }
