/* ==========================================================================
   RIVAL Shoes - Components
   ========================================================================== */

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--accent:hover {
  background: var(--color-accent-hover);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--white:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1.25rem 3.5rem;
  font-size: 0.9rem;
}

/* ---- Cards ---- */

.card {
  background: var(--color-white);
  padding: var(--space-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--color-gray-400);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Form Elements ---- */

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-gray-500);
  transition: border-color var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
}

.form-input::placeholder {
  color: var(--color-gray-300);
  font-weight: var(--fw-light);
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--color-gray-300);
  font-size: 1rem;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-out);
  background: transparent;
}

.form-label.active,
.form-input:focus ~ .form-label {
  top: -0.5rem;
  font-size: 0.75rem;
  background: var(--color-white);
  padding: 0 0.25rem;
  color: var(--color-accent);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-gray-500);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a0a0a0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.form-select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* ---- Divider ---- */

.divider-line {
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 1s var(--ease-out);
  margin: 0 auto;
}

.divider-line.visible {
  width: 80px;
}

/* ---- Section Header ---- */

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header__title {
  margin-bottom: var(--space-sm);
}

.section-header__divider {
  width: 80px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-sm) auto;
}

.section-header__subtitle {
  font-weight: var(--fw-light);
  font-size: 1.15rem;
  color: var(--color-gray-400);
  max-width: 600px;
  margin: 0 auto;
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-header .divider-line {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* ---- Image Wrapper ---- */

.img-wrapper {
  overflow: hidden;
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

/* ---- Page Hero (shared across all inner pages) ---- */

.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.page-hero--tall {
  height: 60vh;
  min-height: 400px;
}

.page-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg-image,
.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__overlay,
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--space-md);
}

.page-hero__content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  font-weight: var(--fw-light);
}

@media (max-width: 768px) {
  .page-hero {
    height: 40vh;
    min-height: 280px;
  }
  .page-hero--tall {
    height: 50vh;
  }
}

/* ---- Page Hero (photo-free variant, replaces the old scattered shoe-photo
   heroes 2026-09-23 — see hero--landing in home.css for the pattern this
   borrows from) ---- */
.hero--page {
  height: 45vh;
  min-height: 320px;
  align-items: flex-start;
  padding-top: calc(var(--header-height) + var(--space-xl));
  background: var(--color-black);
}

.hero--page .hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 768px) {
  .hero--page {
    height: 35vh;
    min-height: 260px;
  }
}

/* ---- Shared hero text styling (2026-09-23 fix: this only existed in
   home.css before, so every inner-page hero title/subtitle was invisible
   black-on-black once hero--page went to a solid dark background) ---- */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-md);
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  color: var(--color-white);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  font-weight: var(--fw-light);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Split Grid (moved here 2026-09-23: shared by about.php and capability-detail.php, was only in capabilities.css before) ---- */

/* ---- Split Grid (text + image side by side) ---- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-grid__title {
  margin-bottom: var(--space-sm);
}

.split-grid__body {
  color: var(--color-gray-400);
  line-height: 1.8;
  font-weight: var(--fw-light);
}

.split-grid__body p {
  margin-bottom: var(--space-sm);
}

.split-grid__body p:last-child {
  margin-bottom: 0;
}

.split-grid--text-only {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.split-grid__media {
  overflow: hidden;
}

.split-grid__image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.split-grid__media:hover .split-grid__image {
  transform: scale(1.03);
}
