/* ======================================================
   ECO GLOW CREATION — BASE STYLES
   Design system & global foundation
   ====================================================== */

/* ---------- CSS VARIABLES / DESIGN TOKENS ---------- */
:root{
  /* Brand palette */
  --gold:#D4AF37;
  --forest:#0F3D2E;
  --graphite:#1C1C1C;
  --ivory:#F6F4EF;
  --leaf:#6FAF8E;

  /* Layout */
  --container: 1120px;
  --radius: 18px;

  /* Effects */
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --shadow-strong: 0 10px 30px rgba(0,0,0,.20);

  /* Borders */
  --border: 1px solid rgba(0,0,0,.10);
  --border-inverse: 1px solid rgba(255,255,255,.16);
}

/* ---------- RESET & BASICS ---------- */
*{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--graphite);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- LAYOUT HELPERS ---------- */
.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

section{
  padding: 56px 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1,h2,h3,h4{
  margin:0;
  line-height:1.2;
}

p{
  margin:0;
}

.muted{
  color: rgba(28,28,28,.68);
}

.gold{ color: var(--gold); }
.leaf{ color: var(--leaf); }

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border: var(--border);
  background: rgba(255,255,255,.55);
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition:
    transform .08s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
}

.btn:active{
  transform: translateY(0);
  box-shadow:none;
}

/* Primary */
.btn-primary{
  background: var(--forest);
  color: var(--ivory);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 30px rgba(15,61,46,.20);
}

.btn-primary:hover{
  background:#0B2F23;
  box-shadow: 0 16px 34px rgba(15,61,46,.22);
}

/* Gold outline */
.btn-outline-gold{
  background: transparent;
  border: 1px solid rgba(212,175,55,.65);
  color: var(--gold);
}

.btn-outline-gold:hover{
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.85);
}

/* ---------- PILLS & TAGS ---------- */
.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.12);
  color: rgba(246,244,239,.86);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(212,175,55,.10);
  font-size:12px;
  font-weight:600;
}

/* ---------- CARDS ---------- */
.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,.65);
  border: var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  padding:18px;
}

/* Dark cards (used in dark sections) */
.dark{
  background: var(--graphite);
  color: var(--ivory);
}

.dark .card{
  background: rgba(246,244,239,.06);
  border: var(--border-inverse);
  box-shadow: var(--shadow-strong);
}

.dark .tag{
  border: 1px solid rgba(212,175,55,.42);
  background: rgba(212,175,55,.10);
  color: rgba(246,244,239,.90);
}

/* ---------- NAV (BASE ONLY) ---------- */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(246,244,239,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* ---------- FOOTER ---------- */
footer{
  background: var(--forest);
  color: rgba(246,244,239,.86);
  padding:34px 0;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* ---------- GRIDS ---------- */
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px){
  .grid2,
  .grid3{
    grid-template-columns: 1fr;
  }

  section{
    padding: 44px 0;
  }
}
