/*
Theme Name: AutoCountry
Theme URI: https://autocountry.com.co/
Author: EColSi
Description: Tema corporativo editable para AutoCountry.
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 8.3
Text Domain: autocountry
*/

:root {
  --ac-ink: #141714;
  --ac-muted: #58615a;
  --ac-green: #2e7147;
  --ac-green-dark: #173f29;
  --ac-yellow: #f2c230;
  --ac-paper: #ffffff;
  --ac-soft: #eef3ed;
  --ac-line: #d8dfd8;
  --ac-width: 1180px;
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ac-ink);
  background: var(--ac-paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--ac-ink);
}
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--ac-line);
}
.header-inner {
  width: min(calc(100% - 40px), var(--ac-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  font-size: 21px;
  line-height: 1;
}
.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: 220px;
  object-fit: contain;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ac-ink);
  background: var(--ac-yellow);
  border-bottom: 5px solid var(--ac-green);
  font-size: 14px;
}
.brand-auto { color: var(--ac-green-dark); }
.brand-country { color: var(--ac-ink); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ac-line);
  background: #fff;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ac-ink);
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.primary-menu a:hover,
.primary-menu a:focus { color: var(--ac-green); }
.primary-menu .nav-cta a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  color: var(--ac-ink);
  background: var(--ac-yellow);
}
.site-main { min-height: 60vh; }
.home-content > * { margin-block: 0; }
.home-content .wp-block-group,
.home-content .wp-block-column { min-width: 0; }
.ac-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ac-green-dark);
  overflow: hidden;
}
.ac-hero .wp-block-cover__image-background { object-position: center; }
.ac-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(10, 22, 14, .96) 0%, rgba(10, 22, 14, .88) 38%, rgba(10, 22, 14, .3) 72%, rgba(10, 22, 14, .08) 100%) !important;
  opacity: 1 !important;
}
.ac-hero .wp-block-cover__inner-container {
  width: min(calc(100% - 40px), var(--ac-width));
  margin: 0 auto;
}
.hero-copy {
  width: min(650px, 100%) !important;
  max-width: 100%;
  min-width: 0;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--ac-yellow);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: 72px;
  line-height: 1.02;
  overflow-wrap: break-word;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.55;
}
.wp-block-buttons { margin-top: 30px; }
.wp-block-button__link,
.ac-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}
.wp-block-button__link { color: var(--ac-ink); background: var(--ac-yellow); }
.is-style-outline .wp-block-button__link {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
}
.ac-location-strip {
  padding: 0 20px;
  color: var(--ac-ink);
  background: var(--ac-yellow);
  border-bottom: 1px solid #d3a712;
}
.ac-location-strip > .wp-block-group__inner-container,
.ac-location-inner {
  width: min(100%, var(--ac-width));
  min-height: 104px;
  margin: 0 auto;
}
.ac-location-inner.wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.ac-location-copy {
  min-width: 0;
}
.ac-location-index {
  margin: 0 0 3px;
  color: var(--ac-green-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.ac-location-copy h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}
.ac-location-copy > p:not(.ac-location-index) { margin: 4px 0 0; font-size: 15px; }
.ac-location-cta {
  min-width: 255px;
  justify-self: end;
}
.ac-location-cta p { margin: 0; }
.ac-location-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  background: var(--ac-green-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}
.ac-proof {
  background: var(--ac-green);
  color: #fff;
}
.ac-proof .wp-block-group__inner-container {
  width: min(100%, var(--ac-width));
  margin: 0 auto;
}
.ac-proof .wp-block-columns { margin: 0; }
.ac-proof .wp-block-column {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.ac-proof .wp-block-column:last-child { border-right: 0; }
.ac-proof strong { color: var(--ac-yellow); font-size: 19px; }
.ac-proof p { margin: 0; font-size: 14px; }
.ac-section {
  padding: 92px 20px;
  scroll-margin-top: 80px;
}
.ac-section > .wp-block-group__inner-container,
.ac-section-inner,
.content-wrap {
  width: min(100%, var(--ac-width));
  margin: 0 auto;
}
.ac-section-soft { background: var(--ac-soft); }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading .eyebrow { color: var(--ac-green); }
.section-heading h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
}
.section-heading p { margin: 18px 0 0; color: var(--ac-muted); font-size: 19px; }
.service-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px !important;
  background: var(--ac-line);
  border: 1px solid var(--ac-line);
}
.service-card {
  min-height: 260px;
  padding: 32px !important;
  background: #fff;
}
.service-number {
  margin: 0 0 28px;
  color: var(--ac-green);
  font-size: 14px;
  font-weight: 900;
}
.service-card h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.25; }
.service-card h3,
.service-card p {
  overflow-wrap: anywhere;
  word-break: normal;
}
.service-card p { margin: 0; color: var(--ac-muted); }
.process-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px !important;
}
.process-step {
  position: relative;
  padding-top: 22px;
  border-top: 6px solid var(--ac-yellow);
}
.process-step strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ac-green);
  font-size: 14px;
}
.process-step h3 { margin: 0 0 10px; font-size: 24px; }
.process-step p { margin: 0; color: var(--ac-muted); }
.ac-notice {
  padding: 30px !important;
  border-left: 6px solid var(--ac-yellow);
  background: #fff;
}
.ac-notice p { margin: 0; }
.contact-grid {
  display: grid !important;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px !important;
  align-items: start;
}
.contact-panel {
  padding: 36px !important;
  color: #fff;
  background: var(--ac-green-dark);
}
.contact-panel h3 { margin-top: 0; font-size: 28px; }
.contact-panel p { margin: 12px 0; }
.contact-panel a { color: #fff; }
.schedule {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.2);
}
.schedule li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.posts-band { padding: 92px 20px; background: #fff; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--ac-line);
  background: #fff;
}
.post-card .eyebrow { color: var(--ac-green); }
.post-card h3 { margin: 0; font-size: 24px; line-height: 1.25; }
.post-card p { color: var(--ac-muted); }
.post-card a { margin-top: auto; color: var(--ac-green-dark); font-weight: 800; }
.site-footer {
  padding: 56px 20px 26px;
  color: #fff;
  background: var(--ac-ink);
}
.footer-inner {
  width: min(100%, var(--ac-width));
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
}
.site-footer h2,
.site-footer h3 { margin-top: 0; color: #fff; }
.footer-brand-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 20px;
  background: #fff;
}
.site-footer p,
.site-footer a { color: #cbd2cc; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.footer-legal {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid #39403a;
  font-size: 13px;
  color: #aab2ab;
}
.entry-wrap {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding: 76px 0 100px;
}
.entry-header { margin-bottom: 38px; }
.entry-header h1 { margin: 0; font-size: 52px; line-height: 1.1; }
.entry-content h2 { margin-top: 42px; font-size: 31px; }
.entry-content h3 { margin-top: 30px; font-size: 24px; }
.entry-content a { color: var(--ac-green-dark); }
.entry-content .wp-block-group {
  padding: 24px;
  background: var(--ac-soft);
  border-left: 5px solid var(--ac-yellow);
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-navigation {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    padding: 18px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--ac-line);
  }
  .site-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-menu a { display: block; padding: 12px 0; }
  .primary-menu .nav-cta a { justify-content: center; }
  .hero-copy h1 { font-size: 54px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; gap: 38px !important; }
}

