/* ============================================
   Rupava — Warm & Earthy Design System
   ============================================ */

:root {
  --color-bg: #f7f4f0;
  --color-bg-warm: #efe9e1;
  --color-bg-card: #f8f6f3;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-muted: #8a8279;
  --color-text-faint: #b5aa9e;
  --color-accent: #c5705d;
  --color-accent-hover: #b3614f;
  --color-accent-soft: #d4856f;
  --color-border: #e5e0d8;
  --color-border-dashed: #d5cfc6;
  --color-footer-bg: #2d2a26;
  --color-footer-text: #a09889;

  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --max-width: 960px;
  --section-padding: 96px 32px;
  --section-padding-sm: 64px 24px;
}

/* ---- Reset & Base ---- */

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

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

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

/* ---- Typography ---- */

.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.heading--hero {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.5px;
}

.heading--section {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-top: 12px;
}

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

.text-faint {
  color: var(--color-text-faint);
}

/* ---- Layout ---- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.section {
  padding: var(--section-padding);
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
  font-weight: 500;
}

.nav__link:hover {
  color: var(--color-accent);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 80px 32px 72px;
  text-align: center;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-warm) 50%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 112, 93, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 112, 93, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 20px auto 40px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(197, 112, 93, 0.25);
}

.hero__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(197, 112, 93, 0.35);
}

/* ---- Divider ---- */

.divider {
  width: 48px;
  height: 2px;
  background: var(--color-border);
  margin: 0 auto;
}

/* ---- Products ---- */

.products {
  background: var(--color-surface);
  padding: 72px 32px;
  text-align: center;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  text-align: left;
  transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(45, 42, 38, 0.08);
  border-color: var(--color-accent-soft);
  transform: translateY(-2px);
}

.product-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.product-card__badge {
  display: inline-block;
  margin-top: 14px;
  background: var(--color-accent);
  color: #fff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

a.product-card {
  display: flex;
  cursor: pointer;
}

a.product-card:hover .product-card__badge {
  background: var(--color-accent-hover);
}

.product-placeholder {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  color: var(--color-text-faint);
  font-size: 14px;
  font-style: italic;
  margin-top: 16px;
}

/* ---- Contact ---- */

.contact {
  background: var(--color-bg-warm);
  padding: 72px 32px;
  text-align: center;
}

.contact__text {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.contact__email {
  display: inline-block;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
}

.contact__email:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent-hover);
}

/* ---- Footer ---- */

.footer {
  background: var(--color-footer-bg);
  padding: 36px 32px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__copy {
  font-size: 13px;
  color: var(--color-footer-text);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__link {
  font-size: 13px;
  color: var(--color-footer-text);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #fff;
}

/* ---- Terms Page ---- */

.terms {
  background: var(--color-surface);
  padding: var(--section-padding);
}

.terms__content {
  max-width: 680px;
  margin: 0 auto;
}

.terms__content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-bottom: 8px;
}

.terms__content .terms__updated {
  font-size: 14px;
  color: var(--color-text-faint);
  margin-bottom: 48px;
}

.terms__content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.terms__content p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.terms__content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.terms__content li {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .section {
    padding: var(--section-padding-sm);
  }

  .hero {
    padding: 64px 24px 56px;
  }

  .nav__inner {
    padding: 16px 24px;
  }

  .nav__links {
    gap: 20px;
  }

  .nav__link {
    font-size: 13px;
  }

  .product-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .terms {
    padding: var(--section-padding-sm);
  }

  .terms__content h2 {
    margin-top: 32px;
  }
}
