/* ==========================================================================
   SERVICES PAGE STYLES - Avelion Yachting
   ========================================================================== */

/* Page variables */
:root {
  --services-glow: rgba(212, 194, 161, 0.08);
  --services-border-hover: rgba(212, 194, 161, 0.28);
}

/* Page Hero Adjustments */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  background: transparent;
}




/* Service Card Premium */
.service-card-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.35);
  transition: 
    transform 0.6s var(--ease-soft),
    border-color 0.6s var(--ease-soft),
    box-shadow 0.6s var(--ease-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--services-border-hover);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 0 30px var(--services-glow);
}

/* Card Visual Container */
.service-card-visual {
  position: relative;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.service-card-visual-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease-soft);
}

.service-card-premium:hover .service-card-visual-img {
  transform: scale(1.08);
}

.service-card-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0.1) 0%, rgba(5, 8, 15, 0.6) 100%);
  transition: opacity 0.6s var(--ease-soft);
}

.service-card-premium:hover .service-card-visual-overlay {
  opacity: 0.4;
}

/* Card Content */
.service-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-number {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.service-card-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.service-card-premium:hover .service-card-title {
  color: #FFFFFF;
}

.service-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 20px;
}

.service-card-footer {
  margin-top: auto;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s ease, color 0.3s ease;
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.service-card-premium:hover .service-card-link {
  color: #FFFFFF;
  gap: 12px;
}

.service-card-premium:hover .service-card-link svg {
  transform: translateX(3px);
}

/* ==========================================================================
   FINANCIAL SOLUTIONS SECTION
   ========================================================================== */
.financial-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.financial-intro .section-subtitle {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.financial-intro .section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 18px;
}

.financial-intro .section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.financial-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .financial-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.financial-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  transition: all 0.6s var(--ease-soft);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 25px 50px rgba(0, 0, 0, 0.4);
}

.financial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(212, 194, 161, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
  pointer-events: none;
}

.financial-card:hover {
  border-color: rgba(212, 194, 161, 0.2);
  transform: translateY(-4px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 35px 70px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(212, 194, 161, 0.04);
}

.financial-card:hover::before {
  opacity: 1;
}

.financial-icon-wrap {
  width: 80px;
  height: 80px;
  background: rgba(212, 194, 161, 0.05);
  border: 1px solid rgba(212, 194, 161, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.5s var(--ease-soft);
}

.financial-card:hover .financial-icon-wrap {
  background: rgba(212, 194, 161, 0.12);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 194, 161, 0.25);
  transform: scale(1.05);
}

.financial-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.financial-card-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.financial-card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

@media (max-width: 600px) {
  .financial-card {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 18px;
    text-align: center;
  }
  
  .financial-icon-wrap {
    margin: 0 auto;
  }
}

/* ==========================================================================
   COME LAVORIAMO - TIMELINE SECTION
   ========================================================================== */
.timeline-section {
  position: relative;
  overflow: hidden;
}

.timeline-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 60px;
  padding: 20px 0;
}

/* Continuous connection line */
.timeline-row::before {
  content: '';
  position: absolute;
  top: 68px; /* Centered with the numbers */
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(212, 194, 161, 0) 0%, 
    rgba(212, 194, 161, 0.28) 15%, 
    rgba(212, 194, 161, 0.28) 85%, 
    rgba(212, 194, 161, 0) 100%
  );
  z-index: 1;
}

.timeline-item {
  position: relative;
  flex: 1;
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.timeline-badge {
  width: 96px;
  height: 96px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.6s var(--ease-soft);
}

.timeline-item:hover .timeline-badge {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 
    0 0 35px rgba(212, 194, 161, 0.35),
    0 5px 15px rgba(212, 194, 161, 0.2);
  transform: scale(1.1);
}

.timeline-content {
  max-width: 290px;
}

.timeline-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.timeline-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

/* Responsiveness for timeline */
@media (max-width: 992px) {
  .timeline-row {
    flex-direction: column;
    gap: 50px;
    padding-left: 40px;
  }
  
  .timeline-row::before {
    top: 5%;
    bottom: 5%;
    left: 88px; /* Align with the circle centers */
    width: 1px;
    height: 90%;
    background: linear-gradient(180deg, 
      rgba(212, 194, 161, 0) 0%, 
      rgba(212, 194, 161, 0.28) 15%, 
      rgba(212, 194, 161, 0.28) 85%, 
      rgba(212, 194, 161, 0) 100%
    );
  }
  
  .timeline-item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 30px;
    padding: 0;
  }
  
  .timeline-badge {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .timeline-content {
    max-width: 100%;
  }
}

/* ==========================================================================
   CALL TO ACTION BAND PREMIUM
   ========================================================================== */
.cta-premium-wrapper {
  padding: 60px 0;
}

.cta-premium-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 36px;
  padding: 60px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 35px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-premium-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 194, 161, 0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
  filter: blur(30px);
}

.cta-premium-content {
  max-width: 600px;
}

.cta-premium-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.cta-premium-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.cta-premium-actions {
  flex-shrink: 0;
}

/* Premium Button Styling */
.btn-premium-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  background: var(--gold);
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.5s var(--ease-soft);
  box-shadow: 0 10px 30px rgba(212, 194, 161, 0.25);
  border: 1px solid var(--gold);
}

.btn-premium-gold:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
  .cta-premium-card {
    flex-direction: column;
    text-align: center;
    padding: 50px 40px;
    gap: 30px;
  }
  
  .cta-premium-content {
    max-width: 100%;
  }
  
  .cta-premium-actions {
    width: 100%;
  }
  
  .btn-premium-gold {
    width: 100%;
    max-width: 320px;
  }
}
