/*
Theme Name: AEMicaelense Modern
Theme URI: https://example.com/
Author: José Melo
Author URI: https://www.seaweb.app/
Description: Modern WordPress theme for Associação Equestre Micaelense
Version: 1.5.0
Text Domain: aemicaelense-modern
*/

:root {
  --aem-primary: #24527a;
  --aem-primary-dark: #183851;
  --aem-accent: #d4a048;
  --aem-bg: #f5f5f5;
  --aem-text: #222222;
  --aem-muted: #777777;
  --aem-max-width: 1100px;
  --aem-radius: 10px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--aem-text);
  background-color: var(--aem-bg);
  line-height: 1.6;
}

/* Layout */

.site-header {
  background: linear-gradient(135deg, var(--aem-primary), var(--aem-primary-dark));
  color: #ffffff;
}

.site-header-inner {
  max-width: var(--aem-max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  max-height: 70px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.site-description {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Navigation */

.main-navigation {
  display: flex;
  align-items: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-navigation a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* Mobile nav button */

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.9rem;
}

/* Hero */

.hero {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.hero-inner {
  max-width: var(--aem-max-width);
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  margin-top: 0;
  font-size: 2rem;
}

.hero-text p {
  margin-bottom: 1rem;
  color: var(--aem-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--aem-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background-color: #c28d33;
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background-color: rgba(36, 82, 122, 0.06);
}

.hero-media {
  border-radius: var(--aem-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Content layout */

.site-main-wrapper {
  max-width: var(--aem-max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}



.site-main,


/* Posts & pages */

.entry {
  margin-bottom: 2.5rem;
}

.entry:last-of-type {
  margin-bottom: 0;
}

.entry-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.entry-meta {
  font-size: 0.8rem;
  color: var(--aem-muted);
  margin-bottom: 0.7rem;
}

.entry-content {
  font-size: 0.98rem;
}

.entry-content p {
  margin: 0 0 1rem;
}

.read-more-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--aem-primary);
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Widgets */

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  border-left: 3px solid var(--aem-accent);
  padding-left: 0.5rem;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  background-color: var(--aem-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.site-footer-inner {
  max-width: var(--aem-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

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

/* Archive / pagination */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination a,
.pagination span {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--aem-text);
}

.pagination .current {
  background-color: var(--aem-primary);
  color: #ffffff;
  border-color: var(--aem-primary);
}

/* Forms */

input,
textarea {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #cccccc;
  font-size: 0.95rem;
  font-family: inherit;
}

label {
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  
}



/* Layout: sticky footer */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main-wrapper {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

/* Navigation: dropdown submenus */
.main-navigation ul li {
  position: relative;
}

.main-navigation ul ul {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 180px;
  background-color: var(--aem-primary-dark);
  border-radius: var(--aem-radius);
  padding: 0.4rem 0;
  margin: 0;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 999;
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  display: block;
  width: 100%;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
}

/* Show submenu on hover/focus (desktop) */
.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
  display: flex;
}

/* Submenu indicator class support (if you want to style arrows later) */
.main-navigation .menu-item-has-children > a {
  position: relative;
  padding-right: 1.2rem;
}

/* Mobile submenu behaviour */
@media (max-width: 700px) {
  .main-navigation {
    width: 100%;
    display: none;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .main-navigation ul ul {
    position: static;
    box-shadow: none;
    background-color: transparent;
    padding-left: 0.8rem;
    display: none;
  }

  .main-navigation .menu-item-has-children.submenu-open > ul {
    display: block;
  }

  .main-navigation a {
    padding: 0.5rem 0.75rem;
  }
}


/* Remove leftover widget visual elements */
.widget, .widget-area {
    display: none !important;
    visibility: hidden;
}


/* HERO BANNER IMAGE ONLY */
.hero {
  padding: 0;
  margin: 0;
}

.hero-inner {
  grid-template-columns: 1fr !important;
  padding: 0 !important;
}

.hero-media {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  box-shadow: none;
}

.hero-text {
  display: none;
}
