/* ══════════════════════════════
   BASE
   ══════════════════════════════ */

/* ── Reset extras ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { overflow: hidden; }

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

a { text-decoration: none; color: inherit; }

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

/* ══════════════════════════════
   KEYFRAMES
   ══════════════════════════════ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0)   scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

@keyframes shimmer-border {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes line-grow {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(232,160,32,.35); }
  50%       { box-shadow: 0 6px 28px rgba(232,160,32,.6); }
}

@keyframes counter-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   SCROLL-REVEAL  (JS adds classes)
   ══════════════════════════════ */

/* Default hidden state */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
}
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"]  { transform: none; }

/* Stagger delays */
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }

/* Visible state */
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════
   SECTIONS
   ══════════════════════════════ */

.section { padding: 5.5rem 0; }

.section-heading {
  max-width: 700px;
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: .6rem 0 1rem;
  color: var(--color-primary);
  position: relative;
}

/* Accent underline under section titles */
.section-heading h2::after {
  content: '';
  display: block;
  margin-top: .7rem;
  height: 3px;
  width: 48px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: width .4s cubic-bezier(.22,1,.36,1);
}

.section-heading.is-visible h2::after {
  animation: line-grow .6s .3s cubic-bezier(.22,1,.36,1) both;
}

.section-heading p {
  color: var(--color-text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* ══════════════════════════════
   PAGE HERO  (about / contact)
   ══════════════════════════════ */

.page-hero {
  padding: 6rem 0 3.5rem;
  background: linear-gradient(150deg, #eef2ff 0%, #fff 65%);
  position: relative;
  overflow: hidden;
}

/* Floating orb */
.page-hero::before {
  content: '';
  position: absolute;
  right: -6rem;
  top: -5rem;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,.13) 0%, transparent 68%);
  animation: float-orb 7s ease-in-out infinite;
  pointer-events: none;
}

/* Second subtle orb */
.page-hero::after {
  content: '';
  position: absolute;
  left: -4rem;
  bottom: -3rem;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,31,92,.06) 0%, transparent 70%);
  animation: float-orb 9s 1.5s ease-in-out infinite;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .eyebrow {
  animation: slide-right .55s cubic-bezier(.22,1,.36,1) both;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 820px;
  margin-bottom: 1rem;
  color: var(--color-primary);
  animation: fade-up .65s .1s cubic-bezier(.22,1,.36,1) both;
}

.page-hero p {
  max-width: 680px;
  color: var(--color-text-soft);
  font-size: 1.1rem;
  animation: fade-up .65s .2s cubic-bezier(.22,1,.36,1) both;
}

/* ══════════════════════════════
   EYEBROW BADGE
   ══════════════════════════════ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ══════════════════════════════
   SPLIT GRID
   ══════════════════════════════ */

.split-grid,
.contact-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ══════════════════════════════
   CHECK LIST
   ══════════════════════════════ */

.check-list {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border-soft);
  transition: color var(--transition);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 1.5px solid var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23c98a10' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ══════════════════════════════
   IMAGE CARD
   ══════════════════════════════ */

.image-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.image-card:hover img { transform: scale(1.04); }

/* ══════════════════════════════
   ALERTS
   ══════════════════════════════ */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border-left: 3px solid currentColor;
}
.alert ul { padding-left: 1.2rem; margin-top: .5rem; }
.alert--success { background: var(--color-success-bg); color: var(--color-success); }
.alert--error   { background: var(--color-danger-bg);  color: var(--color-danger);  }

/* ══════════════════════════════
   UTILITIES
   ══════════════════════════════ */

.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;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

@media (max-width: 900px) {
  .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .section-heading { margin-bottom: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
