/* =============================================
   Variables
   ============================================= */
:root {
  /* Colors - Brand Palette (Polish luxury event feel) */
  --color-background: #f7f3eb; /* ivory / warm light */
  --color-surface: #ffffff;
  --color-surface-soft: #faf6f0;

  --color-text: #1f2733; /* deep elegant navy */
  --color-text-soft: #4a5563;
  --color-text-muted: #6b7280;

  --color-primary: #c89b3c; /* champagne gold */
  --color-primary-soft: #e4c985;
  --color-primary-dark: #9b7730;

  --color-accent-blue: #7489b6; /* dusty blue */
  --color-accent-copper: #c26a3d; /* warm copper */

  --color-success: #269f76;
  --color-warning: #e5a437;
  --color-danger: #c0392b;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px converted to rem for flexibility) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (soft, luxury / glassmorphism friendly) */
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-glass: 0 18px 60px rgba(15, 23, 42, 0.25);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;

  /* Layout */
  --container-max-width: 1200px;
  --header-height: 72px;
}

/* =============================================
   Reset / Normalize
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Remove animations if user prefers 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;
  }
}

/* =============================================
   Base Styles
   ============================================= */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--color-text-soft);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

a {
  color: var(--color-primary-dark);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-copper);
}

strong {
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin: var(--space-8) 0;
}

/* =============================================
   Accessibility & Focus
   ============================================= */
:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

/* 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;
}

/* =============================================
   Utilities
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section--tight {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .hidden-md-up {
    display: none !important;
  }
}

/* Subtle editorial divider used under headings */
.underline-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.35rem;
}

.underline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-copper));
  border-radius: var(--radius-pill);
}

/* =============================================
   Components - Buttons
   ============================================= */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-dark);
  --btn-color: #ffffff;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-color)!important;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
  box-shadow: 0 10px 25px rgba(200, 155, 60, 0.35);
}

.btn:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(171, 123, 45, 0.45);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(171, 123, 45, 0.3);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.06);
  --btn-color: var(--color-text);
  --btn-border: rgba(31, 39, 51, 0.14);
  box-shadow: none;
}

.btn--light {
  --btn-bg: #ffffff;
  --btn-bg-hover: #f5f5f5;
  --btn-color: var(--color-text);
  --btn-border: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-soft);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.14);
  --btn-color: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.btn--icon-right svg,
.btn--icon-left svg {
  width: 1rem;
  height: 1rem;
}

/* CTA ribbon style for newsletter / invitations */
.btn--rsvp {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-copper));
  box-shadow: 0 18px 40px rgba(138, 84, 27, 0.45);
}

/* =============================================
   Components - Form Controls
   ============================================= */
.label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-muted);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(116, 137, 182, 0.35);
  background-color: #ffffff;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--color-danger);
}

.form-help {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* =============================================
   Components - Card
   ============================================= */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.96));
  box-shadow: var(--shadow-soft);
  padding: var(--space-6);
  overflow: hidden;
}

.card--elevated {
  box-shadow: var(--shadow-medium);
}

.card--outline {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  border: 1px solid rgba(200, 155, 60, 0.18);
}

.card__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* Glassmorphism variant for header / floating CTA */
.card--glass {
  background: linear-gradient(120deg, rgba(247, 243, 235, 0.7), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-glass);
}

/* =============================================
   Components - Header & Announcement Bar (structure only)
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header--glass {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(120deg, rgba(247, 243, 235, 0.86), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.announcement-bar {
  background: linear-gradient(90deg, rgba(200, 155, 60, 0.08), rgba(116, 137, 182, 0.1));
  color: var(--color-text);
  font-size: var(--font-size-sm);
  padding: 0.4rem 0;
}

.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

/* =============================================
   Components - Badges & Pills (for formats, tags)
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(31, 39, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-muted);
}

.badge--accent {
  border-color: rgba(200, 155, 60, 0.35);
  background: linear-gradient(135deg, rgba(200, 155, 60, 0.1), rgba(194, 106, 61, 0.08));
  color: var(--color-primary-dark);
}

/* =============================================
   Components - Media / Gallery helpers
   ============================================= */
.media-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--rounded {
  border-radius: 999px;
}

/* Light hover zoom for gallery thumbnails */
.media-hover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.media-hover img {
  transition: transform 500ms ease, filter 500ms ease;
}

.media-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(252, 249, 245, 0.05), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.media-hover:hover img {
  transform: scale(1.04);
  filter: saturate(1.12);
}

.media-hover:hover::after {
  opacity: 1;
}

/* =============================================
   Components - Testimonial / Quote
   ============================================= */
.quote {
  font-family: var(--font-serif);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.quote::before {
  content: "\201E"; /* low-9 quotation mark for Polish */
  font-size: 2.5rem;
  margin-right: 0.25rem;
  vertical-align: top;
  color: var(--color-primary);
}

.quote-author {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

/* =============================================
   Motion helpers (for cards, hero elements)
   ============================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-soft {
  animation: float-soft 9s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}
