/*
Theme Name: ADS Security
Theme URI: https://ads-security.ro/
Author: AI Bytes Lab
Description: Temă bloc pentru ADS Security – servicii de pază, protecție VIP și management de securitate. Toate paginile sunt editabile din editorul WordPress.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ads-security
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: #2B458F; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid #2B458F; outline-offset: 3px;
}

/* ---------- Header ---------- */
.ads-site-header { position: sticky; top: 0; z-index: 50; }
.ads-topbar a { color: inherit; text-decoration: none; }
.ads-topbar a:hover { color: #fff; }
.ads-topbar p { margin: 0; }
.ads-header { border-bottom: 1px solid #E3E7F1; transition: box-shadow .25s ease; }
.is-scrolled .ads-header { box-shadow: 0 8px 24px -16px rgba(11,21,48,.35); }
.ads-header .wp-block-site-logo img { display: block; max-height: 64px; width: auto; }
.ads-header .wp-block-navigation a { text-decoration: none; }
.ads-header .wp-block-navigation-item__content { position: relative; padding-block: .35rem; }
.ads-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: #D7232D; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.ads-header .wp-block-navigation-item__content:hover::after,
.ads-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.ads-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

/* Mobile overlay menu: large, easy tap targets */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem; gap: 1.25rem; align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.35rem; font-weight: 700; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

@media (max-width: 781px) {
	.ads-topbar .wp-block-group { justify-content: center !important; text-align: center; }
	.ads-topbar p:first-child { display: none; }
	.ads-header .wp-block-site-logo img { max-height: 48px; }
	.ads-header-right { gap: .75rem !important; }
	.ads-header-cta .wp-block-button__link { padding: .6rem .9rem !important; }
}
@media (max-width: 380px) {
	.ads-header-cta { display: none; }
}

/* ---------- Hero ---------- */
.ads-hero { min-height: min(86svh, 760px) !important; }
.ads-hero .wp-block-cover__inner-container,
.ads-page-hero .wp-block-cover__inner-container { max-width: 1200px; width: 100%; margin-inline: auto; }
.ads-hero, .ads-page-hero { padding-left: clamp(1rem, 4vw, 2rem) !important; padding-right: clamp(1rem, 4vw, 2rem) !important; }
.ads-page-hero h1, .ads-page-hero .ads-hero-lead { max-width: 820px; }
/* Extra left-side shade so the headline and lead stay readable over bright photo areas (WCAG AA). */
.ads-hero .wp-block-cover__background, .ads-page-hero .wp-block-cover__background { z-index: 1; }
.ads-hero::before, .ads-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, rgba(11,21,48,.92) 0%, rgba(11,21,48,.75) 45%, rgba(11,21,48,0) 80%);
}
.ads-hero .wp-block-cover__inner-container, .ads-page-hero .wp-block-cover__inner-container { z-index: 2; }
.ads-hero .wp-block-cover__image-background { object-position: 72% 30%; }
@media (max-width: 781px) {
	.ads-hero::before, .ads-page-hero::before { background: rgba(11,21,48,.55); }
}
.ads-hero h1 { max-width: 16ch; text-wrap: balance; }
.ads-hero .ads-hero-lead { max-width: 60ch; }
.ads-page-hero { min-height: 380px !important; }
.ads-page-hero h1 { text-wrap: balance; }
@media (max-width: 600px) {
	.ads-hero { min-height: 560px !important; }
	.ads-page-hero { min-height: 300px !important; }
	.ads-hero .wp-block-buttons, .ads-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.ads-hero .wp-block-button, .ads-cta .wp-block-button { width: 100%; }
	.ads-hero .wp-block-button__link, .ads-cta .wp-block-button__link { width: 100%; text-align: center; }
}

/* Outline button variant */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; border: 2px solid currentColor; color: #fff;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #0B1530; border-color: #fff; }
.has-white-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-mist-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #0B1530; }
.has-white-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-mist-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #0B1530; color: #fff; border-color: #0B1530; }

/* ---------- Eyebrow / section labels ---------- */
.is-style-ads-eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .8rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: #D7232D;
}
.is-style-ads-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.has-ink-background-color .is-style-ads-eyebrow,
.has-navy-deep-background-color .is-style-ads-eyebrow,
.wp-block-cover .is-style-ads-eyebrow { color: #FF6B72; }

/* ---------- Trust strip ---------- */
.ads-trust .wp-block-column { position: relative; }
.ads-trust p { margin: 0; }
.ads-trust .ads-stat { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.1; }
@media (min-width: 782px) {
	.ads-trust .wp-block-column + .wp-block-column::before {
		content: ""; position: absolute; left: calc(var(--wp--style--block-gap, 2rem) / -2); top: 10%; bottom: 10%;
		width: 1px; background: rgba(255,255,255,.14);
	}
}
@media (max-width: 781px) {
	.ads-trust.wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem !important; }
}

