/* ============================================================
   WEDDING-10 | main.css
   Global Variables, Reset & Typography
   "Quiet Luxury" — Deep Emerald & Champagne Gold
   ============================================================ */

/* ── Google Fonts Import ── */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap");

/* ── Design Tokens ── */
:root {
  /* Color: Deep Emerald & Champagne Gold palette */
  --color-bg: #0a1612; /* near-black green */
  --color-bg-2: #0e1e19; /* slightly lighter panel */
  --color-surface: rgba(22, 42, 36, 0.72); /* glass surface */
  --color-surface-2: rgba(30, 58, 48, 0.6);

  /* Emerald family */
  --color-emerald-900: #0a1612;
  --color-emerald-800: #0e1e19;
  --color-emerald-700: #163326;
  --color-emerald-600: #1e4a37;
  --color-emerald-500: #2d6e54;
  --color-emerald-400: #3d9972;
  --color-emerald-300: #67c49a;

  /* Champagne Gold family */
  --color-gold-900: #5a4520;
  --color-gold-700: #9a7a3a;
  --color-gold-500: #c9a340;
  --color-gold-400: #d9b55a;
  --color-gold-300: #e8cc88;
  --color-gold-200: #f0dca8;
  --color-gold-100: #f8f0d8;

  /* Silver Mist for text */
  --color-mist-100: #f4f3f0;
  --color-mist-200: #e2e0da;
  --color-mist-400: #b8b4a8;
  --color-mist-600: #7a7670;

  /* Glass / Border */
  --glass-border: rgba(201, 163, 64, 0.18);
  --glass-border-hover: rgba(201, 163, 64, 0.42);
  --glass-blur: 20px;
  --glass-blur-heavy: 40px;

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Font scale (fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.75rem;
  --text-6xl: 5rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-gold:
    0 0 24px rgba(201, 163, 64, 0.14), 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 48px rgba(61, 153, 114, 0.25);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.45);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
  --duration-xslow: 900ms;

  /* Z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-mist-200);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-700);
  border-radius: var(--radius-full);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-in-out);
}

/* Images */
img,
video {
  max-width: 100%;
  display: block;
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Buttons */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-mist-100);
}

h1 {
  font-size: clamp(2.2rem, 7vw, var(--text-6xl));
  font-style: italic;
}
h2 {
  font-size: clamp(1.8rem, 4.5vw, var(--text-4xl));
}
h3 {
  font-size: clamp(1.25rem, 3vw, var(--text-2xl));
}
h4 {
  font-size: var(--text-xl);
}

p {
  font-size: var(--text-base);
  color: var(--color-mist-400);
  line-height: 1.75;
}

/* ── Utility Classes ── */
.text-center {
  text-align: center;
}
.text-gold {
  color: var(--color-gold-400);
}
.text-serif {
  font-family: var(--font-serif);
}
.italic {
  font-style: italic;
}

/* Gradient text — Champagne Gold */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-gold-200) 0%,
    var(--color-gold-400) 35%,
    var(--color-gold-300) 60%,
    var(--color-gold-100) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gradient text — Emerald */
.gradient-text-emerald {
  background: linear-gradient(
    135deg,
    var(--color-emerald-300) 0%,
    var(--color-gold-400) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold divider */
.gold-divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-400),
    transparent
  );
  margin: var(--space-6) auto;
}
.gold-divider.wide {
  width: 120px;
}

/* Section tag */
.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-400);
  margin-bottom: var(--space-3);
}

/* Section title */
.section-title {
  font-size: clamp(1.6rem, 4vw, var(--text-4xl));
  font-style: italic;
  margin-bottom: var(--space-2);
}

/* Section description */
.section-desc {
  max-width: 520px;
  margin-inline: auto;
  font-size: var(--text-base);
  color: var(--color-mist-400);
}

/* ── Buttons ── */
.btn-gold,
.btn-ghost,
.btn-emerald {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--duration-base) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-gold {
  background: linear-gradient(
    135deg,
    var(--color-gold-500),
    var(--color-gold-700)
  );
  color: var(--color-bg);
  box-shadow: 0 4px 20px rgba(201, 163, 64, 0.3);
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-gold-300),
    var(--color-gold-500)
  );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-in-out);
}
.btn-gold:hover::before {
  opacity: 1;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 163, 64, 0.45);
}
.btn-gold span,
.btn-gold svg {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold-300);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--glass-border-hover);
  background: rgba(201, 163, 64, 0.08);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(
    135deg,
    var(--color-emerald-600),
    var(--color-emerald-800)
  );
  color: var(--color-gold-200);
  border: 1px solid var(--color-emerald-500);
}
.btn-emerald:hover {
  background: linear-gradient(
    135deg,
    var(--color-emerald-500),
    var(--color-emerald-700)
  );
  transform: translateY(-2px);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ── Section spacing ── */
section {
  padding-block: var(--space-20);
}

/* ── Form Controls ── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-mist-200);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  background: rgba(22, 42, 36, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-mist-100);
  outline: none;
  transition:
    border-color var(--duration-fast) var(--ease-in-out),
    box-shadow var(--duration-fast) var(--ease-in-out);
  backdrop-filter: blur(8px);
  resize: vertical;
}
.form-control::placeholder {
  color: var(--color-mist-600);
}
.form-control:focus {
  border-color: var(--color-gold-500);
  box-shadow: 0 0 0 3px rgba(201, 163, 64, 0.15);
}

/* Radio */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-mist-200);
}
.radio-label input[type="radio"] {
  display: none;
}
.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border-hover);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color var(--duration-fast);
}
.radio-custom::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold-400);
  opacity: 0;
  transform: scale(0);
  transition:
    opacity var(--duration-fast),
    transform var(--duration-fast) var(--ease-out-expo);
}
.radio-label input:checked ~ .radio-custom {
  border-color: var(--color-gold-400);
}
.radio-label input:checked ~ .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}

/* ── Responsive breakpoints ── */
@media (max-width: 768px) {
  section {
    padding-block: var(--space-16);
  }
  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding-inline: var(--space-5);
  }
  section {
    padding-block: var(--space-12);
  }
}
