/*
Theme Name: Pontikas Marble
Theme URI: https://pontikasmarble.com
Author: 7Studios
Description: Custom theme for Pontikas Marble (Μάρμαρα Ποντίκα). Plugin-free: bilingual GR/EN, contact form, hero video, tabs and SEO are built in.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietary (client license). Fonts: Comfortaa, SIL Open Font License 1.1.
Text Domain: pontikas
*/

:root {
	--pm-gold: #e8a901;
	--pm-gold-dark: #c58f00;
	--pm-navy: #192a81;
	--pm-ink: #333;
	--pm-text: #6b6b6b;
	--pm-muted: #929292;
	--pm-dark: #040d19;
	--pm-darker: #02050e;
	--pm-line: #e6e6e6;
	--pm-font: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--pm-max: 1180px;
	--pm-gutter: clamp(16px, 4vw, 40px);
	--pm-header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	font-family: var(--pm-font);
	font-size: 15px;
	line-height: 1.7;
	color: var(--pm-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.wp-block-cover .wp-block-cover__image-background { max-width: none; height: 100% !important; }
a { color: var(--pm-navy); text-decoration: none; }
a:hover, a:focus-visible { color: var(--pm-gold-dark); }
:focus-visible { outline: 2px solid var(--pm-gold); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--pm-font); color: var(--pm-ink); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: clamp(20px, 2.4vw, 25px); }
h4 { font-size: 19px; }
h5 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--pm-header-h); padding: 0 var(--pm-gutter) 0 20px; }
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo__img { height: 50px; width: auto; }
.site-logo__text { font-size: 22px; font-weight: 700; color: var(--pm-navy); line-height: 1; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li + li { border-left: 1px solid rgba(0,0,0,.05); }
.site-nav .menu a { display: block; padding: 10px 11px; color: var(--pm-ink); font-size: 14px; line-height: 1.4; white-space: nowrap; }
.site-nav .menu a:hover, .site-nav .menu a:focus-visible, .site-nav .menu .is-active > a { color: var(--pm-navy); }
.site-nav .menu .is-active > a { font-weight: 700; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-top: 2px solid var(--pm-gold); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s ease; }
.site-nav .menu > li:hover > .sub-menu, .site-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 8px 18px; }
.site-nav .menu-item-has-children > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; font-size: 12px; font-weight: 700; }
.lang-switch a { display: block; padding: 4px 6px; color: var(--pm-muted); border-radius: 3px; }
.lang-switch .is-current a { color: #fff; background: var(--pm-navy); }
.socials { display: flex; gap: 10px; }
.social { display: inline-flex; color: var(--pm-ink); padding: 4px; }
.social:hover { color: var(--pm-gold-dark); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--pm-ink); content: ''; transition: .2s; }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle__bars::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	:root { --pm-header-h: 64px; }
	.site-logo__img { height: 38px; }
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.1); padding: 8px 0 16px; max-height: calc(100vh - var(--pm-header-h)); overflow-y: auto; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu > li + li { border-left: 0; border-top: 1px solid var(--pm-line); }
	.site-nav .menu a { padding: 12px var(--pm-gutter); font-size: 15px; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px; }
	.site-nav .sub-menu a { padding: 8px calc(var(--pm-gutter) + 16px); font-size: 14px; }
	.lang-switch, .site-nav .socials { padding: 12px var(--pm-gutter) 0; }
}

