/* ============================================================
   DEMDIO TECHNOLOGIES — Shared Stylesheet
   WordPress: paste into Appearance > Customize > Additional CSS
   OR enqueue via your child theme's functions.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0F1E36;
  --navy-mid:#162844;
  --gold:    #E8A020;
  --gold-lt: #F5C05A;
  --white:   #FFFFFF;
  --off:     #F5F6F8;
  --slate:   #6B7A93;
  --border:  #DDE2EA;
  --text:    #1A2640;
  --radius:  6px;
  --max:     1120px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site Header / Nav ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.site-logo span { color: var(--gold); }

.site-nav { display: flex; gap: 32px; list-style: none; }

.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--gold); text-decoration: none; }

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--gold-lt); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

/* Diagonal slash motif */
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 520px; height: 520px;
  background: var(--gold);
  opacity: 0.07;
  transform: rotate(25deg);
  border-radius: 40px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: 80px;
  width: 280px; height: 280px;
  background: var(--gold);
  opacity: 0.05;
  transform: rotate(25deg);
  border-radius: 30px;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--white);
  max-width: 780px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s, color 0.2s;
  margin-left: 12px;
}

.btn-secondary:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-num {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 2px;
}

/* ── Section chrome ── */
.section { padding: 80px 0; }
.section-alt { background: var(--off); }
.section-dark { background: var(--navy); }

.section-label {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 17px;
  color: var(--slate);
  max-width: 620px;
  line-height: 1.7;
}

.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-lead { margin: 0 auto; }

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover { box-shadow: 0 8px 32px rgba(15,30,54,0.10); transform: translateY(-3px); }

.service-card.featured {
  border-color: var(--gold);
  border-width: 2px;
}

.service-card-badge {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
}

.service-icon {
  width: 48px; height: 48px;
  background: rgba(232,160,32,0.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--gold);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.65;
}

.service-card .card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

/* ── PMaaS detail section ── */
.pmaas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.pmaas-phases {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.phase {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.phase:last-child { border-bottom: none; }

.phase-num {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  min-width: 32px;
  padding-top: 3px;
}

.phase h4 { font-size: 17px; margin-bottom: 6px; }
.phase p { font-size: 14px; color: var(--slate); }

.pmaas-callout {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px 36px;
  color: var(--white);
}

.pmaas-callout h3 {
  font-size: 26px;
  color: var(--white);
  margin-bottom: 16px;
}

.pmaas-callout p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.check-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Why Demdio ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.pillar { text-align: center; padding: 32px 24px; }

.pillar-icon {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  background: rgba(232,160,32,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.pillar h4 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--slate); }

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 72px;
  align-items: start;
}

.values-stack { display: flex; flex-direction: column; gap: 24px; }

.value-item {
  padding: 24px 28px;
  background: var(--off);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.value-item h4 { font-size: 17px; margin-bottom: 6px; }
.value-item p { font-size: 14px; color: var(--slate); }

/* ── Careers page ── */
.open-roles { display: flex; flex-direction: column; gap: 16px; }

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.role-card:hover { border-color: var(--gold); }

.role-meta { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }

.tag {
  font-size: 12px;
  background: var(--off);
  color: var(--slate);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }

.contact-block {
  background: var(--off);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.contact-block h4 { font-size: 17px; margin-bottom: 12px; }

.contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--slate);
}

/* ── Page hero (interior) ── */
.page-hero {
  background: var(--navy);
  padding: 64px 0 52px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -60px;
  width: 320px; height: 320px;
  background: var(--gold);
  opacity: 0.06;
  transform: rotate(25deg);
  border-radius: 30px;
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  color: var(--white);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

/* ── CTA band ── */
.cta-band {
  background: var(--gold);
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 16px;
  color: var(--navy-mid);
  margin-bottom: 32px;
}

.btn-dark {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background 0.2s;
  margin: 0 8px;
}

.btn-dark:hover { background: var(--navy-mid); text-decoration: none; color: var(--white); }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; display: block; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 260px;
}

.footer-col h5 {
  font-family: 'IBM Plex Sans Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .pmaas-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .role-card { flex-direction: column; align-items: flex-start; }
  .site-nav { display: none; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
