/* ============================================================
   GOLDEN DECORS — Main CSS
   Design System: Tokens + Global Styles + Typography
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  /* Brand Colors */
  --gold-light:       #F5D76E;
  --gold:             #D4AF37;
  --gold-dark:        #C9A84C;
  --gold-deep:        #A8892D;
  --gold-muted:       #E8D5B0;

  /* Dark Palette */
  --dark-900:         #0D0D14;
  --dark-800:         #1A1A2E;
  --dark-700:         #16213E;
  --dark-600:         #22223B;

  /* Neutral / Warm */
  --cream:            #FAF7F2;
  --warm-white:       #F5EFE6;
  --warm-100:         #EDE0CC;
  --warm-200:         #D9C9A8;

  /* Text */
  --text-primary:     #2C2416;
  --text-secondary:   #5A4E3A;
  --text-muted:       #8A7E6E;
  --text-light:       #FAF7F2;
  --text-gold:        #D4AF37;

  /* UI */
  --white:            #FFFFFF;
  --border:           rgba(212, 175, 55, 0.25);
  --border-light:     rgba(212, 175, 55, 0.12);
  --shadow-sm:        0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:        0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:        0 20px 60px rgba(0,0,0,0.18);
  --shadow-gold:      0 8px 32px rgba(212,175,55,0.20);

  /* Radius */
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        20px;
  --radius-xl:        32px;
  --radius-full:      9999px;

  /* Spacing */
  --section-py:       100px;
  --container-max:    1280px;
  --gap-xs:           8px;
  --gap-sm:           16px;
  --gap-md:           24px;
  --gap-lg:           40px;
  --gap-xl:           64px;

  /* Transitions */
  --trans-fast:       0.2s ease;
  --trans-base:       0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:       0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-sans:        'Inter', system-ui, sans-serif;
  --font-accent:      'Montserrat', system-ui, sans-serif;
  --font-base:        16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-fast);
}

ul, ol { list-style: none; }

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

/* ---- LAYOUT ----------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-py) 0;
}

.section-sm {
  padding: 60px 0;
}

/* ---- SECTION HEADER --------------------------------------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--gold-dark);
  font-style: italic;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-tag {
  justify-content: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--trans-base);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--trans-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark-800);
  box-shadow: 0 4px 20px rgba(212,175,55,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark-800);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-800);
  color: var(--text-light);
  border: 1px solid var(--border);
}

.btn-dark:hover {
  background: var(--dark-700);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 0.9rem;
}

/* ---- GOLD DIVIDER ----------------------------------------- */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gold-divider span {
  color: var(--gold);
  font-size: 1.2rem;
}

/* ---- BADGE ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(212,175,55,0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(212,175,55,0.3);
}

.badge-dark {
  background: var(--dark-800);
  color: var(--gold-light);
}

/* ---- SCROLLBAR ------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ---- SELECTION ------------------------------------------- */
::selection {
  background: var(--gold-dark);
  color: var(--dark-800);
}

/* ---- UTILITY CLASSES ------------------------------------- */
.text-gold     { color: var(--gold); }
.text-center   { text-align: center; }
.text-muted    { color: var(--text-muted); }
.italic        { font-style: italic; }

.bg-dark       { background: var(--dark-800); }
.bg-cream      { background: var(--cream); }
.bg-warm       { background: var(--warm-white); }

.flex          { display: flex; }
.flex-center   { display: flex; align-items: center; justify-content: center; }
.gap-sm        { gap: var(--gap-sm); }
.gap-md        { gap: var(--gap-md); }

.grid-2        { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-md); }
.grid-3        { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.grid-4        { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }

.mb-sm         { margin-bottom: var(--gap-sm); }
.mb-md         { margin-bottom: var(--gap-md); }
.mb-lg         { margin-bottom: var(--gap-lg); }

/* ---- DARK SECTION OVERRIDES ------------------------------ */
.dark-section {
  background: var(--dark-800);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--text-light);
}

.dark-section p {
  color: rgba(250,247,242,0.7);
}

.dark-section .section-title {
  color: var(--text-light);
}

/* ---- AOS ANIMATION OVERRIDES ----------------------------- */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ---- RESPONSIVE BREAKPOINTS ------------------------------ */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-py: 60px; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  :root { --section-py: 48px; }
  .btn { padding: 12px 24px; }
  .btn-lg { padding: 14px 32px; }
}
