/* 
  TRILOGIA DA CURA - DESIGN SYSTEM
  Professional: Gislaine Andrade
*/

:root {
  /* Colors */
  --color-sage: #8A9A8A;
  --color-sage-light: #A7B3A7;
  --color-gold: #C5A059;
  --color-gold-light: #D4B67A;
  --color-bg: #F9F9F7;
  --color-text: #2C2C2C;
  --color-text-muted: #666666;
  --color-white: #FFFFFF;
  --color-border: rgba(44, 44, 44, 0.08);
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Typography Scale */
  --fs-h1: clamp(3rem, 10vw, 5.5rem);
  --fs-h2: clamp(2.25rem, 7vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 4vw, 2rem);
  --fs-h4: clamp(1.25rem, 3vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  
  /* Spacing Scale (8px base) */
  --sp-1: 0.5rem;   /* 8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-6: 3rem;     /* 48px */
  --sp-8: 4rem;     /* 64px */
  --sp-12: 6rem;    /* 96px */
  
  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Layout */
  --container-max: 1120px;
  --header-height: 80px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-sage);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin-bottom: var(--sp-2); }

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

ul { list-style: none; }

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

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.section { padding: var(--sp-12) 0; }
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.italic { font-style: italic; }
.font-serif { font-family: var(--font-serif); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Grid System */
.grid {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(249, 249, 247, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}

header.scrolled {
  height: 70px;
  background: rgba(249, 249, 247, 0.95);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-sage);
  display: flex;
  flex-direction: column;
}

.logo span {
  font-size: 0.65rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-top: -4px;
}

nav ul {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}

nav ul li a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition);
}

nav ul li a:hover::after { width: 100%; }

.nav-cta {
  background: var(--color-sage);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--color-sage-light);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-sage);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  gap: 10px;
}

.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-sage-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-sage);
  color: var(--color-sage);
}

.btn-secondary:hover {
  background: rgba(138, 154, 138, 0.05);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero */
.hero {
  padding-top: calc(var(--header-height) + var(--sp-12));
  padding-bottom: var(--sp-12);
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  background: rgba(197, 160, 89, 0.08);
  padding: 8px 16px;
  border-radius: 4px;
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
}

.hero-content h1 {
  margin-bottom: var(--sp-4);
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-8);
  max-width: 600px;
  line-height: 1.5;
}

.hero-btns {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
  padding: var(--sp-2);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 12px solid var(--color-white);
  transition: var(--transition);
}

.hero-image:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

/* Trust Row */
.trust-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: var(--sp-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-muted);
}

.trust-item i { color: var(--color-gold); }

/* Cards */
.card {
  background: var(--color-white);
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(138, 154, 138, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
  margin-bottom: var(--sp-3);
}

.card h3 {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-h3);
}

.card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-1);
}

/* Steps */
.step-item {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-sage);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
}

/* FAQ Accordion */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  width: 100%;
  padding: var(--sp-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content p {
  padding-bottom: var(--sp-3);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-item.active i {
  transform: rotate(180deg);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

/* Footer */
footer {
  background: #f0f0ed;
  padding: var(--sp-12) 0 var(--sp-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-sage);
  margin-bottom: var(--sp-3);
  display: block;
}

.footer-links h4 {
  margin-bottom: var(--sp-4);
  color: var(--color-text);
}

.footer-links ul li {
  margin-bottom: var(--sp-2);
}

.footer-links ul li a {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.footer-links ul li a:hover { color: var(--color-gold); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p { margin: 0 auto var(--sp-6); }
  .hero-btns { justify-content: center; }
  
  .hero-image-wrapper {
    max-width: 400px;
    margin: var(--sp-8) auto 0;
  }
  
  .trust-row {
    flex-direction: column;
    gap: var(--sp-3);
    align-items: center;
  }
}

@media (max-width: 768px) {
  .menu-btn { display: block; }
  
  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background: var(--color-bg);
    overflow: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  nav.active { height: calc(100vh - var(--header-height)); }
  
  nav ul {
    flex-direction: column;
    padding: var(--sp-8);
    gap: var(--sp-4);
  }
  
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); }
}

/* Blog Styles */
.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-1);
  letter-spacing: 0.1em;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.blog-card h3 a:hover {
  color: var(--color-gold);
}

.blog-card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.read-more {
  font-weight: 600;
  color: var(--color-sage);
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: var(--color-gold);
}

/* Blog Post Page */
.post-header {
  padding: calc(var(--header-height) + var(--sp-6)) 0 var(--sp-2);
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.post-header .read-more {
  margin-bottom: var(--sp-2);
}

.post-header h1 {
  display: none;
}

.post-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
  color: var(--color-sage);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--sp-12);
}

.post-content h2, .post-content h3 {
  margin: var(--sp-6) 0 var(--sp-3);
}

.post-content p {
  margin-bottom: var(--sp-4);
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--sp-6) 0;
  width: 100%;
}

.post-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-6);
  margin-top: var(--sp-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
