/* AgroInPro — base, shared components, header, mobile menu, footer.
   Values follow Luis's 2026 design (Montserrat, black/white, yellow #F2D12E and sky #8FD3FF accents). */

@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url('../fonts/montserrat-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --aip-ink: #000000;
  --aip-text: #1F1F1F;
  --aip-text-2: #111111;
  --aip-muted: #555555;
  --aip-soft: #333333;
  --aip-line: #D6D6D6;
  --aip-line-2: #CCCCCC;
  --aip-field: #BDBDBD;
  --aip-yellow: #F2D12E;
  --aip-sky: #8FD3FF;
  --aip-sky-pale: #E6F5FF;
  --aip-paper: #FAFAF7;
  --aip-max: 1320px;
  --aip-gutter: clamp(20px, 4vw, 48px);
  --aip-sec-y: clamp(72px, 10vw, 128px);
  --aip-shadow-lift: 0 10px 24px rgba(0, 0, 0, .18);
}

html { scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; background: #FFFFFF; color: var(--aip-ink); }
body { font-family: 'Montserrat', Helvetica, Arial, sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; line-height: 1.5; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--aip-ink); text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; transition: transform .6s ease, filter .3s, opacity .3s; }
input, select, textarea, button { font-family: inherit; }
a, button { transition: background-color .2s, color .2s, transform .2s, box-shadow .25s, border-color .2s, padding .2s; }
:focus-visible { outline: 3px solid var(--aip-sky); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.aip-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--aip-ink); color: #fff; padding: 12px 18px; font-weight: 700; }
.aip-skip:focus { top: 12px; }

.aip-wrap { max-width: var(--aip-max); margin: 0 auto; padding-left: var(--aip-gutter); padding-right: var(--aip-gutter); }
.aip-section { padding-top: var(--aip-sec-y); padding-bottom: var(--aip-sec-y); }

/* ---------- shared type ---------- */
.aip-kicker { font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--aip-muted); }
.aip-h2 { margin-top: 14px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
/* Per-section title widths from the design (14/16/20/22 characters). */
.aip-mw-14 { max-width: 14ch; } .aip-mw-16 { max-width: 16ch; } .aip-mw-20 { max-width: 20ch; } .aip-mw-22 { max-width: 22ch; }
.aip-lead { font-size: clamp(20px, 2vw, 27px); line-height: 1.45; font-weight: 500; max-width: 36ch; text-wrap: pretty; }

/* ---------- buttons & chips ---------- */
.aip-btn, .wp-block-button.aip-btn .wp-block-button__link { display: inline-block; padding: 16px 24px; font-weight: 700; font-size: 16px; line-height: 1.3; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap; }
.aip-btn--dark, .wp-block-button.is-style-aip-dark .wp-block-button__link { background: var(--aip-ink); color: #fff; }
.aip-btn--dark:hover, .wp-block-button.is-style-aip-dark .wp-block-button__link:hover { background: var(--aip-sky); color: var(--aip-ink); transform: translateY(-2px); box-shadow: var(--aip-shadow-lift); }
.aip-btn--lg { padding: 18px 28px; }
.aip-btn--block { display: block; text-align: center; padding: 18px 22px; font-size: 17px; }
.aip-chip { display: inline-block; border: 1.5px solid var(--aip-ink); padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--aip-ink); }
.aip-chip.is-current { background: var(--aip-sky-pale); }

/* Stretched link: makes a whole card clickable while the link text stays the accessible name. */
.aip-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ---------- header ---------- */
.aip-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--aip-line); transition: box-shadow .3s; }
.aip-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.aip-header__bar { max-width: var(--aip-max); margin: 0 auto; padding: 12px var(--aip-gutter); display: flex; gap: 12px 28px; align-items: center; justify-content: space-between; transition: padding .3s; }
.aip-header.is-scrolled .aip-header__bar { padding-top: 6px; padding-bottom: 6px; }
.aip-logo { display: block; flex: 0 0 auto; transform-origin: left center; transition: transform .3s; }
.aip-logo img { width: 128px; height: auto; }
.aip-header.is-scrolled .aip-logo { transform: scale(.86); }

.aip-nav { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 1.6vw, 28px); font-size: clamp(13px, 1.3vw, 15px); font-weight: 500; flex: 1 1 0%; padding-left: clamp(0px, 3vw, 48px); }
.aip-nav__link { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--aip-ink); white-space: nowrap; font-size: inherit; font-weight: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.aip-nav__link:hover { border-bottom-color: var(--aip-sky); }
.aip-nav__link.is-current { border-bottom-color: var(--aip-yellow); }
.aip-menu__caret { font-size: 10px; transition: transform .2s; }
.aip-menu__toggle[aria-expanded="true"] .aip-menu__caret { transform: rotate(180deg); }

