/* ===================================================
   GIFT NAKAYINGA — Global Design System
   giftnakayinga.com
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Jost:wght@200;300;400;500;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  /* Brand Colors */
  --gold:           #C9A84C;
  --gold-light:     #E2C47A;
  --gold-dark:      #9C7A2A;
  --gold-pale:      #F5EDD6;
  --maroon:         #5C1A2E;
  --maroon-deep:    #3A0D1C;
  --maroon-mid:     #7A2840;
  --ivory:          #FAF6EE;
  --ivory-dark:     #F0E8D8;
  --ivory-deeper:   #E8DCC8;
  --charcoal:       #1C1410;
  --charcoal-mid:   #2E2018;
  --warm-gray:      #7A6E64;
  --warm-gray-lt:   #B0A898;
  --white:          #FFFFFF;
  --black:          #000000;

  /* Semantic tokens */
  --color-primary:        var(--gold);
  --color-primary-dark:   var(--gold-dark);
  --color-secondary:      var(--maroon);
  --color-bg:             var(--ivory);
  --color-bg-alt:         var(--ivory-dark);
  --color-text:           var(--charcoal);
  --color-text-muted:     var(--warm-gray);
  --color-accent:         var(--gold-light);
  --color-surface:        var(--white);

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl:  10rem;

  /* Typography Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.375rem;
  --text-xl:    1.75rem;
  --text-2xl:   2.25rem;
  --text-3xl:   3rem;
  --text-4xl:   4rem;
  --text-5xl:   5.5rem;
  --text-hero:  7rem;

  /* Layout */
  --max-width:         1280px;
  --max-width-narrow:  900px;
  --max-width-text:    680px;
  --nav-height:        80px;

  /* Borders & Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(92,26,46,0.08);
  --shadow-md:   0 8px 40px rgba(92,26,46,0.14);
  --shadow-lg:   0 20px 80px rgba(28,20,16,0.25);
  --shadow-gold: 0 4px 30px rgba(201,168,76,0.3);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 0.2s;
  --duration-mid:  0.4s;
  --duration-slow: 0.7s;

  /* Z-Index Layers */
  --z-base:    1;
  --z-float:   10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-nav:     500;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ===== TYPOGRAPHY ===== */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
}

/* ===== LAYOUT HELPERS ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section--lg {
  padding: var(--space-2xl) 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  transition: all var(--duration-mid) var(--ease-smooth);
  white-space: nowrap;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border: 1.5px solid var(--gold);
}
.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.btn--outline-ivory {
  background: transparent;
  color: var(--ivory);
  border: 1.5px solid rgba(250,246,238,0.6);
}
.btn--outline-ivory:hover {
  background: rgba(250,246,238,0.1);
  border-color: var(--ivory);
  transform: translateY(-2px);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.btn--maroon {
  background: var(--maroon);
  color: var(--ivory);
  border: 1.5px solid var(--maroon);
}
.btn--maroon:hover {
  background: var(--maroon-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== DECORATIVE ===== */
.gold-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: var(--space-sm) auto;
}

.gold-line--left {
  margin-left: 0;
}

.text-gold { color: var(--gold); }
.text-maroon { color: var(--maroon); }
.text-ivory { color: var(--ivory); }
.text-muted { color: var(--color-text-muted); }

/* ===== GRAIN OVERLAY TEXTURE ===== */
.grain-overlay {
  position: relative;
}
.grain-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }
.delay-5 { transition-delay: 0.65s; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(250,246,238,0.1);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-footer {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--warm-gray-lt);
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--warm-gray-lt);
  transition: color var(--duration-fast);
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm-gray-lt);
  transition: all var(--duration-fast);
  font-size: 0.85rem;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--warm-gray);
  letter-spacing: 0.05em;
}

/* ===== OVERLAY / MODAL BASE ===== */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,20,16,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-mid) var(--ease-smooth);
}
.overlay-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

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

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --text-hero: 5rem;
    --text-5xl: 4rem;
    --text-4xl: 3rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  :root {
    --text-hero: 3.5rem;
    --text-5xl: 3rem;
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }
  .container {
    padding: 0 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .btn {
    padding: 0.85rem 2rem;
    font-size: var(--text-xs);
  }
}
