/*
Theme Name: GDPR Halkidiki
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for gdprhalkidiki.gr. Replaces The7 and WPBakery: colours, fonts, header, footer and the styles the converted pages use.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gdprhalkidiki
*/

/* ---------- Full-width pages: sections touch each other, like before ---------- */
.gdprh-full main.wp-block-group { margin-top: 0 !important; }
.gdprh-full .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.gdprh-full .wp-block-post-content > .wp-block-group:not(.alignfull),
.gdprh-full .wp-block-post-content > .wp-block-columns { padding-inline: var(--wp--style--root--padding-left); }

/* ---------- Photo sections with tilted edges ---------- */
.wp-block-cover.gdprh-tilt-top { clip-path: polygon(0 100px, 100% 0, 100% 100%, 0 100%); }
.wp-block-cover.gdprh-tilt-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0 100%); }
.wp-block-cover.gdprh-tilt-top.gdprh-tilt-bottom { clip-path: polygon(0 100px, 100% 0, 100% calc(100% - 100px), 0 100%); }
@media (max-width: 781px) {
	.wp-block-cover.gdprh-tilt-top { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); }
	.wp-block-cover.gdprh-tilt-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
	.wp-block-cover.gdprh-tilt-top.gdprh-tilt-bottom { clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%); }
	.wp-block-cover[style*="padding-top:1"] { padding-top: 90px !important; }
	.wp-block-cover[style*="padding-bottom:1"] { padding-bottom: 90px !important; }
}
.wp-block-cover .wp-block-cover__inner-container { color: #fff; }
.gdprh-panel { color: var(--wp--preset--color--accent-4); }

/* ---------- Section headings with the accent line ---------- */
.is-style-gdprh-line::after {
	content: "";
	display: block;
	width: 180px;
	max-width: 60%;
	height: 3px;
	margin: 15px 0 20px;
	background: var(--wp--preset--color--accent-1);
}
.is-style-gdprh-line.has-text-align-center::after { margin-inline: auto; }
.is-style-gdprh-line.has-text-align-right::after { margin-left: auto; }
.is-style-gdprh-line.gdprh-line--light::after { background: #fff; }
.gdprh-subtitle { margin-top: 0; }

/* ---------- Contact boxes (address, hours, phones, email) ---------- */
.gdprh-infobox { text-align: center; padding-bottom: 10px; }
.gdprh-infobox::before {
	content: "";
	display: block;
	width: 54px;
	height: 54px;
	margin: 0 auto 25px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .2) var(--gdprh-icon) center / 27px no-repeat;
}
.gdprh-infobox h3 { margin: 0 0 10px; }
.gdprh-infobox p { margin-top: 0; }
.gdprh-icon-map-marker { --gdprh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.gdprh-icon-clock-o { --gdprh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E"); }
.gdprh-icon-phone { --gdprh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E"); }
.gdprh-icon-envelope-o { --gdprh-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }

/* ---------- Home page hero ---------- */
.gdprh-hero {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	max-width: 1150px;
	margin-inline: auto;
	color: #fff;
}
.gdprh-hero p { margin: 0; color: #fff; }
.gdprh-hero__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center; }
.gdprh-hero__brand > .wp-block-image { margin: 0; grid-row: 1; }
.gdprh-hero__brand > .wp-block-image img { width: 122px !important; height: auto; }
.gdprh-hero__name { grid-row: 1; font-size: 147px; line-height: 140px; }
.gdprh-hero__gdpr { display: block; font-family: var(--wp--preset--font-family--roboto-condensed); font-weight: 700; }
.gdprh-hero__place { display: block; font-family: var(--wp--preset--font-family--oswald); font-weight: 200; }
.gdprh-hero__tagline { grid-column: 1 / -1; margin-top: 30px !important; font-family: var(--wp--preset--font-family--roboto); font-size: 33px; line-height: 42px; }
.gdprh-hero__contact { flex: 0 0 321px; box-sizing: border-box; padding: 22px 10px; border: 2px solid #fff; text-align: center; }
.gdprh-hero__phone a, .gdprh-hero__phone a:hover {
	color: #fff !important;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--oswald);
	font-size: 28px;
	line-height: 38px;
	white-space: nowrap;
}
.gdprh-hero__phone a::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	margin-right: 8px;
	vertical-align: -3px;
	background: var(--gdprh-phone) center / contain no-repeat;
	--gdprh-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}
.gdprh-hero__cta { margin-top: 12px !important; font-family: var(--wp--preset--font-family--roboto); font-weight: 500; font-size: 17px; line-height: 26px; }
.gdprh-hero__cta a { color: var(--wp--preset--color--accent-1); white-space: nowrap; }
@media (max-width: 1100px) {
	.gdprh-hero__name { font-size: 110px; line-height: 108px; }
	.gdprh-hero__brand > .wp-block-image img { width: 92px !important; }
	.gdprh-hero__tagline { font-size: 26px; line-height: 34px; }
}
@media (max-width: 900px) {
	.gdprh-hero { flex-direction: column; align-items: center; text-align: center; gap: 32px; }
	.gdprh-hero__brand { justify-items: center; }
	.gdprh-hero__tagline { display: none; }
	.gdprh-hero__contact { flex-basis: auto; width: 100%; max-width: 400px; }
}
@media (max-width: 480px) {
	.gdprh-hero__name { font-size: 72px; line-height: 72px; }
	.gdprh-hero__brand > .wp-block-image img { width: 60px !important; }
	.gdprh-hero__brand { column-gap: 14px; }
}

/* ---------- Header ---------- */
.gdprh-topbar { font-size: 13px; }
.gdprh-topbar p { margin: 0; }
.gdprh-topbar a { color: inherit; text-decoration: none; }
.gdprh-mainbar .wp-block-navigation { font-size: 15px; font-weight: 700; }
.gdprh-mainbar .wp-block-navigation a:hover,
.gdprh-mainbar .wp-block-navigation a:focus-visible { color: var(--wp--preset--color--accent-2); }

/* ---------- Footer ---------- */
.gdprh-footer a { color: #fff; }
.gdprh-footer p { margin: 0 0 6px; }

/* ---------- Contact Form 7 ---------- */
.wpcf7 form p { margin: 0 0 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c8c9ce;
	border-radius: 3px;
	background: #fff;
	color: #333;
	font: inherit;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input[type="submit"] {
	padding: 12px 28px;
	border: 0;
	border-radius: 3px;
	background: var(--wp--preset--color--accent-2);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wp-block-cover .wpcf7 label { color: #fff; }

/* ---------- Posts list ("Νέα") ---------- */
.gdprh-postlist .wp-block-post { padding-bottom: 30px; border-bottom: 1px solid #e3e4e8; }
.gdprh-postlist .wp-block-post-title a { text-decoration: none; }
