/* ============================================================
   TEAMROOM — Premium Tactical Training Website
   CSS Variables, Reset, and Component Styles
============================================================ */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  /* COLORS — Black, Red, Orange (OSP) */
  --color-black:        #0a0a0a;
  --color-black-light:  #1a1a1a;
  --color-gray-dark:    #2a2a2a;
  --color-gray:         #666;
  --color-gray-light:   #999;
  --color-white:        #ffffff;
  --color-red:          #c0182c;
  --color-red-dark:     #8b0f1f;
  --color-orange:       #e8611a;
  --color-orange-light: #ff8433;

  /* TYPOGRAPHY */
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  
  /* SPACING */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 8rem;

  /* SIZES */
  --header-height: 80px;
  --radius: 4px;

  /* ANIMATIONS */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* Reserve scrollbar space always so content never shifts when it appears */
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-light);
  background: var(--color-black);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

/* ============================================================
   INTRO OVERLAY (GSAP-driven — do NOT add CSS transitions here)
============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#intro.done {
  pointer-events: none;
  visibility: hidden;
}

/* Separate background layer so logo stays visible when bg fades */
.intro__bg {
  position: absolute;
  inset: 0;
  background: var(--color-black);
  z-index: 0;
}

/* Logo wrapper — GSAP owns all transforms/opacity, no CSS transition */
.intro__logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* GSAP fades this in on load */
}

.intro__logo {
  width: clamp(300px, 38vw, 460px);
  height: auto;
  display: block;
}

.intro__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-light);
  opacity: 0; /* GSAP controls this too */
}

@keyframes pulse-opacity {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

/* ============================================================
   HEADER (Sticky, appears after intro with shrink animation)
============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid rgba(232, 97, 26, 0);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.4s var(--ease-out);
  pointer-events: none;
}

#site-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(232, 97, 26, 0.15);
  padding: 0.75rem 2rem;
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__logo img {
  height: 50px;
  width: auto;
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  position: relative;
  padding: var(--space-2xl) var(--space-md);
}

.section__header {
  max-width: 900px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__intro {
  font-size: 1.125rem;
  color: var(--color-gray-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   REVEAL ANIMATION (on scroll)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO SECTION
============================================================ */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

/* Hero background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.hero__bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    rgba(192, 24, 44, 0.22) 0%,
    rgba(139, 15, 31, 0.12) 40%,
    transparent 70%
  );
  z-index: 0;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__particles::before,
.hero__particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-red);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-particle 8s ease-in-out infinite;
}

.hero__particles::before {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.hero__particles::after {
  top: 30%;
  right: 20%;
  animation-delay: 3s;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 0.8; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 5rem; /* keep clear of absolute mouse indicator */
}

.hero__logo {
  width: clamp(180px, 24vw, 280px);
  height: auto;
  margin-bottom: var(--space-xs);
  opacity: 0; /* GSAP controls this */
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0; /* GSAP controls this */
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-gray-light);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.btn--hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  margin-top: var(--space-sm);
}

.btn--hero svg {
  transition: transform 0.3s var(--ease-out);
}

.btn--hero:hover svg {
  transform: translateY(3px);
}

/* Mouse scroll indicator */
.hero__mouse {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-red);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  animation: mouse-bounce 2s ease-in-out infinite;
}

.mouse__wheel {
  width: 4px;
  height: 8px;
  background: var(--color-red);
  border-radius: 2px;
  animation: wheel-scroll 2s ease-in-out infinite;
}

@keyframes mouse-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@keyframes wheel-scroll {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(6px); }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(192, 24, 44, 0.3);
}

.btn--primary:hover {
  background: var(--color-orange);
  box-shadow: 0 6px 30px rgba(232, 97, 26, 0.4);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-gray);
}

.btn--ghost:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.section--about {
  background: var(--color-black-light);
  padding: var(--space-2xl) var(--space-md);
  width: 100%;
}

.about__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.about__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-orange);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__text-col {
  padding-right: var(--space-md);
}

.about__body p {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-gray-light);
}

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

