/*
Theme Name: Grupo MYR Corporate
Theme URI: https://grupomyr.com.br
Author: Grupo MYR
Author URI: https://grupomyr.com.br
Description: Tema corporativo do Grupo MYR — Soluções Sustentáveis de Classe Mundial. 100% gerenciável pelo painel do WordPress.
Version: 3.2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grupomyr
Tags: corporate, sustainability, esg, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   GRUPO MYR — DESIGN SYSTEM
   Manual de Marca: Verde Myr #007680 · Cinza #787878 · Bege #dcdeda
   Tipografia: Cabin (títulos) + Roboto (corpo)
   ============================================ */

:root {
  --myr-verde: #007680;
  --myr-verde-hover: #005f67;
  --myr-verde-20: #48bbc0;
  --myr-dark-teal: #0A2E36;
  --myr-cinza: #787878;
  --myr-bege: #dcdeda;
  --myr-bg-light: #F5F5F3;
  --myr-white: #ffffff;
  --myr-text-dark: #1a1a1a;
  --myr-text-body: #4a4a4a;
  --myr-text-muted: #6b7280;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.6; color: var(--myr-text-dark); background: var(--myr-white); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cabin', sans-serif; font-weight: 600; line-height: 1.15; color: var(--myr-text-dark); }
a { text-decoration: none; color: inherit; transition: color 0.2s var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Cabin', sans-serif; font-weight: 600; font-size: 0.9375rem;
  padding: 0.75rem 1.75rem; border-radius: 4px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s var(--ease-out); text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--myr-verde); color: var(--myr-white); border-color: var(--myr-verde); }
.btn-primary:hover { background: var(--myr-verde-hover); border-color: var(--myr-verde-hover); }
.btn-outline { background: transparent; color: var(--myr-white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--myr-white); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }

/* ---- SECTION PATTERNS ---- */
.section-label {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 2.5rem; height: 2px; background: var(--myr-verde);
}
.section-label span {
  color: var(--myr-verde); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Roboto', sans-serif;
}
.section-header { margin-bottom: 2.5rem; }
.section-header--center { text-align: center; }
.section-header--center .section-label { justify-content: center; }
.section-title { font-size: 2rem; margin-bottom: 0.75rem; }
.section-subtitle { font-size: 1.0625rem; color: var(--myr-text-body); max-width: 640px; line-height: 1.7; }
.section-header--center .section-subtitle { margin: 0 auto; }

@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

/* ============================================
   HEADER / NAVBAR — .myr-header
   ============================================ */
.myr-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; transition: all 0.3s var(--ease-out);
  padding: 0 1rem;
}
.myr-header.scrolled {
  background: rgba(10, 46, 54, 0.95); backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}
.myr-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 5rem;
}
.myr-logo img { height: 2.5rem; width: auto; }
.myr-nav { display: flex; align-items: center; gap: 2rem; }
.myr-nav a {
  color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s var(--ease-out);
}
.myr-nav a:hover { color: var(--myr-white); }
.myr-nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Navigation Menu */
.myr-menu {
  display: flex; align-items: center; gap: 1.5rem;
  list-style: none; margin: 0; padding: 0;
}
.myr-menu li { position: relative; }
.myr-menu li a {
  color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  transition: color 0.2s var(--ease-out);
}
.myr-menu li a:hover { color: var(--myr-white); }
.myr-menu li.current-menu-item a,
.myr-menu li.current_page_item a { color: var(--myr-white); }

/* Hide Polylang language items from main menu (handled by separate switcher) */
.myr-menu .lang-item { display: none; }

/* Submenu */
.myr-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: rgba(10,46,54,0.95); backdrop-filter: blur(12px);
  border-radius: 0.5rem; padding: 0.5rem 0; min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); list-style: none;
  z-index: 100;
}
.myr-menu li:hover > .sub-menu { display: block; }
.myr-menu .sub-menu li a {
  display: block; padding: 0.5rem 1.25rem; font-size: 0.8125rem;
}
.myr-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.05);
}

/* Language Switcher */
.myr-lang-switcher { display: flex; gap: 0.5rem; align-items: center; }
.myr-lang-switcher a { display: flex; align-items: center; opacity: 0.6; transition: opacity 0.2s; }
.myr-lang-switcher a:hover,
.myr-lang-switcher a.current-lang { opacity: 1; }
.myr-lang-switcher img { width: 20px; height: auto; border-radius: 2px; }