/* ---------- Page header & content ---------- */
.page-hero { padding: clamp(40px, 6vw, 60px) var(--pm-gutter) clamp(36px, 5vw, 50px); text-align: center; background: #fff; border-bottom: 1px solid var(--pm-line); }
.page-hero__title { color: var(--pm-gold); margin: 0; font-size: clamp(38px, 6vw, 60px); }

.entry-content { background: #fff var(--pm-marble) center top / cover fixed; }
@media (max-width: 1080px), (hover: none) { .entry-content { background-attachment: scroll; background-size: auto 100vh; background-repeat: repeat-y; } }
.entry-content > * { max-width: var(--pm-max); margin-left: auto; margin-right: auto; padding-left: var(--pm-gutter); padding-right: var(--pm-gutter); }
.entry-content > .alignwide { max-width: calc(var(--pm-max) + 200px); }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content > p:first-child, .entry-content > .pm-intro:first-child { padding-top: clamp(32px, 5vw, 56px); }
.entry-content > .wp-block-gallery:last-child { padding-bottom: clamp(40px, 6vw, 70px); }

/* sections: Group blocks used as full width bands */
.pm-section { padding-top: clamp(48px, 7vw, 90px) !important; padding-bottom: clamp(48px, 7vw, 90px) !important; }
.pm-section > .wp-block-group__inner-container, .pm-section.is-layout-constrained > * { max-width: var(--pm-max); margin-left: auto; margin-right: auto; }
.pm-section + .pm-section { border-top: 1px solid rgba(0,0,0,.05); }
.alignfull.pm-section { padding-left: var(--pm-gutter); padding-right: var(--pm-gutter); }
.is-style-marble { background: #fff var(--pm-marble) center / cover; }

.pm-intro { text-align: center; color: var(--pm-muted); max-width: 980px !important; }
.has-muted-color { color: var(--pm-muted); }

/* gold dotted underline used under headings */
.is-style-underline::after, .pm-sep::after { content: ''; display: block; width: 74px; height: 4px; margin-top: 14px; background: repeating-linear-gradient(90deg, var(--pm-gold) 0 5px, transparent 5px 7px); border-radius: 1px; }
.is-style-underline.has-text-align-center::after { margin-left: auto; margin-right: auto; }

/* buttons */
.pm-button, .wp-block-button__link, .pm-form button { display: inline-block; padding: 12px 22px; border: 0; border-radius: 3px; background: var(--pm-gold); color: #111 !important; font: 700 13px/1.2 var(--pm-font); cursor: pointer; transition: background .2s; }
.pm-button:hover, .wp-block-button__link:hover, .pm-form button:hover { background: var(--pm-gold-dark); color: #111; }

/* ---------- Home hero (Cover with className pm-hero) ---------- */
.wp-block-cover.pm-hero { min-height: min(calc(100vh - var(--pm-header-h)), 820px) !important; padding: 0 var(--pm-gutter) 40px; align-items: flex-end; overflow: hidden; }
.pm-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--pm-max); }
.pm-hero .wp-block-cover__inner-container > * { max-width: none !important; width: 100%; }
.pm-hero__video { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pm-hero__video iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; transform: translate(-50%, -50%); border: 0; opacity: 0; transition: opacity 1s; }
.pm-hero__video.is-playing iframe { opacity: 1; }
.pm-hero .wp-block-cover__background { z-index: 1; }
.pm-hero .wp-block-cover__inner-container { z-index: 2; }
.pm-hero__icons { margin: 0 0 24px !important; text-align: center; }
.pm-hero__icons, .pm-hero__icons > .wp-block-group__inner-container { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pm-hero__icons:has(> .wp-block-group__inner-container) { display: block !important; }
.pm-hero__icons > * { width: 100%; min-width: 0; }
.pm-hero__icons figure { margin: 0 auto 8px; }
.pm-hero__icons img { width: 72px; height: 72px; object-fit: contain; }
.pm-hero__icons p { color: #fff; font-weight: 700; font-size: 18px; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pm-hero .pm-espa { margin: 0 auto !important; }
.pm-hero .pm-espa img { width: 100%; max-width: 728px; height: auto; border-radius: 2px; }
@media (max-width: 640px) { .pm-hero__icons, .pm-hero__icons > .wp-block-group__inner-container { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-hero__icons img { width: 56px; height: 56px; } .pm-hero__icons p { font-size: 15px; } }

/* ---------- Tabs (Group style "tabs" with Details blocks inside) ---------- */
.is-style-tabs { max-width: 960px !important; }
.is-style-tabs details { border-bottom: 1px solid rgba(0,0,0,.08); padding: 4px 0; }
.is-style-tabs summary { cursor: pointer; font-weight: 700; color: var(--pm-ink); padding: 10px 0; }
.pm-tabs { display: grid; grid-template-columns: 210px 1fr; gap: 0 32px; align-items: start; }
.pm-tabs__list { display: flex; flex-direction: column; align-items: flex-end; border-right: 2px solid rgba(0,0,0,.08); }
.pm-tabs__tab { appearance: none; background: none; border: 0; border-right: 2px solid transparent; margin-right: -2px; padding: 12px 18px; font: 400 14px/1.3 var(--pm-font); color: var(--pm-muted); cursor: pointer; text-align: right; }
.pm-tabs__tab[aria-selected="true"] { color: var(--pm-ink); font-weight: 700; border-right-color: var(--pm-gold); }
.pm-tabs__panel { padding-top: 8px; }
.pm-tabs__panel > :first-child { margin-top: 0; }
.pm-tabs__panel h3, .pm-tabs__panel h4 { font-size: 21px; }
.pm-tabs__panel p { color: var(--pm-ink); }
@media (max-width: 700px) {
	.pm-tabs { grid-template-columns: 1fr; gap: 16px; }
	.pm-tabs__list { flex-direction: row; flex-wrap: wrap; align-items: stretch; border-right: 0; border-bottom: 2px solid rgba(0,0,0,.08); }
	.pm-tabs__tab { border-right: 0; border-bottom: 2px solid transparent; margin: 0 0 -2px; padding: 10px 12px; text-align: center; }
	.pm-tabs__tab[aria-selected="true"] { border-bottom-color: var(--pm-gold); }
}

/* ---------- Features (columns with check icons) ---------- */
.is-style-features h3, .is-style-features h4 { position: relative; padding-left: 34px; }
.is-style-features h3::before, .is-style-features h4::before { content: ''; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border: 1.5px solid var(--pm-gold); border-radius: 50%; background: radial-gradient(circle, transparent 0) ; }
.is-style-features h3::after, .is-style-features h4::after { content: ''; position: absolute; left: 7px; top: calc(.15em + 4px); width: 5px; height: 9px; border: solid var(--pm-gold); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.is-style-features p { padding-left: 34px; color: var(--pm-muted); font-size: 14px; }

/* ---------- Dark band ---------- */
.pm-dark { color: #fff; }
.pm-dark h2, .pm-dark h3, .pm-dark h4, .pm-dark p { color: #fff; }
.pm-pin { text-align: center; }
.pm-pin::before { content: ''; display: block; width: 30px; height: 30px; margin: 0 auto 10px; background: var(--pm-gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Service boxes ---------- */
.pm-services { text-align: center; }
.pm-services img { width: 90px; height: 90px; object-fit: contain; }
.pm-services h3 { font-size: 19px; margin-top: 12px; }
.pm-services p { font-size: 13px; color: var(--pm-muted); }

/* ---------- Galleries ---------- */
.wp-block-gallery.is-style-framed { background: rgba(255,255,255,.92); padding: 8px; gap: 8px !important; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 1 / .95; object-fit: cover; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: static; background: none; color: var(--pm-muted); text-shadow: none; padding: 6px 0 2px; font-size: 12px; }
.wp-block-gallery figure.wp-block-image { transition: opacity .2s; }
.wp-block-gallery figure.wp-block-image:hover { opacity: .9; }

/* ---------- Quote band ---------- */
.pm-quote { text-align: center; font-style: italic; }
.pm-quote p { font-size: clamp(17px, 2vw, 20px); color: var(--pm-ink); margin: 0; }
.pm-quote cite { display: block; margin-top: 8px; font-style: normal; color: var(--pm-gold-dark); font-size: 14px; }

/* ---------- Contact ---------- */
.pm-contact-top { position: relative; }
.pm-map iframe { display: block; width: 100%; border: 0; filter: grayscale(.25); }
.pm-infobox { background: var(--pm-gold); color: #fff; padding: 22px 26px 18px; }
.pm-infobox h2, .pm-infobox h3, .pm-infobox p, .pm-infobox a { color: #fff; }
.pm-infobox h2, .pm-infobox h3 { font-size: 24px; }
.pm-infobox p { margin: 0 0 8px; font-size: 14px; }
.pm-infobox a:hover { color: var(--pm-dark); }
@media (min-width: 900px) {
	.pm-contact-top .pm-infobox { position: absolute; top: 0; right: max(var(--pm-gutter), calc((100% - var(--pm-max)) / 2)); width: 330px; z-index: 2; }
}

.pm-form { width: 100%; }
.pm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .pm-form__row { grid-template-columns: 1fr; } }
.pm-form p { margin: 0 0 12px; }
.pm-form label { display: block; font-size: 12px; color: var(--pm-ink); margin-bottom: 4px; }
.pm-form input[type=text], .pm-form input[type=email], .pm-form input[type=tel], .pm-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d8d8d8; border-radius: 2px; background: rgba(255,255,255,.95); font: 14px/1.5 var(--pm-font); color: var(--pm-ink); }
.pm-form input:focus, .pm-form textarea:focus { border-color: var(--pm-gold); outline: 0; box-shadow: 0 0 0 2px rgba(232,169,1,.25); }
.pm-form__consent label { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--pm-text); }
.pm-form__consent input { margin-top: 3px; }
.pm-form__hp { position: absolute !important; left: -9999px; }
.pm-form__notice { padding: 12px 14px; border-radius: 3px; font-size: 14px; }
.pm-form__notice--ok { background: #eaf6ea; color: #1e5b22; }
.pm-form__notice--err { background: #fcebea; color: #8a1f17; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pm-dark); color: #b9bcc4; font-size: 13px; }
.site-footer a { color: #e6e7ea; }
.site-footer a:hover { color: var(--pm-gold); }
.site-footer__name { background: var(--pm-darker); color: #fff; text-align: center; font-size: clamp(18px, 2.4vw, 24px); padding: 22px var(--pm-gutter); letter-spacing: .02em; }
.site-footer__cols { max-width: var(--pm-max); margin: 0 auto; padding: 50px var(--pm-gutter) 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 800px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer__title { color: #fff; font-size: 18px; margin-bottom: 16px; }
.site-footer strong { color: #fff; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { position: relative; padding-left: 20px; margin-bottom: 4px; }
.footer-menu li::before { content: ''; position: absolute; left: 0; top: .45em; width: 11px; height: 11px; border: 1.5px solid var(--pm-gold); border-radius: 50%; }
.footer-menu li::after { content: ''; position: absolute; left: 4px; top: calc(.45em + 3.5px); width: 4px; height: 4px; border-radius: 50%; background: var(--pm-gold); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.07); text-align: center; padding: 20px var(--pm-gutter) 24px; font-size: 12px; }
.site-footer__bottom p { margin: 0 0 6px; }
.site-footer .socials { justify-content: center; }
.site-footer .social { color: #b9bcc4; }

/* core block niceties */
.wp-block-columns { gap: clamp(20px, 3vw, 40px); }
.wp-block-image img { height: auto; }
.has-gold-color { color: var(--pm-gold) !important; }
.has-dark-background-color { background-color: var(--pm-dark) !important; }
