/*
Theme Name: Solidum Vitae
Theme URI: https://www.solidumvitae.com
Description: Custom theme for Solidum Vitae — resourcing, outsourcing and BPO services.
Version: 2.0.0
Requires PHP: 8.0
Text Domain: solidum
*/

:root {
  --orange: #fd5f07;
  --orange-dark: #d64f04;
  --orange-tint: #ffe4d4;
  --navy: #091d40;          /* headings, bands */
  --navy-footer: #0a1e42;
  --navy-deep: #05142d;     /* services section */
  --navy-band: #213353;     /* statement band */
  --text: #342e39;
  --muted: #5f5866;
  --line: #cdd2d7;
  --line-soft: #e4e6ea;
  --surface: #f2f2f2;
  --surface-2: #e4e6ea;
  --white: #fff;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 2px 10px rgba(9, 29, 64, .08);
  --shadow-lg: 0 12px 32px rgba(9, 29, 64, .14);
  --wrap: 1200px;
  --font: "Figtree", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 16px/1.75 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 900; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--white); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-sm { padding: clamp(44px, 5vw, 64px) 0; }
.bg-surface { background: var(--surface); }
.bg-grey { background: var(--surface-2); }
.bg-dark { background: var(--navy); color: #d5dbe6; }
.bg-deep { background: var(--navy-deep); color: #d5dbe6; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 { color: var(--white); }
.bg-dark a:not(.btn), .bg-deep a:not(.btn) { color: #ff8a47; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 700 .82rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--text); line-height: 1.6; font-weight: 400; }
.bg-dark .lead, .bg-deep .lead { color: #d5dbe6; }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.h-orange { color: var(--orange) !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--orange); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--text); }
.link-arrow svg { width: 18px; height: 18px; color: var(--orange); transition: transform .2s; }
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }
.bg-dark .link-arrow, .bg-deep .link-arrow { color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  box-shadow: 0 1px 0 var(--line-soft), 0 4px 14px rgba(9, 29, 64, .05);
}
.header-inner { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.header-right { display: flex; align-items: stretch; gap: 8px; }
.nav { display: flex; align-items: center; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px;
  color: var(--text); font-weight: 500; font-size: .98rem;
}
.nav > ul > li > a:hover, .nav > ul > li.current > a { color: var(--orange); }
.nav .caret { width: 16px; height: 16px; transition: transform .2s; }
.nav li:hover > a .caret, .nav li:focus-within > a .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 0;
  min-width: 320px; padding: 12px; list-style: none; margin: 0;
  background: var(--white); border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 17px; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); }
.dropdown a:hover { background: var(--surface); }
.dropdown a:hover strong { color: var(--orange); }
.dropdown .ico { flex: none; width: 34px; height: 34px; border-radius: 6px; background: var(--orange-tint); color: var(--orange); display: grid; place-items: center; }
.dropdown .ico svg { width: 18px; height: 18px; }
.dropdown strong { display: block; font-size: .96rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.dropdown small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.header-cta {
  display: flex; align-items: center; gap: 10px; padding: 0 26px; margin-left: 12px;
  background: var(--orange); color: var(--white); font-weight: 700; font-size: .98rem;
}
.header-cta:hover { background: var(--orange-dark); color: var(--white); }
.header-cta svg { width: 22px; height: 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; align-self: center; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 49; display: block; padding: 8px 24px 40px; overflow-y: auto;
    background: var(--white); opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav > ul { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav > ul > li > a { display: flex; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
  .nav .caret { display: none; }
  .dropdown { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; }
  .dropdown::before { display: none; }
  .dropdown small { display: none; }
  .dropdown .ico { width: 30px; height: 30px; }
  .header-cta { margin-left: 0; padding: 0 18px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .brand img { height: 32px; }
  .header-inner { height: 64px; gap: 12px; }
  .nav { inset: 64px 0 0 0; }
  .header-cta span { display: none; }
  .header-cta { padding: 0 16px; }
}

/* Home hero (white, light + bold headline) */
.hero-home { position: relative; overflow: hidden; background: var(--white); }
.hero-home .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; min-height: 600px; padding-top: 48px; padding-bottom: 48px; }
.hero-home h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 22px; }
.hero-home h1 strong { font-weight: 900; }
.hero-home .lead { max-width: 560px; margin-bottom: 34px; color: var(--muted); font-size: 1.15rem; }
.hero-art { position: relative; width: 100%; max-width: 560px; justify-self: end; }
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .hero-home .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; }
  .hero-art { justify-self: center; max-width: 440px; }
}

/* Navy announcement band */
.band { background: var(--navy); color: var(--white); padding: clamp(40px, 5vw, 56px) 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0; max-width: 820px; line-height: 1.2; }
@media (max-width: 800px) { .band .wrap { flex-direction: column; align-items: flex-start; } }

/* Statement band: "We source. We outsource…" */
.statements { background: var(--navy-band); color: var(--white); padding: clamp(56px, 8vw, 104px) 0; text-align: center; }
.statement { padding: clamp(28px, 4vw, 52px) 0; }
.statement + .statement { border-top: 1px solid rgba(255, 255, 255, .1); }
.statement strong { display: block; font: 900 clamp(3rem, 9vw, 7rem)/1 var(--font); letter-spacing: -.02em; color: var(--white); }
.statement span { display: block; margin-top: 14px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c6cfdf; }
.statement span b { color: #ff8a47; font-weight: 700; }

/* Page hero (inner pages) */
.hero { position: relative; overflow: hidden; }
.hero-page { background: var(--navy); color: #d5dbe6; padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); border-bottom: 4px solid var(--orange); }
.hero-page::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 70px solid rgba(253, 95, 7, .14); pointer-events: none;
}
.hero-page .wrap { position: relative; z-index: 1; }
.hero-page h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.2rem); max-width: 900px; }
.hero-page .lead { color: #d5dbe6; max-width: 760px; margin-top: 16px; margin-bottom: 0; }
.hero-page .eyebrow { color: #ff8a47; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #aab4c8; margin-bottom: 20px; }
.crumbs a { color: #d5dbe6; }
.crumbs a:hover { color: var(--white); }
.crumbs span[aria-hidden] { opacity: .5; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding: 28px; background: var(--white); border-radius: var(--radius); }
.stat strong { display: block; font: 900 clamp(2.2rem, 3.6vw, 3rem)/1 var(--font); color: var(--navy); margin-bottom: 10px; }
.stat strong i { font-style: normal; color: var(--orange); }
.stat span { font-size: .96rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Grids & cards */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.card p { color: var(--muted); font-size: .98rem; }
.card > :last-child { margin-bottom: 0; }
.card-link:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link h3 a:hover { color: var(--orange) !important; }

/* Outlined "We are" cards */
.card-outline { border: 1px solid var(--navy); border-radius: var(--radius-sm); padding: 18px 18px 22px; min-height: 240px; }
.card-outline .kicker { font-size: .92rem; color: var(--text); margin-bottom: 14px; }
.card-outline h3 { font-size: 1.12rem; line-height: 1.55; font-weight: 600; color: var(--text); }
.card-outline .link-arrow { align-self: flex-end; margin-top: auto; }
.card-outline:hover { box-shadow: var(--shadow-lg); }

/* Service tiles (white on deep navy) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tile {
  display: flex; align-items: center; min-height: 160px; padding: 32px 36px; border-radius: var(--radius);
  background: var(--white); color: var(--text); font-weight: 700; font-size: 1.22rem; line-height: 1.45;
  transition: transform .2s, box-shadow .2s;
}
.tile svg { width: 20px; height: 20px; margin-left: 10px; vertical-align: -3px; transition: transform .2s; }
.bg-deep a.tile, .bg-dark a.tile, .tile:hover, .bg-deep a.tile:hover { color: var(--text); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.tile:hover svg { transform: translateX(4px); color: var(--orange); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 110px; } }

.ico-box {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 22px;
  background: var(--navy); color: var(--white);
}
.ico-box svg { width: 26px; height: 26px; }
.ico-soft { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--orange-tint); color: var(--orange); margin-bottom: 16px; }
.ico-soft svg { width: 24px; height: 24px; }
.bg-dark .card, .bg-deep .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.bg-dark .card p, .bg-deep .card p { color: #c6cfdf; }
.bg-dark .ico-soft, .bg-deep .ico-soft { background: rgba(253, 95, 7, .16); color: #ff8a47; }
.bg-surface .card, .bg-grey .card { border-color: transparent; box-shadow: var(--shadow); }

.card-num { font: 800 .85rem/1 var(--font); color: var(--orange); letter-spacing: .06em; margin-bottom: 18px; }
.tag { align-self: flex-start; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--orange-tint); color: #a63c00; font-size: .8rem; font-weight: 700; }
.bg-dark .tag { background: rgba(253, 95, 7, .18); color: #ff9a5e; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.split-40 { grid-template-columns: .8fr 1.2fr; }
@media (max-width: 900px) { .split, .split-40 { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 104px; }
@media (max-width: 900px) { .sticky { position: static; } }

.prose { max-width: 780px; }
.prose p, .prose li { color: var(--text); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bg-dark .check-list li, .bg-deep .check-list li { color: #d5dbe6; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 640px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

.panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--surface); }
.panel-brand { background: var(--navy); color: #d5dbe6; }
.panel-brand h2, .panel-brand h3 { color: var(--white); }

/* Mission */
.mission { text-align: center; }
.mission h2 { max-width: 900px; margin: 0 auto 20px; }
.mission p { max-width: 820px; margin: 0 auto 28px; font-size: 1.15rem; color: var(--muted); }
.quote-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.25; }
.quote-band h2 span { color: var(--orange); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-soft); }
.steps li::before {
  content: counter(s, decimal-leading-zero); flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: var(--white); font: 800 .9rem/1 var(--font);
}
.steps li span { padding-top: 8px; font-size: .98rem; color: var(--text); }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; color: var(--text); }
.bg-surface .chips li { border-color: transparent; box-shadow: 0 1px 2px rgba(9, 29, 64, .08); }
.tech-group h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 12px; }

/* Leaders */
.leader { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: box-shadow .2s; }
.leader:hover { box-shadow: var(--shadow-lg); }
.leader-photo { aspect-ratio: 4 / 4.2; background: linear-gradient(180deg, #f4f4f4, #e4e6ea); overflow: hidden; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.leader-body { padding: 20px 22px 24px; border-top: 3px solid var(--orange); }
.leader-body h3 { margin-bottom: 4px; color: var(--navy); }
.leader-body .role { color: var(--muted); font-weight: 500; font-size: .95rem; }
.leader-body .loc { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; }

.bio { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line-soft); }
.bio:first-child { border-top: 0; padding-top: 0; }
.bio .leader-photo { border-radius: var(--radius); border-bottom: 4px solid var(--orange); }
.bio-contact { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .95rem; }
.bio-contact li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.bio-contact svg { width: 17px; height: 17px; color: var(--orange); flex: none; }
.bio h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 4px; }
.bio .role { color: var(--orange); font-weight: 700; margin-bottom: 20px; display: block; }
@media (max-width: 800px) { .bio { grid-template-columns: 1fr; } .bio .leader-photo { max-width: 320px; } }

.team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team-member { padding: 18px 20px; border-radius: var(--radius); background: var(--white); border-left: 3px solid var(--orange); }
.team-member strong { display: block; color: var(--navy); font-weight: 700; }
.team-member span { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 700 1.1rem/1.4 var(--font); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 56px 24px 0; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Press */
.press { display: flex; flex-direction: column; gap: 10px; }
.press .src { font-size: .85rem; font-weight: 500; color: var(--text); }
.press h3 { font-size: 1.1rem; line-height: 1.45; font-weight: 600; color: var(--text); }
.press time { font-size: .85rem; color: var(--muted); }
.press .link-arrow { align-self: flex-end; }

/* Projects */
.project { min-height: 220px; }
.project h3 { font-size: 1.2rem; }
.project .tag { align-self: flex-start; margin-top: auto; }

/* Advantages */
.adv h3 { font-size: 1.1rem; margin-bottom: 8px; }
.adv p { font-size: .96rem; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(40px, 6vw, 64px);
  background: var(--navy); color: #d5dbe6;
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
}
.cta::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(253, 95, 7, .18); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta p { margin: 0; color: #c6cfdf; max-width: 620px; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Contact section (home + contact page) */
.contact-section { background: linear-gradient(180deg, #d9d9d9 0%, #f2f2f2 34%, #f2f2f2 100%); }
.contact-section h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: #000; margin-bottom: 10px; }
.contact-section .note { font-size: .95rem; margin-bottom: 36px; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cform .fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 26px; align-content: start; }
.cform .full { grid-column: 1 / -1; }
.cform label { display: block; font-size: .98rem; color: var(--text); }
.cform input, .cform select {
  width: 100%; padding: 6px 0 8px; border: 0; border-bottom: 1px solid var(--text); background: transparent; border-radius: 0;
  font: inherit; font-size: 1rem; color: var(--text);
}
.cform select { appearance: none; -webkit-appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23342e39' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 2px center / 18px no-repeat; padding-right: 26px; }
.cform textarea {
  width: 100%; min-height: 276px; padding: 16px 20px; border: 1px solid var(--text); background: rgba(255, 255, 255, .4); border-radius: 0;
  font: inherit; font-size: 1rem; color: var(--text); resize: vertical;
}
.cform input:focus, .cform select:focus { outline: 0; border-bottom: 2px solid var(--orange); padding-bottom: 7px; }
.cform textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.cform .side p { margin-top: 18px; }
.cform .submit { grid-column: 1 / -1; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .cform { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .cform .fields { grid-template-columns: 1fr; } }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); font-size: .98rem; margin-bottom: 24px; }
.notice-ok { background: #e3f6ea; color: #135f38; }
.notice-err { background: #fde8e8; color: #8a1c1c; }

.office { padding: 28px; border-radius: var(--radius); background: var(--white); border-top: 4px solid var(--orange); box-shadow: var(--shadow); }
.office .flag { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.office h3 { margin: 8px 0 4px; font-size: 1.2rem; }
.office .entity { font-size: .94rem; color: var(--muted); margin-bottom: 14px; }
.office address { font-style: normal; color: var(--text); font-size: .98rem; line-height: 1.6; }
.office .meta { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; font-size: .96rem; }
.office .meta li { display: flex; gap: 10px; align-items: center; }
.office .meta svg { width: 17px; height: 17px; color: var(--orange); flex: none; }

/* Footer */
.site-footer { background: var(--navy-footer); color: #c6cfdf; padding: clamp(56px, 7vw, 80px) 0 40px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-main ul { gap: 14px; }
.footer-main a { color: var(--white); font-size: 1.2rem; font-weight: 500; }
.footer-main a:hover { color: var(--orange); }
.site-footer h4 { color: var(--orange); font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: #e6eaf2; font-weight: 500; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; line-height: 1.6; }
.footer-logo { display: inline-block; padding: 10px 14px; background: var(--white); border-radius: var(--radius-sm); margin-bottom: 20px; }
.footer-logo img { height: 36px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--orange); font-size: .92rem; color: #c6cfdf; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* Generic page content */
.entry { padding: clamp(56px, 8vw, 96px) 0; }
.entry-content { max-width: 780px; }

.mt-0, .prose .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(40px, 5vw, 64px); }
.text-muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }

/* Blog */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.cat-filter a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: .92rem; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.cat-filter a:hover { border-color: var(--navy); color: var(--navy); }
.cat-filter a.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

.post-card { padding: 0; overflow: hidden; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-ph { display: grid; place-items: center; height: 100%; color: var(--orange); background: radial-gradient(circle at 85% 15%, rgba(253, 95, 7, .28), transparent 45%), var(--navy); }
.post-thumb-ph svg { width: 56px; height: 56px; stroke-width: 1.4; }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-cat { position: relative; z-index: 2; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.post-body h3 { font-size: 1.18rem; line-height: 1.4; margin-bottom: 10px; }
.post-body h3 a { color: var(--navy); }
.post-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 12px; font-size: .85rem; color: var(--muted); }

.blog-empty { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(32px, 5vw, 56px) 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.blog-empty .ico, .topic .ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--orange-tint); color: var(--orange); margin-bottom: 18px; }
.blog-empty .ico svg, .topic .ico svg { width: 26px; height: 26px; }
.blog-empty h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.blog-empty .btn-row { justify-content: center; margin-top: 8px; }

.topic { display: flex; flex-direction: column; padding: 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); transition: transform .2s, box-shadow .2s; }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.topic .ico { width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px; }
.topic .ico svg { width: 22px; height: 22px; }
.topic h3 { font-size: 1.1rem; margin-bottom: 8px; }
.topic:hover h3 { color: var(--orange); }
.topic p { font-size: .93rem; color: var(--muted); line-height: 1.55; }
.topic .count { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--orange); }

.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.nav-links .page-numbers { min-width: 42px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text); font-weight: 600; text-align: center; }
.nav-links .page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--white); }
.nav-links a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }

.post-byline-bar { border-bottom: 1px solid var(--line-soft); }
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; padding-bottom: 16px; font-size: .92rem; color: var(--muted); }
.post-byline span { display: inline-flex; align-items: center; gap: 8px; }
.post-byline svg { width: 16px; height: 16px; color: var(--orange); }
.post-article .wrap > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.post-hero-img { margin-bottom: 40px; max-width: 980px !important; }
.post-hero-img img { width: 100%; border-radius: var(--radius); }
.post-content { font-size: 1.06rem; }
.post-content img { border-radius: var(--radius-sm); }
.post-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--orange); font-size: 1.15rem; color: var(--navy); }
.post-content pre { overflow-x: auto; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--navy-deep); color: #e6eaf2; font-size: .9rem; }
.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.post-foot .chips { margin: 0; }
.flip { transform: scaleX(-1); }
.link-arrow:hover .flip { transform: scaleX(-1) translateX(4px); }
@media (max-width: 640px) {
  .cat-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -24px; margin-right: -24px; padding: 0 24px 6px; scrollbar-width: none; }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-filter a { flex: none; }
}

/* SEO services page */
.hero-btns { margin-top: 32px; }
.mt-sm { margin-top: 12px; }
.value-list { display: grid; gap: 14px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); }
.value-item .ico-soft { flex: none; margin: 0; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value-item p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.55; }
.steps-titled li span strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.market-list { gap: 16px; }
.market-list .card p { margin-bottom: 0; }
/* Last card fills the row when a 3-column grid has one left over */
@media (min-width: 961px) { .grid-fill > :last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (min-width: 641px) and (max-width: 960px) { .grid-fill > :last-child:nth-child(2n+1) { grid-column: 1 / -1; } }
