/* ========================================
   CANETCO — GLOBAL STYLESHEET
   Design tokens, reset, typography,
   keyframes, scroll animations, utilities
   ======================================== */


/* ── DESIGN TOKENS ── */
:root {
  /* Brand palette */
  --white: #ffffff;
  --off-white: #fafafa;
  --teal-lightest: #c0d3dc;
  --teal-light: #99aeb8;
  --teal-mid: #6f8995;
  --teal: #385f71;
  --teal-deep: #1c2f39;
  --hero-bg: #2a4a5a;
  --pink-light: #ebb5be;
  --crimson: #c33c54;
  --crimson-dark: #822838;
  --yellow: #ffec83;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 720px;
  --radius: 8px;
}


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

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--teal-deep);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}


/* ── TYPOGRAPHY ── */
/* Outfit 400/500/600 only — no 700 or above */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

.em { color: var(--crimson); }


/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes shimmerSweep {
  0%, 20% { transform: translateX(100%); }
  80%, 100% { transform: translateX(-100%); }
}

@keyframes breatheGlow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes logoScrollRotate {
  from { rotate: 0deg; }
  to { rotate: 12deg; }
}


/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1),
              transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--crimson);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(195, 60, 84, .25);
}
.btn-primary svg { transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--teal-lightest);
  padding: .9rem 1.75rem;
  border: 1px solid rgba(192, 211, 220, .25);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: all .3s;
}
.btn-outline:hover {
  border-color: rgba(192, 211, 220, .5);
  color: var(--white);
  background: rgba(255, 255, 255, .05);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal-deep);
  color: var(--white);
  padding: .9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s;
}
.btn-dark:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(28, 47, 57, .12);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--crimson);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  transition: all .3s;
  font-family: inherit;
}
.btn-submit:hover {
  background: var(--crimson-dark);
  transform: translateY(-1px);
}
.btn-submit.loading {
  opacity: .7;
  pointer-events: none;
}


/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid rgba(28, 47, 57, .12);
  border-radius: 5px;
  font-family: inherit;
  font-size: .88rem;
  color: var(--teal-deep);
  transition: border-color .2s;
  background: var(--off-white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--crimson);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form success / error messages */
.form-message {
  padding: 1rem 1.25rem;
  border-radius: 5px;
  font-size: .88rem;
  line-height: 1.5;
  margin-top: 1rem;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(56, 95, 113, .06);
  color: var(--teal);
  border: 1px solid rgba(56, 95, 113, .12);
}
.form-message.error {
  display: block;
  background: rgba(195, 60, 84, .06);
  color: var(--crimson-dark);
  border: 1px solid rgba(195, 60, 84, .12);
}


/* ── FOCUS STATES (ACCESSIBILITY) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}


/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero h1,
  .hero-sub,
  .hero-actions,
  .hero-stats,
  .hero-eyebrow,
  .hero-logo-wrap {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


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