/* Agro Rota — additions on top of the copied Darna theme CSS (legacy.css).
   Only what the old site got from plugins (Revolution Slider, Owl, Google Translate, YITH quote)
   or genuinely lacks. Built from the theme's own tokens: green #89b20d, Oswald / Lato. */

.ar-demo-ribbon { position: fixed; z-index: 100000; left: 12px; bottom: 12px; background: #89b20d; color: #fff; font: 700 11px/1 Lato, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
/* desktop: the old top bar overlays the header area (theme measured 1px tall, absolute) */
@media (min-width: 992px) { .top-bar { position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 998; } }
/* language item: no caret, so the search icon stays on the menu row like the old site */
.x-nav-menu > li.menu-lang > a .x-caret { display: none; }

/* used machine gallery — WooCommerce look: main image + 4-column thumbnails */
.ar-used-gallery .g-main { cursor: zoom-in; background: #f7f7f7; }
.ar-used-gallery .g-main img { width: 100%; height: auto; display: block; }
.ar-used-gallery .g-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 0; }
.ar-used-gallery .g-thumb { padding: 0; border: 1px solid #fff; background: none; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; opacity: .7; transition: opacity .2s; }
.ar-used-gallery .g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-used-gallery .g-thumb[aria-current="true"], .ar-used-gallery .g-thumb:hover { opacity: 1; }
/* old "SAŅEMT PIEDĀVĀJUMU" button (YITH request-a-quote look) */
.summary-product .ar-quote-btn { background: #89b20d !important; color: #fff !important; border: 2px solid #222 !important; padding: 8px 16px !important; font: 700 12px/1.4 Roboto, sans-serif; text-transform: uppercase; }
.summary-product .ar-quote-btn:hover { background: #222 !important; }
.ar-ask { margin: 70px 0 30px; }

/* language item in the menu (was a Google Translate flag) */
.ar-flag { font-size: 16px; margin-right: 4px; vertical-align: -1px; }

/* ---------- Home hero (replaces Revolution Slider "Home 5") ---------- */
.ar-hero { position: relative; height: 100vh; min-height: 560px; max-height: 1100px; overflow: hidden; background: #1b1b1b; color: #fff; }
.ar-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.ar-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; z-index: 1; }
.ar-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.0); }
.ar-slide.is-active .ar-slide-bg { animation: ar-kenburns 9s ease-out forwards; }
@keyframes ar-kenburns { from { transform: scale(1.0); } to { transform: scale(1.08); } }
.ar-slide::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.ar-slide-inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 20px 40px; }
.ar-slide h2 { font-family: Oswald, sans-serif; font-weight: 400; color: #fff; text-transform: uppercase; margin: 0; line-height: 1.15; font-size: 60px; letter-spacing: 0; }
.ar-slide h2 + h2 { margin-top: 4px; }
.ar-slide .ar-sub { font-family: Lato, sans-serif; font-size: 16px; letter-spacing: .02em; color: #fff; text-transform: uppercase; margin: 34px 0 40px; max-width: 900px; }
.ar-slide .ar-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.ar-slide .ar-btn { display: inline-block; font: 400 14px/1 Roboto, sans-serif; text-transform: uppercase; color: #fff; padding: 13px 21px; border: 2px solid #fff; text-decoration: none; transition: all .3s; }
.ar-slide .ar-btn.ar-btn-green { background: #89b20d; border-color: #89b20d; }
.ar-slide .ar-btn:hover { background: #fff; color: #222; border-color: #fff; }
/* layered entrance like the RS frames (title drops, subtitle + buttons follow) */
.ar-slide h2, .ar-slide .ar-sub, .ar-slide .ar-btns { opacity: 0; transform: translateY(-40px); }
.ar-slide.is-active h2 { animation: ar-drop .9s cubic-bezier(.34, 1.56, .64, 1) .25s forwards; }
.ar-slide.is-active h2 + h2 { animation-delay: .45s; }
.ar-slide.is-active .ar-sub { animation: ar-rise .65s cubic-bezier(.68, -.55, .27, 1.55) 1s forwards; }
.ar-slide.is-active .ar-btns { animation: ar-rise .9s cubic-bezier(.34, 1.56, .64, 1) 1.6s forwards; }
@keyframes ar-drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes ar-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.ar-hero-prev, .ar-hero-next { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; background: rgba(0, 0, 0, .25); color: #fff; cursor: pointer; font-size: 20px; opacity: 0; transition: opacity .3s, background .3s; }
.ar-hero:hover .ar-hero-prev, .ar-hero:hover .ar-hero-next { opacity: 1; }
.ar-hero-prev:hover, .ar-hero-next:hover { background: #89b20d; }
.ar-hero-prev { left: 20px; } .ar-hero-next { right: 20px; }
.ar-hero-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 8px; }
.ar-hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.ar-hero-dots button.active { background: #89b20d; border-color: #89b20d; }

/* ---------- Product grid where the old site used an Owl carousel ---------- */
.ar-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.ar-latest .product-item-wrap { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.ar-ask { font-size: 13px; font-weight: 400; color: #777; }

/* ---------- Popular categories (was owl darna-services) ---------- */
.ar-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ar-services .darna-services-item { display: block !important; }

/* ---------- Testimonials rotator (was owl fade) ---------- */
.ar-rotator .darna-testimonial-item { display: none; }
.ar-rotator .darna-testimonial-item.is-active { display: block; animation: ar-fade .8s ease; }
@keyframes ar-fade { from { opacity: 0; } to { opacity: 1; } }
.ar-testimonial-pag { text-align: center; margin-top: 28px; }
.ar-testimonial-pag .owl-page { display: inline-block; cursor: pointer; }
.ar-testimonial-pag .owl-page span { display: block; width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; border: 1px solid #fff; }
.ar-testimonial-pag .owl-page.active span { background: #89b20d; border-color: #89b20d; }

/* ---------- Brand catalogue tiles (old "Papildaprīkojumu katalogs") ---------- */
.ar-brand-logo { display: flex; align-items: center; justify-content: center; height: 225px; background: #fff; }
.ar-brand-logo img { max-height: 160px; width: auto; }
.ar-brand-word { font: 500 34px/1.1 Oswald, sans-serif; color: #222; text-transform: uppercase; text-align: center; }
.ar-brand-word small { display: block; font: 400 13px/1.4 Lato, sans-serif; color: #888; letter-spacing: .1em; margin-top: 8px; }
.ar-brand-col .darna-button { display: block; text-align: center; }

/* ---------- Shop sidebar list (cleaned categories) ---------- */
.ar-cat-count { color: #999; font-size: 12px; margin-left: 4px; }
.product-categories li.current-cat > a { color: #89b20d; }
.ar-search-out { position: relative; }
.ar-search-out .search-out { position: absolute; z-index: 30; left: 0; right: 0; top: 4px; background: #fff; border: 1px solid #eee; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 60vh; overflow: auto; }
.ar-search-out .search-out a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #f2f2f2; font-size: 13px; color: #333; }
.ar-search-out .search-out a:hover { background: #f7f7f7; color: #89b20d; }
.ar-search-out .search-out img { width: 48px; height: 36px; object-fit: contain; }
.ar-search-out .search-out small { display: block; color: #999; font-size: 11px; }
.ar-search-out .search-out p { padding: 10px; margin: 0; color: #999; }

/* used machine summary — quote button replaces the cart */
.summary-product .ar-quote-btn { display: inline-block; margin: 10px 0 18px; }
.summary-product .ar-facts { list-style: none; padding: 0; margin: 0 0 18px; }
.summary-product .ar-facts li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.summary-product .ar-facts li b { display: inline-block; min-width: 140px; font-weight: 700; color: #222; }

.form-ok { background: #f2f7e4; color: #5d7a07; border: 1px solid #cfe09a; padding: 10px 14px; font-weight: 700; }

/* mobile */
@media (max-width: 991px) {
  .ar-latest, .ar-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-slide h2 { font-size: 40px; }
  .x-nav-menu > li.menu-item-has-children > ul.x-sub-menu { display: none; }
  .x-nav-menu > li.menu-item-has-children.ar-open > ul.x-sub-menu { display: block; position: static; opacity: 1; visibility: visible; }
  .main-menu-overlay.in { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99999; }
}
@media (max-width: 600px) {
  .ar-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ar-services { grid-template-columns: 1fr; }
  .ar-slide h2 { font-size: 30px; }
  .ar-slide .ar-sub { font-size: 13px; margin: 20px 0 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-slide.is-active .ar-slide-bg, .ar-slide.is-active h2, .ar-slide.is-active .ar-sub, .ar-slide.is-active .ar-btns { animation: none; opacity: 1; transform: none; }
}

/* Kontakti: old page showed plain dark text */
.darna-icon-box p a { color: inherit; }
.ar-req p, .ar-req strong { color: #000; }
/* product search box with the theme's green square button */
.ar-search-out form { display: flex; }
.ar-search-out form .search-field { flex: 1; height: 36px; border: 1px solid #eee; padding: 0 12px; font-size: 13px; }
.ar-search-out form button { width: 36px; height: 36px; border: 0; background: #89b20d; color: #fff; }
.wpcf7-form input[type="email"] { width: 100%; }
@media (max-width: 991px) {
  /* languages always listed under the current one in the fly-out menu */
  .x-nav-menu > li.menu-lang > ul.x-sub-menu { display: block !important; position: static; opacity: 1; visibility: visible; }
  .main-menu-overlay.in { z-index: 99998; }
}
.ar-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: #fdecea; color: #b42318; border: 1px solid #f5c2bd; padding: 10px 14px; font-weight: 700; margin: 0; }
.ar-reserved { display: inline-block; background: #f2b200; color: #222; font: 700 12px/1 Roboto, sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; margin: 0 0 10px; }
/* Indulis 2026-11-24: no slider dots on the home hero */
.ar-hero-dots { display: none !important; }
/* /tehnika/: black name bar as wide as the photo */
.ar-tehnika .wpb_single_image { margin-bottom: 0 !important; }
.ar-tehnika .wpb_single_image img { display: block; width: 100%; }
.ar-tehnika .darna-button { display: block; width: 100%; box-sizing: border-box; margin: 0; text-align: left; }

/* About page: larger copy to fill the column next to the portrait photo (2026-11-25) */
.darna-icon-box.style3.about-text h3{font-size:34px;line-height:1.2}
.darna-icon-box.style3.about-text p{font-size:22px;line-height:1.75;color:#5f5f5f}
@media (min-width:992px){.darna-icon-box.style3.about-text{padding-top:60px}}
@media (max-width:991px){.darna-icon-box.style3.about-text p{font-size:19px}}

/* Home "Par mums": title sits above the text, left-aligned, next to the photo (2026-11-25) */
.darna-heading.ar-heading-left{text-align:left}
.darna-heading.ar-heading-left h2:before{left:0;right:auto;margin:0}
.darna-heading.ar-heading-left:after{margin-left:0}
@media (max-width:991px){.darna-heading.ar-heading-left{text-align:center}.darna-heading.ar-heading-left h2:before{left:0;right:0;margin:auto}.darna-heading.ar-heading-left:after{margin-left:auto}}
.darna-heading.ar-heading-left + .wpb_text_column{padding-top:0!important;margin-top:0!important}
.darna-heading.ar-heading-left + .wpb_text_column p{font-size:16px;line-height:1.8}
.darna-heading.ar-heading-left + .wpb_text_column + .darna-button{margin-top:18px}

/* Footer slideshow (2026-12-01): hero images behind the existing dark overlay (footer::before) */
footer.main-footer-wrapper{z-index:0;background-image:none!important}/* old static photo removed */
.ar-footer-bg,.ar-footer-bg i{position:absolute;inset:0}
.ar-footer-bg{z-index:-1;overflow:hidden}
/* grey + darkened so it reads like the old dark grey footer; footer::before adds its 50% black on top */
.ar-footer-bg i{background:center/cover no-repeat;filter:grayscale(1) brightness(.6);opacity:0;transition:opacity 1.6s ease}
.ar-footer-bg i.is-active{opacity:1}
