:root {
  --primary: #000000;
  --primary-foreground: #FFFFFF;
  --secondary: #8b5cf6;
  --secondary-foreground: #FFFFFF;
  --accent: #64748b;
  --accent-foreground: #FFFFFF;
  --background: #0F172A;
  --foreground: #F8FAFC;
  --card: #1E293B;
  --card-foreground: #F8FAFC;
  --border: #334155;
  --input: #334155;
  --ring: #000000;
  --muted: #1E293B;
  --muted-foreground: #94A3B8;
  --font-family: 'Inter', sans-serif;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

/* Typography */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.mb-4 { margin-bottom: 1rem; }

/* Icons */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--secondary);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.btn-primary:hover {
  background: var(--secondary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--foreground);
  padding: 0.75rem 2rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  padding: 1rem 0;
}

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

.nav-logo {
  text-decoration: none;
}

.logo-img {
  height: 2.5rem;
  width: auto;
}

.grendavito-top_mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.grendavito-top_mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grendavito-top_mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  background: var(--background);
  color: var(--foreground);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

/* Page Header */
.page-header {
  background: var(--background);
  color: var(--foreground);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Section */
.cta-section {
  padding: 3rem 0;
}

.cta-box {
  background: var(--background);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Process Steps */
.process-step {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.step-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  padding: 3rem 0;
}

.testimonial-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  max-width: 800px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--card-foreground);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--card-foreground);
}

.author-title {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

.feature-list li:before {
  content: "✓";
  color: var(--secondary);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.faq-answer {
  color: var(--muted-foreground);
  line-height: 1.6;
}

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

/* Services */
.service-section {
  padding: 3rem 0;
}

.service-content {
  max-width: 900px;
  margin: 0 auto;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-title-group h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.service-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.service-description {
  margin-bottom: 2rem;
}

.service-description p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.service-features {
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.feature-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .service-header {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* About Page */
.mission-statement {
  padding: 3rem 0;
  text-align: center;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
}

.mission-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.story-section {
  padding: 3rem 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.story-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.story-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
  }
}

.value-card,
.approach-card,
.achievement-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

/* Contact Page */
.contact-section {
  padding: 3rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.form-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.grendavito-top_contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.submit-btn {
  align-self: flex-start;
}

.success-message {
  background: var(--card);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
  color: var(--secondary);
}

.success-content h3 {
  color: var(--foreground);
  margin: 0;
}

.success-content p {
  color: var(--muted-foreground);
  margin: 0;
}

.info-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.contact-info-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.info-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

.info-text {
  color: var(--muted-foreground);
  margin: 0;
}

.info-text a {
  color: var(--secondary);
  text-decoration: none;
}

.info-text a:hover {
  text-decoration: underline;
}

.business-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.business-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.business-details p {
  margin: 0.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-cta {
  padding: 3rem 0;
  text-align: center;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* Team Page */
.team-intro {
  padding: 3rem 0;
}

.team-members {
  padding: 3rem 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.team-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.avatar-icon {
  width: 4rem;
  height: 4rem;
  color: var(--secondary);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.team-role {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.team-approach {
  padding: 3rem 0;
}

.approach-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.approach-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.approach-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .approach-content {
    grid-template-columns: 1fr;
  }
}

/* Portfolio Page */
.portfolio-intro {
  padding: 3rem 0;
}

.portfolio-grid {
  padding: 3rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-category {
  display: inline-block;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.project-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.portfolio-results {
  padding: 3rem 0;
}

.result-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.portfolio-process {
  padding: 3rem 0;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.process-text p {
  margin-bottom: 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.process-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .process-content {
    grid-template-columns: 1fr;
  }
}

/* Blog Page */
.blog-intro {
  padding: 3rem 0;
}

.blog-articles {
  padding: 3rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.blog-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-category {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.blog-excerpt {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.blog-topics {
  padding: 3rem 0;
}

.topic-card {
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.blog-newsletter {
  padding: 3rem 0;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--secondary);
}

.newsletter-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .newsletter-content {
    grid-template-columns: 1fr;
  }
}

/* Legal Pages */
.legal-content {
  padding: 3rem 0;
}

.legal-text {
  max-width: 800px;
  margin: 0 auto;
}

.legal-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: var(--foreground);
}

.legal-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  color: var(--foreground);
}

.legal-text p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.legal-text ul {
  margin: 1rem 0;
  padding-left: 2rem;
  color: var(--muted-foreground);
}

.legal-text li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-text a {
  color: var(--secondary);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

.contact-details {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.contact-details p {
  margin: 0.5rem 0;
  color: var(--card-foreground);
}

/* Cookie Table */
.cookie-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.cookie-table td {
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background: var(--muted);
  color: var(--foreground);
  padding: 3rem 0 1rem 0;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-contact p {
  margin: 0.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

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

.footer-contact-info p {
  margin: 0.25rem 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Cookie Consent */
.grendavito-top_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}

.grendavito-top_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.grendavito-top_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.grendavito-top_cookie-banner-text p {
  margin: 0;
  color: var(--card-foreground);
  font-size: 0.875rem;
}

.grendavito-top_cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grendavito-top_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.grendavito-top_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.grendavito-top_cookie-modal-content {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.cookie-toggles {
  margin: 1.5rem 0;
}

.grendavito-top_cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.grendavito-top_cookie-toggle-row:last-child {
  margin-bottom: 0;
}

.grendavito-top_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .grendavito-top_cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .grendavito-top_cookie-banner-actions {
    justify-content: center;
  }
  
  .grendavito-top_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Animation Classes */
.animate-hide {
  opacity: 0;
  transform: translateY(20px);
}

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#grendavito-top_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#grendavito-top_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#grendavito-top_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }
