/* Header */
.site-header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:50;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}



.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:70px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:#ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}


.brand-text {
  font-size: 35px;
  letter-spacing: .2px;
  font-weight: 100;
  font-family: cursive;
}

.brand-logo {
  height: 50px;
  max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}



.site-nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-link{
  padding:8px 10px;
  border-radius:8px;
  color:rgba(255,255,255,0.8);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-link:hover{
  color:#ffffff;
}



.nav-cta{
  margin-left:8px;
}

/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Switch Wrapper */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(15px);
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.theme-switch-wrapper:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.12) 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.theme-switch-wrapper.yacht-mode {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(3, 105, 161, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.theme-switch-wrapper.yacht-mode:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(3, 105, 161, 0.3) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 8px 24px rgba(59, 130, 246, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.theme-switch-wrapper.yacht-mode .theme-label {
  color: rgba(255, 255, 255, 1);
  cursor: pointer;
  text-shadow: 0 2px 4px rgba(59, 130, 246, 0.6);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.theme-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

/* Theme Switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 35px;
  cursor: pointer;
}

.theme-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.switch-slider i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  transform: scale(1);
}

.switch-slider .fa-house-chimney {
  color: rgba(255, 255, 255, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 4px;
  bottom: 2px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 50%;
  box-shadow: 
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 3;
}

.theme-switch input:checked + .switch-slider {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.8) 0%, rgba(12, 74, 110, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 
    0 4px 15px rgba(59, 130, 246, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.theme-switch input:checked + .switch-slider::before {
  transform: translateX(35px);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.theme-switch input:checked + .switch-slider .fa-ship {
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.8));
  transform: scale(1.15);
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: scale(1.15) rotate(0deg); }
  25% { transform: scale(1.15) rotate(-5deg); }
  75% { transform: scale(1.15) rotate(5deg); }
}

.theme-switch input:checked + .switch-slider .fa-house-chimney {
  color: rgba(255, 255, 255, 0.4);
  transform: scale(0.9);
  animation: none;
}

.theme-switch:hover .switch-slider {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.theme-switch input:checked:hover + .switch-slider {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.9) 0%, rgba(12, 74, 110, 1) 100%);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 
    0 6px 20px rgba(59, 130, 246, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.theme-switch:active .switch-slider::before {
  width: 30px;
}

.nav-toggle{
  display:none;
  position:relative;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  background:var(--muted-surface);
  border-radius:10px;
  align-items:center;
  justify-content:center;
}

.nav-toggle span{
  position:absolute;
  width:20px;
  height:2px;
  background:var(--text);
  transition:transform .2s ease, opacity .2s ease;
}

.nav-toggle span:nth-child(1){
  transform:translateY(-6px);
}

.nav-toggle span:nth-child(2){
  transform:translateY(0);
}

.nav-toggle span:nth-child(3){
  transform:translateY(6px);
}

/* Header Responsive */
@media (max-width: 900px){
  .site-nav{
    position:fixed;
    inset:70px 12px auto;
    display:grid;
    gap:8px;
    padding:12px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    transform:translateY(-20px);
    opacity:0;
    pointer-events:none;
    transition:transform .2s ease, opacity .2s ease;
    box-shadow:var(--shadow);
  }
  
  .site-nav.is-open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  
  .nav-toggle{
    display:inline-flex;
  }
  
  .nav-cta{
    width:100%;
    justify-content:center;
  }
  
  .theme-switch-wrapper {
    padding: 6px 14px;
    gap: 10px;
  }
  
  .theme-label {
    font-size: 12px;
    letter-spacing: 0.3px;
  }
  
  .theme-switch {
    width: 60px;
    height: 30px;
  }
  
  .switch-slider i {
    font-size: 12px;
  }
  
  .switch-slider::before {
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 2px;
  }
  
  .theme-switch input:checked + .switch-slider::before {
    transform: translateX(30px);
  }
  
  .theme-switch:active .switch-slider::before {
    width: 26px;
  }
}