/* Mobile Menu Toggle */
.myr-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 2.5rem; height: 2.5rem; position: relative;
}
.myr-menu-toggle span {
  display: block; width: 1.5rem; height: 2px; background: var(--myr-white);
  position: absolute; left: 50%; transform: translateX(-50%);
  transition: all 0.3s var(--ease-out);
}
.myr-menu-toggle span:nth-child(1) { top: 0.625rem; }
.myr-menu-toggle span:nth-child(2) { top: 1.125rem; }
.myr-menu-toggle span:nth-child(3) { top: 1.625rem; }

@media (max-width: 1023px) {
  .myr-menu-toggle { display: block; }
  .myr-nav {
    position: fixed; top: 5rem; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: center; justify-content: flex-start;
    padding-top: 2rem; gap: 1.5rem;
    background: rgba(10,46,54,0.98); backdrop-filter: blur(16px);
    transform: translateX(100%); transition: transform 0.4s var(--ease-out);
  }
  .myr-nav.active { transform: translateX(0); }
  .myr-nav a { font-size: 1.125rem; }
  .myr-menu {
    flex-direction: column; align-items: center; gap: 1rem;
    width: 100%;
  }
  .myr-menu li a { font-size: 1.125rem; }
  .myr-menu .sub-menu {
    position: static; background: transparent;
    box-shadow: none; backdrop-filter: none;
    padding: 0.5rem 0 0; min-width: auto;
  }
  .myr-menu .sub-menu li a { padding: 0.375rem 0; font-size: 1rem; opacity: 0.7; }
  .myr-nav-right { flex-direction: column; gap: 1rem; }
}

/* ============================================
   HERO — .myr-hero
   ============================================ */
.myr-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--myr-dark-teal); color: var(--myr-white); overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,46,54,0.92) 0%, rgba(0,118,128,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: 720px;
  padding: 8rem 0 4rem;
}
.hero-subtitle {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
}
.hero-subtitle::before {
  content: ''; width: 2.5rem; height: 2px; background: var(--myr-verde-20);
}
.hero-subtitle span {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--myr-verde-20);
}
.hero-title {
  font-size: 2.75rem; font-weight: 700; line-height: 1.1;
  margin-bottom: 1.5rem; color: var(--myr-white);
}
.hero-description {
  font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem; max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; animation: scrollBounce 2s infinite;
}
.hero-scroll-indicator svg { width: 2rem; height: 2rem; color: rgba(255,255,255,0.5); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .hero-content { padding: 10rem 0 6rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 4rem; }
}

/* ============================================
   ABOUT — .myr-about
   ============================================ */
.myr-about {
  padding: 6rem 0; background: var(--myr-white);
}
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
.about-content { max-width: 560px; }
.about-content p {
  font-size: 1rem; line-height: 1.8; color: var(--myr-text-body); margin-bottom: 1.25rem;
}
.about-badges {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem;
}
.badge-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; background: var(--myr-bg-light); border-radius: 6px;
  border-left: 3px solid var(--myr-verde);
}
.badge-item .about-stat-badge {
  font-size: 0.8125rem; font-weight: 600; color: var(--myr-text-dark);
}
.about-image-wrapper {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--myr-bg-light);
}
.about-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--myr-verde) 0%, var(--myr-dark-teal) 100%);
  color: var(--myr-white); font-size: 1.25rem; font-weight: 600;
}

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

/* ============================================
   LEADERSHIP — .myr-leadership
   ============================================ */
.myr-leadership {
  padding: 6rem 0; background: var(--myr-dark-teal); color: var(--myr-white);
}
.myr-leadership .section-label::before { background: var(--myr-verde-20); }
.myr-leadership .section-label span { color: var(--myr-verde-20); }
.myr-leadership .section-title { color: var(--myr-white); }
.myr-leadership .section-subtitle { color: rgba(255,255,255,0.7); }

