/* ============================================================
   MakeUrWebsite — Global Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --surface:      #f9f9fa;
  --card:         #ffffff;
  --card-hover:   #f0f0f5;
  --border:       #e0e0e0;
  --border-gold:  rgba(201,168,76,0.5);
  --gold:         #c9a84c;
  --gold-light:   #e8c870;
  --gold-dark:    #8a6f2e;
  --gold-glow:    rgba(201,168,76,0.15);
  --gold-glow-md: rgba(201,168,76,0.25);
  --white:        #111111; /* This acts as main text color now */
  --muted:        #666666;
  --muted-light:  #444444;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --shadow-gold: 0 0 30px rgba(201,168,76,0.15), 0 4px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.03em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted-light);
  letter-spacing: 0.02em; transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-auth-link { font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav-auth-link:hover { color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--muted); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 24px; right: 24px; font-size: 2rem; color: var(--muted); cursor: pointer; }
.mobile-close:hover { color: var(--gold); }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000; box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201,168,76,0.45);
}
.btn-outline {
  border: 1px solid var(--border-gold); color: var(--gold); background: transparent;
}
.btn-outline:hover { background: var(--gold-glow); border-color: var(--gold); transform: translateY(-2px); }
.btn-ghost { color: var(--muted-light); padding: 10px 16px; }
.btn-ghost:hover { color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition); overflow: hidden;
}
.card:hover {
  background: var(--card-hover); border-color: var(--border-gold);
  box-shadow: var(--shadow-gold); transform: translateY(-4px);
}

/* ─── Section Labels ─────────────────────────────────────── */
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 540px; line-height: 1.7; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 8px;
}
.form-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; color: var(--white);
  font-size: 0.95rem; transition: var(--transition); outline: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--gold); background: #ffffff; box-shadow: 0 0 0 3px var(--gold-glow); }
.form-input.error { border-color: #e05555; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-radius: var(--radius-md); backdrop-filter: blur(12px);
  font-size: 0.9rem; font-weight: 500; max-width: 340px;
  animation: toastIn 0.4s ease forwards;
}
.toast-success { background: #ffffff; border: 1px solid var(--gold); color: var(--gold-dark); box-shadow: var(--shadow-card); }
.toast-error   { background: #ffffff; border: 1px solid #e05555; color: #e05555; box-shadow: var(--shadow-card); }
.toast-info    { background: #ffffff; border: 1px solid var(--border); color: var(--white); box-shadow: var(--shadow-card); }
@keyframes toastIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.25); color: var(--gold);
}

/* ─── Reveal animation ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Spinner ────────────────────────────────────────────── */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 80px; color: var(--muted); font-size: 0.9rem; }

/* ─── Footer ─────────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.footer-bottom span { color: var(--gold); }

/* ─── Gold divider ───────────────────────────────────────── */
.gold-line { width: 60px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 24px 0; }

/* ─── Page fade ──────────────────────────────────────────── */
.page-fade { animation: pageFadeIn 0.5s ease forwards; }
@keyframes pageFadeIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
