/* ==========================================================================
   LIVIO DESIGNS — CORE STYLES & DESIGN SYSTEM
   Venture under JSN CREATIVE
   Aesthetic: Clean, Editorial-Calm, Restrained Studio Portfolio
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Color Palette — Soft Modern Pastels & Slate */
  --bg-canvas: #FAF9F6;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3F4F6;
  --bg-dark: #0F172A;
  --bg-dark-elevated: #1E293B;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;

  --border-color: #E2E8F0;
  --border-soft: rgba(0, 0, 0, 0.06);
  --border-dark: #334155;
  --border-active: #0F172A;

  /* Soft Pastel Tokens */
  --soft-lavender: #F5F3FF;
  --soft-lavender-border: #DDD6FE;
  --soft-lavender-text: #6D28D9;

  --soft-mint: #ECFDF5;
  --soft-mint-border: #A7F3D0;
  --soft-mint-text: #047857;

  --soft-peach: #FFF7ED;
  --soft-peach-border: #FED7AA;
  --soft-peach-text: #C2410C;

  --soft-sky: #F0F9FF;
  --soft-sky-border: #BAE6FD;
  --soft-sky-text: #0369A1;

  --soft-rose: #FFF1F2;
  --soft-rose-border: #FECDD3;
  --soft-rose-text: #BE123C;

  --soft-slate: #F8FAFC;
  --soft-slate-border: #CBD5E1;
  --soft-slate-text: #1E293B;

  --accent-whatsapp: #25D366;
  --accent-whatsapp-dark: #059669;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing & Radii */
  --wrap-max: 1240px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw + 0.2rem, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout Utilities */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .wrap {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-full);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-canvas);
  z-index: 99;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  border-bottom: 1px solid var(--border-color);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.mobile-nav-link.active {
  color: var(--accent-blue);
}

.mobile-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: #27272A;
  border-color: #27272A;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
}

.btn-accent:hover {
  background-color: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-whatsapp {
  background-color: #128C7E;
  color: #FFFFFF;
  border-color: #128C7E;
}

.btn-whatsapp:hover {
  background-color: #0F766E;
  border-color: #0F766E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.25);
}

/* Top Scroll Progress Line */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6D28D9, #059669, #0369A1, #BE123C);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Badges & Spec Tags — Soft Pastel System */
.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-lavender {
  background-color: var(--soft-lavender);
  border-color: var(--soft-lavender-border);
  color: var(--soft-lavender-text);
}

.badge-mint {
  background-color: var(--soft-mint);
  border-color: var(--soft-mint-border);
  color: var(--soft-mint-text);
}

.badge-peach {
  background-color: var(--soft-peach);
  border-color: var(--soft-peach-border);
  color: var(--soft-peach-text);
}

.badge-sky {
  background-color: var(--soft-sky);
  border-color: var(--soft-sky-border);
  color: var(--soft-sky-text);
}

.badge-rose {
  background-color: var(--soft-rose);
  border-color: var(--soft-rose-border);
  color: var(--soft-rose-text);
}

.badge-slate {
  background-color: var(--soft-slate);
  border-color: var(--soft-slate-border);
  color: var(--soft-slate-text);
}

/* Section Header Component */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .spec-tag {
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
  max-width: 680px;
}

/* Card System */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-active);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-subtle);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.75rem;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Component */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border-dark);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.footer-col .brand-name {
  color: var(--text-light);
}

.footer-col .brand-sub {
  color: var(--text-light-muted);
}

.footer-desc {
  color: var(--text-light-muted);
  font-size: 0.95rem;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-light-muted);
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom span a {
  color: var(--text-light);
  font-weight: 600;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
