/* ==========================================================
   Almodad Global — main stylesheet
   Colours match the live almodad.net blues and the logo.
   ========================================================== */

:root {
	--blue: #053AA3;        /* main brand blue (site) */
	--navy: #04119A;        /* deep blue (site footer bar) */
	--btn: #0066DD;         /* button blue (site #007BFF, darkened for legibility) */
	--btn-hover: #0052B4;
	--cyan: #63CBED;        /* logo cyan */
	--gold: #D2B352;        /* logo gold */
	--ink: #0A2A7A;         /* headings */
	--text: #334155;
	--muted: #475569;
	--on-dark: #D3DDF2;
	--on-dark-muted: #B4C3E6;
	--bg: #F4F7FB;
	--white: #FFFFFF;
	--line: #E2E8F0;
	--radius: 16px;
	--shadow: 0 12px 32px rgba(4, 17, 154, 0.22);
	--font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--btn-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
	font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--lg { min-height: 54px; padding: 16px 30px; }
.btn--primary { background: var(--btn); color: var(--white); }
.btn--primary:hover { background: var(--btn-hover); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); font-weight: 700; }
.btn--white:hover { background: #E6F6FC; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { border-color: #6D8DD6; color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { align-self: flex-start; display: inline-flex; align-items: flex-end; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cyan); padding-bottom: 4px; }
.text-link:hover { color: var(--blue); border-color: var(--blue); }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.eyebrow--light { color: var(--cyan); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: var(--on-dark); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar__group { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--white); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(4, 17, 154, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.site-logo { display: flex; align-items: center; min-height: 44px; }
.site-logo img { width: 206px; height: auto; max-height: 40px; object-fit: contain; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.primary-nav .menu a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; display: inline-block; }
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--blue); font-weight: 600; }
.primary-nav .sub-menu { display: none; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; content: ''; }
.nav-toggle__bar { top: 22px; }
.nav-toggle__bar::before { top: -6px; left: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 60;
		flex-direction: column; align-items: stretch; gap: 20px; padding: 88px 24px 32px;
		background: var(--white); box-shadow: -12px 0 32px rgba(4,17,154,.18);
		transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.nav-toggle { z-index: 70; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; }
.hero__text { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
.hero__lead { font-size: 19px; color: var(--on-dark); max-width: 580px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 8px 0 0; }
.hero__stats dt { font-family: var(--font-head); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--white); }
.hero__stats dd { margin: 0; font-size: 14px; color: var(--on-dark-muted); }
.hero__media { flex: 1 1 400px; min-width: 0; position: relative; }
.hero__media > img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.hero__badge { position: absolute; left: -20px; bottom: 28px; display: flex; align-items: center; gap: 14px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 18px 22px; box-shadow: var(--shadow); }
.hero__badge-icon { width: 44px; height: 44px; border-radius: 10px; background: #E6F6FC; color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 16px; }
.hero__badge small { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
	.hero__inner { padding-top: 56px; padding-bottom: 64px; }
	.hero__media > img { height: 300px; }
	.hero__badge { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- Principles strip ---------- */
.principles { background: var(--white); border-bottom: 1px solid var(--line); }
.principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.principle { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.principle__bar { width: 6px; height: 28px; border-radius: 3px; }
.principle__bar--cyan { background: var(--cyan); }
.principle__bar--blue { background: var(--blue); }
.principle__bar--gold { background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--tight-top { padding-top: 0; }
.section-head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section-head p { font-size: 17px; color: var(--muted); }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section-head--split > p { flex: 1 1 360px; min-width: 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Service cards */
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card img { width: 100%; height: 190px; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; padding: 26px 28px 28px; }
.service-card__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ink); }
.service-card__text { font-size: 15px; color: var(--muted); }
.service-card__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }

/* Split layout */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split__media { flex: 1 1 420px; min-width: 0; position: relative; }
.split__media > img { width: 100%; height: 520px; object-fit: cover; border-radius: 20px; }
.split__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.media-badge { position: absolute; right: -16px; top: 28px; display: flex; flex-direction: column; background: var(--blue); border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow); }
.media-badge strong { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--white); }
.media-badge small { font-size: 13px; color: var(--on-dark); }
@media (max-width: 700px) { .split__media > img { height: 320px; } .media-badge { right: 12px; top: 12px; } .split { gap: 40px; } }

.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.vm-box { background: var(--bg); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.section:not(.section--white) .vm-box { background: var(--white); border: 1px solid var(--line); }
.vm-box__label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.vm-box p { font-size: 15px; color: #1F2937; }

/* Why cards */
.why-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.why-card--blue { border-top-color: var(--blue); }
.why-card--gold { border-top-color: var(--gold); }
.why-card__num { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--blue); }
.why-card h3 { font-size: 24px; }
.why-card p { font-size: 16px; color: var(--muted); }
.section--white .why-card { background: var(--bg); }

/* CTA band */
.cta-band { background: var(--blue); border-radius: 22px; padding: 64px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-band h2 { color: var(--white); font-size: clamp(28px, 3.2vw, 40px); }
.cta-band p { color: var(--on-dark); }
.cta-band__actions { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 700px) { .cta-band { padding: 40px 24px; } }
.section--white + .section--tight-top, .section--white + section .section--tight-top { padding-top: 104px; }

/* Page hero (inner pages) */
.page-hero { background: var(--blue); color: var(--white); padding: 88px 0 80px; }
.page-hero .container { display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { color: var(--white); font-size: clamp(36px, 4.6vw, 54px); }
.page-hero p { color: var(--on-dark); font-size: 19px; max-width: 680px; }
@media (max-width: 700px) { .page-hero { padding: 56px 0 52px; } }

/* Services page */
.service-jump { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 81px; z-index: 40; }
.service-jump__inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: thin; }
.service-jump a { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.service-jump a:hover { background: var(--blue); color: var(--white); }
@media (max-width: 1000px) { .service-jump { position: static; } }
.service-list { display: flex; flex-direction: column; gap: 88px; }
.service-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; scroll-margin-top: 160px; }
.service-row--flip { flex-direction: row-reverse; }
.service-row__media { flex: 1 1 380px; min-width: 0; }
.service-row__media img { width: 100%; height: 380px; object-fit: cover; border-radius: 20px; }
.service-row__text { flex: 1.2 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.service-row__text h2 { font-size: clamp(26px, 3vw, 36px); }
@media (max-width: 700px) { .service-list { gap: 56px; } .service-row__media img { height: 240px; } .service-row { gap: 28px; } }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #E6F6FC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23053AA3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Prose */
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose p, .prose li { font-size: 17px; color: var(--text); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.6em; font-size: 30px; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 12px; }
.post-featured img { width: 100%; border-radius: 20px; margin-bottom: 40px; }
.post-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a { text-decoration: none; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section--white .post-card { background: var(--bg); }
.post-card__media img { width: 100%; height: 200px; object-fit: cover; }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.post-card__meta { font-size: 13px; color: var(--muted); }
.post-card__title { font-size: 20px; line-height: 1.3; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); }
.post-card p { font-size: 15px; color: var(--muted); }
.post-card__more { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Contact */
.contact-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.contact-card { flex: 1 1 340px; min-width: 0; background: var(--blue); color: var(--on-dark); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.contact-card h2 { color: var(--white); font-size: 28px; }
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.contact-list dd { margin: 4px 0 0; color: var(--white); }
.contact-list a { color: var(--white); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.form-card { flex: 2 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 44px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 120px; }
.form-card > p { color: var(--muted); }
@media (max-width: 700px) { .contact-card, .form-card { padding: 28px 22px; } }

.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea, .subscribe input {
	width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 8px;
	font: inherit; font-size: 16px; color: var(--text); background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(99,203,237,.45); outline-offset: 0; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .quote-form { grid-template-columns: 1fr; } }

.notice { padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.notice--success { background: #E7F7EE; color: #11603A; }
.notice--error { background: #FDECEC; color: #9B1C1C; }
.notice--light { background: rgba(255,255,255,.12); color: var(--white); }

.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* Search form */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form label { flex: 1 1 240px; }
.search-form .search-field { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; }
.search-form .search-submit { min-height: 50px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--btn); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--on-dark); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h4 { font-size: 17px; color: var(--white); letter-spacing: 0; }
.footer-logo { width: 96px; height: 96px; background: var(--white); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: var(--white); }
.social a:hover { background: var(--cyan); color: var(--navy); text-decoration: none; }
.social--dark a { text-decoration: none; width: auto; padding: 0 16px; font-size: 14px; font-weight: 600; }
.subscribe { display: flex; flex-direction: column; gap: 10px; }
.subscribe input { border-color: transparent; }
.site-footer__bottom { background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; font-size: 14px; color: var(--on-dark-muted); }
.site-footer__bottom a { color: var(--white); font-weight: 600; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 14px 20px; border-radius: 999px; background: #1F9E4D; color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: 0 10px 28px rgba(4,17,154,.3); transition: transform .2s; }
.wa-float:hover { color: var(--white); transform: translateY(-2px); }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

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