/*
Theme Name: SAFE EE
Theme URI: https://www.safe-ee.gr/
Author: SAFE EE — Θηραϊκή Ασφαλιστική Πρακτόρευση
Author URI: https://www.safe-ee.gr/
Description: Custom block theme for SAFE EE (Θηραϊκή Ασφαλιστική Πρακτόρευση). Bilingual (EL/EN) insurance agency site. Brand colours Deep Navy & Periwinkle, Montserrat + Lato typography. Built as a Full Site Editing block theme.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safe-ee
Tags: full-site-editing, block-patterns, blog, business, custom-colors, custom-logo, custom-menu, translation-ready, two-columns, wide-blocks
*/

/* ============================================================
   SAFE EE — supplemental styles (most styling lives in theme.json)
   ============================================================ */

/* Eyebrow / kicker label above section headings (e.g. "ΟΙ ΛΥΣΕΙΣ ΜΑΣ") */
.safe-eyebrow {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--periwinkle);
	margin-bottom: 0.5rem;
}

/* Sticky, subtle header */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--white);
	box-shadow: 0 1px 0 rgba(13, 30, 84, 0.08);
}

/* Site logo sizing in header */
header .wp-block-site-logo img { max-height: 52px; width: auto; }

/* Navigation spacing + active state */
header .wp-block-navigation { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 0.95rem; }
header .wp-block-navigation a.wp-block-navigation-item__content { color: var(--wp--preset--color--navy); }
header .wp-block-navigation a.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--periwinkle); }

/* HERO — overlay so white text stays legible on photos/video */
.safe-hero { position: relative; }
.safe-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(13,30,84,0.82) 0%, rgba(13,30,84,0.55) 55%, rgba(78,97,159,0.30) 100%);
	z-index: 0;
}
.safe-hero > .wp-block-group__inner-container,
.safe-hero > * { position: relative; z-index: 1; }
.safe-hero :where(h1, h2, h3, p) { color: #fff; }

/* PROCESS / step icons */
.safe-step__icon { width: 56px; height: 56px; display: inline-flex; }
.safe-step__icon img { width: 100%; height: 100%; }

/* Cards (solutions & service grids) — lift on hover */
.safe-card {
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(13, 30, 84, 0.08);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
}
.safe-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(13, 30, 84, 0.14);
	border-color: rgba(78, 97, 159, 0.35);
}
.safe-card .safe-card__icon { width: 48px; height: 48px; }

/* Service links list inside a card */
.safe-links a {
	display: block;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(13, 30, 84, 0.08);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}
.safe-links a:hover { color: var(--wp--preset--color--periwinkle); padding-left: 6px; transition: padding .2s ease; }

/* Buttons: ensure consistent feel for fill + outline */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--navy);
	color: var(--wp--preset--color--navy);
	background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

/* Contact info icons */
.safe-contact-item { display: flex; gap: .75rem; align-items: flex-start; }
.safe-contact-item svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--wp--preset--color--periwinkle); margin-top: 2px; }

/* Generous reading width for long service copy */
.safe-prose p { max-width: 70ch; }

/* Footer */
.wp-site-blocks > footer.wp-block-template-part { background: var(--wp--preset--color--navy); }
.wp-site-blocks > footer :where(p, a, h1, h2, h3, h4, li) { color: #DfE3F2; }
.wp-site-blocks > footer a:hover { color: #fff; }

/* Footer social icons */
.safe-social-links {
	display: flex;
	gap: 8px;
	margin-top: 1.25rem;
	flex-wrap: wrap;
	align-items: center;
}
.safe-social-link {
	display: inline-flex;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	text-decoration: none;
}
.safe-social-link:hover {
	background: rgba(255, 255, 255, 0.28) !important;
	transform: translateY(-2px);
}
.safe-social-link svg { display: block; }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--aegean);
	outline-offset: 2px;
}

/* Mobile tweaks */
@media (max-width: 781px) {
	header .wp-block-site-logo img { max-height: 42px; }
}

/* ============================================================
   CONTACT FORM — CF7 brand-matched styling
   Targets: div.wpcf7 wrapper (Contact Form 7)
   ============================================================ */

/* Labels */
div.wpcf7 label {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--navy, #0D1F5C);
	margin-bottom: 0.35rem;
	letter-spacing: 0.02em;
}

/* All inputs and textarea */
div.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
div.wpcf7 textarea,
div.wpcf7 select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	color: var(--wp--preset--color--ink, #1a1a2e);
	background: #fff;
	border: 1.5px solid rgba(13, 30, 84, 0.18);
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(13, 30, 84, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}

div.wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

/* Focus */
div.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
div.wpcf7 textarea:focus,
div.wpcf7 select:focus {
	border-color: var(--wp--preset--color--periwinkle, #4E619F);
	box-shadow: 0 0 0 3px rgba(78, 97, 159, 0.15);
}

/* p wrappers inside CF7 */
div.wpcf7 form p {
	margin-bottom: 1.25rem;
}

/* Submit button */
div.wpcf7 input[type="submit"],
div.wpcf7 .wpcf7-submit {
	display: inline-block;
	padding: 0.85rem 2.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff !important;
	background: var(--wp--preset--color--navy, #0D1F5C) !important;
	border: 2px solid var(--wp--preset--color--navy, #0D1F5C) !important;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(13, 30, 84, 0.22);
	-webkit-appearance: none;
	appearance: none;
	width: auto;
}
div.wpcf7 input[type="submit"]:hover,
div.wpcf7 .wpcf7-submit:hover {
	background: var(--wp--preset--color--periwinkle, #4E619F) !important;
	border-color: var(--wp--preset--color--periwinkle, #4E619F) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 30, 84, 0.28);
}

/* Validation messages */
div.wpcf7 .wpcf7-not-valid-tip {
	font-size: 0.8rem;
	color: #c0392b;
	margin-top: 0.3rem;
	display: block;
}
div.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
	border-color: #c0392b !important;
}
div.wpcf7 .wpcf7-response-output {
	margin-top: 1rem;
	padding: 0.85rem 1.25rem;
	border-radius: 8px;
	font-size: 0.9rem;
	border: 1.5px solid;
}
div.wpcf7 .wpcf7-mail-sent-ok {
	background: #eafaf1;
	border-color: #27ae60;
	color: #1e8449;
}
div.wpcf7 .wpcf7-mail-sent-ng,
div.wpcf7 .wpcf7-spam-blocked {
	background: #fdf0ef;
	border-color: #c0392b;
	color: #c0392b;
}
