/*
 * CRSH Custom Theme Components
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.crsh-site-header {
  background-color: var(--crsh-white);
  border-bottom: 1px solid var(--crsh-border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.crsh-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crsh-site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.crsh-site-logo .brand-mark {
  color: var(--crsh-navy);
  font-size: 28px;
  font-weight: 300;
  font-family: Georgia, serif;
  font-style: italic;
}

.crsh-site-logo .brand-text {
  display: flex;
  flex-direction: column;
}

.crsh-site-logo .brand-name {
  font-family: Georgia, 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--crsh-navy);
  line-height: 1.1;
}

.crsh-site-logo .brand-sub {
  font-family: var(--crsh-font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--crsh-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crsh-main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.crsh-main-nav a {
  font-family: var(--crsh-font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--crsh-navy);
  position: relative;
  padding: 4px 0;
}

.crsh-main-nav a:hover,
.crsh-main-nav a.active {
  color: var(--crsh-blue-primary);
}

.crsh-main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--crsh-blue-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Circular Services Wheel Component
   ========================================================================== */
.crsh-wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px 0;
}

.crsh-wheel-center {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crsh-wheel-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  animation: crshSlowSpin 60s linear infinite;
}

@keyframes crshSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crsh-wheel-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.crsh-wheel-node:hover {
  transform: scale(1.08);
}

.crsh-wheel-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--crsh-white);
  box-shadow: 0 8px 24px rgba(11, 26, 48, 0.12);
  background-color: var(--crsh-white);
}

.crsh-wheel-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crsh-wheel-node.node-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.crsh-wheel-node.node-top:hover {
  transform: translateX(-50%) scale(1.08);
}

.crsh-wheel-node.node-right {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.crsh-wheel-node.node-right:hover {
  transform: translateY(-50%) scale(1.08);
}

.crsh-wheel-node.node-bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.crsh-wheel-node.node-bottom:hover {
  transform: translateX(-50%) scale(1.08);
}

.crsh-wheel-node.node-left {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}
.crsh-wheel-node.node-left:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ==========================================================================
   Mission Timeline Component
   ========================================================================== */
.crsh-timeline-wrapper {
  position: relative;
  width: 100%;
  padding-top: 30px;
}

.crsh-timeline-bar {
  position: absolute;
  top: 48px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.crsh-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.crsh-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.crsh-timeline-node {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--crsh-white);
  color: var(--crsh-blue-primary);
  font-family: var(--crsh-font-heading);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.crsh-timeline-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--crsh-radius-md);
  overflow: hidden;
  width: 100%;
  transition: transform 0.3s ease;
}

.crsh-timeline-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.crsh-timeline-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.crsh-timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.crsh-timeline-card:hover .crsh-timeline-image img {
  transform: scale(1.05);
}

.crsh-timeline-body {
  padding: 20px;
  color: var(--crsh-white);
}

.crsh-timeline-body h4 {
  color: var(--crsh-white);
  font-size: 18px;
  margin-bottom: 8px;
}

.crsh-timeline-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.crsh-site-footer {
  background-color: var(--crsh-navy);
  color: #94a3b8;
  padding: 64px 24px 32px;
  font-size: 14px;
}

.crsh-footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.crsh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.crsh-footer-col h5 {
  color: var(--crsh-white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.crsh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crsh-footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.crsh-footer-links a:hover {
  color: var(--crsh-white);
}

.crsh-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crsh-newsletter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--crsh-radius-sm);
  padding: 12px 16px;
  color: var(--crsh-white);
  font-size: 14px;
}

.crsh-newsletter-input:focus {
  outline: none;
  border-color: var(--crsh-blue-primary);
}

.crsh-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   Photo Strip Gallery (Section 2)
   ========================================================================== */
.crsh-photo-strip-container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 48px;
  padding: 0 20px;
}

.crsh-photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.crsh-photo-item {
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 26, 48, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crsh-photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 26, 48, 0.16);
}

.crsh-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .crsh-photo-item {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .crsh-photo-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
  }
  .crsh-photo-item {
    flex: 0 0 240px;
    height: 300px;
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .crsh-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .crsh-main-nav {
    display: none;
  }
  .crsh-timeline-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .crsh-timeline-bar {
    display: none;
  }
  .crsh-footer-grid {
    grid-template-columns: 1fr;
  }
  .crsh-wheel-center {
    width: 300px;
    height: 300px;
  }
  .crsh-wheel-circle {
    width: 70px;
    height: 70px;
  }
}
