/* 
Theme Name: Planteos Theme
Author: Assistant
Description: Custom theme for Planteos Agency
Version: 1.1
*/

:root {
  --primary-color: #465e98;
  --secondary-color: #2c3e50;
  --accent-color: rgba(70, 94, 152, 0.15);
  --text-color: #333;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --font-main: 'Noto Sans', system-ui, -apple-system, sans-serif;
  --font-titles: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titles);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  /* Default larger padding */
  transition: padding var(--transition-speed) ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  /* Shrink padding */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo img {
  height: 80px;
  /* Default larger logo */
  width: auto;
  display: block;
  transition: all var(--transition-speed) ease;
}

.logo-text {
  font-family: var(--font-titles);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
  transition: font-size 0.3s ease;
}

/* Scrolled state - smaller tagline */
.site-header.scrolled .logo-text {
  font-size: 0.65rem;
}

.site-header.scrolled .logo img {
  height: 50px;
  /* Shrink logo */
}

.main-nav>ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--white);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: #aabadd;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  cursor: pointer;
  color: var(--white);
  font-weight: 500;
  display: flex;
  align-items: center;
}

.lang-switcher span {
  padding: 5px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  min-width: 100px;
  padding: 0.5rem 0;
  gap: 0 !important;
  /* Override main-nav gap */
}

/* Changed from hover to class based for click toggle */
.lang-dropdown.show {
  display: flex;
}

.lang-dropdown li {
  width: 100%;
}

.lang-dropdown a {
  display: block;
  padding: 8px 15px;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.lang-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(70, 94, 152, 0.9) 0%, rgba(42, 59, 102, 0.95) 100%), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 6rem 0;
  /* Balanced padding */
  text-align: center;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 4px;
  font-weight: 600;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Services */
.services {
  padding: 3rem 0;
  /* Reduced padding further as requested */
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img,
.service-icon svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  font-family: var(--font-main);
  line-height: 1.5;
}

/* About Section */
.about {
  padding: 2rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-content {
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-values {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.value-tag {
  background: rgba(70, 94, 152, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Clients Carousel */
.clients {
  padding: 2rem 0;
  background: var(--white);
  overflow: hidden;
  margin-bottom: 0;
}

.clients-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-titles);
}

.carousel-track {
  display: flex;
  align-items: center;
  animation: scroll-infinite 25s linear infinite;
  width: max-content;
  /* Ensure track spans full width of children */
}

/* Mobile: faster carousel */
@media (max-width: 768px) {
  .carousel-track {
    animation: scroll-infinite 10s linear infinite;
  }
}

.client-logo {
  flex: 0 0 auto;
  width: 250px;
  height: 100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo svg,
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Maintain aspect ratio */
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-speed);
}

.client-logo:hover svg,
.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scroll exactly half for seamless loop */
}

/* Contact Form Styles */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-wrapper .wpcf7-form p {
  margin-bottom: 1rem;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form-wrapper input[type="submit"] {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid transparent;
  padding: 14px 40px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: var(--font-titles);
  font-size: 1.1rem;
  display: block;
  margin: 1.5rem auto 0;
  text-align: center;
}

.contact-form-wrapper input[type="submit"]:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Contact Form 7 Messages */
.contact-form-wrapper .wpcf7-response-output {
  border-color: var(--primary-color) !important;
  background: rgba(70, 94, 152, 0.1);
  color: var(--white);
  padding: 15px;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
  border-color: var(--primary-color) !important;
  background: rgba(70, 94, 152, 0.2);
}

.contact-form-wrapper .wpcf7-validation-errors,
.contact-form-wrapper .wpcf7-mail-sent-ng {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.1);
}

/* Contact */
.contact {
  background: var(--secondary-color);
  color: var(--white);
  padding: 3rem 0;
  /* Reduced padding */
  text-align: center;
}

.contact h2 {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav>ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  /* Logo responsive */
  .logo {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .logo-text {
    font-size: 0.9rem;
  }
}

/* Hero Secundario */
.hero-secundario {
  padding: 0;
  margin: 2rem 0;
}

.hero-secundario .container {
  max-width: 1000px;
  background: rgba(70, 94, 152, 0.1);
  color: var(--primary-color);
  padding: 35px 50px;
  border-radius: 15px;
  text-align: center;
  box-shadow: none;
}

.hero-secundario h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-color);
}

.hero2-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-color);
}

.hero2-content p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero2-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-secundario {
    padding: 0;
    margin: 30px 0;
  }

  .hero-secundario .container {
    padding: 30px 25px;
  }

  .hero-secundario h2 {
    font-size: 1.4rem;
  }

  .hero2-content {
    font-size: 0.95rem;
  }
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background: #f5f5f5;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Service Card Full Width Variant */
.service-card-fullwidth {
  grid-column: span 2;
}

.service-image-fullwidth {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
}

.service-image-fullwidth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-card-fullwidth {
    grid-column: span 1;
  }

  .service-image-fullwidth {
    height: 200px;
  }
}

/* Instagram Feed */
.instagram-feed {
  padding: 80px 0;
  background: white;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.instagram-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  display: block;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.instagram-item:hover img {
  transform: scale(1.1);
}

.instagram-loading {
  text-align: center;
  padding: 2rem;
  color: #999;
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hero Terciario (Director Quote) - Base Styles */
.hero-terciario {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.hero-terciario .container {
  max-width: 900px;
  text-align: center;
}

.quote-text {
  font-family: var(--font-titles);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-info {
  text-align: left;
}

.author-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

.author-role {
  display: block;
  font-size: 0.9rem;
  color: #666;
}