/* Navigation Styles - We Live Together */
/* Updated with sticky nav, Trustpilot badge, persistent CTA, and Log In link */

/* ============================================================================
   HEADER / NAVIGATION
   ============================================================================ */

/* Header - Sticky with scroll shadow */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-300);
  height: var(--nav-height);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

/* Add shadow when scrolled */
.site-header.scrolled {
  box-shadow: var(--shadow-sticky);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
  position: relative;
}

/* Mobile: Optimize spacing */
@media (max-width: 809px) {
  .header-container {
    gap: 12px;
    padding: 0 16px;
  }
}

/* Very small screens */
@media (max-width: 389px) {
  .header-container {
    gap: 8px;
    padding: 0 12px;
  }
}

/* ============================================================================
   LOGO
   ============================================================================ */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Mobile: Larger logo for visibility */
@media (max-width: 809px) {
  .logo img {
    height: 56px;
  }
}

/* Very small screens: Slightly smaller but still prominent */
@media (max-width: 389px) {
  .logo img {
    height: 44px;
  }
}

/* ============================================================================
   DESKTOP NAVIGATION LINKS
   ============================================================================ */

.main-nav {
  display: none;
  flex: 1;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: var(--space-1) 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link.active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

.nav-link:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================================
   TRUSTPILOT BADGE (CENTER)
   ============================================================================ */

.trustpilot-badge {
  display: none; /* Hidden by default (mobile) */
  align-items: center;
  gap: 6px;
  background: var(--color-beige);
  padding: 6px 12px;
  border-radius: var(--radius-small);
  white-space: nowrap;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Show on tablet and desktop */
@media (min-width: 810px) {
  .trustpilot-badge {
    display: inline-flex;
  }
}

/* Smaller on tablet */
@media (min-width: 810px) and (max-width: 1023px) {
  .trustpilot-badge {
    padding: 4px 10px;
    gap: 4px;
  }
}

.trustpilot-stars {
  font-size: 14px;
  color: var(--color-warning);
  letter-spacing: 2px;
  line-height: 1;
}

@media (min-width: 810px) and (max-width: 1023px) {
  .trustpilot-stars {
    font-size: 12px;
    letter-spacing: 1px;
  }
}

.trustpilot-rating {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
}

@media (min-width: 810px) and (max-width: 1023px) {
  .trustpilot-rating {
    font-size: 12px;
  }
}

.trustpilot-source {
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  color: var(--color-navy-light);
  opacity: 0.8;
}

@media (min-width: 810px) and (max-width: 1023px) {
  .trustpilot-source {
    font-size: 11px;
  }
}

/* ============================================================================
   RIGHT SIDE: CTA + LOG IN + HAMBURGER
   ============================================================================ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

@media (max-width: 809px) {
  .nav-right {
    gap: 12px;
  }
}

@media (max-width: 389px) {
  .nav-right {
    gap: 8px;
  }
}

/* ============================================================================
   PRIMARY CTA BUTTON - "Get My Free Plan"
   ============================================================================ */

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  
  /* Styling */
  background: var(--color-teal);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  
  /* Spacing */
  padding: 12px 24px;
  border-radius: var(--radius-small);
  min-height: 44px;
  
  /* Effects */
  box-shadow: var(--shadow-button);
  transition: all var(--transition-fast);
  white-space: nowrap;
  
  /* Positioning */
  flex-shrink: 0;
}

.btn-cta-primary:hover {
  background: var(--color-teal-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-cta-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-cta-primary:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* Mobile: Compact CTA */
@media (max-width: 809px) {
  .btn-cta-primary {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* Very small screens: Even more compact */
@media (max-width: 389px) {
  .btn-cta-primary {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* Tablet: Shortened text */
@media (min-width: 810px) and (max-width: 1023px) {
  .btn-cta-primary::after {
    content: "Get Free Plan";
  }
  .btn-cta-primary {
    font-size: 0; /* Hide original text */
  }
}

/* ============================================================================
   LOG IN LINK
   ============================================================================ */

.nav-login-link {
  display: none; /* Hidden on mobile */
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Show on desktop */
@media (min-width: 1024px) {
  .nav-login-link {
    display: inline-block;
  }
}

.nav-login-link:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.nav-login-link:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* ============================================================================
   MOBILE HAMBURGER
   ============================================================================ */

.mobile-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(26, 54, 93, 0.1);
  border: 2px solid rgba(26, 54, 93, 0.2);
  border-radius: var(--radius-small);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-hamburger:hover {
  background: rgba(26, 54, 93, 0.15);
  border-color: rgba(26, 54, 93, 0.3);
  transform: scale(1.05);
}

.mobile-hamburger:active {
  transform: scale(0.98);
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-hamburger {
    display: none;
  }
}

/* Hamburger icon (three lines) */
.hamburger-line {
  width: 36px;
  height: 4px;
  background: var(--color-navy);
  position: relative;
  transition: all var(--transition-fast);
  display: block;
}

.hamburger-line::before,
.hamburger-line::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 4px;
  background: var(--color-navy);
  transition: all var(--transition-fast);
}

.hamburger-line::before {
  top: -10px;
}

.hamburger-line::after {
  bottom: -10px;
}

/* Animate to X when menu is open */
.mobile-menu-checkbox:checked ~ .nav-right .mobile-hamburger .hamburger-line {
  background: transparent;
}

.mobile-menu-checkbox:checked ~ .nav-right .mobile-hamburger .hamburger-line::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-checkbox:checked ~ .nav-right .mobile-hamburger .hamburger-line::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ============================================================================
   MOBILE MENU
   ============================================================================ */

.mobile-menu-checkbox {
  display: none;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 54, 93, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu-checkbox:checked ~ .mobile-nav-menu {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  max-width: 400px;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  text-decoration: none;
  padding: var(--space-2) 0;
  text-align: center;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.mobile-menu-list a:hover {
  color: var(--color-teal-light);
}

/* ============================================================================
   FOOTER (unchanged from original)
   ============================================================================ */

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-8) 0 var(--space-4) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 809px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

.footer-column h3 {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin: 0 0 var(--space-2) 0;
}

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

.footer-links a {
  font-size: var(--font-size-small);
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-tagline {
  font-size: var(--font-size-body);
  color: var(--color-white);
  opacity: 0.9;
  margin: var(--space-2) 0;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  color: var(--color-white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: var(--space-6) 0 var(--space-3) 0;
}

.footer-bottom {
  font-size: var(--font-size-tiny);
  color: var(--color-white);
  opacity: 0.7;
  text-align: center;
}

.footer-bottom p {
  margin: var(--space-1) 0;
}
