/*
Theme Name: Abu Marwan
Template: kadence
Description: Child theme for sewerunblockingkuwait.com
Version: 1.0.3
Text Domain: abumarwan
*/

:root {
	--am-bg: #F3F6F5;
	--am-surface: #FFFFFF;
	--am-ink: #10292B;
	--am-petrol: #0C4A4E;
	--am-petrol-deep: #08363A;
	--am-accent: #FFB703;
	--am-accent-deep: #E6A200;
	--am-muted: #516667;
	--am-line: #D5E0DE;
	--am-tint: #E4EEEC;
	--am-r: 6px;
	--am-w: 1180px;
	--am-head: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--am-body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;

	--global-palette1: #0C4A4E;
	--global-palette2: #08363A;
	--global-palette3: #10292B;
	--global-palette4: #10292B;
	--global-palette5: #516667;
	--global-palette6: #6E8283;
	--global-palette7: #E4EEEC;
	--global-palette8: #F3F6F5;
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--am-body);
	--global-heading-font-family: var(--am-head);
	--global-content-width: 1180px;
}

body {
	background: var(--am-bg);
	color: var(--am-ink);
	font-family: var(--am-body);
	font-size: 17px;
	line-height: 1.8;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .archive-title, .am-brand-name {
	font-family: var(--am-head);
	color: var(--am-ink);
	line-height: 1.3;
	letter-spacing: 0;
}

a { color: var(--am-petrol); }
a:hover { color: var(--am-petrol-deep); }

.am-wrap {
	max-width: var(--am-w);
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.am-btn,
.am-home .wp-block-button__link,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 24px;
	border-radius: var(--am-r);
	border: 2px solid var(--am-accent);
	background: var(--am-accent);
	color: var(--am-ink);
	font-family: var(--am-head);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, transform .1s;
}
.am-btn:hover,
.am-home .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
	background: var(--am-accent-deep);
	border-color: var(--am-accent-deep);
	color: var(--am-ink);
}
.am-btn:active,
.wp-block-button__link:active { transform: translateY(1px); }
.am-btn--ghost,
.am-home .is-style-outline .wp-block-button__link,
.entry-content .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: var(--am-petrol);
}
.am-btn--ghost:hover,
.am-home .is-style-outline .wp-block-button__link:hover,
.entry-content .is-style-outline .wp-block-button__link:hover {
	background: var(--am-petrol);
	border-color: var(--am-petrol);
	color: #fff;
}
:focus-visible { outline: 3px solid var(--am-accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.am-header { background: var(--am-surface); border-bottom: 1px solid var(--am-line); position: relative; z-index: 50; }
.am-topbar { background: var(--am-petrol-deep); color: #DCE9E7; font-size: 14px; }
.am-topbar .am-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.am-topbar a { color: var(--am-accent); font-family: var(--am-head); font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.am-bar { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.am-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.am-brand-text { display: flex; flex-direction: column; }
.am-brand-name { font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--am-ink); }
.am-brand-sub { font-size: 13px; line-height: 1.4; color: var(--am-muted); }
.am-brand--light .am-brand-name { color: #fff; }
.am-brand--light .am-brand-sub { color: #B9CECC; }
.am-brand--light .am-mark rect { fill: #0F5A5F; }
.am-nav { margin-inline-start: auto; }
.am-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.am-menu li { position: relative; margin: 0; }
.am-menu a { display: block; padding: 10px 14px; border-radius: var(--am-r); color: var(--am-ink); font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; }
.am-menu a:hover,
.am-menu .current-menu-item > a,
.am-menu .current-menu-ancestor > a { background: var(--am-tint); color: var(--am-petrol-deep); }
.am-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 8px; border-inline-end: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.am-nav .sub-menu { position: absolute; inset-inline-start: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: var(--am-surface); border: 1px solid var(--am-line); border-radius: var(--am-r); box-shadow: 0 14px 30px rgba(12, 74, 78, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.am-nav li:hover > .sub-menu,
.am-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.am-mobile { display: none; }
.am-mobile summary { list-style: none; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--am-line); border-radius: var(--am-r); cursor: pointer; }
.am-mobile summary::-webkit-details-marker { display: none; }
.am-mobile summary span { display: block; width: 22px; height: 2px; background: var(--am-ink); }
.am-mobile-panel { position: absolute; inset-inline: 0; top: 100%; background: var(--am-surface); border-bottom: 1px solid var(--am-line); padding: 10px 24px 20px; box-shadow: 0 18px 30px rgba(12, 74, 78, .12); }
.am-mobile-panel .am-menu { flex-direction: column; align-items: stretch; gap: 0; }
.am-mobile-panel .am-menu a { padding: 13px 4px; border-bottom: 1px solid var(--am-line); border-radius: 0; white-space: normal; }
.am-mobile-panel .sub-menu { list-style: none; margin: 0; padding: 0 16px 0 0; }
.am-mobile-panel .sub-menu a { font-size: 15px; color: var(--am-muted); }

@media (max-width: 980px) {
	.am-nav { display: none; }
	.am-mobile { display: block; }
	.am-bar { gap: 12px; min-height: 68px; }
	.am-bar-cta { margin-inline-start: auto; padding: 10px 16px; font-size: 15px; }
	.am-brand-sub { display: none; }
	.am-topbar span { font-size: 13px; }
}

/* ---------- Home sections ---------- */
.am-home > * { margin-block: 0; }
.am-home .am-sec { padding-block: 72px; }
.am-home .am-sec > *,
.am-home .am-hero > *,
.am-home .am-cta > * { max-width: var(--am-w); margin-inline: auto; padding-inline: 24px; }
.am-home h2.wp-block-heading { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin: 0 0 14px; }
.am-home .am-lead { color: var(--am-muted); max-width: 62ch; margin: 0 0 36px; }

.am-hero { background: var(--am-surface); border-bottom: 1px solid var(--am-line); padding-block: 64px 72px; overflow: hidden; }
.am-hero .wp-block-columns { align-items: center; gap: 56px; margin-bottom: 0; }
.am-hero .am-eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border-radius: var(--am-r); background: var(--am-tint); color: var(--am-petrol-deep); font-size: 14px; font-weight: 600; }
.am-hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; line-height: 1.2; margin: 0 0 18px; }
.am-hero h1 strong { color: var(--am-petrol); font-weight: 800; }
.am-hero .am-sub { font-size: 19px; color: var(--am-muted); max-width: 46ch; margin: 0 0 28px; }
.am-hero .wp-block-buttons { gap: 12px; }
.am-hero-card { position: relative; background: var(--am-petrol); color: #fff; border-radius: var(--am-r); padding: 40px 36px 36px; box-shadow: 18px 18px 0 var(--am-accent); margin-inline-end: 18px; }
.am-hero-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px); pointer-events: none; }
.am-hero-card > * { position: relative; }
.am-hero-card .am-card-label { margin: 0; color: #B9CECC; font-size: 15px; }
.am-hero-card .am-card-phone { margin: 4px 0 22px; font-family: var(--am-head); font-weight: 800; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.1; letter-spacing: .02em; direction: ltr; text-align: right; }
.am-hero-card .am-card-phone a { color: var(--am-accent); text-decoration: none; }
.am-hero-card ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.am-hero-card li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; color: #EAF3F2; }
.am-hero-card li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 6px; border-inline-start: 2px solid var(--am-accent); border-bottom: 2px solid var(--am-accent); transform: rotate(-45deg); }
[dir="rtl"] .am-hero-card li::before { transform: rotate(45deg) scaleX(-1); }

/* Classic themes wrap group children in an inner container; let grid/flex see the real children. */
.am-grid > .wp-block-group__inner-container,
.am-svc > .wp-block-group__inner-container,
.am-contact > .wp-block-group__inner-container { display: contents; }
.am-services .am-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.am-svc { background: var(--am-surface); border: 1px solid var(--am-line); border-radius: var(--am-r); padding: 26px 24px; margin: 0; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.am-svc:hover { border-color: var(--am-petrol); transform: translateY(-2px); }
.am-svc h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.am-svc h3 a { color: inherit; text-decoration: none; }
.am-svc h3 a::after { content: ""; position: absolute; inset: 0; }
.am-svc { position: relative; }
.am-svc p { margin: 0; color: var(--am-muted); font-size: 16px; line-height: 1.7; }
.am-svc--lead { grid-column: span 2; grid-row: span 2; background: var(--am-petrol); border-color: var(--am-petrol); justify-content: flex-end; min-height: 320px; padding: 36px 32px; background-image: radial-gradient(circle at 15% 12%, rgba(255, 183, 3, .22), transparent 42%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 22px); }
.am-svc--lead h3 { font-size: clamp(26px, 3vw, 34px); color: #fff; }
.am-svc--lead p { color: #D6E5E3; font-size: 17px; max-width: 40ch; }
.am-svc--lead:hover { border-color: var(--am-accent); }
.am-svc--wide { grid-column: 1 / -1; background: var(--am-tint); border-color: transparent; flex-direction: row; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.am-svc--wide h3 { margin: 0; }

.am-steps { background: var(--am-surface); border-block: 1px solid var(--am-line); }
.am-steps ol { list-style: none; counter-reset: am; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 auto; }
.am-steps ol li { counter-increment: am; margin: 0; padding: 4px 24px 4px 0; border-inline-start: 1px solid var(--am-line); padding-inline: 24px; color: var(--am-muted); font-size: 16px; line-height: 1.7; }
.am-steps ol li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.am-steps ol li::before { content: counter(am); display: block; font-family: var(--am-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--am-accent-deep); margin-bottom: 14px; }
.am-steps ol li strong { display: block; font-family: var(--am-head); font-size: 19px; color: var(--am-ink); margin-bottom: 6px; }

.am-areas .wp-block-columns { gap: 56px; margin-bottom: 0; }
.am-areas ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--am-ink); }
.am-areas li { margin: 0; border-bottom: 1px solid var(--am-line); }
.am-areas li a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-family: var(--am-head); font-weight: 600; font-size: 18px; color: var(--am-ink); text-decoration: none; }
.am-areas li a::after { content: "←"; color: var(--am-petrol); transition: transform .15s; }
.am-areas li a:hover { color: var(--am-petrol); }
.am-areas li a:hover::after { transform: translateX(-5px); }

.am-latest { background: var(--am-tint); }
.am-latest .wp-block-latest-posts { list-style: none; padding: 0; margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.am-latest .wp-block-latest-posts li { margin: 0; padding: 18px 0; border-bottom: 1px solid #C5D5D2; }
.am-latest .wp-block-latest-posts a { font-family: var(--am-head); font-weight: 600; font-size: 18px; line-height: 1.5; color: var(--am-ink); text-decoration: none; }
.am-latest .wp-block-latest-posts a:hover { color: var(--am-petrol); text-decoration: underline; }
.am-latest .am-more { margin: 28px auto 0; }
.am-latest .am-more a { font-weight: 600; }

.am-cta { background: var(--am-petrol-deep); color: #fff; padding-block: 64px; }
.am-cta .wp-block-columns { align-items: center; gap: 32px; margin-bottom: 0; }
.am-cta h2.wp-block-heading { color: #fff; margin-bottom: 8px; }
.am-cta p { color: #C9DAD8; margin: 0; }
.am-cta .wp-block-buttons { justify-content: flex-end; }

@media (max-width: 980px) {
	.am-home .am-sec { padding-block: 52px; }
	.am-hero { padding-block: 40px 56px; }
	.am-hero .wp-block-columns, .am-areas .wp-block-columns, .am-cta .wp-block-columns { flex-direction: column; gap: 32px; align-items: stretch; }
	.am-hero-card { margin-inline-end: 12px; padding: 30px 24px; box-shadow: 12px 12px 0 var(--am-accent); }
	.am-services .am-grid { grid-template-columns: 1fr 1fr; }
	.am-svc--lead { min-height: 220px; grid-row: auto; }
	.am-steps ol { grid-template-columns: 1fr 1fr; gap: 28px 0; }
	.am-steps ol li:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
	.am-latest .wp-block-latest-posts { grid-template-columns: 1fr; }
	.am-cta .wp-block-buttons { justify-content: flex-start; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.am-services .am-grid { grid-template-columns: 1fr; }
	.am-svc--lead { grid-column: auto; }
	.am-steps ol { grid-template-columns: 1fr; }
	.am-steps ol li { border-inline-start: 0; padding-inline: 0; }
	.am-hero .wp-block-button, .am-hero .wp-block-button__link { width: 100%; justify-content: center; }
}

/* ---------- Inner pages, archive, single ---------- */
.entry-hero .entry-hero-container-inner,
.entry-hero.post-archive-hero-section .entry-hero-container-inner,
.entry-hero.page-hero-section .entry-hero-container-inner { background: var(--am-petrol-deep); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px); }
.entry-hero .entry-header { min-height: 190px; }
.entry-hero h1, .entry-hero .archive-title, .entry-hero .entry-title { color: #fff; font-weight: 800; font-size: clamp(28px, 4vw, 44px); }
.entry-hero .archive-description, .entry-hero .kadence-breadcrumbs, .entry-hero .kadence-breadcrumbs a { color: #C9DAD8; }

.content-bg, body.content-style-unboxed .site { background: var(--am-surface); }
.entry.loop-entry { border: 1px solid var(--am-line); border-radius: var(--am-r); box-shadow: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.entry.loop-entry:hover { border-color: var(--am-petrol); transform: translateY(-2px); }
.loop-entry .post-thumbnail { padding-bottom: 62% !important; background: var(--am-tint); }
.loop-entry .post-thumbnail img { object-fit: cover; }
.loop-entry .entry-content-wrap { padding: 22px 22px 24px; }
.loop-entry .entry-taxonomies { margin-bottom: 8px; }
.loop-entry .entry-taxonomies a { font-family: var(--am-body); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--am-petrol); }
.loop-entry h2.entry-title { font-size: 19px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.loop-entry h2.entry-title a { color: var(--am-ink); text-decoration: none; }
.loop-entry h2.entry-title a:hover { color: var(--am-petrol); }
.loop-entry .entry-meta { font-size: 13px; color: var(--am-muted); }
.loop-entry .entry-summary { color: var(--am-muted); font-size: 15.5px; line-height: 1.75; }
.loop-entry .entry-summary p { margin: 8px 0 0; }
.loop-entry .post-more-link { font-family: var(--am-head); font-weight: 700; font-size: 14px; color: var(--am-petrol); text-transform: none; letter-spacing: 0; }
.posted-by, .entry-meta .meta-author, .entry-meta .posted-by { display: none !important; }
.pagination .page-numbers { border-radius: var(--am-r); }
.pagination .page-numbers.current { background: var(--am-petrol); border-color: var(--am-petrol); color: #fff; }

.am-crumbs { font-size: 14px; color: var(--am-muted); margin-bottom: 14px; }
.am-crumbs a { color: var(--am-petrol); text-decoration: none; }
.am-crumbs a:hover { text-decoration: underline; }
.am-crumbs .separator { margin-inline: 6px; color: var(--am-line); }
.single-entry .entry-header .entry-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.35; }
.entry-content { font-size: 17.5px; line-height: 1.95; }
.entry-content h2 { font-size: clamp(23px, 2.6vw, 29px); font-weight: 700; margin: 2em 0 .6em; padding-inline-start: 14px; border-inline-start: 4px solid var(--am-accent); }
.entry-content h3 { font-size: 21px; font-weight: 700; margin: 1.6em 0 .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a.am-btn, .entry-content .wp-block-button__link { text-decoration: none; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.entry-content th { background: var(--am-petrol); color: #fff; font-family: var(--am-head); font-weight: 600; }
.entry-content th, .entry-content td { border: 1px solid var(--am-line); padding: 10px 14px; text-align: start; }
.entry-content tr:nth-child(even) td { background: var(--am-bg); }
.entry-content img { border-radius: var(--am-r); }
.entry-content blockquote { border-inline-start: 4px solid var(--am-petrol); background: var(--am-bg); padding: 16px 20px; margin-inline: 0; }

.am-postcta { margin-top: 48px; padding: 28px; background: var(--am-petrol); color: #fff; border-radius: var(--am-r); box-shadow: 10px 10px 0 var(--am-accent); margin-inline-end: 10px; }
.am-postcta p { margin: 0 0 10px; color: #DCE9E7; }
.am-postcta .am-postcta-title { font-family: var(--am-head); font-weight: 800; font-size: 24px; color: #fff; }
.am-postcta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0 !important; }
.am-postcta .am-btn--ghost { color: #fff; }
.am-postcta .am-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--am-petrol-deep); }

/* Plain pages (about, contact, privacy) */
.am-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block: 28px; }
.am-contact .wp-block-group { margin: 0; padding: 24px; border: 1px solid var(--am-line); border-radius: var(--am-r); background: var(--am-bg); }
.am-contact h3 { margin: 0 0 6px; font-size: 18px; }
.am-contact p { margin: 0; }
.am-contact .am-big { font-family: var(--am-head); font-weight: 800; font-size: 26px; direction: ltr; text-align: right; }
.am-contact .am-big a { text-decoration: none; }
@media (max-width: 780px) { .am-contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.am-footer { background: var(--am-petrol-deep); color: #C9DAD8; font-size: 15.5px; margin-top: 0; }
.am-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 44px; }
.am-footer p { margin: 16px 0 0; max-width: 38ch; line-height: 1.8; }
.am-footer-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.am-footer-list { list-style: none; margin: 0; padding: 0; }
.am-footer-list li { margin: 0 0 9px; }
.am-footer a { color: #E6F0EF; text-decoration: none; }
.am-footer a:hover { color: var(--am-accent); }
.am-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 14px; color: #A9BFBD; }
@media (max-width: 900px) { .am-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-block: 44px 32px; } }
@media (max-width: 560px) { .am-footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
