/*
Theme Name: DDM Investors
Theme URI: https://diasporadigitalmedia.com/
Author: Diaspora Digital Media
Description: Investor-relations theme for Diaspora Digital Media (DDM Communications IT and Media Academy Ltd). Designed to work with the DDM Shareholder Portal plugin: it uses the portal's colours, logo and share figures and gives shareholders a clear way to log in.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ddm-investors
*/

:root {
	--c-primary: #0b2545;
	--c-accent: #c9a227;
	--c-text: #1b2333;
	--c-muted: #5d6779;
	--c-line: #e4e8ef;
	--c-soft: #f4f6fa;
	--radius: 16px;
	--wrap: 1180px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--c-text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 10px 14px; clip: auto; width: auto; height: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; transition: transform .1s, filter .15s, background .15s; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--c-accent); color: var(--c-primary); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); }
.btn--ghost { border-color: var(--c-line); color: var(--c-primary); background: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--c-line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); margin-right: auto; }
.brand img { max-height: 46px; width: auto; }
.brand__mark { width: 44px; height: 44px; border-radius: 12px; background: var(--c-primary); color: var(--c-accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.brand__text strong { display: block; font-size: 16px; line-height: 1.15; }
.brand__text small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--c-accent); font-weight: 700; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--c-text); font-weight: 550; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--c-soft); color: var(--c-primary); }
.main-nav .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--c-text); margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background:
	radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--c-accent) 40%, transparent), transparent 60%),
	linear-gradient(155deg, var(--c-primary) 0%, color-mix(in srgb, var(--c-primary) 65%, #000) 100%); }
.hero--image::after { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; opacity: .18; mix-blend-mode: luminosity; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c-accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; color: #fff; margin-bottom: 22px; }
.hero h1 em { color: var(--c-accent); font-style: italic; }
.hero__lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 28px; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-card h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.hero-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.85); font-size: 15px; }
.hero-card li svg { flex: none; color: var(--c-accent); margin-top: 3px; }
.hero-card .btn { width: 100%; justify-content: center; }
.hero-card__note { font-size: 13px; color: rgba(255,255,255,.6); margin: 12px 0 0; text-align: center; }

/* ---------- Figures ---------- */
.figures { position: relative; z-index: 2; margin-top: -48px; }
.figures__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(11,37,69,.25); }
.figure { padding: 26px 28px; border-left: 1px solid var(--c-line); }
.figure:first-child { border-left: 0; }
.figure strong { display: block; font-size: 30px; font-weight: 750; color: var(--c-primary); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.figure span { font-size: 14px; color: var(--c-muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-primary); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { font-size: 18px; color: var(--c-muted); }
.section--dark .section-head p { color: rgba(255,255,255,.75); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3.4; background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 60%, var(--c-accent))); }
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__badge { position: absolute; left: 22px; bottom: 22px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.about__badge strong { display: block; color: var(--c-primary); font-size: 15px; }
.about__badge span { font-size: 13px; color: var(--c-muted); }
.about__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font-family: var(--font-display); font-size: 64px; letter-spacing: .06em; }
.about__body .lead { font-size: 19px; color: var(--c-text); }
.about__body p { color: var(--c-muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 22%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%237a5b00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(11,37,69,.3); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c-primary); color: var(--c-accent); display: grid; place-items: center; margin-bottom: 20px; }
.card h3 { font-size: 19px; }
.card p { color: var(--c-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 40px; color: var(--c-accent); line-height: 1; margin-bottom: 16px; }
.step p { color: rgba(255,255,255,.75); margin: 0; }
.section--dark .center-cta { text-align: center; margin-top: 44px; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16/9; background: var(--c-soft); display: block; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card time { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 650; }
.post-card h3 { font-size: 18px; margin: 8px 0 10px; }
.post-card h3 a { color: var(--c-text); text-decoration: none; }
.post-card p { color: var(--c-muted); font-size: 15px; flex: 1; }
.more { font-weight: 650; text-decoration: none; font-size: 14px; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--c-line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--c-accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--c-muted); padding-right: 40px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(120deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 75%, var(--c-accent))); color: #fff; border-radius: 24px; padding: 56px; }
.contact h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); }
.contact p { color: rgba(255,255,255,.8); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; }
.contact__list svg { flex: none; color: var(--c-accent); margin-top: 2px; }
.contact__list small { display: block; color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a, .contact__list span { color: #fff; text-decoration: none; overflow-wrap: anywhere; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(155deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, #000)); color: #fff; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); margin: 0; }
.page-hero p { color: rgba(255,255,255,.75); margin: 12px 0 0; }
.content-area { padding: 64px 0 96px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose img { border-radius: 12px; }
.prose blockquote { border-left: 3px solid var(--c-accent); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--c-muted); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--c-line); padding: 10px; text-align: left; }
.prose .alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.full-width .prose { max-width: none; }
.post-meta { color: var(--c-muted); font-size: 14px; margin-bottom: 26px; }
.featured { margin: 0 0 30px; }
.featured img { border-radius: 16px; width: 100%; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: 10px; text-decoration: none; padding: 0 10px; }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-family: var(--font-display); font-weight: 400; font-size: 96px; color: var(--c-accent); margin: 0; }

/* Portal page inside the theme (when the plugin's standalone layout is off) */
.portal-page .content-area { padding: 32px 0 64px; background: var(--c-soft); }
.portal-page .wrap { max-width: 1320px; }

/* ---------- Footer ---------- */
.site-footer { background: #071a31; color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand__text strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 96px; }
	.figures__grid { grid-template-columns: 1fr 1fr; }
	.figure:nth-child(3) { border-left: 0; }
	.figure:nth-child(n+3) { border-top: 1px solid var(--c-line); }
	.about, .contact { grid-template-columns: 1fr; gap: 36px; }
	.cards, .steps, .news { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
	.nav-toggle { display: inline-grid; place-items: center; order: 3; }
	.header-cta .btn { padding: 9px 14px; font-size: 14px; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-line); display: none; padding: 10px 16px 16px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 12px; }
	.site-header .wrap { gap: 12px; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 18px; }
	.section { padding: 64px 0; }
	.hero__lead { font-size: 17px; }
	.figure { padding: 18px; }
	.figure strong { font-size: 22px; }
	.cards, .steps, .news, .footer-grid { grid-template-columns: 1fr; }
	.contact { padding: 32px 22px; }
	.brand__text small { display: none; }
	.header-cta .btn span { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
