/*
Theme Name: Technologia
Description: Blog (/blog) and landing pages (/p/) for www.technologiallc.com. Header, footer, fonts and colours match the Next.js site.
Version: 1.0.2
Requires PHP: 8.0
Text Domain: technologia
*/

:root {
  --navy: #1B2050;
  --navy-dark: #111535;
  --navy-light: #2a3070;
  --orange: #E8611A;
  --orange-dark: #cc5215;
  --dark: #1a1d2e;
  --dark-bg: #0d0f1a;
  --gray-light: #f6f7fb;
  --line: #eef0f4;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); color: var(--dark); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-main { flex: 1; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 999px; padding: .65rem 1.5rem; font-size: 13px; font-weight: 600; transition: background .2s, box-shadow .2s, color .2s; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 6px -1px rgba(232,97,26,.2); }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { border: 1px solid #e5e7eb; color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--gray-light); }
.btn-lg { padding: 1rem 2.25rem; font-size: 15px; }
.btn-block { display: flex; width: 100%; border-radius: .75rem; padding: .9rem; font-size: 14px; }

/* Top bar */
.topbar { display: none; background: var(--navy); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .5rem 2.5rem; font-size: 11px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; color: rgba(255,255,255,.7); }
.topbar a { display: inline-flex; align-items: center; gap: .375rem; transition: color .2s; }
.topbar a:hover { color: var(--orange); }
.topbar svg { width: 12px; height: 12px; }
.topbar .lg-only { display: none; }
.topbar .sep { width: 1px; height: 12px; background: rgba(255,255,255,.15); }
.topbar-social { display: flex; gap: .5rem; }
.topbar-social a { width: 20px; height: 20px; justify-content: center; border-radius: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.5); }
.topbar-social a:hover { background: var(--orange); color: #fff; }
@media (min-width: 768px) { .topbar { display: block; } }
@media (min-width: 1024px) { .topbar .lg-only { display: inline-flex; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(229,231,235,.6); background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
@media (min-width: 768px) { .header-inner { padding: 1rem 2.5rem; } }
.logo img { height: 32px; width: auto; }
.nav { display: none; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; }
.nav-link { display: inline-flex; align-items: center; gap: .375rem; border: 0; background: none; cursor: pointer; border-radius: .5rem; padding: .625rem 1rem; color: rgba(26,29,46,.6); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link.is-current { background: var(--gray-light); color: var(--navy); }
.nav-link svg { width: 12px; height: 12px; opacity: .4; }
.nav-item { position: relative; }
.nav-dropdown { position: absolute; left: 0; top: 100%; padding-top: .5rem; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-box { min-width: 210px; border-radius: .75rem; background: #fff; padding: .5rem; border: 1px solid rgba(229,231,235,.6); box-shadow: 0 10px 15px -3px rgba(0,0,0,.08); }
.nav-dropdown-box a { display: block; border-radius: .5rem; padding: .625rem 1rem; font-size: 13px; color: rgba(26,29,46,.5); transition: background .2s, color .2s; }
.nav-dropdown-box a:hover { background: var(--gray-light); color: var(--orange); }
.header-cta { display: none; }
.menu-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: .5rem; border: 1px solid #e5e7eb; background: #fff; color: var(--dark); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-menu { border-top: 1px solid #f3f4f6; background: #fff; padding: 1rem 1.5rem 1.5rem; max-height: 70vh; overflow-y: auto; }
.mobile-menu a { display: block; border-radius: .5rem; padding: .625rem .75rem; font-size: 14px; color: rgba(26,29,46,.5); }
.mobile-menu a:hover { background: var(--gray-light); color: var(--orange); }
.mobile-menu .m-top { font-weight: 500; color: rgba(26,29,46,.6); }
.m-group { padding-top: .75rem; }
.m-group p { margin: 0; padding: .5rem .75rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: rgba(26,29,46,.25); }
.m-cta { margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid #f3f4f6; }
.mobile-menu .m-cta a { color: #fff; }
@media (min-width: 1280px) {
  .nav, .header-cta { display: flex; }
  .header-cta { display: inline-flex; padding: .625rem 1.5rem; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (hover: none) { .nav-dropdown { transition: none; } }

/* Hero (PageHero.tsx) */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(27,32,80,.85), rgba(27,32,80,.75), rgba(27,32,80,.95)), url("/images/hero/hero-banner.jpeg") center/cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; top: 50%; left: 25%; width: 300px; height: 300px; border-radius: 50%; background: rgba(232,97,26,.1); filter: blur(100px); }
.hero-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 3rem 2rem; }
@media (min-width: 768px) { .hero-inner { padding: 4rem 2rem; } }
.hero-tag { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.hero-tag span { width: 1.5rem; height: 1px; background: var(--orange); }
.hero-tag p { margin: 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3em; color: var(--orange); }
.hero h1 { margin: 0; max-width: 48rem; font-size: 1.5rem; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; }
@media (min-width: 768px) { .hero h1 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 2.25rem; } }
.hero-desc { margin: .75rem 0 0; max-width: 42rem; font-size: 14px; line-height: 1.625; color: rgba(255,255,255,.55); }
@media (min-width: 768px) { .hero-desc { font-size: 15px; } }

/* Sections */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section-article { padding: 4rem 0; }
@media (min-width: 768px) { .section-article { padding: 6rem 0; } }
.section-page { padding: 4rem 0; }
.crumbs { margin: 0 0 2rem; font-size: 13px; color: rgba(26,29,46,.5); }
.crumbs a { color: var(--orange); font-weight: 600; }
.empty { padding: 3rem 0; color: rgba(26,29,46,.5); }

/* Post cards (same as Next /blog) */
.card-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.pcard { position: relative; overflow: hidden; border-radius: 1rem; border: 1px solid #f3f4f6; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.pcard:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.pcard-media { position: relative; height: 13rem; overflow: hidden; background: var(--navy); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,32,80,.7), rgba(17,21,53,.8)); }
.pcard-top { position: absolute; inset: 0; padding: 1.75rem; display: flex; align-items: flex-start; justify-content: space-between; }
.pill { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: .25rem .75rem; font-size: 10px; font-weight: 600; color: #fff; }
.pcard-date { font-size: 12px; color: rgba(255,255,255,.6); }
.pcard-body { padding: 1.75rem; }
.pcard-body h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.375; color: var(--navy); transition: color .2s; }
.pcard:hover h3 { color: var(--orange); }
.pcard-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pcard-body p { margin: .75rem 0 0; font-size: 13px; line-height: 1.625; color: rgba(26,29,46,.45); }
.read-more { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .25rem; font-size: 13px; font-weight: 600; color: var(--orange); }
.read-more svg { width: 14px; height: 14px; transition: transform .2s; }
.pcard:hover .read-more svg { transform: translateX(4px); }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagination .page-numbers { display: inline-flex; min-width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; padding: 0 .9rem; border-radius: 999px; border: 1px solid #e5e7eb; font-size: 13px; font-weight: 600; color: var(--navy); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Article */
.article { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; font-size: 16px; line-height: 1.8; color: rgba(26,29,46,.75); }
.byline { margin: 0; font-size: 14px; color: rgba(26,29,46,.5); }
.article-cover { margin: 2rem 0 0; overflow: hidden; border-radius: 1rem; }
.article-cover img { width: 100%; }
.back { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid #f3f4f6; font-size: 14px; }
.back a { font-weight: 600; color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }

/* Prose: post body and landing-page text blocks */
.prose > * + * { margin-top: 1rem; }
.prose p, .prose ul, .prose ol { margin: 1rem 0 0; }
.prose h2 { margin: 3rem 0 .75rem; font-size: 1.5rem; line-height: 1.33; font-weight: 700; color: var(--navy); }
.prose h3 { margin: 2rem 0 .5rem; font-size: 1.125rem; line-height: 1.55; font-weight: 700; color: var(--navy); }
.prose h4 { margin: 1.5rem 0 .5rem; font-size: 1rem; font-weight: 700; color: var(--navy); }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose li + li { margin-top: .5rem; }
.prose strong { color: var(--dark); }
.prose a { font-weight: 600; color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--orange-dark); }
.prose code { border-radius: .25rem; background: #f3f4f6; padding: .125rem .375rem; font-size: 14px; color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose pre { overflow-x: auto; border-radius: .75rem; background: var(--navy-dark); color: #e5e7eb; padding: 1.25rem; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--orange); color: rgba(26,29,46,.7); }
.prose img, .prose figure { border-radius: .75rem; }
.prose figure { margin: 2rem 0; }
.prose figcaption { margin-top: .5rem; font-size: 13px; color: rgba(26,29,46,.5); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 1.5rem; }
.prose th, .prose td { border: 1px solid #e5e7eb; padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--gray-light); color: var(--navy); }
.prose hr { border: 0; border-top: 1px solid #f3f4f6; margin: 2.5rem 0; }

/* Landing pages (/p/) built in the block editor */
.page-content { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; font-size: 16px; line-height: 1.8; color: rgba(26,29,46,.75); }
.page-content-blank { padding-top: 0; }
.page-content > .alignwide { max-width: 72rem; margin-left: auto; margin-right: auto; width: calc(100vw - 3rem); position: relative; left: 50%; transform: translateX(-50%); }
.page-content > .alignfull { width: 100vw; max-width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.page-content h1, .page-content h2, .page-content h3 { color: var(--navy); line-height: 1.25; }
.page-content h2 { font-size: 1.75rem; font-weight: 800; margin: 3rem 0 1rem; }
.page-content h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .5rem; }
.page-content a:not(.wp-block-button__link) { color: var(--orange); font-weight: 600; }
.page-content ul, .page-content ol { padding-left: 1.5rem; }
.wp-block-button__link { border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; font-size: 15px; padding: .9rem 2rem; }
.wp-block-button__link:hover { background: var(--orange-dark); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--orange); border: 2px solid currentColor; }
.wp-block-cover, .wp-block-group.has-background { border-radius: 1rem; }
.page-content > .alignfull.wp-block-cover, .page-content > .alignfull.has-background { border-radius: 0; }
.has-navy-color { color: var(--navy) !important; } .has-navy-background-color { background-color: var(--navy) !important; }
.has-orange-color { color: var(--orange) !important; } .has-orange-background-color { background-color: var(--orange) !important; }
.has-dark-color { color: var(--dark) !important; } .has-dark-background-color { background-color: var(--dark) !important; }
.has-gray-light-color { color: var(--gray-light) !important; } .has-gray-light-background-color { background-color: var(--gray-light) !important; }
.has-white-color { color: #fff !important; } .has-white-background-color { background-color: #fff !important; }

/* CTA band (CTA.tsx) */
.cta { position: relative; overflow: hidden; background: var(--navy); padding: 6rem 0; }
@media (min-width: 768px) { .cta { padding: 8rem 0; } }
.cta::before { content: ""; position: absolute; top: 0; left: 33%; width: 400px; height: 400px; border-radius: 50%; background: rgba(232,97,26,.08); filter: blur(100px); pointer-events: none; }
.cta-inner { position: relative; max-width: 48rem; margin: 0 auto; padding: 0 2rem; text-align: center; color: #fff; }
.cta h2 { margin: 0; font-size: 1.875rem; font-weight: 800; line-height: 1.25; }
@media (min-width: 768px) { .cta h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta h2 { font-size: 3rem; } }
.cta p { margin: 1.5rem auto 0; max-width: 32rem; font-size: 16px; line-height: 1.625; color: rgba(255,255,255,.45); }
.cta .btn { margin-top: 2.5rem; }

/* Footer (Footer.tsx) */
.site-footer { background: var(--dark-bg); color: #fff; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 6rem 2rem 4rem; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } .footer-brand { grid-column: span 2; padding-right: 2rem; } }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 1.5rem 0 0; max-width: 24rem; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.35); }
.footer-social { display: flex; gap: .75rem; padding-top: 2rem; }
.footer-social a { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: .75rem; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: 11px; font-weight: 700; color: rgba(255,255,255,.3); transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-col h4 { margin: 0 0 1.5rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-col li + li { margin-top: .875rem; }
.footer-col a { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.offices { font-size: 13px; }
.offices > div + div { margin-top: 1.5rem; }
.offices p { margin: 0; color: rgba(255,255,255,.3); line-height: 1.625; }
.offices .o-loc { margin-bottom: .25rem; font-weight: 600; color: rgba(255,255,255,.55); }
.offices a { color: rgba(255,255,255,.3); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.04); }
.footer-legal-inner { max-width: 80rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem 2rem; font-size: 12px; color: rgba(255,255,255,.25); }
.footer-legal-inner p { margin: 0; }
.footer-legal-inner div { display: flex; gap: 2rem; }
.footer-legal-inner a:hover { color: #fff; }

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

/* /blog intro text */
.blog-about { padding-top: 0; }
.blog-about-grid { display: grid; gap: 3rem; border-top: 1px solid #f3f4f6; padding-top: 4rem; }
@media (min-width: 768px) { .blog-about-grid { grid-template-columns: 1fr 1fr; } }
.blog-about h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.blog-about p, .blog-about li { font-size: 15px; line-height: 1.7; color: rgba(26,29,46,.65); }
.blog-about p { margin: .9rem 0 0; }
.blog-topics { margin: .9rem 0 0; padding-left: 1.25rem; }
.blog-topics li + li { margin-top: .5rem; }
.blog-about a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
