/* ============================================================
   NUVILO — Global Stylesheet
   Brand: Terracotta #C36A4A · Beige #F5F5DC
   ============================================================ */

:root {
  --terracotta:       #C36A4A;
  --terracotta-dark:  #A8552D;
  --terracotta-light: #D4845F;
  --terracotta-faint: #FAF0EB;
  --beige:            #F5F5DC;
  --beige-dark:       #EAE9C4;
  --beige-mid:        #E8E7C8;
  --cream:            #FDFCF7;
  --charcoal:         #1E1A17;
  --charcoal-mid:     #3B2F28;
  --text-body:        #4A3728;
  --text-muted:       #8A7060;
  --border:           #E8DDD4;
  --white:            #FFFFFF;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--white);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
.font-heading { font-family: 'Sora', sans-serif; }
.font-700     { font-weight: 700; }
.font-800     { font-weight: 800; }
.font-600     { font-weight: 600; }
.font-300     { font-weight: 300; }

/* ---- Gradient text ---- */
.text-gradient {
  background: linear-gradient(135deg, var(--terracotta) 0%, #D4845F 50%, #C36A4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section badge ---- */
.section-badge {
  display: inline-block;
  background: var(--terracotta-faint);
  color: var(--terracotta);
  border: 1px solid rgba(195,106,74,0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

/* ---- Navbar ---- */
#navbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  border-color: var(--border);
  box-shadow: 0 2px 20px rgba(195,106,74,0.06);
}
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-body);
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--terracotta); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---- Hero gradients & blobs ---- */
.hero-gradient {
  background: linear-gradient(160deg,
    var(--cream) 0%,
    #FDF6F1 40%,
    var(--beige) 100%
  );
}
.blob-1 {
  background: radial-gradient(ellipse, rgba(195,106,74,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.blob-2 {
  background: radial-gradient(ellipse, rgba(195,106,74,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.dot-pattern {
  background-image: radial-gradient(circle, var(--terracotta) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Phone mockup ---- */
.phone-mockup {
  border-radius: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.phone-mockup:hover { transform: translateY(-8px) rotate(-1deg); }

/* ---- Map bg placeholder ---- */
.map-bg {
  background: linear-gradient(135deg, #e8f4e8 0%, #d4e8d4 100%);
}
.map-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---- Store buttons ---- */
.store-btn {
  text-decoration: none;
}

/* ---- Feature icon ---- */
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Social icons (footer) ---- */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255,255,255,0.07);
  color: #9CA3AF;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-icon:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* ---- FAQ ---- */
.faq-btn { cursor: pointer; background: none; border: none; }
.faq-btn[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { animation: fadeDown 0.25s ease; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ---- Animations ---- */
@keyframes ping-slow {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
  50%       { transform: translate(-50%,-50%) scale(1.7); opacity: 0; }
}
.animate-ping-slow { animation: ping-slow 2.4s ease-in-out infinite; }

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }

/* ---- Legal pages ---- */
.legal-content h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--charcoal);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--terracotta-faint);
}
.legal-content h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--charcoal-mid);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.legal-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.legal-content ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 600;
}
.legal-content a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--terracotta-dark); }

/* ---- Contact form ---- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder { color: #C4AFA6; }
.form-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(195,106,74,0.1);
}
textarea.form-input { resize: vertical; min-height: 140px; }

/* ---- Tailwind overrides for brand colours ---- */
/* Used inline via style="" where Tailwind can't reach */

/* ---- Responsive helpers ---- */
@media (max-width: 640px) {
  .phone-mockup:hover { transform: none; }
}

/* ---- Print ---- */
@media print {
  #navbar, footer { display: none; }
  .legal-content { color: #000; }
}


