/* 
  Dr. Iuri Sena - Design System & Styles
  Version: 1.0
*/

:root {
  --primary: #8E1619; /* Deep Burgundy */
  --primary-light: #A41D21;
  --primary-dark: #5F0D0E;
  --accent: #D4AF37; /* Gold/Champagne accent */
  --bg-white: #FFFFFF;
  --bg-soft: #FDFBFA; /* Warm off-white */
  --bg-light: #F7F3F0; /* Soft sand */
  --bg-dark: #1A1A1A;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text-main: #2D2D2D;
  --text-muted: #5E5E5E;
  --text-light: #8E8E8E;
  --text-white: #FFFFFF;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 32px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px rgba(142, 22, 25, 0.08);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.1);
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--primary);
  color: var(--text-white);
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  line-height: 1.7; /* Improved readability */
  background-color: var(--bg-soft); /* Luxury background */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Refinement */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em; /* Tight letter spacing for luxury feel */
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); } /* Responsive typography */
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }

p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section {
  padding: 12rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

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

.text-center { text-align: center; }

/* Enhanced Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem;
  border-radius: var(--radius-sm); /* Sharper look for luxury */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-premium);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9rem;
  border-left: 1px solid #ddd;
  padding-left: 0.8rem;
}

/* Hero Section */
.hero {
  padding: 12rem 0 8rem;
  background: 
    radial-gradient(circle at 10% 20%, rgba(142, 22, 25, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-light);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  border: 1px solid rgba(142, 22, 25, 0.1);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 2rem;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero-content p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 85%;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-content p {
    max-width: 100%;
  }
}

.hero-image {
  position: relative;
  border-radius: 60px 20px 60px 20px; /* Asymmetrical radius for luxury feel */
  padding: 1.5rem;
  background: white;
  box-shadow: var(--shadow-premium);
  transform: perspective(1000px) rotateY(-5deg); /* Subtle 3D tilt */
  transition: var(--transition);
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image img {
  width: 100%;
  border-radius: 45px 15px 45px 15px;
  display: block;
  object-fit: cover;
}

@media (max-width: 992px) {
  .hero-image {
    transform: none !important;
    border-radius: 30px 10px 30px 10px;
  }
  .hero-image img {
    border-radius: 20px 8px 20px 8px;
  }
}

/* Pulsing Animation */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(193, 18, 31, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(193, 18, 31, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(193, 18, 31, 0); }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Specialties Section */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Process Section (New UI Pattern) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
  opacity: 0.2;
}

@media (max-width: 992px) {
  .process-step::after {
    top: auto;
    right: auto;
    bottom: -2rem;
    left: 50%;
    width: 1px;
    height: 2rem;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--primary), transparent);
  }
}

.process-step:last-child::after { display: none; }

.step-number {
  width: 80px;
  height: 80px;
  background: var(--bg-white);
  border: 1px solid rgba(142, 22, 25, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-subtle);
}

/* Specialties Bento Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 5rem;
}

@media (max-width: 1200px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  padding: 4rem 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

.card:hover {
  transform: translateY(-20px);
  background: white;
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* About Image Container */
.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-premium);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
}

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  position: relative;
  padding-bottom: 1rem;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
}

@media (max-width: 768px) {
  header .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }
  .logo { font-size: 1.1rem; }
}

/* CTA Section */
.cta-final {
  background: linear-gradient(135deg, rgba(142, 22, 25, 0.03) 0%, rgba(142, 22, 25, 0.08) 100%);
}

.cta-card {
  background: var(--bg-white);
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem;
  border-radius: 32px;
  box-shadow: var(--shadow-premium);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
  }
  .info-item {
    justify-content: center;
    text-align: left;
  }
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.qr-code-wrapper {
  text-align: center;
  border-left: 1px solid #eee;
  padding-left: 2rem;
}

.qr-code-wrapper img {
  max-width: 150px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #1a1d20;
  color: #fff;
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
}

.footer-legal {
  font-size: 0.8rem;
  opacity: 0.7;
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* FAB WhatsApp */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-fab:hover {
  transform: scale(1.1);
}

/* Decorative Backgrounds */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.02) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero { padding-top: 8rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content h1 { font-size: 2.8rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  
  .hero-image {
    justify-content: center;
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }
  
  .qr-code-wrapper {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
  }
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  padding: 0 2rem 1.5rem;
  max-height: 200px;
}

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

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.testimonial-card i.quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--primary);
  opacity: 0.1;
  font-size: 3rem;
}

.stars {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Professional Footer */
footer {
  background-color: #0F0F0F; /* Deep Slate/Black */
  color: #E0E0E0;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #999;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(5px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #999;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-legal-text {
  font-size: 0.8rem;
  color: #666;
  max-width: 700px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #444;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  footer { padding: 6rem 0 3rem; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
