/* ============================================
   MAIN CSS - GLOBAL STYLES & VARIABLES
   ============================================ */

:root {
  --black: #111111;
  --yellow: #FFD626;
  --grey: #C0C0C0;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --dark-grey: #2A2A2A; /* Improved contrast - darker for better readability (Wix tip #3) */
  --light-grey: #F5F5F5;
  --border-grey: #C8C8C8;
  --yellow-light: #FFF9E6;
  --yellow-border: #FFE8A3;
  /* Color consistency - 10 C's Context & Consistency */
  --text-primary: #111111;
  --text-secondary: #2A2A2A;
  --text-muted: #4B4B4B;
}

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

html {
  background: #111111; /* Black background to prevent white space at top */
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7; /* Improved readability (Wix tip #3) */
  font-size: 16px; /* Minimum 16pt for readability (Wix tip #3) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ===== Layout ===== */
.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* Better spacing for readability - tip #3 */
.section + .section {
  margin-top: 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 24px; /* Better spacing for visual hierarchy (Wix tip #2) */
  line-height: 1.2; /* Tighter line-height for headings */
  color: var(--text-primary);
  letter-spacing: -0.02em; /* Slightly tighter for modern look */
}

.section-subtitle {
  color: #2A2A2A; /* Improved contrast - darker than dark-grey for better readability (Wix tip #3) */
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.75; /* Better line spacing for readability */
  font-size: 18px;
  font-weight: 400;
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-main strong {
  color: var(--white);
  font-weight: 700;
}

.footer-main a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-main a:hover {
  color: var(--yellow);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--yellow);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--light-grey);
}

.testimonial-author strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--dark-grey);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }
  
  .testimonial-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    gap: 20px;
  }
  
  .footer-links,
  .footer-trust {
    font-size: 12px;
    gap: 8px;
  }
  
  .footer-social {
    gap: 12px;
  }
  
  .footer-social a {
    width: 36px;
    height: 36px;
  }
  
  .footer-social svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Cookie Consent (GDPR Compliance) ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  border-top: 2px solid var(--yellow);
  padding: 20px 24px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent:not([hidden]) {
  transform: translateY(0);
}

.cookie-consent__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-consent__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cookie-consent__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.cookie-consent__text a {
  color: var(--yellow);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__accept {
  padding: 10px 20px;
  font-size: 14px;
}

.cookie-consent__decline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent__decline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

@media (max-width: 767px) {
  .cookie-consent {
    padding: 16px 20px;
  }
  
  .cookie-consent__content {
    gap: 12px;
  }
  
  .cookie-consent__text {
    font-size: 13px;
    text-align: center;
  }
  
  .cookie-consent__actions {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-consent__accept,
  .cookie-consent__decline {
    flex: 1;
    max-width: 150px;
  }
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #FFE066;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .back-to-top:hover {
    transform: none;
  }
}
