/* SugarMommyLatam.com Design System & Stylesheet */

/* Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #131317;
  --bg-card: #1a1a22;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent-red: #e63946;
  --accent-red-hover: #b82633;
  --accent-gold: #ffd700;
  --accent-gold-hover: #ccac00;
  --border-color: rgba(255, 255, 255, 0.08);
  --focus-outline: #e63946;
  
  --font-display: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --container-max: 1200px;
  --header-height: 80px;
}

/* Base resets & global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
  color: var(--text-primary);
}

/* Keyboard Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-red);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  margin-top: 3rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

strong {
  color: #ffffff;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.btn-red {
  background-color: var(--accent-red);
  color: #ffffff;
}

.btn-red:hover {
  background-color: var(--accent-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background-color: transparent;
}

.btn-outline:hover {
  border-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Layout */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.header-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 40px;
}

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

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent-red);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-login {
  color: var(--text-secondary);
  padding: 8px 18px;
  font-size: 0.95rem;
}

.btn-login:hover {
  color: #ffffff;
}

.btn-register {
  padding: 8px 20px;
  font-size: 0.95rem;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  left: 0;
  transition: transform 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Mobile navigation state */
.mobile-nav-active .hamburger {
  background: transparent;
}
.mobile-nav-active .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}
.mobile-nav-active .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section (Landing pages) */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 0 1.5rem;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 40%, #ff8c94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

.hero-cta {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* Compact Header (Non-landing pages) */
.compact-header {
  width: 100%;
  background: radial-gradient(circle at top left, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 1.5rem 3rem 1.5rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.compact-header .header-content {
  max-width: 800px;
}

.compact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Content Images & Grid */
.content-image {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.content-image img:hover {
  transform: scale(1.02);
}

/* Footer */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 6rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.mobile-only-cta {
  display: none;
}

/* Media Queries */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; margin-top: 2rem; }
  h3 { font-size: 1.3rem; }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    padding: 3rem 2rem;
    transform: none;
    z-index: 90;
    border-top: 1px solid var(--border-color);
  }
  
  .mobile-nav-active .main-nav {
    display: flex;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-list a {
    font-size: 1.25rem;
  }
  
  .header-ctas {
    display: none; /* Accessible under drawer on mobile if needed, or placed in navigation */
  }
  
  .mobile-only-cta {
    display: block;
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .hamburger, .hamburger::before, .hamburger::after, .content-image img, .main-nav {
    transition: none !important;
  }
}
