/* 
  Premium UX/UI Stylesheet
  Project: Marcela Lais Gindro - Psicóloga
  Theme: Calm Professionalism
*/

/* 1. Variables & Design Tokens */
:root {
  /* Colors */
  --primary: #2BB673;
  --primary-dark: #21965e;
  --primary-light: #e8f8f0;
  --accent: #A5E6C6;

  --text-main: #111827;
  /* Darker for better contrast */
  --text-muted: #4b5563;
  --text-light: #9ca3af;

  --bg-body: #ffffff;
  --bg-surface: #f9fafb;
  --bg-highlight: #f0fdf4;
  --bg-glass: rgba(255, 255, 255, 0.8);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  /* Increased for more breathing room */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 10px 40px -10px rgba(43, 182, 115, 0.15);
  /* Colored shadow */

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.5rem;
  /* Larger radius for modern feel */
  --radius-full: 9999px;

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* 3. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-muted);
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. Layout Utilities */
.container {
  width: 100%;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

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

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

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

.bg-white {
  background-color: white;
}

/* 5. Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-base);
  transition: var(--transition);
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-outline:hover {
  background: var(--bg-highlight);
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 80px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-main);
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 0;
  /* Logo doesn't need radius */
}

.nav-desktop {
  display: none;
}

.menu-toggle {
  padding: var(--space-xs);
  font-size: 1.75rem;
  color: var(--text-main);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: white;
  padding: var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 49;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: var(--text-xl);
  font-weight: 600;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--bg-surface);
  color: var(--text-main);
}

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

/* Hero Section */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: radial-gradient(circle at top right, var(--bg-highlight) 0%, white 60%);
}

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

.hero-img-container {
  position: relative;
  margin-top: var(--space-xl);
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: var(--transition);
}

.hero-img:hover {
  transform: rotate(0) scale(1.02);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25D366;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer */
.footer {
  background: var(--text-main);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer h3 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.footer a {
  color: var(--text-light);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer a:hover {
  color: var(--primary);
  padding-left: var(--space-xs);
}

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-muted);
}

/* 6. Tablet Breakpoint */
@media (min-width: 768px) {
  :root {
    --text-4xl: 3rem;
    --text-5xl: 4rem;
  }

  .container {
    max-width: 768px;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .grid-2-md {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: auto;
  }

  .hero-img-container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 7. Desktop Breakpoint */
@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  .nav-desktop {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
  }

  .nav-link {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-muted);
    position: relative;
  }

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

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .grid-3-lg {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: var(--space-2xl) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
  }

  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-2xl);
  }

  .hero-img-container {
    margin-top: 0;
    max-width: 100%;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content {
  padding-left: var(--space-lg);
}

/* Mobile Centering Overrides */
@media (max-width: 767px) {
  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-content .flex-col {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* About Section Mobile Centering */
  .section .grid-2-md .fade-in:last-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section .grid-2-md .fade-in:last-child ul {
    align-items: center;
  }

  .section .grid-2-md .fade-in:last-child .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .about-content {
    padding-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Footer Mobile Centering */
  .footer-grid {
    text-align: center;
  }

  .footer-grid>div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-grid a,
  .footer-grid p {
    justify-content: center !important;
  }
}

/* Pulse Animation for WhatsApp Button */
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

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