/*
Theme Name: Avances Caravana
Theme URI: https://avances-caravana.com/
Author: ChatGPT
Author URI: https://openai.com/
Description: Fast, responsive Spanish WordPress theme for caravan awnings, van-life travel and outdoor touring. Admin labels and editor controls are in English; public interface is in Spanish.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avances-caravana
Tags: blog, custom-logo, custom-menu, featured-images, block-styles, responsive-layout
*/

:root {
  --avc-brown: #78501f;
  --avc-brown-dark: #4e3214;
  --avc-brown-soft: #a6793e;
  --avc-sand: #f4ead7;
  --avc-sand-2: #fbf6ed;
  --avc-rust: #c7512a;
  --avc-rust-dark: #9d381c;
  --avc-olive: #506b45;
  --avc-ink: #231b14;
  --avc-muted: #6d635a;
  --avc-line: #eadfce;
  --avc-white: #fffdf8;
  --avc-shadow: 0 18px 44px rgba(78, 50, 20, .14);
  --avc-radius: 26px;
  --avc-content: 780px;
  --avc-wide: 1280px;
  --avc-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --avc-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  margin: 0;
  color: var(--avc-ink);
  background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 460px, #fbf6ed 100%);
  font-family: var(--avc-body);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--avc-rust); text-decoration-thickness: .09em; text-underline-offset: .18em; transition: color .2s ease, background .2s ease, transform .2s ease; }
a:hover, a:focus { color: var(--avc-brown-dark); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
.screen-reader-text, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.skip-link:focus {
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 8px;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--avc-rust);
  border-radius: 999px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--avc-brown-dark), var(--avc-brown) 42%, #7d511d);
  box-shadow: 0 8px 24px rgba(42, 28, 14, .15);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(var(--avc-wide), calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: stretch; min-width: 190px; align-self: stretch; }
