/* ============================================================
   COMMON.CSS — Kenith Enterprises
   Theme: Premium Heritage + Classic Modern
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --primary: #1F2937;
  --secondary: #374151;
  --accent: #B8860B; /* Dark Goldenrod */
  --highlight: #8B5E34; /* Warm Brown */
  --bg-main: #FAF8F5; /* Off-white / Cream */
  --bg-soft: #F3EFE8; /* Slightly darker cream */
  --bg-dark: #111827;
  
  --text-main: #111827;
  --text-secondary: #6B7280;
  --text-light: #F9FAFB;
  
  --border-color: rgba(31, 41, 55, 0.1);
  --border-gold: rgba(184, 134, 11, 0.3);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  
  --max-width: 1280px;
  --header-height: 90px;
}

/* ── Reset & Global ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-main); background: var(--bg-main); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; background: none; border: none; outline: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
p { margin-bottom: 1.5rem; font-weight: 400; color: var(--text-secondary); }
.serif-italic { font-family: var(--font-heading); font-style: italic; color: var(--accent); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--text-light); }

.divider-gold { width: 60px; height: 2px; background: var(--accent); margin: 20px 0 40px; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ── Header ── */
.ke-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(250, 248, 245, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height); transition: var(--transition-fast);
}
.ke-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.05); height: 75px; }
.ke-nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.ke-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1.8rem; color: var(--primary); letter-spacing: -0.02em; }
.ke-logo span { color: var(--accent); }

.ke-nav-links { display: flex; gap: 40px; align-items: center; }
.ke-nav-links a { font-size: 0.9rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; position: relative; }
.ke-nav-links a:hover, .ke-nav-links a.active { color: var(--accent); }
.ke-nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--accent); transition: var(--transition-fast); }
.ke-nav-links a:hover::after, .ke-nav-links a.active::after { width: 100%; }

.ke-auth { display: flex; align-items: center; gap: 20px; }
.btn-login { font-size: 0.9rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.btn-login:hover { color: var(--accent); }
.btn-register { padding: 12px 24px; background: var(--primary); color: var(--text-light); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: var(--transition-fast); border: 1px solid var(--primary); }
.btn-register:hover { background: transparent; color: var(--primary); }

.ke-user-menu { display: none; align-items: center; gap: 20px; }
.ke-user-menu.active { display: flex; }
.ke-username { font-family: var(--font-heading); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.ke-logout { font-size: 0.85rem; cursor: pointer; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.ke-logout:hover { color: var(--primary); }

.ke-hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.ke-hamburger span { width: 30px; height: 2px; background: var(--primary); transition: 0.3s; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 15px 35px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--text-light); background: var(--primary); border: 1px solid var(--primary); transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 15px 35px; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--primary); background: transparent; border: 1px solid var(--primary); transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.btn-secondary:hover { background: var(--primary); color: var(--text-light); }
.btn-outline-light { border-color: var(--text-light); color: var(--text-light); }
.btn-outline-light:hover { background: var(--text-light); color: var(--primary); }

/* ── UI Elements ── */
.editorial-card { background: #fff; padding: 50px; border-top: 4px solid var(--accent); box-shadow: 0 10px 40px rgba(0,0,0,0.03); }
.subtitle { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 15px; display: block; }

/* ── Footer ── */
.ke-footer { background: var(--bg-dark); color: var(--text-light); padding: 100px 0 40px; }
.ke-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; }
.ke-footer-about p { margin-top: 25px; font-size: 0.95rem; max-width: 320px; color: #9CA3AF; }
.ke-footer h4 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 30px; }
.ke-footer-links { display: flex; flex-direction: column; gap: 15px; }
.ke-footer-links a { color: #9CA3AF; font-size: 0.95rem; }
.ke-footer-links a:hover { color: var(--accent); }
.ke-footer-contact p { font-size: 0.95rem; margin-bottom: 15px; color: #9CA3AF; }
.ke-footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #9CA3AF; }
.ke-footer-legal { display: flex; gap: 30px; }
.ke-footer-legal a:hover { color: #fff; }

/* ── Toast ── */
#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: var(--bg-main); color: var(--primary); padding: 18px 24px; border-left: 4px solid var(--accent); font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,0.1); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Mobile ── */
@media (max-width: 1024px) {
  .ke-nav-links { position: fixed; top: var(--header-height); left: 0; width: 100%; height: calc(100vh - var(--header-height)); background: var(--bg-main); flex-direction: column; justify-content: center; transform: translateY(-100%); opacity: 0; transition: var(--transition-smooth); pointer-events: none; }
  .ke-nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .ke-nav-links a { font-size: 1.2rem; }
  .ke-hamburger { display: flex; }
  .ke-auth { display: none; }
  .ke-footer-grid { grid-template-columns: 1fr; gap: 50px; }
  .ke-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .container { padding: 0 24px; }
}
