/* DubaiSEO theme — navy & gold, Rubik, square corners */
:root {
	--ink: #0B1B33;
	--navy: #1D3F72;
	--muted: #4A5568;
	--bg: #F5F6F8;
	--white: #FFFFFF;
	--line: #DDE1E8;
	--input: #C5CCD8;
	--tint: #E3E8F1;
	--chip: #EDF0F5;
	--gold-bg: #FBF5E8;
	--gold-line: #E2C98F;
	--gold-ink: #6B4C0F;
	--gold-tag: #F6E8C8;
	--gold-light: #E0C27A;
	--dark-line: #24375A;
	--dark-muted: #C3CBD9;
	--wrap: 1200px;
	--font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; margin: 0; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 12px 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section--tight { padding: 0 0 64px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head h2 { font-size: 32px; }
.section-head p { font-size: 15px; color: var(--muted); margin-top: 8px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--navy); }
.muted { color: var(--muted); }

/* Links with chevron */
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.chev { width: 14px; height: 14px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 0; font: 500 15px/1 var(--font); cursor: pointer; text-align: center; white-space: nowrap; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold-ink); color: var(--white); }
.btn-gold:hover { background: #4F3809; color: var(--white); }
.btn-outline-gold { border-color: var(--gold-ink); color: var(--gold-ink); background: transparent; }
.btn-outline-gold:hover { background: var(--gold-ink); color: var(--white); }
.btn-sm { height: 44px; padding: 0 16px; }
.btn-block { width: 100%; }

/* Tags */
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 8px; line-height: 1.3; }
.tag-sponsored { color: var(--gold-ink); background: var(--gold-tag); }
.tag-verified { color: var(--ink); background: var(--tint); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-weight: 600; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.logo span { color: var(--navy); }
.logo img { max-height: 40px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.main-nav a { color: var(--ink); }
.main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav a:hover { color: var(--navy); }
.main-nav .menu-cta > a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--ink); font-weight: 500; }
.main-nav .menu-cta > a:hover { background: var(--ink); color: var(--white); }