.about__highlight {
  color: var(--color-red) !important;
  font-weight: 500;
}

.about__image-col {
  display: flex;
  justify-content: center;
}

.about__image-wrap {
  position: relative;
  max-width: 520px;
  padding: 1.5rem;
}

.about__image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.05);
  border-radius: 2px;
}

/* Corner bracket decorations */
.about__corner {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: none;
}

.about__corner::before,
.about__corner::after {
  content: '';
  position: absolute;
  background: var(--color-red);
}

.about__corner--tl {
  top: 0;
  left: 0;
}
.about__corner--tl::before {
  top: 0;
  left: 0;
  width: 3px;
  height: 50px;
}
.about__corner--tl::after {
  top: 0;
  left: 0;
  width: 50px;
  height: 3px;
}

.about__corner--tr {
  top: 0;
  right: 0;
}
.about__corner--tr::before {
  top: 0;
  right: 0;
  width: 3px;
  height: 50px;
}
.about__corner--tr::after {
  top: 0;
  right: 0;
  width: 50px;
  height: 3px;
}

.about__corner--bl {
  bottom: 0;
  left: 0;
}
.about__corner--bl::before {
  bottom: 0;
  left: 0;
  width: 3px;
  height: 50px;
}
.about__corner--bl::after {
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
}

.about__corner--br {
  bottom: 0;
  right: 0;
}
.about__corner--br::before {
  bottom: 0;
  right: 0;
  width: 3px;
  height: 50px;
}
.about__corner--br::after {
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
}

@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .about__text-col {
    padding-right: 0;
    order: 2;
  }
  
  .about__image-col {
    order: 1;
  }
}

/* ============================================================
   COURSES SECTION
============================================================ */
.section--courses {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.courses__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.courses__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.courses__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.course-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(25% - var(--space-md) * 3 / 4);
  min-width: 200px;
  max-width: 320px;
  transition-delay: var(--delay, 0ms);
}

.course-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: var(--space-sm);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  cursor: pointer;
}

.course-card__link:hover {
  border-color: var(--color-red);
  background: rgba(192, 24, 44, 0.08);
}

.course-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
}

.course-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  filter: brightness(0.9);
}

.course-card__link:hover .course-card__img-wrap img {
  transform: scale(1.04);
}

.course-card__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.courses__footer {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.courses__view-more {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-red);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.courses__view-more:hover {
  background: var(--color-red);
  color: var(--color-white);
  transform: translateY(-2px);
}


@media (max-width: 1024px) {
  .courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .courses__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   GALLERY SECTION
============================================================ */
.section--gallery {
  background: var(--color-black-light);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  width: 100%;
}

.gallery__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.gallery__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-orange);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* ---- Album covers grid ---- */
.gallery__albums-wrap {
  position: relative;
}

.gallery__albums {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.gallery__album-cover {
  width: 260px;
  flex-shrink: 0;
}

.gallery__album-cover {
  display: block;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.gallery__album-cover:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
}

.gallery__album-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery__album-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  filter: brightness(0.75);
}

.gallery__album-cover:hover .gallery__album-img-wrap img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.gallery__album-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.gallery__album-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.gallery__album-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ---- Album grid navigation arrows (shown when >4 albums) ---- */
.gallery__albums-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery__nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.gallery__nav-arrow:hover {
  border-color: var(--color-orange);
  background: rgba(255,165,0,0.08);
  transform: scale(1.08);
}

.gallery__nav-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  transform: none;
}

/* ---- Lightbox overlay ---- */
.gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery__lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.gallery__lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem 5rem;
  box-sizing: border-box;
}

.gallery__lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.7);
  user-select: none;
}

.gallery__lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
  z-index: 1;
}

.gallery__lightbox-close:hover {
  background: var(--color-red);
  border-color: var(--color-red);
}

.gallery__lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 2px;
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  z-index: 1;
}

.gallery__lightbox-arrow:hover {
  background: rgba(255,165,0,0.15);
  border-color: var(--color-orange);
  transform: translateY(-50%) scale(1.08);
}