/* ---------- Cards ---------- */
.is-style-ads-card {
	background: #fff; border: 1px solid #E3E7F1; border-radius: 16px;
	box-shadow: 0 1px 2px rgba(11,21,48,.06), 0 12px 32px -12px rgba(11,21,48,.18);
	transition: transform .25s ease, box-shadow .25s ease;
}
.is-style-ads-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(11,21,48,.06), 0 22px 44px -16px rgba(11,21,48,.28); }
.ads-service-card { overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.ads-service-card > .wp-block-image { margin: 0; }
.ads-service-card > .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; }
.ads-service-card .ads-card-body { padding: 1.5rem 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.ads-service-card .ads-card-body > :last-child { margin-top: auto; }
.ads-card-link a { font-weight: 800; text-decoration: none; color: #D7232D; }
.ads-card-link a::after { content: " →"; transition: margin .2s ease; }
.ads-card-link a:hover::after { margin-left: .25rem; }

/* Icon badges (numbers / symbols) */
.ads-badge {
	width: 52px; height: 52px; border-radius: 14px; display: inline-flex !important; align-items: center; justify-content: center;
	background: rgba(215,35,45,.1); color: #D7232D !important; font-weight: 800; font-size: 1.05rem !important; margin: 0 0 .25rem !important;
}
.has-ink-background-color .ads-badge, .has-navy-deep-background-color .ads-badge { background: rgba(255,107,114,.14); color: #FF8A90 !important; }

/* ---------- Lists with checks ---------- */
.is-style-ads-checks { list-style: none; padding-left: 0 !important; }
.is-style-ads-checks li { position: relative; padding-left: 1.9rem; margin: .5rem 0; }
.is-style-ads-checks li::before {
	content: ""; position: absolute; left: 0; top: .32em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: #D7232D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Media ---------- */
.ads-rounded img, .ads-rounded .wp-block-cover__image-background { border-radius: 18px; }
.ads-media-frame { position: relative; }
.ads-media-frame img { border-radius: 18px; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ads-split.wp-block-columns { align-items: center !important; }

/* ---------- Process steps ---------- */
.ads-steps .wp-block-column { position: relative; }
.ads-step-num {
	font-size: 3.25rem !important; font-weight: 800; line-height: 1; margin: 0 0 .5rem !important;
	-webkit-text-stroke: 1.5px #D7232D; color: transparent !important;
}

/* ---------- SWOT ---------- */
.ads-swot .is-style-ads-card { border-top: 4px solid #2B458F; }
.ads-swot .is-style-ads-card:nth-child(2) { border-top-color: #D7232D; }

/* ---------- CTA band ---------- */
.ads-cta { position: relative; overflow: hidden; }
.ads-cta::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
	border: 60px solid rgba(215,35,45,.18); pointer-events: none;
}
.ads-cta > * { position: relative; z-index: 1; }

/* ---------- Contact form ---------- */
.ads-form-wrap { background: #fff; border: 1px solid #E3E7F1; border-radius: 18px; padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: 0 1px 2px rgba(11,21,48,.06), 0 18px 40px -18px rgba(11,21,48,.25); }
.ads-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.ads-field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.ads-field--full { grid-column: 1 / -1; }
.ads-field label { font-weight: 700; font-size: .92rem; color: #1B2238; }
.ads-field label span { color: #D7232D; }
.ads-field input[type="text"], .ads-field input[type="tel"], .ads-field input[type="email"], .ads-field select, .ads-field textarea {
	font: inherit; font-size: 1rem; color: #1B2238; background: #F4F6FB; border: 1.5px solid #E3E7F1; border-radius: 10px;
	padding: .8rem .95rem; width: 100%; box-sizing: border-box; transition: border-color .15s ease, background .15s ease;
}
.ads-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B458F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem; }
.ads-field input:focus, .ads-field select:focus, .ads-field textarea:focus { border-color: #2B458F; background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(43,69,143,.15); }
.ads-consent { flex-direction: row; align-items: flex-start; gap: .65rem; }
.ads-consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: #D7232D; flex: 0 0 auto; }
.ads-consent label { font-weight: 500; font-size: .9rem; color: #5A6480; }
.ads-form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 1.5rem 0 0; }
.ads-form-submit button { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; padding: 1rem 1.9rem; border-radius: 10px; background: #D7232D; color: #fff; }
.ads-form-submit button:hover { background: #B01822; }
.ads-form-note { font-size: .85rem; color: #5A6480; }
.ads-form-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ads-form-notice { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; line-height: 1.5; }
.ads-form-notice strong { display: block; }
.ads-form-notice.is-ok { background: #E8F6EE; color: #11522E; border: 1px solid #BFE5CF; }
.ads-form-notice.is-error { background: #FDECEC; color: #8A1219; border: 1px solid #F6C4C7; }
@media (max-width: 600px) {
	.ads-form-grid { grid-template-columns: 1fr; }
	.ads-form-submit button { width: 100%; }
}

/* Contact info tiles */
.ads-contact-tile a { text-decoration: none; font-weight: 800; color: #0B1530; font-size: 1.15rem; }
.ads-contact-tile a:hover { color: #D7232D; }

/* ---------- Footer ---------- */
.ads-footer a { text-decoration: none; }
.ads-footer a:hover { color: #FF8A90 !important; }
.ads-footer-list { list-style: none; padding: 0 !important; }
.ads-footer-list li { margin: .45rem 0; }
.ads-footer-sep { border-color: rgba(255,255,255,.12) !important; background-color: rgba(255,255,255,.12) !important; opacity: 1; }
.ads-footer p { margin: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.is-style-ads-card, .is-style-ads-card:hover { transition: none; transform: none; }
}

/* Full-width sections sit flush: no default block gap between them. */
.ads-main .wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ads-main .wp-block-post-content { margin-block-start: 0; }
/* Centred section labels */
.is-style-ads-eyebrow.has-text-align-center { display: flex; justify-content: center; }
