/* ===================================
   HomelyB - A Bite From Home
   Warm, Comforting, Homestyle Design
   =================================== */

/* CSS Variables for Easy Customization */
:root {
  --primary-color: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary-color: #f7931e;
  --accent-color: #ffc857;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --bg-light: #fff9f0;
  --bg-white: #ffffff;
  --bg-cream: #fef5e7;
  --border-color: #f0e6d2;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffc857 100%);
  padding-top: 80px;
  overflow: hidden;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  max-width: 900px;
}

.hero-logo-container {
  margin-top: 60px;
  margin-bottom: 40px;
  animation: fadeInScale 1.2s ease;
}

.hero-logo {
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 8px solid rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 400;
  animation: fadeInUp 1s ease 0.5s backwards;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s ease 0.7s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.9s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background-color: inherit;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
}

/* About Section */
.about {
  background: var(--bg-light);
  position: relative;
  z-index: 2;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature p {
  color: var(--text-light);
  margin: 0;
}

/* Menu Section */
.menu {
  background: var(--bg-white);
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.menu-category {
  background: var(--bg-cream);
  padding: 40px 30px;
  border-radius: 15px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.menu-category:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.menu-category h3 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.menu-category > p {
  text-align: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.menu-items {
  list-style: none;
}

.menu-items li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
  color: var(--text-dark);
  position: relative;
  padding-left: 25px;
}

.menu-items li:last-child {
  border-bottom: none;
}

.menu-items li::before {
  content: '🍽️';
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

.menu-note {
  text-align: center;
  padding: 30px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-top: 20px;
}

.menu-note p {
  margin: 0;
  color: var(--text-light);
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-cream) 100%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

/* Contact Section */
.contact {
  background: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
}

.contact-info h3,
.order-info h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-cream));
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px 50px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.email-link:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.email-icon {
  font-size: 1.8rem;
  animation: pulse 2s infinite;
}

.email-text {
  letter-spacing: 1px;
}

.contact-hint {
  margin-top: 20px !important;
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
}

/* Order Section */
.order-info {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid var(--border-color);
}

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.order-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  font-size: 0.95rem;
}

.order-info .btn-primary {
  width: 100%;
  margin-top: 10px;
}

/* Why Choose Us Section */
.why-choose-us {
  background: var(--bg-white);
  padding: 80px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.benefit-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.benefit-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  background: white;
}

.benefit-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.benefit-card:hover .benefit-icon {
  animation: none;
  transform: scale(1.2);
}

.benefit-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Special Offer Banner */
.special-offer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.special-offer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.special-offer::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.offer-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.offer-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  animation: pulse 2s infinite;
}

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

.offer-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.offer-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.95);
}

.pulse-button {
  animation: pulseButton 2s infinite;
  background: white;
  color: var(--primary-color);
  font-weight: 700;
}

.pulse-button:hover {
  background: var(--bg-light);
  transform: scale(1.05);
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* Stats Section */
.stats-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-number::after {
  content: '+';
  font-size: 2rem;
  margin-left: 5px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  animation: shake 1s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
  transition: var(--transition);
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 1.05rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-color);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.dev-notice {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 15px !important;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
    padding: 15px;
    border: 6px solid rgba(255, 255, 255, 0.9);
  }

  .hero-logo-container {
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .menu-categories {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-large {
    width: 100%;
    max-width: 300px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links,
  .social-links {
    align-items: center;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .email-link {
    padding: 18px 35px;
    font-size: 1.1rem;
    gap: 12px;
  }

  .offer-content h2 {
    font-size: 2.2rem;
  }

  .offer-content p {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 85px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
    padding: 12px;
    border: 5px solid rgba(255, 255, 255, 0.9);
  }

  .hero-logo-container {
    margin-bottom: 25px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .btn-large {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .logo {
    height: 50px;
  }

  .order-info {
    padding: 25px;
  }

  .offer-content h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Smooth Animations */
.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Loading State for Logo */
.logo-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Form Modal Overlay */
.form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.form-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.form-modal-content {
  position: relative;
  background: white;
  border-radius: 15px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
}

.form-modal-close:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.form-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 2px solid var(--border-color);
  text-align: center;
}

.form-modal-header h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 2rem;
}

.form-modal-header p {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
}

.form-modal-body {
  padding: 20px;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.form-modal-body iframe {
  border: none;
  border-radius: 10px;
  flex: 1;
  min-height: 500px;
}

.form-modal-fallback {
  margin-top: 15px;
  text-align: center;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 8px;
}

.form-modal-fallback p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.form-modal-fallback a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}

.form-modal-fallback a:hover {
  color: var(--primary-dark);
}

/* ===================================
   Legal Pages (Privacy Policy, Terms)
   =================================== */

/* Hero */
.legal-hero {
  position: relative;
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffc857 100%);
  color: white;
  overflow: hidden;
}

.legal-hero-decor {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.legal-breadcrumb a:hover {
  color: white;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 2px;
}

.breadcrumb-current {
  color: white;
  font-weight: 600;
}

.legal-hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.legal-hero-desc {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-weight: 400;
}

.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

/* Body */
.legal-body {
  padding: 50px 0 80px;
  background: var(--bg-light);
}

/* Table of Contents */
.legal-toc-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.legal-toc-card summary {
  padding: 22px 30px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background 0.2s;
}

.legal-toc-card summary:hover {
  background: var(--bg-light);
}

.legal-toc-card summary::-webkit-details-marker {
  display: none;
}

.legal-toc-card summary::after {
  content: '▾';
  font-size: 1rem;
  margin-left: auto;
  transition: transform 0.3s;
  color: var(--primary-color);
}

.legal-toc-card[open] summary::after {
  transform: rotate(180deg);
}

.legal-toc-list {
  padding: 0 30px 25px;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 30px;
}

.legal-toc-list li {
  break-inside: avoid;
}

.legal-toc-list a {
  color: var(--text-light);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.legal-toc-list a:hover {
  color: var(--primary-color);
  background: var(--bg-light);
}

.toc-num {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 24px;
  opacity: 0.7;
}

/* Notice Box */
.legal-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.07), rgba(255, 200, 87, 0.04));
  border-left: 4px solid var(--primary-color);
  padding: 20px 24px;
  border-radius: 0 14px 14px 0;
  margin-bottom: 35px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-notice-box p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.notice-sub {
  margin-top: 8px !important;
  font-size: 0.9rem !important;
  color: var(--text-light) !important;
}

/* Article */
.legal-article {
  max-width: 820px;
  margin: 0 auto;
}

/* Section */
.legal-section {
  background: white;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.legal-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 107, 53, 0.15);
}

.legal-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--bg-light);
}

.section-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.legal-section-head h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

/* Section Content Typography */
.legal-section-content p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 0.96rem;
}

.legal-section-content h3 {
  font-size: 1.08rem;
  color: var(--text-dark);
  margin: 26px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--primary-color);
  line-height: 1.3;
}

.legal-section-content h4 {
  font-size: 0.98rem;
  color: var(--text-dark);
  margin: 20px 0 8px;
  font-weight: 600;
}

.legal-section-content ul {
  list-style: none;
  margin: 10px 0 18px;
  padding: 0;
}

.legal-section-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  line-height: 1.7;
  color: var(--text-light);
  font-size: 0.95rem;
}

.legal-section-content ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.legal-section-content a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 107, 53, 0.3);
  transition: var(--transition);
}

.legal-section-content a:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

/* Callout */
.legal-callout {
  background: var(--bg-cream);
  border-left: 4px solid var(--accent-color);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0 20px;
}

.legal-callout p {
  margin-bottom: 8px;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-callout ul {
  margin-top: 8px !important;
  margin-bottom: 4px !important;
}

/* Definitions */
.legal-definitions {
  border-top: 1px solid var(--bg-light);
}

.legal-definitions li {
  padding: 14px 0 14px 0 !important;
  border-bottom: 1px solid var(--bg-light);
}

.legal-definitions li::before {
  display: none !important;
}

.legal-definitions li:last-child {
  border-bottom: none;
}

/* Contact Card */
.legal-contact-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.03));
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin: 16px 0;
  transition: border-color 0.3s;
}

.legal-contact-card:hover {
  border-color: var(--primary-color);
}

.legal-contact-card p {
  margin-bottom: 12px !important;
  font-size: 1rem !important;
}

.legal-contact-card > a {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.legal-contact-card > a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.legal-section-contact {
  border: 2px solid rgba(255, 107, 53, 0.12);
}

/* Cross Navigation */
.legal-cross-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 45px;
  padding-top: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-hero {
    padding: 110px 0 40px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-hero-desc {
    font-size: 1.05rem;
  }

  .legal-body {
    padding: 30px 0 60px;
  }

  .legal-toc-list {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 0 20px 20px;
  }

  .legal-toc-card summary {
    padding: 18px 20px;
  }

  .legal-section {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .legal-section-head {
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .section-number {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .legal-section-head h2 {
    font-size: 1.1rem;
  }

  .legal-notice-box {
    padding: 16px 18px;
  }

  .legal-cross-nav {
    flex-direction: column;
    align-items: center;
  }

  .legal-cross-nav .btn-primary,
  .legal-cross-nav .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .legal-hero {
    padding: 100px 0 30px;
  }

  .legal-hero h1 {
    font-size: 1.7rem;
  }

  .legal-hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .legal-badge {
    text-align: center;
  }

  .legal-section {
    padding: 20px 16px;
  }
}

@media (max-width: 768px) {
  .form-modal-content {
    max-width: 95%;
    max-height: 95vh;
  }

  .form-modal-header {
    padding: 25px 20px 15px;
  }

  .form-modal-header h2 {
    font-size: 1.5rem;
  }

  .form-modal-body {
    padding: 15px;
  }

  .form-modal-body iframe {
    min-height: 400px;
    height: 500px;
  }

  .form-modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}
