/* ============================================================
   WEDDING-11 | main.css
   Global Variables, Reset & Typography
   "Ivory Glass" — Light Glassmorphism, Rose-Gold & Sage
   ============================================================ */

/* ── 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: Ivory base */
  --color-bg: #faf6f0;
  --color-bg-2: #f3ebe0;
  --color-surface: rgba(255, 255, 255, 0.58);
  --color-surface-2: rgba(255, 255, 255, 0.78);
  --color-surface-strong: rgba(255, 255, 255, 0.88);

  /* Rose-Gold family (primary accent) */
  --color-rose-900: #5c4128;
  --color-rose-700: #9c6f45;
  --color-rose-500: #c9a87c;
  --color-rose-400: #d8bd98;
  --color-rose-300: #e6d3b8;
  --color-rose-200: #f0e4d2;
  --color-rose-100: #f8f1e7;

  /* Sage family (secondary accent) */
  --color-sage-800: #414f3a;
  --color-sage-700: #5c6e52;
  --color-sage-600: #71835f;
  --color-sage-500: #8b9c7a;
  --color-sage-300: #b9c6ac;

  /* Ink (text) family — warm charcoal, never pure black */
  --color-ink-900: #2a2520;
  --color-ink-700: #4c4438;
  --color-ink-500: #6e6455;
  --color-ink-300: #9c9184;
  --color-ink-100: #ffffff;

  /* Glass / Border */
  --glass-border: rgba(156, 111, 69, 0.22);
  --glass-border-hover: rgba(156, 111, 69, 0.45);
  --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 — soft & warm, never harsh black */
  --shadow-accent:
    0 0 24px rgba(201, 168, 124, 0.22), 0 2px 8px rgba(87, 65, 40, 0.06);
  --shadow-glow: 0 0 48px rgba(139, 156, 122, 0.2);
  --shadow-card: 0 8px 32px rgba(87, 65, 40, 0.1);

  /* 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-ink-700);
  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-rose-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-ink-900);
}

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-ink-500);
  line-height: 1.75;
}

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

/* Gradient text — Rose Gold */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-rose-900) 0%,
    var(--color-rose-700) 45%,
    var(--color-sage-700) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gradient text — Sage */
.gradient-text-sage {
  background: linear-gradient(
    135deg,
    var(--color-sage-700) 0%,
    var(--color-rose-700) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Accent divider */
.gold-divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-rose-700),
    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-rose-700);
  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-ink-500);
}

/* ── 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-rose-500),
    var(--color-rose-700)
  );
  color: var(--color-ink-100);
  box-shadow: 0 4px 20px rgba(156, 111, 69, 0.28);
}
.btn-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-rose-400),
    var(--color-rose-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(156, 111, 69, 0.4);
}
.btn-gold span,
.btn-gold svg {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  color: var(--color-rose-900);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(
    135deg,
    var(--color-sage-500),
    var(--color-sage-700)
  );
  color: var(--color-ink-100);
  border: 1px solid var(--color-sage-600);
}
.btn-emerald:hover {
  background: linear-gradient(
    135deg,
    var(--color-sage-300),
    var(--color-sage-500)
  );
  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-ink-700);
  margin-bottom: var(--space-2);
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  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-ink-900);
  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-ink-300);
}
.form-control:focus {
  border-color: var(--color-rose-500);
  box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.18);
}

/* 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-ink-700);
}
.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-rose-700);
  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-rose-700);
}
.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);
  }
}