.gallery__lightbox-arrow--prev { left: 1.25rem; }
.gallery__lightbox-arrow--next { right: 1.25rem; }

.gallery__lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.gallery__lightbox-title {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .gallery__albums {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__lightbox-stage {
    padding: 4rem 3.5rem;
  }
  .gallery__lightbox-arrow {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   FEEDBACK SECTION
============================================================ */
.section--feedback {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.feedback__header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.feedback__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-red);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.feedback__carousel {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  overflow: hidden;
}

.feedback__track {
  display: flex;
  transition: transform 0.55s var(--ease-out);
}

.testimonial-card {
  flex: 0 0 100%;
  background: rgba(20, 20, 20, 0.9);
  /* gradient top border matching the reference — done via outline trick */
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 12px;
  padding: 1.5rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-sizing: border-box;
  position: relative;
}

/* Gradient top border — pseudo-element sits behind the card */
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding-top: 3px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-orange) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.testimonial-card__quote-icon {
  color: var(--color-red);
  line-height: 1;
  display: flex;
  justify-content: flex-start;
}

.testimonial-card__quote-icon svg {
  width: 30px;
  height: 30px;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-white);
  font-style: italic;
  text-align: center;
}

.testimonial-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

.testimonial-card__avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--color-red);
  flex-shrink: 0;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-red);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--color-gray-light);
  letter-spacing: 0.03em;
}

/* Dots inside the card */
.feedback__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.feedback__dots--inner {
  /* overrides any outer positioning */
  margin: 0;
}

.feedback__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.feedback__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.feedback__dot.active {
  background: var(--color-red);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: var(--space-md);
  }

  .testimonial-card__quote {
    font-size: 1rem;
  }
}

/* ============================================================
   CONTACT / CTA SECTION — Premium sleek design
============================================================ */
.section--contact {
  background: linear-gradient(180deg, var(--color-black-light) 0%, rgba(15,15,15,1) 100%);
  padding: var(--space-2xl) var(--space-md);
  width: 100%;
}

.contact__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact__header {
  margin-bottom: var(--space-lg);
}

.contact__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--color-orange);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.contact__divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-red), var(--color-orange));
  margin: 0 auto var(--space-sm);
  border-radius: 2px;
}

.contact__subtitle {
  font-size: 1rem;
  color: var(--color-gray);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Sleek horizontal link row */
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.contact-link:hover {
  background: rgba(192, 24, 44, 0.12);
  border-color: var(--color-red);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(192, 24, 44, 0.2);
}

.contact-link:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.contact-link__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(192, 24, 44, 0.5);
  border-radius: 50%;
  color: var(--color-red);
  flex-shrink: 0;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.contact-link__icon svg {
  width: 24px;
  height: 24px;
}

.contact-link:hover .contact-link__icon {
  border-color: var(--color-red);
  background: rgba(192, 24, 44, 0.15);
  color: var(--color-orange);
}

.contact-link__label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-white);
  transition: color 0.25s;
}

.contact-link:hover .contact-link__label {
  color: var(--color-red);
}

/* Toast */
.contact__toast {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  padding: 0.5rem 1rem;
  background: rgba(192, 24, 44, 0.15);
  border: 1px solid rgba(192, 24, 44, 0.35);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-red);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  pointer-events: none;
}

.contact__toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #0f0f0f;
  border-top: 1px solid #333333;
  padding: 40px 32px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Left side: Logo & Copyright */
.site-footer__left {
  flex: 0 1 auto;
}

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

.site-footer__logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-footer__copy {
  font-size: 0.875rem;
  color: #a0a0a0;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

/* Right side: Social Icons */
.site-footer__right {
  flex: 0 1 auto;
}

.site-footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0;
  font-size: 0;
  text-decoration: none;
}

.site-footer__social-link:hover {
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.site-footer__social-link svg {
  width: 32px;
  height: 32px;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .site-footer__socials {
    justify-content: center;
  }

  .site-footer__social-link {
    width: 44px;
    height: 44px;
  }

  .site-footer__social-link svg {
    width: 22px;
    height: 22px;
  }
}
