/* Global Styles */

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

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

body {
  font-family: var(--font-secondary);
  font-size: var(--body-regular);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--h1-size);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-normal);
}

a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--link-hover);
}

strong {
  font-weight: var(--weight-semibold);
}

em {
  font-style: italic;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-secondary);
  font-size: var(--body-regular);
  font-weight: var(--weight-medium);
  text-align: center;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--button-primary);
  color: var(--button-text);
  border-color: var(--button-primary);
}

.btn-primary:hover {
  background-color: var(--button-hover);
  border-color: var(--button-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  background-color: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
  transform: none;
}

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

.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--button-text);
  transform: translateY(-2px);
}

/* Forms */
input,
textarea,
select {
  font-family: var(--font-secondary);
  font-size: var(--body-regular);
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--card-background);
  transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.6s ease-in-out;
}

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

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--focus-outline);
  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;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  body {
    font-size: var(--body-regular);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .page-header {
    padding: calc(60px + 1.5rem) var(--space-md) var(--space-xl);
  }
}

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

  .page-header {
    padding: calc(60px + 1rem) 1.25rem var(--space-lg);
  }

  .page-header-floral {
    display: none;
  }

  .footer {
    padding: var(--space-xl) var(--space-md);
  }
}

/* ── Global Footer ── */
.footer {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--card-background);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  font-family: var(--font-secondary);
  font-size: var(--body-regular);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.footer-names {
  font-family: var(--font-primary);
  font-size: var(--body-large);
  color: var(--text-primary);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-spacing-normal);
}

.footer-date {
  font-family: var(--font-secondary);
  font-size: var(--body-small);
  color: var(--text-secondary);
  margin: 0;
}

/* ── Page Header Floral Decorations ── */
.page-header {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-2xl);
  text-align: center;
  background: var(--card-background);
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  font-weight: var(--weight-regular);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-family: var(--font-secondary);
  font-size: var(--body-large);
  color: var(--text-secondary);
  letter-spacing: var(--letter-spacing-normal);
  margin: 0;
}

.page-header-floral {
  position: absolute;
  width: 220px;
  height: 440px;
  background-image: url('../images/rumdul-flowers.png');
  background-image: -webkit-image-set(url('../images/rumdul-flowers.webp') 1x);
  background-image: image-set(url('../images/rumdul-flowers.webp') type('image/webp'), url('../images/rumdul-flowers.png') type('image/png'));
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.page-header-floral.left {
  left: -30px;
  transform: translateY(-50%) scaleX(-1);
  background-position: left center;
}

.page-header-floral.right {
  right: -30px;
  background-position: right center;
}

@media (max-width: 768px) {
  .page-header-floral {
    width: 140px;
    height: 280px;
    opacity: 0.08;
  }
}
.event-icon,
.quick-link-icon,
.message-icon,
.charity-icon {
  color: var(--text-primary);
  opacity: 0.7;
}

.section-title .icon {
  color: var(--text-primary);
  opacity: 0.6;
  margin-right: 0.4em;
  font-size: 0.85em;
  vertical-align: middle;
}

.detail-icon {
  color: var(--accent);
  opacity: 0.8;
  font-size: 0.9em;
}

.travel-icon {
  color: var(--text-primary);
  opacity: 0.7;
}