.leadership-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.leader-card {
  display: flex; flex-direction: column; background: rgba(255,255,255,0.05);
  border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.leader-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.leader-image {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
}
.leader-image img { width: 100%; height: 100%; object-fit: cover; }
.leader-image-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--myr-verde) 0%, var(--myr-dark-teal) 100%);
  color: var(--myr-white); font-size: 3rem;
}
.leader-info { padding: 1.5rem; }
.leader-name { font-size: 1.25rem; color: var(--myr-white); margin-bottom: 0.25rem; }
.leader-role { font-size: 0.875rem; color: var(--myr-verde-20); margin-bottom: 0.75rem; }
.leader-bio { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 0.75rem; }
.leader-credentials { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-style: italic; margin-bottom: 0.75rem; }
.leader-linkedin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--myr-verde-20); font-size: 0.8125rem; font-weight: 500;
}
.leader-linkedin:hover { color: var(--myr-white); }

@media (min-width: 768px) {
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-card { flex-direction: row; }
  .leader-image { width: 280px; min-width: 280px; aspect-ratio: auto; }
}

/* ============================================
   SERVICES / SOLUÇÕES — .myr-services
   ============================================ */
.myr-services {
  padding: 6rem 0; background: var(--myr-bg-light);
}
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.service-card {
  background: var(--myr-white); border-radius: 8px; padding: 2rem;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,118,128,0.1);
}
.service-icon {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  background: rgba(0,118,128,0.08); border-radius: 8px; margin-bottom: 1.25rem;
  color: var(--myr-verde);
}
.service-title { font-size: 1.125rem; margin-bottom: 0.75rem; }
.service-description { font-size: 0.9375rem; color: var(--myr-text-body); line-height: 1.6; margin-bottom: 1rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--myr-verde); font-size: 0.875rem; font-weight: 600;
}
.service-link:hover { gap: 0.75rem; }

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   ECOSYSTEM — .myr-ecosystem
   ============================================ */
