/*
Theme Name: OMC Landing Page
Theme URI: https://omc.local/
Author: OMC
Author URI: https://omc.local/
Description: A lightweight, secure Gutenberg landing-page theme for Life Light Insurance.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omc-landing-page
*/

:root {
	--omc-blue: #28aeea;
	--omc-blue-dark: #1689c9;
	--omc-ink: #07111f;
	--omc-muted: #4f5b6b;
	--omc-border: #e6e9ee;
	--omc-soft: #f7f9fb;
	--omc-white: #ffffff;
	--omc-shadow: 0 8px 24px rgba(7, 17, 31, 0.12);
	--omc-radius: 6px;
	--omc-container: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--omc-ink);
	background: var(--omc-white);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid rgba(7, 17, 31, 0.04);
}

.site-header__inner {
	width: min(var(--omc-container), calc(100% - 40px));
	min-height: 92px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
}

.site-branding {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-self: start;
	text-decoration: none;
	color: #8d949c;
	text-transform: uppercase;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 3px rgba(7, 17, 31, 0.18);
}

.site-branding__mark {
	position: relative;
	width: 42px;
	height: 54px;
	margin-bottom: 4px;
}

.site-branding__mark::before {
	content: "";
	position: absolute;
	inset: 7px 9px 5px;
	border: 4px solid #d2d7dc;
	border-left-color: transparent;
	border-radius: 50% 50% 48% 48%;
	transform: rotate(-20deg);
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.site-branding__mark::after {
	content: "";
	position: absolute;
	left: 19px;
	top: 0;
	width: 8px;
	height: 28px;
	background: linear-gradient(#f4f6f8, #bfc6cc);
	border-radius: 999px 999px 4px 4px;
	transform: rotate(26deg);
}

.site-branding__name {
	display: block;
	font-size: 20px;
}

.site-branding__tagline {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.site-header__phone {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--omc-blue);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: 0.02em;
	box-shadow: 0 8px 18px rgba(40, 174, 234, 0.24);
}

.custom-logo-link,
.custom-logo {
	display: block;
}

.custom-logo {
	max-width: 172px;
	max-height: 72px;
	width: auto;
	height: auto;
}

.site-header__phone::before,
.omc-contact-item--phone::before,
.omc-footer-contact--phone::before {
	content: "";
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	background: currentColor;
	mask: url("assets/icons/phone.svg") center / contain no-repeat;
}

.site-main {
	overflow: clip;
}

.entry-content > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.entry-content .alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.omc-section,
.omc-hero,
.omc-cta {
	padding-inline: 20px;
}

.omc-section {
	padding-block: 70px;
}

.omc-section--tight-top {
	padding-top: 56px;
}

.omc-hero {
	min-height: 700px;
	display: flex;
	align-items: center;
	background:
		linear-gradient(90deg, rgba(4, 13, 24, 0.82), rgba(4, 13, 24, 0.6) 48%, rgba(4, 13, 24, 0.72)),
		url("assets/images/hero.jpg") center / cover no-repeat;
	color: #fff;
}

.omc-hero > .wp-block-columns,
.omc-section > .wp-block-columns,
.omc-section > .wp-block-group,
.omc-cta > .wp-block-group {
	width: min(var(--omc-container), 100%);
	margin-inline: auto;
}

.omc-hero__grid {
	align-items: center !important;
	gap: clamp(42px, 7vw, 96px) !important;
}

.omc-kicker {
	margin-bottom: 18px;
	color: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.omc-heading {
	margin: 0;
	color: var(--omc-blue);
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: 0;
}

.omc-hero .omc-heading {
	color: #fff;
	font-size: clamp(38px, 5vw, 56px);
	line-height: 1.15;
	max-width: 720px;
}

.omc-copy,
.omc-hero p,
.omc-cta p {
	color: var(--omc-muted);
	font-size: 17px;
	line-height: 1.65;
}

.omc-hero p {
	max-width: 690px;
	color: rgba(255, 255, 255, 0.94);
}

.wp-block-buttons {
	margin-top: 30px;
}

.omc-button .wp-block-button__link,
.wp-block-button.omc-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	min-width: 220px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--omc-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(40, 174, 234, 0.26);
	transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.omc-button .wp-block-button__link:hover,
.omc-button .wp-block-button__link:focus-visible {
	background: var(--omc-blue-dark);
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(40, 174, 234, 0.34);
}

.omc-button.has-phone-icon .wp-block-button__link::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	mask: url("assets/icons/phone.svg") center / contain no-repeat;
}

.omc-form-card {
	max-width: 450px;
	margin: 34px 0 34px auto;
	padding: 32px 36px;
	border-radius: 12px;
	background: #fff;
	color: var(--omc-ink);
	box-shadow: var(--omc-shadow);
}

.omc-form-card .omc-kicker {
	margin-bottom: 2px;
	color: var(--omc-ink);
	font-size: 14px;
	text-transform: uppercase;
}

.omc-form-card .omc-heading {
	margin-bottom: 20px;
	font-size: 25px;
	line-height: 1.25;
}

.wpcf7 form p {
	margin: 0 0 12px;
}

.wpcf7 label {
	display: block;
	font-size: 0;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 textarea,
.omc-form-fallback input,
.omc-form-fallback textarea {
	width: 100%;
	min-height: 43px;
	padding: 11px 16px;
	border: 1px solid #d6dbe1;
	border-radius: 5px;
	background: #fff;
	color: var(--omc-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.wpcf7 textarea,
.omc-form-fallback textarea {
	height: 132px;
	min-height: 112px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.omc-form-fallback input:focus,
.omc-form-fallback textarea:focus {
	border-color: var(--omc-blue);
	outline: 3px solid rgba(40, 174, 234, 0.18);
}

.wpcf7 input[type="submit"],
.omc-form-fallback button {
	min-height: 48px;
	padding: 0 30px;
	border: 0;
	border-radius: 999px;
	background: var(--omc-blue);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7-not-valid-tip,
.wpcf7-response-output {
	font-size: 14px;
}

.omc-card-row {
	gap: 22px !important;
	align-items: stretch !important;
}

.omc-card-row > .wp-block-column {
	display: flex;
}

.omc-card {
	width: 100%;
	height: 100%;
	min-height: 254px;
	padding: 34px 34px 30px;
	border: 1px solid var(--omc-border);
	border-radius: 0;
	background: #fff;
	box-shadow: 0 5px 16px rgba(7, 17, 31, 0.12);
	text-align: center;
}

.omc-card .wp-block-heading {
	margin: 18px 0 12px;
	font-size: 22px;
	line-height: 1.25;
}

.omc-card p {
	color: var(--omc-ink);
	font-size: 17px;
	line-height: 1.5;
}

.omc-icon {
	display: inline-block;
	width: 54px;
	height: 54px;
	background: #000;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.omc-icon--family { background-image: url("assets/icons/family.svg"); }
.omc-icon--speed { background-image: url("assets/icons/speed.svg"); }
.omc-icon--guidance { background-image: url("assets/icons/guidance.svg"); }
.omc-icon--expense { background-image: url("assets/icons/expense.svg"); }
.omc-icon--shield { background-image: url("assets/icons/shield.svg"); }
.omc-icon--person { background-image: url("assets/icons/person-shield.svg"); }
.omc-icon--money { background-image: url("assets/icons/money-shield.svg"); }
.omc-icon--medical { background-image: url("assets/icons/medical.svg"); }

.omc-card-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto;
}

.omc-card-icon img {
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.omc-image-shell {
	position: relative;
	overflow: hidden;
	border-radius: 0 86px 8px 86px;
	border: 18px solid var(--omc-blue);
	border-right-width: 0;
	border-bottom-width: 0;
}

.omc-image-shell img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0 70px 8px 70px;
}

.omc-section .wp-block-columns {
	align-items: center;
	gap: clamp(44px, 6vw, 74px) !important;
}

.omc-about-copy {
	max-width: 540px;
}

.omc-cta {
	min-height: 450px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-block: 72px;
	color: #fff;
	text-align: center;
	background:
		linear-gradient(rgba(11, 37, 52, 0.78), rgba(11, 37, 52, 0.78)),
		url("assets/images/support.jpg") center / cover no-repeat;
}

.omc-cta--quote {
	background:
		linear-gradient(rgba(9, 26, 43, 0.84), rgba(9, 26, 43, 0.84)),
		url("assets/images/hero.jpg") center / cover no-repeat;
}

.omc-cta .omc-heading {
	max-width: 640px;
	margin-inline: auto;
	color: #fff;
	font-size: clamp(36px, 4vw, 46px);
}

.omc-cta p {
	max-width: 640px;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.9);
}

.omc-services-title {
	margin-bottom: 36px;
	text-align: center;
}

.omc-services-grid {
	max-width: 960px !important;
	margin-inline: auto !important;
}

.omc-service-card {
	min-height: 196px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.omc-service-card .wp-block-heading {
	font-size: 20px;
}

.omc-contact-list {
	display: grid;
	gap: 12px;
	margin: 28px 0;
	padding: 0;
	list-style: none;
}

.omc-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
}

.omc-contact-item::before,
.omc-footer-contact::before {
	content: "";
	width: 18px;
	height: 18px;
	margin-top: 5px;
	flex: 0 0 auto;
	background: currentColor;
}

.omc-contact-item--email::before,
.omc-footer-contact--email::before {
	mask: url("assets/icons/mail.svg") center / contain no-repeat;
}

.omc-contact-item--address::before {
	mask: url("assets/icons/location.svg") center / contain no-repeat;
}

.site-footer {
	padding: 38px 20px 30px;
	background: #080808;
	color: #fff;
	text-align: center;
}

.site-footer__inner {
	width: min(90vw, 1720px);
	margin: 0 auto;
}

.site-footer__contacts {
	display: grid;
	gap: 8px;
	justify-content: center;
	margin-bottom: 34px;
}

.omc-footer-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.omc-footer-contact::before {
	margin-top: 0;
}

.site-footer__rule {
	height: 1px;
	margin: 0 0 30px;
	background: rgba(255, 255, 255, 0.16);
}

.site-footer__copy {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
}

.omc-form-fallback {
	display: grid;
	gap: 16px;
}

.omc-admin-note {
	margin-top: 12px;
	color: #7a3200;
	font-size: 14px;
}

@media (max-width: 900px) {
	.site-header__inner {
		min-height: 108px;
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.site-branding,
	.site-header__phone {
		grid-column: auto;
		justify-self: center;
	}

	.omc-hero {
		min-height: auto;
		padding-block: 70px;
	}

	.omc-form-card {
		max-width: none;
		margin-inline: 0;
	}

	.omc-card {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	.site-header__inner {
		width: min(100% - 28px, var(--omc-container));
		gap: 14px;
		padding-block: 16px;
	}

	.site-header__phone {
		min-height: 44px;
		padding-inline: 18px;
		font-size: 14px;
	}

	.omc-section {
		padding-block: 52px;
	}

	.omc-hero,
	.omc-cta {
		padding-inline: 16px;
	}

	.omc-hero {
		padding-block: 58px;
	}

	.omc-heading,
	.omc-hero .omc-heading,
	.omc-cta .omc-heading {
		font-size: 34px;
	}

	.omc-form-card {
		padding: 28px 22px;
	}

	.omc-card {
		padding: 28px 22px;
	}

	.omc-image-shell {
		border-width: 12px 0 0 12px;
		border-radius: 0 58px 8px 58px;
	}

	.omc-image-shell img {
		border-radius: 0 48px 8px 48px;
	}
}
