/* Root variables for colors and font families */
:root {
  --color-accent: #f06a5b;
  --color-dark: #2e2e35;
  --color-light: #f8f8f8;
  --color-text: #333333;
  --color-heading: #1f1f24;
  --transition-fast: 0.3s ease;
}

/* Import Google Fonts */
/* Google Fonts loaded via <link> in HTML head for performance */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

/* Header and navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

nav ul li a:hover {
  color: var(--color-accent);
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: var(--color-dark);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: transform var(--transition-fast);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
  }
  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #d9544a;
}

.hero-image img {
  width: 500px;
  max-width: 45vw;
  height: auto;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section styling */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

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

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '“';
  font-size: 5rem;
  color: var(--color-accent);
  position: absolute;
  top: -10px;
  left: 10px;
}

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

.testimonial .author {
  font-weight: 600;
  color: var(--color-dark);
}

/* Blog */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-post {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-content h3 {
  margin-bottom: 0.8rem;
}

.blog-post-content p {
  font-size: 0.9rem;
}

.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Author box style */
.author-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 800px;
}
.author-box h3 {
  margin-bottom: 0.5rem;
}
.author-box p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Blog filters: search bar and category buttons */
.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin: 2rem auto 1rem;
  padding: 0 2rem;
}

.blog-filters input[type="search"] {
  padding: 0.6rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-btn {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--color-accent);
  color: #fff;
}

@media (max-width: 600px) {
  .blog-filters {
    align-items: stretch;
  }
  .blog-categories {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-categories .category-btn {
    width: 100%;
    text-align: left;
  }
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

/* FAQ styles */
details {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

summary::marker {
  color: var(--color-accent);
}

/* Footer */
footer {
  background: var(--color-dark);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

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

footer .footer-links a {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

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

footer p {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Scroll reveal defaults to visible so content never disappears if JS is delayed or disabled */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
    max-width: 80vw;
    margin-top: 2rem;
  }
  nav {
    padding: 1rem;
  }
  nav ul li {
    margin-bottom: 1rem;
  }
}

/* ------------------------------------------------------------------ */
/* Additional SEO and accessibility styles                              */
/* Breadcrumbs for internal navigation */
.breadcrumbs {
  font-size: 0.9rem;
  margin: 1rem 0;
  color: var(--color-dark);
}

.breadcrumbs a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

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

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-fast);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  flex: 1 1 auto;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.cookie-banner button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.cookie-banner .btn-accept {
  background: var(--color-accent);
  color: #fff;
}

.cookie-banner .btn-decline {
  background: #666;
  color: #fff;
}
/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.3s;
}
.skip-to-content:focus {
  top: 0;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  text-decoration: none;
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}


.section-intro {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.blog-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
  max-width: 880px;
  text-align: center;
}

.blog-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(240, 106, 91, 0.12);
  color: var(--color-accent);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.blog-summary-text,
.blog-library-note,
.blog-results-count,
.blog-empty-state {
  color: var(--color-text);
}

.blog-library-note,
.blog-results-count,
.blog-empty-state {
  text-align: center;
  margin-top: 1rem;
}

.blog-empty-state {
  font-weight: 600;
}

.blog-list {
  align-items: stretch;
}

.blog-list--home,
.blog-list--archive {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog-post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-post img {
  height: 220px;
}

.blog-post-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-content p:first-of-type {
  flex: 1;
}

.blog-post-content .btn {
  margin-top: auto;
}

@media (min-width: 1100px) {
  .blog-list--home,
  .blog-list--archive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .blog-post img {
    height: 165px;
  }

  .blog-summary {
    flex-direction: column;
  }
}