.myr-ecosystem {
  padding: 6rem 0; background: var(--myr-white);
}
.ecosystem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.ecosystem-card {
  background: var(--myr-bg-light); border-radius: 8px; padding: 2rem;
  text-align: center; border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.ecosystem-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.ecosystem-logo {
  width: 80px; height: 80px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden;
}
.ecosystem-logo img { width: 100%; height: 100%; object-fit: contain; }
.ecosystem-logo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--myr-verde); color: var(--myr-white); font-size: 1.5rem; font-weight: 700;
  border-radius: 50%;
}
.ecosystem-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.ecosystem-description { font-size: 0.8125rem; color: var(--myr-text-muted); line-height: 1.5; margin-bottom: 0.75rem; }
.ecosystem-link {
  color: var(--myr-verde); font-size: 0.8125rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.ecosystem-link:hover { gap: 0.5rem; }

@media (min-width: 640px) { .ecosystem-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ecosystem-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   IMPACT — .myr-impact
   ============================================ */
.myr-impact {
  padding: 6rem 0; background: var(--myr-dark-teal); color: var(--myr-white);
}
.myr-impact .section-label::before { background: var(--myr-verde-20); }
.myr-impact .section-label span { color: var(--myr-verde-20); }
.myr-impact .section-title { color: var(--myr-white); }

.impact-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem;
}
.impact-stat { text-align: center; }
.impact-number {
  font-family: 'Cabin', sans-serif; font-size: 2.5rem; font-weight: 700;
  color: var(--myr-verde-20); margin-bottom: 0.25rem;
}
.impact-label { font-size: 0.9375rem; color: var(--myr-white); font-weight: 500; }
.impact-sublabel { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* Clients within impact */
.impact-clients { margin-top: 3rem; }
.clients-title {
  font-size: 1.25rem; color: var(--myr-white); margin-bottom: 1.5rem; text-align: center;
}
.clients-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; align-items: center;
}
.client-item {
  background: rgba(255,255,255,0.08); border-radius: 8px; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.client-item img { max-height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.client-name {
  font-size: 0.8125rem; color: rgba(255,255,255,0.7); font-weight: 500;
}

@media (min-width: 640px) { .impact-stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .impact-number { font-size: 3rem; } }

/* ============================================
   MEDIA — .myr-media
   ============================================ */
.myr-media {
  padding: 6rem 0; background: var(--myr-bg-light);
}
.media-videos { margin-bottom: 3rem; }
.media-section-title {
  font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--myr-text-dark);
}
.videos-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.video-card {
  background: var(--myr-white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.video-title {
  padding: 1rem 1.25rem; font-size: 0.9375rem; font-weight: 600;
}

/* Press / Na Mídia */
.media-press { margin-top: 2rem; }
.press-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
.press-card {
  background: var(--myr-white); border-radius: 6px; padding: 1.25rem;
  border-left: 3px solid var(--myr-verde);
  transition: box-shadow 0.2s var(--ease-out);
}
.press-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.press-title { font-size: 0.9375rem; margin-bottom: 0.5rem; }
.press-excerpt { font-size: 0.8125rem; color: var(--myr-text-muted); margin-bottom: 0.5rem; }
.press-link { color: var(--myr-verde); font-size: 0.8125rem; font-weight: 600; }

@media (min-width: 640px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .videos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .press-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   INSIGHTS / BLOG — .myr-insights
   ============================================ */
.myr-insights {
  padding: 6rem 0; background: var(--myr-white);
}
.myr-insights .section-header {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.insights-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.insight-card {
  background: var(--myr-bg-light); border-radius: 8px; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.insight-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.insight-image {
  aspect-ratio: 16/9; overflow: hidden; background: var(--myr-bege);
}
.insight-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.insight-card:hover .insight-image img { transform: scale(1.05); }
.insight-content { padding: 1.25rem; }
.insight-meta { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.insight-category {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--myr-verde); background: rgba(0,118,128,0.08); padding: 0.2rem 0.5rem; border-radius: 3px;
}
.insight-meta span { font-size: 0.75rem; color: var(--myr-text-muted); }
.insight-title { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.3; }
.insight-title a { color: var(--myr-text-dark); }
.insight-title a:hover { color: var(--myr-verde); }
.insight-excerpt { font-size: 0.875rem; color: var(--myr-text-body); line-height: 1.6; }

@media (min-width: 640px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .insights-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   CTA — .myr-cta
   ============================================ */
.myr-cta {
  padding: 5rem 0; background: var(--myr-verde); color: var(--myr-white); text-align: center;
}
.cta-content { max-width: 640px; margin: 0 auto; }
.cta-title { font-size: 2rem; color: var(--myr-white); margin-bottom: 1rem; }
.cta-text { font-size: 1.0625rem; color: rgba(255,255,255,0.85); margin-bottom: 2rem; line-height: 1.7; }
.myr-cta .btn-outline { border-color: rgba(255,255,255,0.5); }
.myr-cta .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--myr-white); }

@media (min-width: 768px) { .cta-title { font-size: 2.5rem; } }

/* ============================================
   CONTACT — .myr-contact
   ============================================ */
.myr-contact {
  padding: 6rem 0; background: var(--myr-bg-light);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.contact-description { font-size: 1rem; color: var(--myr-text-body); line-height: 1.7; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9375rem; color: var(--myr-text-body);
}
.contact-item svg { width: 1.25rem; height: 1.25rem; color: var(--myr-verde); flex-shrink: 0; }
.contact-item a { color: var(--myr-verde); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.contact-form-wrapper {
  background: var(--myr-white); border-radius: 8px; padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.myr-contact-form .form-group { margin-bottom: 1.25rem; }
.myr-contact-form label {
  display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem;
  color: var(--myr-text-dark);
}
.myr-contact-form input,
.myr-contact-form textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--myr-bege);
  border-radius: 4px; font-family: 'Roboto', sans-serif; font-size: 0.9375rem;
  transition: border-color 0.2s var(--ease-out); background: var(--myr-white);
}
.myr-contact-form input:focus,
.myr-contact-form textarea:focus {
  outline: none; border-color: var(--myr-verde); box-shadow: 0 0 0 3px rgba(0,118,128,0.1);
}
.myr-contact-form textarea { min-height: 120px; resize: vertical; }
.myr-contact-form .btn { width: 100%; justify-content: center; }
.form-feedback {
  margin-top: 0.75rem; padding: 0.75rem; border-radius: 4px; font-size: 0.875rem; display: none;
}
.form-feedback.success { display: block; background: rgba(0,118,128,0.08); color: var(--myr-verde); }
.form-feedback.error { display: block; background: rgba(220,38,38,0.08); color: #dc2626; }

/* Contact Form 7 integration */
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7-form label { font-size: 0.8125rem; font-weight: 600; color: var(--myr-text-dark); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--myr-bege);
  border-radius: 4px; font-family: 'Roboto', sans-serif; font-size: 0.9375rem;
  margin-top: 0.375rem;
}
.wpcf7-form input[type="submit"] {
  background: var(--myr-verde); color: var(--myr-white); border: none;
  padding: 0.75rem 2rem; border-radius: 4px; font-family: 'Cabin', sans-serif;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background 0.2s var(--ease-out);
}
.wpcf7-form input[type="submit"]:hover { background: var(--myr-verde-hover); }

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

/* ============================================
   FOOTER — .myr-footer
   ============================================ */
.myr-footer {
  background: var(--myr-dark-teal); color: rgba(255,255,255,0.7); padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col--brand { max-width: 320px; }
.footer-logo { margin-bottom: 1rem; }
.footer-logo img { height: 2rem; width: auto; }
.footer-description { font-size: 0.875rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08);
  transition: background 0.2s var(--ease-out);
}
.footer-social a:hover { background: var(--myr-verde); }
.footer-social svg { width: 1rem; height: 1rem; color: var(--myr-white); }
.footer-heading {
  font-size: 0.875rem; font-weight: 600; color: var(--myr-white);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s var(--ease-out);
}
.footer-col ul li a:hover { color: var(--myr-white); }
.footer-contact { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.6);
}
.footer-contact a:hover { color: var(--myr-white); }
.footer-contact svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.footer-bottom {
  padding: 1.5rem 0; text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ============================================
   GENERIC PAGES — .myr-page-header, .myr-page-content
   ============================================ */
.myr-page-header {
  background: var(--myr-dark-teal); color: var(--myr-white);
  padding: 8rem 0 3rem; text-align: center;
}
.page-title { font-size: 2.5rem; color: var(--myr-white); }
.myr-page-content { padding: 4rem 0; }
.container--narrow { max-width: 800px; }
.entry-content { font-size: 1.0625rem; line-height: 1.8; color: var(--myr-text-body); }
.entry-content h2 { margin: 2rem 0 1rem; font-size: 1.75rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; font-size: 1.375rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content img { border-radius: 8px; margin: 1.5rem 0; }
.entry-content blockquote {
  border-left: 4px solid var(--myr-verde); padding: 1rem 1.5rem;
  background: var(--myr-bg-light); margin: 1.5rem 0; font-style: italic;
}

/* ============================================
   BLOG ARCHIVE
   ============================================ */
.myr-archive-content { padding: 4rem 0; }
.posts-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
.post-card {
  background: var(--myr-white); border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.post-card-title a { color: var(--myr-text-dark); }
.post-card-title a:hover { color: var(--myr-verde); }
.post-card-excerpt { font-size: 0.9375rem; color: var(--myr-text-body); line-height: 1.6; }
.post-card-meta { font-size: 0.75rem; color: var(--myr-text-muted); margin-bottom: 0.5rem; }

@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================
   SINGLE POST
   ============================================ */
.myr-single-header {
  background: var(--myr-dark-teal); color: var(--myr-white);
  padding: 8rem 0 3rem; text-align: center;
}
.single-meta { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.single-title { font-size: 2.5rem; color: var(--myr-white); max-width: 800px; margin: 0 auto; }
.myr-single-content { padding: 4rem 0; }
.post-navigation {
  display: flex; justify-content: space-between; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--myr-bege);
}
.post-navigation a { color: var(--myr-verde); font-weight: 500; }
.post-navigation a:hover { text-decoration: underline; }

/* ============================================
   404 PAGE
   ============================================ */
.myr-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 0;
}
.error-code {
  font-size: 8rem; font-weight: 700; color: var(--myr-bege); line-height: 1;
  font-family: 'Cabin', sans-serif;
}
.error-content h1 { font-size: 2rem; margin: 1rem 0; }
.error-content p { color: var(--myr-text-body); margin-bottom: 2rem; }

/* ============================================
   SEARCH
   ============================================ */
.search-form-wrapper { max-width: 600px; margin: 0 auto 3rem; }
.search-form-wrapper form {
  display: flex; gap: 0.5rem;
}
.search-form-wrapper input[type="search"] {
  flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--myr-bege);
  border-radius: 4px; font-size: 1rem;
}
.search-form-wrapper input[type="search"]:focus {
  outline: none; border-color: var(--myr-verde);
}
.search-form-wrapper button {
  padding: 0.75rem 1.5rem; background: var(--myr-verde); color: var(--myr-white);
  border: none; border-radius: 4px; font-weight: 600; cursor: pointer;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 60ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 120ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 180ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 300ms; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================
   UTILITY
   ============================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* WP Admin Bar offset */
body.admin-bar .myr-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .myr-header { top: 46px; } }
