/*
  Undresser US - Main Styles
  Colors inspired by American flag:
  - Blue: #3C3B6E
  - Red: #B22234
  - White: #FFFFFF
*/

:root {
  /* Colors */
  --blue: #3C3B6E;
  --red: #B22234;
  --white: #FFFFFF;
  --light-blue: #7B89C9;
  --light-red: #E57B8E;
  --gray-50: #f8f9fa;
  --gray-100: #f0f1f2;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-secondary: 'Georgia', 'Times New Roman', serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover, a:focus {
  color: var(--light-blue);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-md);
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-lg);
}

.highlight {
  position: relative;
  color: var(--red);
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(178, 34, 52, 0.2);
  z-index: -1;
}

.text-primary {
  color: var(--blue);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xxl);
  font-family: var(--font-secondary);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--blue), var(--red));
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section {
  padding: var(--space-xxl) 0;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  border: none;
  transition: var(--transition-normal);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.3);
}

.btn-primary:hover {
  background-color: #cd253a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(178, 34, 52, 0.4);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: var(--space-md) var(--space-xxl);
  font-size: 1.1rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  height: 80px;
}

.brand a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.brand a span {
  margin-left: var(--space-sm);
}

.brand .accent {
  color: var(--red);
}

.nav-list {
  display: flex;
  gap: var(--space-xl);
}

.nav-list a {
  position: relative;
  color: var(--gray-700);
  font-weight: 500;
  padding: var(--space-xs) 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--red));
  transition: var(--transition-normal);
}

.nav-list a:hover {
  color: var(--blue);
}

.nav-list a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--blue);
  margin: 5px auto;
  transition: var(--transition-normal);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background-color: #f0f4ff;
  padding: var(--space-xxl) 0 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  width: 100%;
  height: 120px;
}

/* Features Section */
.features {
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--blue), var(--red));
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  transition: var(--transition-normal);
}

.feature-icon.blue {
  background-color: rgba(60, 59, 110, 0.1);
  color: var(--blue);
}

.feature-icon.red {
  background-color: rgba(178, 34, 52, 0.1);
  color: var(--red);
}

.feature-icon.white {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  margin-bottom: var(--space-md);
  font-weight: 600;
}

/* How It Works Section */
.how-it-works {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xxl);
  position: relative;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: var(--space-xl);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step:nth-child(3) .step-number {
  background-color: var(--red);
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.step-content {
  flex: 1;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.step:hover .step-content {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.call-to-action {
  text-align: center;
  margin-top: var(--space-xxl);
}

.section-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.section-divider svg {
  width: 100%;
  height: 48px;
}

/* FAQ Section */
.faq {
  background-color: var(--gray-50);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 4px solid var(--blue);
  transition: var(--transition-normal);
}

.faq-item:nth-child(even) {
  border-left-color: var(--red);
}

.faq-question {
  padding: var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.faq-toggle {
  color: var(--blue);
  transition: var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item:nth-child(even) .faq-toggle {
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  margin-bottom: 0;
}

.faq-item.active {
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--blue), var(--light-blue));
  color: var(--white);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta-section p {
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

.cta-section .btn {
  background-color: var(--white);
  color: var(--blue);
}

.cta-section .btn:hover {
  background-color: var(--gray-100);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--blue);
}

/* Footer */
footer {
  background-color: var(--gray-900);
  color: var(--white);
  padding: var(--space-xxl) 0 var(--space-md);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xxl);
  padding-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-info {
  margin-left: var(--space-md);
}

.footer-info h3 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-info p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--red), var(--blue));
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--gray-400);
  transition: var(--transition-normal);
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: var(--space-xs);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  text-align: center;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
    max-width: 600px;
    order: 1;
  }
  
  .hero-visual {
    order: 2;
    margin-top: var(--space-xl);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    padding: 100px var(--space-xl) var(--space-xl);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: var(--space-md);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .header-content {
    height: 70px;
  }
  
  .brand a {
    font-size: 1.3rem;
  }
  
  .feature-card, 
  .step-content,
  .faq-item {
    padding: var(--space-md);
  }
}