.site-branding a,
.site-branding .custom-logo-link,
.default-logo-link { display: flex; align-items: center; text-decoration: none; color: #f8e7c5; max-width: 100%; }
.default-logo-link {
  position: relative;
  margin-left: -10px;
  padding: 8px 28px 8px 10px;
  isolation: isolate;
}
.default-logo-link::before {
  content: "";
  position: absolute;
  inset: 2px -8px 2px -8px;
  z-index: -1;
  border-radius: 22px 58px 58px 22px;
  background:
    radial-gradient(circle at 16% 50%, rgba(255, 241, 206, .98) 0 24%, rgba(255, 233, 185, .90) 24%, rgba(255, 224, 160, .62) 46%, rgba(190, 124, 57, .22) 68%, rgba(120, 80, 31, 0) 100%),
    linear-gradient(90deg, rgba(255, 239, 205, .75) 0%, rgba(233, 188, 123, .28) 52%, rgba(120, 80, 31, 0) 100%);
  box-shadow: 0 10px 24px rgba(48, 30, 12, .10);
  pointer-events: none;
}
.custom-logo-link img, .default-logo {
  width: auto;
  max-width: clamp(170px, 16vw, 248px);
  height: auto;
  max-height: 76px;
  object-fit: contain;
}
.default-logo { position: relative; z-index: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.10)); image-rendering: -webkit-optimize-contrast; }
.primary-navigation { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: flex-end; }
.primary-navigation ul { list-style: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; }
.primary-navigation li { margin: 0; }
.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 15px;
  color: #f5debd;
  font-family: var(--avc-head);
  font-weight: 800;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
}
.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { background: rgba(255,255,255,.12); color: #fff9eb; }
.header-search { display: flex; align-items: center; }
.header-search .search-field {
  width: 164px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08));
  color: #fff;
  padding: 10px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.08);
}
.header-search .search-field::placeholder { color: #ead4b4; }
.header-search .search-submit {
  margin-left: -48px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #f4e3c7;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), rgba(255,255,255,.05));
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.header-search .search-submit:hover,
.header-search .search-submit:focus { transform: translateY(-1px) scale(1.04); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,.08)); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.search-icon { display: inline-flex; width: 24px; height: 24px; }
.search-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color: #fff5e0;
  cursor: pointer;
}
.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 4px;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-menu-toggle span::before { transform: translateY(-7px); }
.mobile-menu-toggle span::after { transform: translateY(5px); }
.menu-open .mobile-menu-toggle span { background: transparent; }
.menu-open .mobile-menu-toggle span::before { background: #fff5e0; transform: rotate(45deg); }
.menu-open .mobile-menu-toggle span::after { background: #fff5e0; transform: rotate(-45deg) translate(1px, -1px); }

/* Shared layout */
.site-main { min-height: 60vh; }
.container { width: min(var(--avc-wide), calc(100% - 40px)); margin: 0 auto; }
.content-container { width: min(var(--avc-content), calc(100% - 40px)); margin: 0 auto; }
.wide-section { width: min(var(--avc-wide), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: clamp(42px, 7vw, 92px) 0; }
.top-statement {
  background: rgba(255,253,248,.96);
  border-bottom: 1px solid rgba(120,80,31,.10);
  text-align: center;
  padding: clamp(38px, 5vw, 74px) 20px clamp(32px, 4vw, 58px);
}
.top-statement h1,
.page-title,
.archive-title,
.entry-title {
  margin: 0;
  color: var(--avc-brown);
  font-family: var(--avc-head);
  font-size: clamp(2.65rem, 7vw, 5.2rem);
  line-height: .94;
  letter-spacing: .01em;
  text-transform: none;
}
.top-statement p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--avc-muted);
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
}
.button,
.wp-block-button__link,
.avc-button,
.contact-submit,
.search-submit-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 21px;
  border: 0;
  border-radius: 12px;
  color: #fffdf8 !important;
  background: linear-gradient(135deg, var(--avc-rust), #dd7b3f);
  box-shadow: 0 12px 28px rgba(199,81,42,.25);
  font-family: var(--avc-head);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover,
.avc-button:hover,
.contact-submit:hover,
.search-submit-page:hover { transform: translateY(-1px); color: #fff !important; background: linear-gradient(135deg, var(--avc-rust-dark), #cb612e); }

/* Carousel */
.hero-carousel-wrap {
  position: relative;
  width: min(1540px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(32px, 5vw, 52px) 0 0;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--avc-shadow);
  background: #2d241d;
  isolation: isolate;
}
.hero-slide {
  display: none;
  min-height: clamp(430px, 56vw, 690px);
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { display: flex; }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35,27,20,.58), rgba(35,27,20,.18) 48%, rgba(35,27,20,.48)), linear-gradient(0deg, rgba(35,27,20,.48), rgba(35,27,20,.18));
  z-index: 1;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 116px));
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.32);
}
.hero-slide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7e6;
  background: rgba(117,79,34,.78);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: none;
}
.hero-slide h2 {
  margin: 0;
  font-family: var(--avc-head);
  font-size: clamp(3rem, 8vw, 7.7rem);
  line-height: .88;
  letter-spacing: .008em;
}
.hero-slide p {
  max-width: 850px;
  margin: 16px auto 24px;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.45;
}
.hero-control {
  position: absolute;
  top: 54%;
  z-index: 5;
  width: clamp(50px, 5vw, 72px);
  height: clamp(50px, 5vw, 72px);
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  color: var(--avc-brown-dark);
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.hero-control:hover { background: #fff; }
.hero-control::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-top: 7px solid currentColor;
  border-right: 7px solid currentColor;
  margin: auto;
}
.hero-prev { left: clamp(12px, 3vw, 42px); }
.hero-next { right: clamp(12px, 3vw, 42px); }
.hero-prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.hero-next::before { transform: rotate(45deg) translate(-1px, 1px); }
.hero-dots { display: flex; justify-content: center; gap: 10px; margin: 22px 0 0; }
.hero-dot { width: 12px; height: 12px; border: 0; border-radius: 999px; background: #d4b689; cursor: pointer; }
.hero-dot.is-active { width: 38px; background: var(--avc-rust); }

/* Cards and grids */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2 {
  margin: 0;
  color: var(--avc-brown);
  font-family: var(--avc-head);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: .95;
}
.post-grid,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.7vw, 34px);
}
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(120,80,31,.10);
  border-radius: var(--avc-radius);
  background: rgba(255,253,248,.94);
  box-shadow: 0 12px 32px rgba(78, 50, 20, .09);
}
.post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #d9c59f, #7a8d62);
}
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover img { transform: scale(1.045); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-meta, .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--avc-muted);
  font-size: .86rem;
  font-weight: 700;
}
.post-card-meta span, .entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card h3 {
  margin: 0;
  color: var(--avc-ink);
  font-family: var(--avc-head);
  font-size: clamp(1.65rem, 2.45vw, 2.45rem);
  line-height: .98;
}
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--avc-rust); }
.post-card p { margin: 0; color: var(--avc-muted); }
.card-read-more { margin-top: auto; align-self: flex-start; font-family: var(--avc-head); font-weight: 800; text-decoration: none; }
.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 44px 0 0; }
.page-numbers, .nav-links a, .nav-links span {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fffdf8;
  border: 1px solid var(--avc-line);
  text-decoration: none;
  font-weight: 800;
}
.page-numbers.current { color: #fff; background: var(--avc-brown); border-color: var(--avc-brown); }

/* Single and pages */
.article-shell { padding: clamp(38px, 7vw, 82px) 0; }
.entry-header { width: min(980px, calc(100% - 40px)); margin: 0 auto 28px; text-align: center; }
.entry-header .entry-title { margin-top: 12px; }
.entry-thumbnail {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 38px;
  overflow: hidden;
  border-radius: var(--avc-radius);
  box-shadow: var(--avc-shadow);
}
.entry-thumbnail img { width: 100%; max-height: 660px; object-fit: cover; }
.entry-content {
  width: min(var(--avc-content), calc(100% - 40px));
  margin: 0 auto;
  font-size: 1.04rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content .subtitle {
  color: var(--avc-brown);
  font-family: var(--avc-head);
  line-height: .98;
  letter-spacing: .01em;
}
.entry-content h2 { margin: 2.1em 0 .55em; font-size: clamp(2.25rem, 5vw, 4.1rem); }
.entry-content h3 { margin: 1.8em 0 .5em; font-size: clamp(1.85rem, 3.6vw, 3rem); }
.entry-content h4 { margin: 1.55em 0 .45em; font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.entry-content p { margin: 1.1em 0; }
.entry-content strong, .entry-content b { color: var(--avc-brown-dark); font-weight: 800; }
.entry-content em, .entry-content i { color: #544437; }
.entry-content ul,
.entry-content ol { padding-left: 1.35em; margin: 1.2em 0; }
.entry-content li { margin: .42em 0; }
.entry-content ul li::marker { color: var(--avc-rust); }
.entry-content ol li::marker { color: var(--avc-rust); font-weight: 800; }
.entry-content a { font-weight: 700; }
.entry-content .subtitle {
  display: inline-flex;
  margin: 1.2em 0 .35em;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--avc-olive), var(--avc-brown));
  font-size: 1.08rem;
  text-transform: uppercase;
}
.entry-content blockquote,
.wp-block-quote {
  position: relative;
  margin: 2em 0;
  padding: 28px 28px 28px 78px;
  border: 1px solid rgba(120,80,31,.15);
  border-left: 8px solid var(--avc-rust);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff4df, #fffdf8);
  box-shadow: 0 12px 30px rgba(120,80,31,.08);
  color: #3f3124;
  font-weight: 700;
}
.entry-content blockquote::before,
.wp-block-quote::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 29px;
  width: 36px;
  height: 28px;
  background: currentColor;
  color: var(--avc-brown);
  opacity: .9;
  clip-path: path("M2 19h3l2-8h14l2 8h4a5 5 0 0 1 5 5v2h-4a5 5 0 0 1-10 0H12a5 5 0 0 1-10 0H0v-4a3 3 0 0 1 2-3Zm8 7a2 2 0 1 0 0-.1Zm15 0a2 2 0 1 0 0-.1ZM9 13l-1.2 6h13.4L20 13Z");
}
.entry-content blockquote p { margin: 0 0 .75em; }
.entry-content blockquote cite { color: var(--avc-muted); font-style: normal; font-weight: 700; }
.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.7em 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(78,50,20,.08);
}
.entry-content th,
.entry-content td { border: 1px solid var(--avc-line); padding: 13px 15px; vertical-align: top; }
.entry-content th { background: #f2e0bf; color: var(--avc-brown-dark); text-align: left; }
.entry-footer { width: min(var(--avc-content), calc(100% - 40px)); margin: 36px auto 0; color: var(--avc-muted); }
.post-navigation { width: min(var(--avc-content), calc(100% - 40px)); margin: 56px auto 0; }
.post-navigation .nav-links { justify-content: space-between; }
.author-box {
  width: min(var(--avc-content), calc(100% - 40px));
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: #fffdf8;
  border: 1px solid var(--avc-line);
}
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0; font-family: var(--avc-head); font-size: 1.8rem; color: var(--avc-brown); }
.author-box p { margin: 4px 0 0; color: var(--avc-muted); }