.aip-menu, .aip-lang, .aip-search { position: relative; }
.aip-menu__panel { position: absolute; top: calc(100% + 12px); left: -20px; min-width: 320px; background: #fff; border: 1px solid var(--aip-line); border-top: 3px solid var(--aip-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); padding: 8px; display: grid; z-index: 30; }
.aip-menu__panel[hidden] { display: none; }
.aip-menu__item { display: grid; gap: 2px; padding: 12px 14px; color: var(--aip-ink); }
.aip-menu__item:hover, .aip-menu__item.is-current { background: var(--aip-sky-pale); }
.aip-menu__label { font-size: 15px; font-weight: 700; }
.aip-menu__sub { font-size: 13px; font-weight: 500; color: var(--aip-soft); }

.aip-header__tools { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.aip-header__contact { margin-right: 6px; padding: 12px 18px; font-size: 14px; }
.aip-icon-btn { height: 44px; min-width: 44px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 0 10px; background: none; border: 0; cursor: pointer; color: var(--aip-ink); font-size: 14px; font-weight: 700; }
.aip-icon-btn:hover { background: #F2F2F2; }
.aip-lang__panel { left: auto; right: 0; min-width: 200px; }
.aip-lang__item { grid-template-columns: 1fr auto; align-items: center; }
.aip-lang__code { font-size: 12px; font-weight: 700; color: var(--aip-muted); }
.aip-search__panel { position: absolute; right: 0; top: calc(100% + 12px); background: #fff; border: 1px solid var(--aip-line); border-top: 3px solid var(--aip-ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); padding: 10px; z-index: 30; }
.aip-search__panel[hidden] { display: none; }
.aip-search__panel input { width: min(320px, 80vw); border: 1px solid var(--aip-field); padding: 12px 14px; font-size: 16px; }

.aip-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; }
.aip-burger span { display: block; width: 26px; height: 2px; background: var(--aip-ink); }
.aip-burger .aip-burger__accent { width: 18px; background: var(--aip-yellow); align-self: center; margin-left: 8px; }

@media (max-width: 1099px) {
  .aip-nav, .aip-header__tools { display: none; }
  .aip-burger { display: flex; }
}

/* ---------- mobile menu ---------- */
.aip-mobile { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; display: flex; flex-direction: column; }
.aip-mobile[hidden] { display: none; }
.aip-mobile__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--aip-line); }
.aip-mobile__close { width: 48px; height: 48px; background: none; border: 0; cursor: pointer; font-size: 30px; line-height: 1; color: var(--aip-ink); }
.aip-mobile__body { padding: 24px 20px 40px; display: grid; gap: 28px; }
.aip-mobile__main { display: grid; }
.aip-mobile__main a { padding: 12px 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; border-left: 4px solid transparent; }
.aip-mobile__main a.is-current { border-left-color: var(--aip-yellow); padding-left: 14px; }
.aip-mobile__group { display: grid; gap: 4px; }
.aip-mobile__group .aip-kicker { margin-bottom: 6px; }
.aip-mobile__group a { padding: 10px 0; font-size: 19px; font-weight: 700; }
.aip-mobile__langs { display: flex; gap: 8px; flex-wrap: wrap; }
body.aip-menu-open { overflow: hidden; }

/* ---------- closing CTA band ---------- */
.aip-cta-band { border-top: 1px solid var(--aip-line); }
.aip-cta-band__inner { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.aip-cta-band__title { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; max-width: 20ch; }

/* ---------- footer ---------- */
.aip-footer { position: relative; overflow: hidden; background: #fff; color: var(--aip-text); border-top: 1px solid var(--aip-line); }
.aip-footer__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; }
.aip-footer::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,.38) 100%); }
.aip-footer__inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 32px; font-weight: 600; text-shadow: 0 0 10px #fff, 0 0 4px #fff, 0 0 2px #fff; }
.aip-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.aip-footer__brand { display: grid; gap: 16px; align-content: start; }
.aip-footer__brand img { width: 160px; }
.aip-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 30ch; }
.aip-footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.aip-footer__col a:hover { text-decoration: underline; text-decoration-color: var(--aip-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.aip-footer__head { color: var(--aip-ink); font-size: 12px; letter-spacing: .14em; font-weight: 600; margin-bottom: 6px; }
.aip-footer__legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--aip-line); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; }
.aip-footer__legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