/* Hero */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; max-width: 860px; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 680px; }
.search-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--bg); border: 1px solid var(--line); padding: 16px; max-width: 860px; }
.search-box .field { flex: 1 1 200px; margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); align-items: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 8px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], select, textarea {
	width: 100%; height: 48px; border: 1px solid var(--input); border-radius: 0; padding: 0 12px; font: 400 15px var(--font); color: var(--ink); background: var(--white);
}
textarea { height: auto; padding: 10px 12px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink); margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--navy); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.dsd-form__title { font-size: 20px; margin-bottom: 16px; }
.dsd-form__note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.dsd-form--inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dsd-form--inline .field { flex: 1 1 220px; margin: 0; }
.dsd-form--inline .notice { flex: 1 1 100%; }
.notice { padding: 12px 14px; font-size: 14px; margin-bottom: 14px; border: 1px solid; }
.notice-success { background: var(--tint); border-color: #B9C6DC; color: var(--ink); }
.notice-error { background: #FBEDEC; border-color: #E8B4AE; color: #7A1F16; }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.grid-services { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.service-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.service-card:hover { border-color: var(--navy); color: var(--ink); }
.service-card strong { font-size: 17px; font-weight: 600; }
.service-card span { font-size: 14px; color: var(--muted); }

.agency-card { display: flex; flex-direction: column; gap: 16px; }
.agency-card.is-sponsored { background: var(--gold-bg); border-color: var(--gold-line); }
.agency-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.agency-card .rank { font-size: 28px; font-weight: 600; color: var(--navy); }
.agency-card .score { font-size: 13px; color: var(--muted); }
.agency-id { display: flex; gap: 12px; align-items: center; }
.agency-id h3 { font-size: 19px; }
.agency-id span { font-size: 14px; color: var(--muted); }
.agency-card.is-sponsored .agency-id span, .agency-card.is-sponsored p { color: #5C4A2A; }
.agency-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.agency-card.is-sponsored .more { color: var(--gold-ink); }
.logo-box { width: 48px; height: 48px; background: var(--tint); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 600; color: var(--navy); }
.logo-box img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.is-sponsored .logo-box { background: #E9DCC3; color: var(--gold-ink); }
.logo-box--lg { width: 64px; height: 64px; font-size: 22px; }
.logo-box--xl { width: 88px; height: 88px; font-size: 30px; }

/* Dark method band */
.band-dark { background: var(--ink); color: var(--bg); }
.band-dark h2 { color: var(--white); font-size: 32px; }
.band-dark .lead { font-size: 17px; line-height: 1.55; color: var(--dark-muted); margin-top: 12px; max-width: 720px; }
.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 32px 0; }
.criteria div { border-top: 1px solid var(--dark-line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.criteria strong { font-size: 17px; font-weight: 600; color: var(--white); }
.criteria span { font-size: 15px; line-height: 1.5; color: var(--dark-muted); }
.band-dark .more { color: var(--gold-light); }

/* Quote band */
.quote-band { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.quote-band > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.quote-band h2 { font-size: 32px; }
.quote-band p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.steps-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.steps { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 15px; counter-increment: step; }
.steps li::before { content: counter(step); width: 32px; height: 32px; background: var(--tint); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }

/* Newsletter box */
.newsletter-box { background: var(--white); border: 1px solid var(--line); padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.newsletter-box > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.newsletter-box h2 { font-size: 28px; }
.newsletter-box p { color: var(--muted); }
.newsletter-box .dsd-form { flex: 1 1 360px; }

/* Page header (directory, profile, pages) */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.page-head .lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 760px; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: 14px; padding: 8px 14px; border: 1px solid var(--input); color: var(--ink); }
.chips a:hover { border-color: var(--navy); color: var(--navy); }
.chips a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Directory layout */
.layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.layout__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.layout__side { flex: 1 1 260px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.filters { background: var(--white); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.filters > strong { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.filters fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.filters legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.filters .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.filters .reset { font-size: 14px; text-align: center; }
.list-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.list-bar form { display: flex; align-items: center; gap: 8px; }
.list-bar select { height: 36px; width: auto; font-size: 14px; padding: 0 8px; }

.agency-row { background: var(--white); border: 1px solid var(--line); padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.agency-row.is-sponsored { background: var(--gold-bg); border-color: var(--gold-line); }
.agency-row__rank { width: 64px; flex: none; font-size: 30px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.agency-row__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.agency-row__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.agency-row__title h2 { font-size: 21px; }
.agency-row__title h2 a { color: var(--ink); }
.agency-row__meta { font-size: 14px; color: var(--muted); }
.agency-row__body p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.agency-row.is-sponsored .agency-row__meta, .agency-row.is-sponsored p { color: #5C4A2A; }
.agency-row__scores { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); padding-top: 4px; }
.agency-row__scores strong { color: var(--ink); }
.agency-row__cta { flex: 0 1 180px; display: flex; flex-direction: column; gap: 8px; }
.agency-row__score { text-align: center; font-size: 13px; color: var(--muted); }
.agency-row__score strong { font-size: 22px; color: var(--ink); }

.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--input); color: var(--ink); background: var(--white); font-size: 15px; }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.empty { background: var(--white); border: 1px solid var(--line); padding: 32px; text-align: center; color: var(--muted); }

/* Long-form content (guides, term descriptions, pages) */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--navy); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.guide-box { margin-top: 24px; background: var(--white); border: 1px solid var(--line); padding: 28px; }

/* Agency profile */
.profile-id { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.profile-id > div:first-child { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-id h1 { font-size: clamp(30px, 4vw, 40px); }
.profile-id .meta { font-size: 15px; color: var(--muted); margin-top: 8px; }
.profile-id .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.score-card { background: var(--ink); color: var(--bg); padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.score-card__total { display: flex; flex-direction: column; gap: 4px; }
.score-card__total small { font-size: 13px; color: var(--dark-muted); }
.score-card__total b { font-size: 56px; font-weight: 600; color: var(--white); line-height: 1; }
.score-card__total b span { font-size: 20px; color: var(--dark-muted); font-weight: 400; }
.score-card__total em { font-style: normal; font-size: 13px; color: var(--gold-light); }
.score-card__bars { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.score-card__bars div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dark-muted); }
.bar { height: 8px; background: var(--dark-line); }
.bar i { display: block; height: 8px; background: var(--gold-light); }
.score-card .more { color: var(--gold-light); font-size: 13px; flex: 1 1 100%; }
.box { background: var(--white); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.box h2 { font-size: 24px; }
.box-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a, .pills span { font-size: 13px; padding: 6px 12px; background: var(--chip); color: var(--ink); }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cases article { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cases h3 { font-size: 17px; }
.cases p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cases .ok { font-size: 12px; font-weight: 600; color: var(--navy); }
.review { margin: 0; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.review p { font-size: 15px; line-height: 1.6; }
.review footer { font-size: 13px; color: var(--muted); }
.glance { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.glance strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.side-form { background: var(--white); border: 1px solid var(--line); padding: 24px; scroll-margin-top: 24px; }

/* Blog / guides */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card h2 { font-size: 20px; }
.post-card h2 a { color: var(--ink); }
.post-card time, .post-meta { font-size: 13px; color: var(--muted); }
.narrow { max-width: 760px; }
.article-img { margin-bottom: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer .about { display: flex; flex-direction: column; gap: 8px; max-width: 420px; line-height: 1.5; }
.site-footer .logo { font-size: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .copy { flex: 1 1 100%; font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 640px) {
	.section { padding: 48px 0; }
	.hero .wrap { padding-top: 48px; padding-bottom: 48px; }
	.section-head h2, .band-dark h2, .quote-band h2 { font-size: 26px; }
	.newsletter-box { padding: 24px; }
	.agency-row__rank { width: auto; }
	.agency-row__cta { flex: 1 1 100%; }
	.score-card__bars { grid-template-columns: minmax(0, 1fr); }
	.layout__side { max-width: none; }
	.search-box .btn { width: 100%; }
}