/* Product block */
.avc-product-card {
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(0, 1.25fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin: 2.2em auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7e6, #f0dcc0 48%, #d5b077);
  box-shadow: 0 18px 46px rgba(120,80,31,.16);
  border: 1px solid rgba(120,80,31,.12);
}
.avc-product-card__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}
.avc-product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.avc-product-card__body h3 {
  margin: 0 0 10px;
  color: var(--avc-brown-dark);
  font-family: var(--avc-head);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: .94;
}
.avc-product-card__body p { color: #4d3927; margin: 0 0 20px; font-weight: 600; }

/* Contact */
.contact-layout {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
}
.contact-content, .contact-form-card, .search-card {
  border-radius: 28px;
  background: rgba(255,253,248,.96);
  border: 1px solid var(--avc-line);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--avc-shadow);
}
.contact-form-card h2 { margin-top: 0; color: var(--avc-brown); font-family: var(--avc-head); font-size: 2.6rem; line-height: .95; }
.contact-field { margin: 0 0 16px; }
.contact-field label { display: block; margin-bottom: 7px; color: var(--avc-brown-dark); font-weight: 800; }
.contact-field input, .contact-field textarea, .search-field-page {
  width: 100%;
  border: 1px solid #d9c7aa;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fffaf0;
  color: var(--avc-ink);
}
.contact-field textarea { min-height: 150px; resize: vertical; }
.contact-notice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 14px;
  font-weight: 800;
}
.contact-success { color: #254526; background: #e4f2df; }
.contact-error { color: #6f2418; background: #ffe1d8; }

/* Footer */
.site-footer {
  margin-top: clamp(52px, 8vw, 92px);
  color: #fbeacf;
  background: linear-gradient(135deg, var(--avc-brown-dark), var(--avc-brown) 54%, #33472f);
}
.footer-inner {
  width: min(var(--avc-wide), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 70px) 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .85fr .85fr; gap: clamp(28px, 5vw, 70px); }
.footer-logo-link { display: inline-flex; align-items: center; max-width: 100%; text-decoration: none; }
.footer-logo { width: min(240px, 100%); max-width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,.18)); }
.footer-brand p { color: #ecd5b5; max-width: 420px; margin-top: 18px; }
.footer-menu-title { margin: 0 0 12px; color: #fff4df; font-family: var(--avc-head); font-size: 1.9rem; line-height: 1; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin: 9px 0; }
.footer-menu a { color: #f4dfbd; text-decoration: none; font-weight: 700; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #e6caa2; font-size: .92rem; }
.footer-bottom a { color: #fff0d5; }

/* 404 */
.not-found-404 { text-align: center; padding: clamp(44px, 9vw, 120px) 20px; }
.not-found-404 svg { width: min(360px, 80vw); margin: 0 auto 24px; }
.not-found-404 h1 { font-family: var(--avc-head); font-size: clamp(3rem, 10vw, 7rem); line-height: .9; color: var(--avc-brown); margin: 0; }
.not-found-404 p { max-width: 640px; margin: 18px auto 26px; color: var(--avc-muted); }

/* Search */
.search-card { width: min(760px, calc(100% - 40px)); margin: 42px auto 0; }
.search-page-form { display: flex; gap: 10px; }
.search-field-page { min-height: 50px; }

/* Responsive */
@media (max-width: 1080px) {
  .header-inner { width: min(100% - 28px, var(--avc-wide)); }
  .primary-navigation a { padding-inline: 10px; }
  .post-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  html { font-size: 17px; }
  .admin-bar .site-header { top: 0; }
  .header-inner { min-height: 72px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    max-height: calc(100vh - 72px);
    overflow: auto;
    padding: 24px 20px 34px;
    background: linear-gradient(180deg, var(--avc-brown-dark), var(--avc-brown));
    box-shadow: 0 20px 50px rgba(0,0,0,.24);
  }
  .menu-open .primary-navigation { display: flex; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .primary-navigation a { justify-content: center; font-size: 1.34rem; min-height: 50px; }
  .header-search { justify-content: center; }
  .header-search .search-field { width: min(460px, calc(100vw - 80px)); }
  .hero-carousel-wrap { width: min(100% - 24px, 1540px); }
  .hero-slide { min-height: 430px; }
  .hero-slide-content { width: min(100% - 74px, 760px); }
  .hero-slide h2 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero-control { top: auto; bottom: 18px; width: 48px; height: 48px; }
  .hero-prev { left: 18px; }
  .hero-next { right: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .avc-product-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html { font-size: 18px; }
  body { line-height: 1.68; }
  .container, .wide-section, .content-container, .entry-content, .entry-header, .entry-thumbnail, .entry-footer, .post-navigation, .author-box { width: min(100% - 28px, var(--avc-wide)); }
  .top-statement { padding-top: 36px; }
  .top-statement h1, .page-title, .archive-title, .entry-title { font-size: clamp(2.7rem, 15vw, 4.3rem); }
  .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .post-card-body { padding: 20px; }
  .hero-slide { min-height: 390px; }
  .hero-slide-content { width: min(100% - 50px, 640px); }
  .hero-slide p { font-size: 1rem; }
  .hero-slide-kicker { font-size: .75rem; }
  .entry-content { font-size: 1.02rem; }
  .entry-content h2 { font-size: 2.45rem; }
  .entry-content blockquote, .wp-block-quote { padding: 24px 20px 24px 66px; }
  .entry-content table, .wp-block-table table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 16px;
  }
  .search-page-form { flex-direction: column; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-branding { min-width: 0; flex: 1; max-width: calc(100% - 64px); }
  .default-logo-link { margin-left: 0; padding: 6px 14px 6px 8px; }
  .default-logo-link::before { inset: 2px -6px 2px -4px; border-radius: 18px 42px 42px 18px; }
  .custom-logo-link img, .default-logo { max-width: min(210px, 52vw); max-height: 60px; }
}
.header-search .search-page-form { display: flex; gap: 0; align-items: center; }
.header-search .search-field-page {
  min-height: 44px;
  padding-right: 56px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.08);
}
.header-search .search-submit-page {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  margin-left: -48px;
  padding: 0;
  border-radius: 50%;
  color: #f4e3c7 !important;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.2), rgba(255,255,255,.05));
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
  transform: none;
}
.header-search .search-submit-page:hover,
.header-search .search-submit-page:focus {
  color: #fff6df !important;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,.08));
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  transform: translateY(-1px) scale(1.04);
}
.header-search .search-field-page::placeholder { color: #ead4b4; }
.entry-content blockquote::before,
.wp-block-quote::before {
  content: "🚐";
  left: 22px;
  top: 24px;
  width: auto;
  height: auto;
  background: none;
  clip-path: none;
  font-size: 34px;
  line-height: 1;
  opacity: 1;
}
