/* ==========================================================================
   Second Sight Campaign Stylesheet
   ========================================================================== */

/* Fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ss-animate {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Page Hero Section */
.ss-hero {
  position: relative;
  min-height: clamp(350px, 48vw, 560px);
  background-color: var(--brand-strong);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.ss-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ss-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ss-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(13, 58, 23, 0.85) 0%,
    rgba(18, 65, 22, 0.5) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.ss-hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 0;
}

.ss-hero-inner {
  max-width: min(720px, 100%);
}

.ss-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-yellow);
  margin-bottom: 0.75rem;
}

.ss-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 1rem;
}

.ss-hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: #f1f5f2;
  line-height: 1.5;
  margin-bottom: 2rem;
  font-weight: 500;
}

.ss-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.ss-hero-actions .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.ss-hero-actions .btn-outline:hover {
  background: #ffffff;
  color: var(--brand-strong);
}

/* Background Story Section */
.ss-story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.ss-story-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.ss-story-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--surface-soft);
  border-left: 5px solid var(--brand-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.ss-quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 1.4;
  margin: 0 0 0.5rem;
  font-style: italic;
}

.ss-quote-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ss-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}

.ss-story-image:hover {
  transform: scale(1.02);
}

.ss-story-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* About & Stats Grid */
.ss-section-bg {
  background-color: var(--surface-soft);
}

.ss-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.ss-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ss-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(27, 94, 32, 0.2);
}

.ss-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(253, 216, 53, 0.15);
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.ss-stat-card h3 {
  font-size: 1.25rem;
  color: var(--brand-strong);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.ss-stat-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}

/* Glass Highlight Card */
.ss-highlight-box {
  margin-top: 3.5rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--brand-strong) 0%, #0d2814 100%);
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 216, 53, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ss-highlight-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.ss-highlight-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.ss-highlight-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e4efe6;
  margin: 0;
}

.ss-highlight-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 2.25rem;
}

.ss-highlight-num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--brand-yellow);
  line-height: 1;
  display: block;
}

.ss-highlight-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-top: 0.5rem;
  display: block;
}

/* Frame Restoration & Donating Section */
.ss-restoration-section {
  padding-bottom: 2rem;
}

.ss-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.ss-restoration-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.ss-restoration-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ss-list-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.ss-list-steps li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.ss-step-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-strong);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(18, 65, 22, 0.2);
}

.ss-step-content h4 {
  font-size: 1.1rem;
  color: var(--brand-strong);
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.ss-step-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Timeline component */
.ss-timeline-container {
  position: relative;
  margin-top: 4rem;
  padding: 1rem 0;
}

/* Vertical line for mobile, horizontal on desktop */
.ss-timeline-line {
  position: absolute;
  background: var(--border);
  z-index: 1;
}

@media (min-width: 993px) {
  .ss-timeline-line {
    top: 2.25rem;
    left: 5%;
    right: 5%;
    height: 3px;
  }
}

@media (max-width: 992px) {
  .ss-timeline-line {
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 3px;
  }
}

.ss-timeline {
  display: flex;
  position: relative;
  z-index: 2;
  gap: 2rem;
}

@media (min-width: 993px) {
  .ss-timeline {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 992px) {
  .ss-timeline {
    flex-direction: column;
    padding-left: 1rem;
  }
}

.ss-timeline-item {
  position: relative;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 992px) {
  .ss-timeline-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 0.5rem;
  }
}

.ss-timeline-node {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--brand);
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ss-timeline-item:hover .ss-timeline-node {
  background: var(--brand);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.ss-timeline-content {
  max-width: 200px;
}

@media (max-width: 992px) {
  .ss-timeline-content {
    max-width: none;
    padding-top: 0.5rem;
  }
}

.ss-timeline-step {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  display: block;
}

.ss-timeline-content h4 {
  font-size: 1.05rem;
  color: var(--brand-strong);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.ss-timeline-content p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Partners grid */
.ss-partners-wrap {
  text-align: center;
  max-width: min(600px, 100%);
  margin: 3rem auto 0;
}

.ss-partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.ss-partner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.ss-partner-logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.ss-partner-name {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.ss-partner-loc {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Goal block */
.ss-goal-panel {
  text-align: center;
  max-width: min(850px, 100%);
  margin: 0 auto;
}

.ss-goal-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.ss-goal-detail-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ss-goal-detail-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e4efe6;
}

.ss-goal-detail-item strong {
  color: var(--brand-yellow);
}

/* Lightweight social links */
.ss-social-lite {
  margin-top: 5rem;
}

.ss-social-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ss-social-card {
  min-height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(13, 58, 23, 0.12);
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ss-social-card:hover,
.ss-social-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 58, 23, 0.32);
}

.ss-social-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-soft);
}

.ss-social-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 30, 12, 0.58), rgba(5, 30, 12, 0.04) 58%);
}

.ss-social-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ss-social-card:hover .ss-social-thumb img,
.ss-social-card:focus-visible .ss-social-thumb img {
  transform: scale(1.04);
}

.ss-social-play {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ss-social-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 0.45rem solid transparent;
  border-bottom: 0.45rem solid transparent;
  border-left: 0.68rem solid var(--brand-strong);
}

.ss-social-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.3rem;
}

.ss-social-platform {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.ss-social-card strong {
  display: block;
  margin: 0.85rem 0 1.2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.2;
}

.ss-social-action {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

/* CSS adjustments for standard elements in eye-hero and article-ehr */
.ss-section-title {
  text-align: center;
  max-width: min(650px, 100%);
  margin: 0 auto 3rem;
}

.ss-section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--brand-strong);
  margin-bottom: 0.75rem;
}

.ss-section-title h2 span {
  color: var(--brand);
}

.ss-section-title p {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .ss-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ss-story-image img {
    aspect-ratio: 16/9;
  }

  .ss-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ss-highlight-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ss-grid-2col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ss-goal-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ss-social-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ss-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ss-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
