/* ============================================
   TriathlonStore.com - Main Stylesheet
   Converted from React/Tailwind to vanilla CSS
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #dc2626;
  color: #fff;
}

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

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

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* --- Utility --- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar__icon {
  background: #dc2626;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  stroke: currentColor;
}

.navbar__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  font-style: italic;
  letter-spacing: -0.05em;
}

.navbar__title span {
  color: #dc2626;
}

.navbar__cta {
  display: none;
  background: #fff;
  color: #000;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
  cursor: pointer;
  font-size: 0.875rem;
}

.navbar__cta:hover {
  background: #e5e7eb;
}

@media (min-width: 768px) {
  .navbar__cta { display: inline-block; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 1s ease;
}

.hero__slide.active {
  opacity: 0.6;
  transform: scale(1);
}

.hero__slide.exiting {
  opacity: 0;
  transform: scale(1);
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.hero__inner {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
}

.hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__heading {
  font-size: 3.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.05em;
  font-style: italic;
  line-height: 1;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__heading-gradient {
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 42rem;
  margin: 0 auto 3rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

.hero__subtitle strong {
  font-weight: 700;
  color: #fff;
}

.hero__cta-wrap {
  opacity: 0;
  transform: translateY(20px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #dc2626;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.hero__cta:hover {
  background: #b91c1c;
  transform: scale(1.05);
}

.hero__cta svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s;
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Hero entrance animations */
.hero.loaded .hero__badge {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.hero.loaded .hero__heading {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.hero.loaded .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.9s, transform 0.6s ease 0.9s;
}

.hero.loaded .hero__cta-wrap {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 1.1s, transform 0.6s ease 1.1s;
}

@media (min-width: 768px) {
  .hero__heading { font-size: 6rem; }
  .hero__subtitle { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .hero__heading { font-size: 8rem; }
}

/* ============================================
   TICKER BAR
   ============================================ */
.ticker {
  background: #dc2626;
  padding: 1rem 0;
  overflow: hidden;
  display: flex;
}

.ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll 20s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker__item {
  color: #000;
  font-weight: 900;
  font-style: italic;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 6rem 0;
  background: #0a0a0a;
  color: #fff;
}

.features__header {
  text-align: center;
  margin-bottom: 5rem;
}

.features__title {
  font-size: 2.25rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}

.features__subtitle {
  font-size: 1.25rem;
  color: #9ca3af;
  max-width: 48rem;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: #18181b;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color 0.3s, opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  background: #27272a;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 0.3s;
}

.feature-card:hover .feature-card__icon {
  background: #dc2626;
}

.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #fff;
  fill: none;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card__desc {
  color: #9ca3af;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   IMAGE SHOWCASE
   ============================================ */
.showcase {
  height: 600px;
  position: relative;
  overflow: hidden;
}

.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.showcase:hover .showcase__img {
  transform: scale(1.05);
}

.showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.8), transparent);
  display: flex;
  align-items: center;
}

.showcase__content {
  padding: 2rem;
  max-width: 56rem;
}

.showcase__label-block {
  display: inline-block;
  border-left: 4px solid #dc2626;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.showcase__label {
  color: #dc2626;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.showcase__heading {
  font-size: 2.25rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #000;
}

.showcase__heading-gradient {
  background: linear-gradient(to right, #dc2626, #991b1b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase__text {
  font-size: 1.25rem;
  color: #374151;
  max-width: 42rem;
  font-weight: 500;
  border-left: 1px solid #d1d5db;
  padding-left: 1.5rem;
}

@media (min-width: 768px) {
  .showcase__content { padding: 4rem; }
  .showcase__heading { font-size: 3.75rem; }
}

/* ============================================
   OFFER FORM SECTION
   ============================================ */
.offer {
  padding: 6rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.offer__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 16px 16px;
}

.offer__inner {
  position: relative;
  z-index: 10;
}

.offer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left column */
.offer__label {
  color: #dc2626;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: block;
}

.offer__heading {
  font-size: 3rem;
  font-weight: 900;
  color: #000;
  font-style: italic;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.offer__desc {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.625;
}

.offer__desc strong {
  font-weight: 700;
  color: #000;
}

.offer__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.offer__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.offer__feature-icon {
  padding: 0.75rem;
  background: #f3f4f6;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer__feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #374151;
  fill: none;
}

.offer__feature h4 {
  font-weight: 700;
  font-size: 1.125rem;
  color: #000;
  margin-bottom: 0.25rem;
}

.offer__feature p {
  color: #4b5563;
}

/* Right column - form card */
.offer__form-card {
  background: #000;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.offer__form-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.offer__form-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.offer__form-subtitle {
  color: #9ca3af;
  margin-bottom: 2rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.form__row .form__group {
  margin-bottom: 0;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form__group:last-child {
  margin-bottom: 0;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
}

.form__input,
.form__textarea {
  width: 100%;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #71717a;
}

.form__input:focus,
.form__textarea:focus {
  border-color: #dc2626;
  outline: none;
}

.form__amount-wrap {
  position: relative;
}

.form__amount-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.form__amount-input {
  padding-left: 2rem;
}

.form__textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.form__error {
  color: #ef4444;
  font-size: 0.75rem;
  display: none;
}

.form__error.show {
  display: block;
}

.form__submit {
  width: 100%;
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-top: 1.5rem;
}

.form__submit:hover {
  background: #b91c1c;
}

.form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form__submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .offer__form-card { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .offer__grid { grid-template-columns: 1fr 1fr; }
  .offer__heading { font-size: 3.75rem; }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #18181b;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--success {
  border-left: 4px solid #22c55e;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: #dc2626;
  fill: none;
}

.footer__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.footer__title span {
  color: #dc2626;
}

.footer__copy {
  color: #6b7280;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; }
}
