/* ============================================
   MELANI KRISMONICA — Main Stylesheet
   ============================================ */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1512;
  --muted: #6b6560;
  --accent: #c8813a;
  --accent-light: #f0e0cc;
  --accent-dark: #a0622a;
  --border: #e8e2da;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ---- HERO ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 80px 32px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}

.hero-bg {
  position: fixed;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }

.btn-ghost {
  color: var(--text);
  padding: 14px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-light); color: var(--text); }

.hero-visual {
  flex: 1;
  max-width: 420px;
  z-index: 1;
  animation: fadeUp 0.7s 0.15s ease both;
}

.browser-mock {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.browser-bar {
  background: #f0ece6;
  padding: 12px 16px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.browser-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #d0cac3;
}
.browser-bar span:first-child { background: #fc6d5a; }
.browser-bar span:nth-child(2) { background: #fdbc40; }
.browser-bar span:nth-child(3) { background: #33c748; }

.browser-body { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }

.mock-hero-block {
  height: 100px;
  background: linear-gradient(135deg, var(--accent-light), #f9e8d5);
  border-radius: 10px;
  animation: shimmer 2.5s infinite;
}
.mock-text-block {
  height: 12px;
  background: var(--border);
  border-radius: 6px;
  width: 85%;
}
.mock-text-block.short { width: 55%; }
.mock-btn-block {
  height: 36px;
  background: var(--accent);
  border-radius: 50px;
  width: 40%;
  opacity: 0.8;
}

/* ---- SECTIONS ---- */
.section { padding: 88px 0; }
.section-alt { background: #f5f1ec; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
  color: var(--text);
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- SERVICE CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---- BENEFITS ---- */
.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit h4 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}
.benefit p { color: var(--muted); font-size: 0.93rem; }

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  line-height: 1;
}

.price-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pricing-card ul li {
  font-size: 0.93rem;
  color: var(--text);
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.testimonial > p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- FORM ---- */
.lead-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}
.form-check input { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

.btn-full { width: 100%; border: none; cursor: pointer; font-family: var(--font-body); font-size: 1rem; }

.form-success {
  text-align: center;
  margin-top: 16px;
  color: #2e7d32;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--text);
  color: #c8c0b8;
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer .nav-logo { color: #f0e8de; }

.footer-brand p {
  font-size: 0.9rem;
  color: #9a938c;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #9a938c;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-addr {
  font-size: 0.82rem;
  color: #6b6560;
  max-width: 400px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.8rem;
  color: #5a5550;
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--text);
  color: #f0e8de;
  padding: 18px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}

.cookie-banner p { flex: 1; }
.cookie-banner a { color: var(--accent); }

.cookie-banner button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.cookie-banner button:last-child {
  background: transparent;
  border: 1.5px solid #5a5550;
  color: #c8c0b8;
}
.cookie-banner button:last-child:hover { border-color: #9a938c; }

/* ---- PAGE HEADING (for terms/privacy) ---- */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.page-hero p { color: var(--muted); }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: var(--text);
  line-height: 1.8;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 40px 0 12px;
}
.prose p { margin-bottom: 16px; color: var(--muted); }
.prose ul { margin: 0 0 16px 24px; color: var(--muted); }
.prose ul li { margin-bottom: 6px; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
    gap: 20px;
  }

  .hero { flex-direction: column; padding: 60px 24px 40px; min-height: auto; }
  .hero-visual { max-width: 100%; width: 100%; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }

  .benefits { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 28px 20px; }

  .cookie-banner { bottom: 12px; left: 12px; right: 12px; }
}
