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

/* CSS Variables - WCAG AA Validated Colors */
:root {
  /* Backgrounds */
  --color-bg-primary: #FDFBF7;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F8F8F8;

  /* Text Colors (Validated for Contrast) */
  --color-text-primary: #1F1F1F;
  --color-text-secondary: #4A4A4A;
  --color-text-white: #FFFFFF;

  /* Accent Colors - Decorative Only */
  --color-accent-green: #7C9885;
  --color-accent-gold: #D4AF37;

  /* Accent Colors - Text Safe */
  --color-accent-green-text: #5A6B60;
  --color-accent-gold-text: #9A7A1A;

  /* Functional Colors */
  --color-error: #D32F2F;
  --color-success: #5A6B60;
  --color-focus: #9A7A1A;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 64px;
  --space-hero: 96px;
}

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
}

.text-hero {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
}

.text-h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}

.text-h2 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
}

.text-h3 {
  font-size: clamp(24px, 3vw, 28px);
  line-height: 1.3;
}

.text-subtitle {
  font-size: clamp(20px, 3vw, 24px);
  color: var(--color-accent-green-text);
}

.text-date {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--color-text-secondary);
}

.text-body-large {
  font-size: 18px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
  }

  .text-body-large {
    font-size: 19px;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  position: relative;
}

.hero__decoration {
  font-size: 24px;
  color: var(--color-accent-green-text);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-sm);
}

.hero__subtitle {
  margin-bottom: var(--space-md);
}

.hero__date {
  margin-bottom: var(--space-xl);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--color-text-secondary);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Navigation */
.header {
  position: sticky;
  top: 0;
  background: var(--color-bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
}

.nav__logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 0;
  border: 2px solid var(--color-accent-green-text);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

.menu-toggle-label {
  display: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  padding: 12px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(8px);
}

.menu-toggle:checked+.menu-toggle-label .hamburger {
  background: transparent;
}

.menu-toggle:checked+.menu-toggle-label .hamburger::before {
  transform: rotate(45deg) translateY(0);
}

.menu-toggle:checked+.menu-toggle-label .hamburger::after {
  transform: rotate(-45deg) translateY(0);
}

.nav__menu {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  list-style: none;
}

.nav__link {
  color: var(--color-text-primary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  position: relative;
  transition: color 0.3s;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--color-accent-gold-text);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav__link:hover::after,
.nav__link:focus::after {
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--color-accent-gold-text);
  color: var(--color-bg-white);
  border-radius: 4px;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
}

.nav__link--cta:hover {
  background: #8A6A15;
}

.nav__link--cta::after {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .menu-toggle-label {
    display: block;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) 0;
  }

  .menu-toggle:checked~.nav__menu {
    display: flex;
  }

  .nav__link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid #E8E8E8;
  }

  .nav__link:last-child {
    border-bottom: none;
  }
}

/* Section Base */
.section {
  padding: var(--space-xxl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-hero) 0;
  }
}

/* Welcome Section */
.welcome {
  text-align: center;
}

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

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

.welcome__signature {
  font-size: 24px;
  font-style: italic;
  color: var(--color-accent-green-text);
  margin-top: var(--space-lg);
}

.divider {
  width: 100px;
  height: 2px;
  background: var(--color-accent-gold-text);
  margin: var(--space-xl) auto;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .info-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.info-card {
  background: var(--color-bg-white);
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: var(--space-lg);
  text-align: center;
  transition: box-shadow 0.3s;
}

.info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 48px;
  margin: 0 auto var(--space-sm) auto;
  line-height: 1;
  overflow: hidden;
}

/* Styled Calendar Icon */
.calendar-icon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #E74C3C;  /* Red border matching the pin emoji */
  border-radius: 6px;
  background: var(--color-bg-white);
  font-size: 48px;
  overflow: hidden;
  margin: 0 auto var(--space-sm) auto;
}

.calendar-month {
  background: #E74C3C;  /* Red color matching the pin emoji */
  color: var(--color-bg-white);
  padding: 2px 0;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.4;
  width: 100%;  /* Full width of the calendar icon */
  margin-left: -2px;  /* Compensate for border */
  margin-right: -2px;  /* Compensate for border */
  margin-top: -2px;  /* Compensate for border */
}

.calendar-day {
  font-size: 22px;
  font-weight: bold;
  color: var(--color-text-primary);
  padding: 0;
  margin-top: -2px;
  line-height: 1.2;
}

.info-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.info-card__content {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta {
  background: var(--color-accent-green);
  color: var(--color-bg-white);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta__title {
  color: var(--color-bg-white);
  margin-bottom: var(--space-sm);
}

.cta__text {
  font-size: 18px;
  margin-bottom: var(--space-lg);
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-xl);
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-accent-gold-text);
  color: var(--color-bg-white);
  box-shadow: 0 4px 12px rgba(154, 122, 26, 0.2);
}

.btn-primary:hover {
  background: #8A6A15;
  box-shadow: 0 6px 16px rgba(154, 122, 26, 0.3);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--color-bg-gray);
  padding: var(--space-xl) 0;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .footer__content {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.footer__section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--space-xs);
}

.footer__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--color-accent-green-text);
}

.qr-placeholder {
  display: inline-block;
  width: 100px;
  height: 100px;
  border: 2px solid var(--color-text-secondary);
  border-radius: 4px;
  margin: var(--space-sm) var(--space-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* Footer WhatsApp Groups */
.footer__whatsapp-groups {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.footer__whatsapp-group {
  flex: 1;
  min-width: 120px;
}

.footer__qr-code {
  margin-bottom: var(--space-xs);
}

.footer__qr-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid var(--color-bg-secondary);
  padding: 4px;
  background: white;
  display: block;
}

.footer__group-info {
  margin-top: var(--space-xs);
  line-height: 1.4;
  font-size: 0.875rem;
}

.footer__group-info strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

.footer__group-info small {
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer__whatsapp-groups {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__whatsapp-group {
    margin-bottom: var(--space-md);
  }

  .footer__qr-image {
    margin: 0 auto;
  }
}

/* Password Form Styles */
.password-form {
  max-width: 500px;
  margin: var(--space-xxl) auto;
  background: var(--color-bg-white);
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  padding: var(--space-xl);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.password-form__title {
  margin-bottom: var(--space-md);
}

.password-form__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.password-form__field {
  margin-bottom: var(--space-md);
}

.password-form__input {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid #E8E8E8;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.password-form__input:focus {
  outline: none;
  border-color: var(--color-accent-gold-text);
}

.password-form__error {
  color: var(--color-error);
  font-size: 14px;
  margin-top: var(--space-xs);
}

.password-form__submit {
  width: 100%;
}

/* Focus Styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {

  .no-print,
  .header,
  .hero__scroll,
  .cta,
  .menu-toggle-label {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero {
    min-height: auto;
    padding: 20mm 0;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Utility Classes for Template Styles */
.mt-sm {
  margin-top: var(--space-sm);
}

.mt-lg {
  margin-top: var(--space-lg);
}

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

.text-secondary {
  color: var(--color-text-secondary);
}

.footer__section--centered {
  grid-column: 1 / -1;
  text-align: center;
}

.center-with-margin {
  text-align: center;
  margin-top: var(--space-lg);
}
