@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap");

@font-face {
  font-family: "Adrianna";
  src: url("../fonts/Adrianna-Regular.woff2") format("woff2"),
    url("../fonts/Adrianna-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Legal pages styling */
.legal-page {
  padding: 6rem 0 2rem;
  background: white;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #333333;
  margin-bottom: 1rem;
  font-weight: 700;
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.legal-content section {
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: #ff0e38;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-content h3 {
  font-size: 1.4rem;
  color: #333333;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1rem;
  color: #444;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
  color: #444;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: #ff0e38;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 14, 56, 0.3);
  transition: all 0.3s ease;
}

.legal-content a:hover {
  border-bottom-color: #ff0e38;
  background: rgba(255, 14, 56, 0.05);
}

.contact-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #ff0e38;
  margin: 1rem 0;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Dark mode for legal pages */
@media (prefers-color-scheme: dark) {
  .legal-page {
    background: #1a1a1a;
  }

  .legal-content h1 {
    color: #e0e0e0;
  }

  .last-updated {
    color: #a0a0a0;
    border-bottom-color: #333;
  }

  .legal-content h3 {
    color: #e0e0e0;
  }

  .legal-content p,
  .legal-content li {
    color: #c0c0c0;
  }

  .contact-info {
    background: #2a2a2a;
    border-left-color: #ff0e38;
  }
}

/* Mobile responsive for legal pages */
@media (max-width: 768px) {
  .legal-page {
    padding: 5rem 0 2rem;
  }

  .legal-content {
    padding: 0 1rem;
  }

  .legal-content h1 {
    font-size: 2.5rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }

  .legal-content ul {
    margin-left: 1.5rem;
  }

  .contact-info {
    padding: 1rem;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Adrianna", serif;
  line-height: 1.6;
  color: #333333;
  overflow-x: hidden;
}

/* Improved container with better responsive sizing */
.container {
  max-width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #ff0e38;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.3s;
  z-index: 9999;
}

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

/* Improved focus indicators */
a:focus,
button:focus {
  outline: 2px solid #ff0e38;
  outline-offset: 2px;
}

/* Header with improved mobile navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: #ff0e38;
}

/* Hamburger menu styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
}

.hamburger {
  width: 100%;
  height: 3px;
  background: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #ff0e38;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0e38;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    gap: 1rem;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    text-align: center;
  }
}

/* Hero Section */
#home {
  position: relative;
  background: #ff0e38;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Layer 1: semi‑transparent background image */
#home::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: url("../images/bg-group.png") center/cover no-repeat;
  opacity: 0.5; /* adjust this for more/less image visibility */
  z-index: 0;
}

/* Layer 2: grain pattern */
#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>')
    repeat;
  opacity: 1; /* grain is already subtle */
  z-index: 1;
}

/* Ensure your actual content sits above both layers */
#home > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #ff0e38;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: #f8f8f8;
}

/* Features Section */
#features {
  padding: 5rem 0;
  background: white;
}

.features-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.features-content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #333333;
  margin-bottom: 2rem;
  font-weight: 700;
}

.short-description {
  font-size: 1.3rem;
  color: #555; /* Improved contrast */
  margin-bottom: 2rem;
  font-weight: 600;
}

.long-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

/* How It Works Section */
#how-it-works {
  padding: 5rem 0;
  background: #f8f9fa;
}

#how-it-works h2 {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #333333;
  margin-bottom: 3rem;
  font-weight: 700;
}

/* Improved responsive grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Force 2x2 layout on larger screens */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

/* Single column on mobile */
@media (max-width: 767px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid rgba(255, 14, 56, 0.1);
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: #333333;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Contact Section */
#contact {
  padding: 5rem 0;
  background: white;
}

#contact h2 {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #333333;
  margin-bottom: 2rem;
  font-weight: 700;
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.contact-button {
  display: inline-block;
  background: #ff0e38;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 14, 56, 0.3);
  will-change: transform;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 14, 56, 0.4);
  background: #e00d32;
}

/* Footer */
footer {
  background: #1a1a36;
  color: white;
  padding: 3rem 0 2rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: #ff0e38;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #ff0e38;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }

  nav {
    background: rgba(26, 26, 26, 0.95);
  }

  nav a {
    color: #e0e0e0;
  }

  .nav-menu {
    background: rgba(26, 26, 26, 0.98);
  }

  .hamburger {
    background: #e0e0e0;
  }

  #features {
    background: #1a1a1a;
  }

  .features-content h2 {
    color: #e0e0e0;
  }

  .short-description {
    color: #b0b0b0;
  }

  .long-description {
    color: #a0a0a0;
  }

  #how-it-works {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
  }

  #how-it-works h2 {
    color: #e0e0e0;
  }

  .feature-card {
    background: #2a2a2a;
    border-color: rgba(255, 14, 56, 0.2);
  }

  .feature-card h3 {
    color: #e0e0e0;
  }

  .feature-card p {
    color: #a0a0a0;
  }

  #contact {
    background: #1a1a1a;
  }

  #contact h2 {
    color: #e0e0e0;
  }

  .contact-content p {
    color: #a0a0a0;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  scroll-margin-top: 80px;
}

/* Additional mobile improvements */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-button,
  .contact-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  #features,
  #how-it-works,
  #contact {
    padding: 3rem 0;
  }
}
