/*
Theme Name: Ampelos
Theme URI: https://ampelosvochaikou.gr/
Description: Ελαφρύ θέμα για τη Φάρμα Άμπελος Βοχαϊκού. Αντικαθιστά το Avada· όλο το περιεχόμενο είναι σε τυπικά blocks του WordPress.
Author: Infotechnica
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: ampelos
Icons: Font Awesome Free (paw, chevron-right) — CC BY 4.0, https://fontawesome.com/license/free
*/

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { text-decoration: none; transition: color .2s; }
.entry-content a:not(.wp-element-button):not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: 3px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }
:focus-visible { outline: 2px solid #a9a23a; outline-offset: 2px; }
.ampelos-container { max-width: 1340px; margin: 0 auto; padding: 0 30px; }

/* ---------- Header ---------- */
.ampelos-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-bar .ampelos-header { top: 32px; }
.ampelos-header__inner { max-width: 1340px; margin: 0 auto; padding: 10px 30px; display: flex; align-items: center; gap: 30px; }
.ampelos-header__brand img { display: block; width: auto; max-height: 110px; }
.ampelos-header__name { font-family: var(--wp--preset--font-family--heading); font-size: 24px; color: #222; }
.ampelos-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.ampelos-menu { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 38px; align-items: center; }
.ampelos-menu > li { position: relative; }
.ampelos-menu a { display: block; padding: 14px 0; color: #222; font-family: var(--wp--preset--font-family--heading); font-size: 17px; }
.ampelos-menu a:hover, .ampelos-menu .current-menu-item > a, .ampelos-menu .current-menu-ancestor > a { color: #d7d064; }
.ampelos-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.ampelos-menu .sub-menu { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -20px; min-width: 240px; background: #fff; border-top: 3px solid #d7d064; box-shadow: 0 10px 30px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.ampelos-menu li:hover > .sub-menu, .ampelos-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ampelos-menu .sub-menu a { padding: 8px 20px; font-family: var(--wp--preset--font-family--body); font-size: 16px; }
.ampelos-cta.wp-element-button { padding: 13px 26px; font-size: 15px; white-space: nowrap; }
.ampelos-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.ampelos-burger span:not(.screen-reader-text) { display: block; height: 2px; background: #222; margin: 5px 0; transition: .2s; }
.ampelos-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.ampelos-burger[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.ampelos-burger[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
	.ampelos-header__brand img { max-height: 76px; }
	.ampelos-burger { display: block; }
	.ampelos-nav { position: fixed; inset: 96px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 20px 30px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
	.ampelos-nav.is-open { transform: none; }
	.ampelos-menu { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.ampelos-menu a { padding: 12px 0; border-bottom: 1px solid #eee; font-size: 19px; }
	.ampelos-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.ampelos-cta.wp-element-button { margin-top: 20px; text-align: center; }
}
@media (max-width: 782px) { .admin-bar .ampelos-header { top: 0; } }

/* ---------- Page title bar ---------- */
.ampelos-ptb { background: #222 linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("assets/icons/grass.svg") no-repeat bottom / 100% 40px; color: #fff; padding: 80px 0 90px; text-align: center; position: relative; }
.ampelos-ptb::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; background: #fff; -webkit-mask: url("assets/icons/grass.svg") no-repeat bottom / 100% 100%; mask: url("assets/icons/grass.svg") no-repeat bottom / 100% 100%; }
.ampelos-ptb__title { color: #fff; margin: 0; font-size: clamp(34px, 4.5vw, 60px); }
.ampelos-ptb__sub { margin: 10px 0 0; color: #d7d064; font-family: var(--wp--preset--font-family--script); font-size: 34px; line-height: 1; }

/* ---------- Content ---------- */
.ampelos-content .entry-content { padding: 60px 30px 90px; }
.ampelos-builder .entry-content > *:first-child { margin-top: 0; }
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.ampelos-single__thumb img { width: 100%; border-radius: 6px; }
.ampelos-postnav { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 60px; font-family: var(--wp--preset--font-family--heading); }
.ampelos-comments { padding-bottom: 60px; }

/* Script sub-headings ("Γνωρίστε Μας", "Coffee Time") */
.is-style-script, .wp-block-heading.is-style-script { font-family: var(--wp--preset--font-family--script) !important; color: #d7d064; font-size: clamp(30px, 3vw, 42px) !important; line-height: .9; margin-bottom: .2em; text-transform: none; }

/* Buttons */
.wp-block-button__link, .wp-element-button { transition: background-color .2s, color .2s, border-color .2s; cursor: pointer; }
.wp-block-buttons { gap: 15px; }
.wp-block-button.is-style-white .wp-block-button__link { background: #fff; color: #222; border-color: #fff; }
.wp-block-button.is-style-white .wp-block-button__link:hover { background: #2c2c2c; color: #fff; border-color: #2c2c2c; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #d7d064; border: 2px solid #d7d064; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #d7d064; color: #fff; }

/* Builder sections */
.av-section { position: relative; }
.av-section.is-full { padding-left: clamp(20px, 7.8vw, 150px); padding-right: clamp(20px, 7.8vw, 150px); }
.av-section > .wp-block-columns { gap: clamp(20px, 4vw, 48px); }
.av-section.has-background { }
.wp-block-image.is-style-fill { margin: 0; height: 100%; }
.wp-block-image.is-style-fill img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 6px; }
.wp-block-image img { border-radius: 5px; }
.av-title-div { font-family: var(--wp--preset--font-family--heading); font-size: 20px; }

/* Hero (video cover) */
.av-hero.wp-block-cover { padding: 60px 30px; }
.av-hero .wp-block-cover__inner-container { max-width: 1000px; margin: 0 auto; text-align: center; }
.av-hero .wp-block-columns { justify-content: center; }
.av-hero h1, .av-hero h2 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.av-hero p { color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: 22px; }
.av-hero .wp-block-buttons { justify-content: center; }

/* Image cards (animals) */
.wp-block-cover.av-card { border-radius: 6px; overflow: hidden; padding: 28px; min-height: 420px; transition: transform .3s; }
.wp-block-cover.av-card:hover { transform: translateY(-4px); }
.wp-block-cover.av-card .wp-block-cover__image-background { transition: transform .6s; }
.wp-block-cover.av-card:hover .wp-block-cover__image-background { transform: scale(1.05); }
.wp-block-cover.av-card .wp-block-cover__background { background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 60%) !important; opacity: 1 !important; }
.av-card .wp-block-cover__inner-container { width: 100%; }
.av-card h1, .av-card h2, .av-card h3, .av-card h4 { color: #fff; margin: 0 0 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.7); font-size: clamp(24px, 2.2vw, 31px) !important; }
.av-card a { color: #fff !important; text-decoration: none !important; }
.av-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.av-card-more { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.av-card-more::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #fff url("assets/icons/chevron-right.svg") no-repeat center / 8px; }

/* Icons */
.av-icon { width: 1.2em; height: 1.2em; color: #d7d064; background: currentColor; -webkit-mask: url("assets/icons/paw.svg") no-repeat center / contain; mask: url("assets/icons/paw.svg") no-repeat center / contain; }
.av-icon.is-circle { width: 110px; height: 110px; -webkit-mask: none; mask: none; background: #d7d064; border-radius: 50%; position: relative; }
.av-icon.is-circle::after { content: ""; position: absolute; inset: 30px; background: #fff; -webkit-mask: url("assets/icons/paw.svg") no-repeat center / contain; mask: url("assets/icons/paw.svg") no-repeat center / contain; }
.av-icon.is-centered { margin-left: auto; margin-right: auto; }

/* Section separators (grass / splash) */
.av-sep { height: 100px; margin-top: -99px !important; margin-bottom: 0 !important; color: #d7d064; background: currentColor; -webkit-mask: url("assets/icons/grass.svg") no-repeat bottom / 100% 100%; mask: url("assets/icons/grass.svg") no-repeat bottom / 100% 100%; position: relative; z-index: 2; pointer-events: none; }
.av-sep.av-sep-splash { -webkit-mask-image: url("assets/icons/splash.svg"); mask-image: url("assets/icons/splash.svg"); }
.av-sep.av-sep-flip { transform: scaleX(-1); }
.wp-block-group.alignfull > .av-sep.alignfull { margin-left: calc(var(--wp--style--root--padding-left) * -1) !important; margin-right: calc(var(--wp--style--root--padding-right) * -1) !important; }
@media (max-width: 781px) { .av-sep { height: 50px; margin-top: -49px !important; } }

/* Post cards (query loop) */
.av-cards .wp-block-post-template { gap: 40px; }
.av-cards-posts .wp-block-post { border: 1px solid #eee; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.av-cards-posts .wp-block-post-featured-image { margin: 0; }
.av-cards-posts .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.av-cards-posts .wp-block-post-title { font-size: 24px; margin: 24px 24px 8px; }
.av-cards-posts .wp-block-post-title a { color: #222; text-decoration: none !important; }
.av-cards-posts .wp-block-post-excerpt { margin: 0 24px 24px; font-size: 16px; display: flex; flex-direction: column; flex: 1; }
.av-cards-posts .wp-block-post-excerpt__excerpt { flex: 1; }
.av-cards-posts .wp-block-post-excerpt__more-link { color: #d7d064 !important; font-family: var(--wp--preset--font-family--heading); text-decoration: none !important; display: block; text-align: center; padding-top: 18px; margin-top: 18px; border-top: 1px solid #eee; }

/* Blog archive (theme template) */
.ampelos-archive { padding: 70px 30px 90px; }
.ampelos-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; }
.ampelos-card { border: 1px solid #eee; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.ampelos-card__img img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ampelos-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.ampelos-card__title { font-size: 24px; margin: 0 0 10px; }
.ampelos-card__title a { color: #222; }
.ampelos-card__excerpt { font-size: 16px; flex: 1; }
.ampelos-card__more { color: #d7d064; font-family: var(--wp--preset--font-family--heading); text-align: center; border-top: 1px solid #eee; margin-top: 18px; padding-top: 18px; }
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 50px; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 4px; color: #222; }
.page-numbers.current { background: #d7d064; border-color: #d7d064; color: #fff; }
@media (max-width: 1024px) { .ampelos-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .ampelos-grid { grid-template-columns: 1fr; } }

/* Checklist */
.is-style-checklist { list-style: none; padding-left: 0; }
.is-style-checklist li { padding-left: 32px; position: relative; }
.is-style-checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; background: #d7d064; -webkit-mask: url("assets/icons/paw.svg") no-repeat center / contain; mask: url("assets/icons/paw.svg") no-repeat center / contain; }

/* Contact form */
.ampelos-cf { max-width: 760px; }
.ampelos-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ampelos-cf label { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 15px; margin-bottom: 6px; }
.ampelos-cf input[type=text], .ampelos-cf input[type=email], .ampelos-cf input[type=tel], .ampelos-cf textarea { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 4px; font: inherit; font-size: 16px; background: #fff; }
.ampelos-cf input:focus, .ampelos-cf textarea:focus { border-color: #d7d064; outline: none; box-shadow: 0 0 0 3px rgba(215,208,100,.3); }
.ampelos-cf-privacy { font-size: 14px; color: #777; }
.ampelos-hp { position: absolute !important; left: -9999px; }
.ampelos-cf-notice { padding: 16px 20px; border-radius: 4px; margin-bottom: 20px; }
.ampelos-cf-notice ul { margin: 0; padding-left: 18px; }
.ampelos-cf-notice.is-success { background: #eef6e2; border-left: 4px solid #7aa33b; }
.ampelos-cf-notice.is-error { background: #fdecec; border-left: 4px solid #c0392b; }
@media (max-width: 640px) { .ampelos-cf-row { grid-template-columns: 1fr; } }

/* Footer */
.ampelos-footer { background: #222; color: #fff; position: relative; }
.ampelos-footer a { color: #fff; }
.ampelos-footer a:hover { color: #d7d064; }
.ampelos-footer .av-section { color: #fff; }
.ampelos-footer__fallback { text-align: center; padding: 60px 30px; }
.ampelos-copy { text-align: center; font-size: 14px; padding: 18px 30px; background: rgba(0,0,0,.35); }
.ampelos-copy a { color: #d7d064; }
.ampelos-totop { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 6px 6px 0 0; background: #2c2c2c; color: #fff !important; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 50; }
.ampelos-totop.is-visible { opacity: .9; pointer-events: auto; }

/* Responsive columns */
@media (max-width: 781px) {
	.av-section { padding-left: 20px !important; padding-right: 20px !important; }
	.av-hero.wp-block-cover { min-height: 560px !important; }
}

/* Editor */
.editor-styles-wrapper .av-sep { margin-top: 0 !important; }
