/*
Theme Name: AOTONS Georgia
Theme URI: https://aotons.ge
Author: CPMG.GE — Construction Project Management Group
Author URI: https://cpmg.ge
Description: AOTONS Georgia — პოლიმერული დამცავი ბარიერების ოფიციალური წარმომადგენლის საიტის თემა. პროდუქციის კატალოგი, სიახლეები, ფასის მოთხოვნის ფორმა, ქართული/ინგლისური (Polylang).
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: aotons-ge
*/

:root {
	--ag-yellow: #f5b800;
	--ag-gold: #c59507;
	--ag-dark: #212934;
	--ag-darker: #161c24;
	--ag-text: #3d424b;
	--ag-muted: #6b717c;
	--ag-line: #e3e5e8;
	--ag-bg: #f5f6f7;
	--ag-white: #fff;
	--ag-radius: 6px;
	--ag-shadow: 0 6px 24px rgba(22, 28, 36, .08);
	--ag-max: 1200px;
	--ag-font: "Rubik", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--ag-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ag-text);
	background: var(--ag-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ag-gold); text-decoration: none; }
a:hover { color: var(--ag-dark); }
h1, h2, h3, h4 { color: var(--ag-dark); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.ag-container { max-width: var(--ag-max); margin: 0 auto; padding: 0 20px; }
.ag-section { padding: 80px 0; }
.ag-section--grey { background: var(--ag-bg); }
.ag-section--dark { background: var(--ag-dark); color: #c9ced6; }
.ag-section--dark h2, .ag-section--dark h3 { color: #fff; }
.ag-section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.ag-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ag-gold); margin-bottom: 10px; }
.ag-lead { font-size: 1.1rem; color: var(--ag-muted); }

/* Buttons */
.ag-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--ag-radius);
	font-weight: 600; font-size: .95rem; border: 2px solid transparent;
	cursor: pointer; transition: .2s; font-family: inherit; line-height: 1.2;
}
.ag-btn--primary { background: var(--ag-yellow); color: var(--ag-darker); }
.ag-btn--primary:hover { background: var(--ag-gold); color: #fff; }
.ag-btn--outline { border-color: currentColor; color: #fff; background: transparent; }
.ag-btn--outline:hover { background: #fff; color: var(--ag-dark); }
.ag-btn--dark { background: var(--ag-dark); color: #fff; }
.ag-btn--dark:hover { background: var(--ag-darker); color: var(--ag-yellow); }

/* Top bar */
.ag-topbar { background: var(--ag-darker); color: #aeb4bd; font-size: .85rem; }
.ag-topbar .ag-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.ag-topbar a { color: #dfe3e8; }
.ag-topbar a:hover { color: var(--ag-yellow); }
.ag-topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.ag-topbar__rep { color: #8b929c; }
.ag-topbar__rep strong { color: var(--ag-yellow); font-weight: 500; }

/* Header */
.ag-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--ag-line); }
.ag-header .ag-container { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.ag-logo { display: flex; align-items: center; gap: 12px; color: var(--ag-dark); }
.ag-logo img, .ag-logo .custom-logo { max-height: 46px; width: auto; }
.ag-logo__text { font-size: 1.6rem; font-weight: 700; letter-spacing: .04em; color: var(--ag-dark); }
.ag-logo__text span { color: var(--ag-gold); }
.ag-logo__sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ag-muted); border-left: 2px solid var(--ag-yellow); padding-left: 10px; line-height: 1.3; }
.ag-nav { display: flex; align-items: center; gap: 28px; }
.ag-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.ag-nav a { color: var(--ag-dark); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.ag-nav a:hover, .ag-nav .current-menu-item > a, .ag-nav .is-active > a { border-bottom-color: var(--ag-yellow); color: var(--ag-dark); }
.ag-lang { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ag-lang a { display: block; padding: 4px 10px; border: 1px solid var(--ag-line); border-radius: 4px; font-size: .8rem; font-weight: 600; color: var(--ag-dark); }
.ag-lang .is-current a { background: var(--ag-dark); border-color: var(--ag-dark); color: #fff; }
.ag-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.ag-burger span { display: block; width: 26px; height: 2px; background: var(--ag-dark); margin: 6px 0; transition: .2s; }

/* Hero */
.ag-hero { position: relative; color: #fff; background: var(--ag-dark) center/cover no-repeat; }
.ag-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,28,36,.94) 0%, rgba(22,28,36,.75) 50%, rgba(22,28,36,.35) 100%); }
.ag-hero .ag-container { position: relative; padding-top: 120px; padding-bottom: 120px; }
.ag-hero__inner { max-width: 660px; }
.ag-hero h1 { color: #fff; }
.ag-hero h1 em { font-style: normal; color: var(--ag-yellow); }
.ag-hero p { font-size: 1.15rem; color: #d6dae0; margin-bottom: 32px; }
.ag-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ag-hero__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--ag-yellow) 0 22px, var(--ag-darker) 22px 44px); }

/* USP strip */
.ag-usp { background: var(--ag-yellow); }
.ag-usp .ag-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ag-usp__item { padding: 26px 22px; color: var(--ag-darker); border-right: 1px solid rgba(0,0,0,.1); }
.ag-usp__item:last-child { border-right: 0; }
.ag-usp__item strong { display: block; font-size: 1.05rem; }
.ag-usp__item span { font-size: .88rem; opacity: .8; }

/* Grids & cards */
.ag-grid { display: grid; gap: 26px; }
.ag-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ag-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ag-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ag-card { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.ag-card:hover { box-shadow: var(--ag-shadow); transform: translateY(-3px); border-color: transparent; }
.ag-card__img { aspect-ratio: 4/3; background: var(--ag-bg); overflow: hidden; }
.ag-card__img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.ag-card:hover .ag-card__img img { transform: scale(1.04); }
.ag-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ag-card__body h3 { margin-bottom: 8px; }
.ag-card__body h3 a { color: var(--ag-dark); }
.ag-card__body p { font-size: .93rem; color: var(--ag-muted); flex: 1; }
.ag-card__meta { font-size: .8rem; color: var(--ag-muted); margin-bottom: 6px; }
.ag-card__more { font-weight: 600; font-size: .9rem; margin-top: 8px; }
.ag-models { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.ag-models li { background: var(--ag-bg); border: 1px solid var(--ag-line); font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; color: var(--ag-dark); }

/* Category filter */
.ag-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; list-style: none; padding: 0; }
.ag-filter a { display: block; padding: 8px 18px; border-radius: 30px; border: 1px solid var(--ag-line); color: var(--ag-dark); font-size: .9rem; background: #fff; }
.ag-filter a:hover, .ag-filter .is-active a { background: var(--ag-dark); color: #fff; border-color: var(--ag-dark); }

/* Feature (Armorflex) */
.ag-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ag-split__img img { border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); }
.ag-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.ag-checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.ag-checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ag-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23161c24' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }
.ag-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ag-feature { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--ag-radius); padding: 24px; }
.ag-feature__num { font-size: 2rem; font-weight: 700; color: var(--ag-yellow); line-height: 1; margin-bottom: 10px; }
.ag-feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ag-feature p { font-size: .9rem; margin: 0; }

/* Industries */
.ag-industry { position: relative; border-radius: var(--ag-radius); overflow: hidden; aspect-ratio: 4/3; background: var(--ag-dark); }
.ag-industry img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: .4s; }
.ag-industry:hover img { opacity: .55; transform: scale(1.05); }
.ag-industry span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Quote / CTA */
.ag-cta { background: var(--ag-dark); color: #c9ced6; position: relative; overflow: hidden; }
.ag-cta::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--ag-yellow) 0 18px, var(--ag-darker) 18px 36px); }
.ag-cta .ag-split { align-items: start; }
.ag-cta h2 { color: #fff; }
.ag-contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.ag-contact-list li { margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.ag-contact-list b { color: var(--ag-yellow); min-width: 90px; font-weight: 500; }
.ag-contact-list a { color: #fff; }

.ag-form { background: #fff; padding: 32px; border-radius: var(--ag-radius); box-shadow: var(--ag-shadow); color: var(--ag-text); }
.ag-form h3 { margin-bottom: 18px; }
.ag-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; color: var(--ag-dark); }
.ag-form input, .ag-form select, .ag-form textarea {
	width: 100%; padding: 11px 13px; border: 1px solid #d5d8dc; border-radius: var(--ag-radius);
	font: inherit; font-size: .95rem; background: #fff; margin-bottom: 14px; color: var(--ag-text);
}
.ag-form input:focus, .ag-form select:focus, .ag-form textarea:focus { outline: 2px solid var(--ag-yellow); border-color: var(--ag-yellow); }
.ag-form textarea { min-height: 110px; resize: vertical; }
.ag-form .ag-hp { position: absolute; left: -9999px; }
.ag-form__note { font-size: .8rem; color: var(--ag-muted); margin-top: 10px; }
.ag-alert { padding: 14px 18px; border-radius: var(--ag-radius); margin-bottom: 18px; font-size: .95rem; }
.ag-alert--ok { background: #e7f6ea; color: #1d6b31; border: 1px solid #b6e2c0; }
.ag-alert--err { background: #fdecec; color: #9b1c1c; border: 1px solid #f3c0c0; }

/* Page header */
.ag-pagehead { background: var(--ag-dark) center/cover; color: #fff; position: relative; }
.ag-pagehead::before { content: ""; position: absolute; inset: 0; background: rgba(22,28,36,.82); }
.ag-pagehead .ag-container { position: relative; padding-top: 60px; padding-bottom: 60px; }
.ag-pagehead h1 { color: #fff; margin: 0; }
.ag-breadcrumbs { font-size: .85rem; color: #aeb4bd; margin-top: 10px; }
.ag-breadcrumbs a { color: var(--ag-yellow); }

/* Single product */
.ag-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.ag-gallery__main { border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; background: #fff; aspect-ratio: 1/1; }
.ag-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.ag-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.ag-gallery__thumbs button { padding: 0; border: 2px solid var(--ag-line); border-radius: 4px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 1/1; }
.ag-gallery__thumbs button.is-active { border-color: var(--ag-yellow); }
.ag-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ag-product__summary .ag-lead { margin-bottom: 20px; }
.ag-product__apps { background: var(--ag-bg); border-left: 4px solid var(--ag-yellow); padding: 14px 18px; margin: 20px 0; font-size: .95rem; }
.ag-product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ag-specs { width: 100%; border-collapse: collapse; margin: 10px 0 30px; font-size: .92rem; }
.ag-specs th, .ag-specs td { padding: 11px 14px; border: 1px solid var(--ag-line); text-align: left; }
.ag-specs thead th { background: var(--ag-dark); color: #fff; font-weight: 500; }
.ag-specs tbody tr:nth-child(even) { background: var(--ag-bg); }
.ag-specs-wrap { overflow-x: auto; }
.ag-content { max-width: 820px; }
.ag-content ul { padding-left: 20px; }
.ag-content img { border-radius: var(--ag-radius); margin: 20px 0; }

/* News */
.ag-post-meta { font-size: .85rem; color: var(--ag-muted); margin-bottom: 20px; }
.ag-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; }
.ag-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--ag-line); border-radius: 4px; color: var(--ag-dark); }
.ag-pagination .current { background: var(--ag-dark); color: #fff; border-color: var(--ag-dark); }
.ag-empty { text-align: center; color: var(--ag-muted); padding: 40px 0; }

/* Footer */
.ag-footer { background: var(--ag-darker); color: #9aa1ab; font-size: .92rem; }
.ag-footer .ag-container { padding-top: 64px; padding-bottom: 30px; }
.ag-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.ag-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.ag-footer ul { list-style: none; padding: 0; margin: 0; }
.ag-footer li { margin-bottom: 9px; }
.ag-footer a { color: #c9ced6; }
.ag-footer a:hover { color: var(--ag-yellow); }
.ag-footer__rep { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--ag-radius); font-size: .85rem; }
.ag-footer__rep strong { color: var(--ag-yellow); font-weight: 500; }
.ag-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; }

/* Floating call button (mobile) */
.ag-callfab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--ag-yellow); box-shadow: 0 6px 18px rgba(0,0,0,.25); align-items: center; justify-content: center; }
.ag-callfab svg { width: 26px; height: 26px; fill: var(--ag-darker); }

/* WP core alignment helpers */
.alignwide { max-width: 1100px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--ag-muted); }

/* Responsive */
@media (max-width: 1024px) {
	.ag-grid--4, .ag-features { grid-template-columns: repeat(2, 1fr); }
	.ag-footer__grid { grid-template-columns: 1fr 1fr; }
	.ag-usp .ag-container { grid-template-columns: repeat(2, 1fr); }
	.ag-usp__item:nth-child(2) { border-right: 0; }
}
@media (max-width: 860px) {
	.ag-burger { display: block; }
	.ag-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; box-shadow: var(--ag-shadow); max-height: calc(100vh - 80px); overflow: auto; }
	.ag-nav.is-open { display: flex; }
	.ag-nav ul { flex-direction: column; gap: 6px; }
	.ag-nav ul a { display: block; padding: 10px 0; }
	.ag-grid--3, .ag-split, .ag-product, .ag-grid--2 { grid-template-columns: 1fr; }
	.ag-split { gap: 34px; }
	.ag-section { padding: 56px 0; }
	.ag-hero .ag-container { padding-top: 80px; padding-bottom: 80px; }
	.ag-callfab { display: flex; }
	.ag-topbar__rep { display: none; }
	.ag-logo__sub { display: none; }
}
@media (max-width: 560px) {
	.ag-grid--4, .ag-features, .ag-footer__grid, .ag-usp .ag-container, .ag-form__row { grid-template-columns: 1fr; }
	.ag-usp__item { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.1); }
	.ag-form { padding: 22px; }
}