@media (max-width: 700px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { width: min(calc(100% - 28px), var(--ac-width)); min-height: 68px; }
  .site-navigation { top: 68px; }
  .brand { font-size: 18px; }
  .brand-logo { width: 158px; height: 56px; }
  .brand-mark { width: 38px; height: 38px; }
  .ac-hero { min-height: 620px; align-items: flex-end; padding-bottom: 54px; }
  .ac-hero .wp-block-cover__inner-container { width: calc(100% - 28px); }
  .ac-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(10,22,14,.15) 0%, rgba(10,22,14,.72) 42%, rgba(10,22,14,.97) 100%) !important;
  }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy > p:not(.eyebrow) { font-size: 18px; }
  .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .wp-block-button,
  .wp-block-button__link { width: 100%; }
  .ac-location-strip { padding: 0 14px; }
  .ac-location-inner.wp-block-columns {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .ac-location-copy h2 { font-size: 20px; }
  .ac-location-cta { min-width: 0; width: 100%; justify-self: stretch; }
  .ac-location-action { width: 100%; justify-content: center; }
  .ac-proof .wp-block-columns { display: grid; grid-template-columns: 1fr 1fr; }
  .ac-proof .wp-block-column {
    width: auto;
    min-width: 0;
    min-height: 100px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }
  .ac-section,
  .posts-band { padding: 68px 14px; }
  .section-heading h2 { font-size: 37px; }
  .home-content .service-grid,
  .service-grid,
  .process-grid,
  .posts-grid,
  .footer-grid { grid-template-columns: 1fr !important; }
  .service-grid { width: 100%; }
  .service-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 26px !important;
  }
  .service-card h3 { font-size: 24px; }
  .contact-panel { padding: 26px !important; }
  .schedule li { flex-direction: column; gap: 2px; }
  .entry-wrap { width: calc(100% - 28px); padding: 52px 0 72px; }
  .entry-header h1 { font-size: 39px; }
}
