/* components.css — Reusable UI components */

/* ========================================
   Section Component
   ======================================== */
.section {
  padding: var(--section-padding-y) 0;
}

.section--dark {
  background-color: var(--color-bg-main);
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.section--light {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Headings in light sections — teal brand color */
.section--light h2 {
  color: var(--color-primary);
}

.section--light h3 {
  color: var(--color-primary);
}



/* Ensure content stays above grid texture */
.section--dark>.container {
  position: relative;
  z-index: 1;
}

/* ========================================
   Global Icon Teal Colorization
   ======================================== */

/* All SVG icons loaded via <img> inside __icon containers → teal */
[class*="__icon"] img {
  filter: invert(27%) sepia(95%) saturate(1000%) hue-rotate(155deg) brightness(95%) contrast(101%);
}

/* ========================================
   Card Components
   ======================================== */

/* White card (light sections) */
.card {
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: var(--radius-card-lg);
  padding: 40px var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 94, 89, 0.08);
}

.card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Glass morphism card (dark sections) */
.card--glass {
  background: var(--color-bg-main);
  border: 1px solid rgba(0, 128, 128, 0.2);
  border-radius: var(--radius-card-lg);
  padding: var(--space-xl);
  color: var(--color-primary);
  box-shadow: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card--glass:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(0, 128, 128, 0.4);
  box-shadow: 0 0 40px rgba(0, 128, 128, 0.1);
}

.card--glass:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Button Components
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 52px;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-cta);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
}

/* Full width on mobile, auto on tablet+ */
.btn--full-mobile {
  width: 100%;
}

@media (min-width: 768px) {
  .btn--full-mobile {
    width: auto;
  }
}

/* Primary CTA — Solid teal, clean modern style */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* LINE CTA — Teal */
.btn--line {
  background-color: var(--color-line);
  color: var(--color-white);
}

.btn--line:hover {
  opacity: 0.88;
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Large button */
.btn--lg {
  padding: var(--space-md) var(--space-2xl);
  font-size: 1.125rem;
  min-height: 56px;
}

/* Outline variant */
.btn--outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Focus state for all buttons */
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Badge Component
   ======================================== */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-cta);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--cyan {
  background: rgba(17, 94, 89, 0.15);
  color: var(--color-primary);
}

.badge--teal {
  background: rgba(0, 128, 128, 0.15);
  color: var(--color-primary);
}

/* ========================================
   Hero Section (shared across all pages)
   ======================================== */
.hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  min-height: auto;
  padding-top: 120px;
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-top: var(--space-4xl);
  }
}

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



/* ========================================
   Hero Layout Components (shared across pages)
   ======================================== */

/* Two-column wrapper */
.hero__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* Label with line decoration */
.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero__label-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.hero__label-text {
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Heading */
.hero__heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  font-weight: 600;
}

.hero__heading-accent {
  font-style: normal;
  color: var(--color-accent);
  font-weight: var(--font-light);
}

/* Subheading */
.hero__subheading {
  font-family: var(--font-family);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: var(--space-2xl);
}

/* CTA buttons row */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.hero__scroll-text {
  font-family: var(--font-family);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* Visual column — hidden on mobile, shown on desktop */
.hero__visual {
  display: none;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hero__visual img {
  width: 520px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .hero__visual img {
    width: 580px;
  }
}

/* ========================================
   Mockup v2 Typography Components
   ======================================== */
.eyebrow {
  font-weight: var(--font-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow.white,
.eyebrow--white {
  color: rgba(255, 255, 255, 0.55);
}

.headline {
  font-weight: var(--font-semibold);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.headline.white,
.headline--white {
  color: #fff;
}

.subhead {
  font-weight: var(--font-light);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--color-accent);
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.subhead.white,
.subhead--white {
  color: rgba(255, 255, 255, 0.62);
}

/* ========================================
   Mockup v2 Section Backgrounds
   ======================================== */
.section-alt,
.section--alt {
  background: var(--color-bg-alt);
}

.section-primary,
.section--primary {
  background: var(--color-primary);
}

/* ========================================
   Mockup v2 Pill Buttons
   ======================================== */
.btn-primary {
  font-family: var(--font-family);
  font-weight: var(--font-medium);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  padding: 14px 36px;
  border-radius: var(--radius-cta);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  font-family: var(--font-family);
  font-weight: var(--font-medium);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: transparent;
  padding: 13px 36px;
  border-radius: var(--radius-cta);
  border: 1px solid var(--color-primary);
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.btn-line {
  font-family: var(--font-family);
  font-weight: var(--font-medium);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-line);
  padding: 14px 32px;
  border-radius: var(--radius-cta);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-line:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-line svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {

  .card,
  .card--glass,
  .btn {
    transition: none;
  }

  .card:hover,
  .card--glass:hover,
  .btn--primary:hover {
    transform: none;
  }

  .btn--primary {
    box-shadow: none;
  }

  .btn--primary:hover {
    box-shadow: none;
  }
}