/*
Theme Name: TechHouse Agency
Theme URI: https://techhouseagency.com
Author: TechHouse Agency
Description: Custom theme for TechHouse Agency. No page builders. Built for accessibility (WCAG 2.1 AA) and performance.
Version: 1.0
Text Domain: techhouse
*/

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #fff;
  color: #1A1A1E;
  background-image: radial-gradient(circle, #ECECEC 1px, transparent 1px);
  background-size: 22px 22px;
}
a { text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

.icon-badge { width: 52px; height: 52px; border-radius: 12px; background: #0F1B30; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.icon-badge.red { background: #C4172A; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { background: #0F1B30; padding: 16px 40px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
.nav-logo a { color: #fff; }
.nav-links { display: flex; gap: 24px; color: #9FB0C8; font-size: 13px; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.nav-links li a { color: #9FB0C8; }
.nav-links li a:hover { color: #fff; }
.nav-cta { background: #C4172A; color: #fff; border: none; padding: 9px 18px; border-radius: 5px; font-size: 13px; font-weight: 700; }

.breadcrumb { background: #0F1B30; padding: 0 40px 14px; color: #7089A8; font-size: 12px; }
.breadcrumb a { color: #7089A8; }
.breadcrumb span.current { color: #fff; font-weight: 600; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: #0F1B30; padding: 44px 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.hero.hero--service { padding: 20px 40px 0; }
.hero-tag { display: inline-block; background: #C4172A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.hero-headline { color: #fff; font-size: 46px; font-weight: 800; line-height: 1.15; margin: 0 0 12px; }
.hero--service .hero-headline { font-size: 42px; }
.hero-headline .accent { color: #FF5C5C; }
.hero-sub { color: #9FB0C8; font-size: 16px; margin-bottom: 20px; line-height: 1.55; }
.hero-cta { background: #C4172A; color: #fff; border: none; padding: 12px 26px; border-radius: 5px; font-size: 14.5px; font-weight: 700; }
.hero-text { padding-bottom: 44px; }
.browser-mock { border-radius: 10px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.35); transform: translateY(20px); }
.browser-chrome { background: #E8E8E8; padding: 8px 10px; display: flex; gap: 5px; align-items: center; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #C7C7C7; }
.browser-body { aspect-ratio: 16/11; background: linear-gradient(160deg,#2B6CB0,#1B2A4A); padding: 20px; }
.browser-fake-line { height: 8px; background: rgba(255,255,255,0.25); border-radius: 4px; margin-bottom: 8px; }

/* ==========================================================================
   STAT BAR
   ========================================================================== */
.split-stat { background: #fff; padding: 20px 40px; display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; border-bottom: 1px solid #EEE; }
.split-item { text-align: center; max-width: 220px; }
.split-num { font-size: 32px; font-weight: 800; color: #0F1B30; }
.split-label { font-size: 11px; color: #666; margin-top: 2px; line-height: 1.4; }

/* ==========================================================================
   SECTION TITLES (shared across all sections)
   ========================================================================== */
.section-title { text-align: center; font-size: 28px; font-weight: 800; color: #0F1B30; margin-bottom: 2px; }
.section-sub { text-align: center; font-size: 14.5px; color: #888; margin-bottom: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   HOMEPAGE: SPECIALTIES (industries overview)
   ========================================================================== */
.matrix-section { padding: 24px 40px 20px; background: #fff; }
.specialty-list { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.specialty-card { background: #F7F8FA; border-radius: 14px; padding: 22px 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.specialty-title { font-size: 21px; font-weight: 800; color: #0F1B30; margin-bottom: 6px; }
.specialty-body { font-size: 14.5px; color: #555; line-height: 1.65; margin-bottom: 10px; }
.specialty-list-items { font-size: 13.5px; color: #555; line-height: 1.85; padding-left: 18px; margin: 0 0 10px; }
.specialty-link { font-size: 14px; font-weight: 700; color: #C4172A; }
.naics-chip { background: #fff; border-radius: 8px; padding: 8px; text-align: center; border: 1px solid #E5E5E5; }
.naics-chip-label { font-size: 9.5px; color: #888; margin-bottom: 1px; }
.naics-chip-value { font-size: 12px; font-weight: 700; color: #0F1B30; }

/* ==========================================================================
   SERVICE PAGE: WHAT'S INCLUDED (replaces specialty list on service pages)
   ========================================================================== */
.included-section { padding: 36px 40px; background: #fff; }
.included-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1140px; margin: 0 auto; }
.included-card { background: #F7F8FA; border-radius: 12px; padding: 22px; border: 1px solid #E5E5E5; }
.included-title { font-size: 15px; font-weight: 800; color: #0F1B30; margin: 10px 0 6px; }
.included-body { font-size: 12.5px; color: #666; line-height: 1.6; }

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-us { padding: 36px 40px; background: #F7F8FA; }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1140px; margin: 0 auto; }
.why-card { background: #fff; border-radius: 10px; padding: 16px; border: 1px solid #E5E5E5; }
.why-emoji { font-size: 22px; margin-bottom: 6px; }
.why-title { font-size: 16px; font-weight: 800; color: #0F1B30; margin-bottom: 4px; }
.why-body { font-size: 13.5px; color: #666; line-height: 1.55; }

/* ==========================================================================
   CONVICTION (two questions section)
   ========================================================================== */
.conviction { padding: 36px 40px; background: #F7F8FA; }
.conviction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin: 0 auto; }
.conviction-card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #E5E5E5; border-top: 4px solid #C4172A; }
.conviction-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; color: #C4172A; margin-bottom: 8px; }
.conviction-title { font-size: 20px; font-weight: 800; color: #0F1B30; margin-bottom: 10px; line-height: 1.3; }
.conviction-body { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: 14px; }
.conviction-divider { height: 1px; background: #EEE; margin: 14px 0; }
.conviction-fix { font-size: 12.5px; color: #0F1B30; font-weight: 600; line-height: 1.6; }
.conviction-fix b { color: #C4172A; }

/* ==========================================================================
   ALTERNATING IMAGE/TEXT ROWS
   ========================================================================== */
.alt-row { padding: 36px 40px; background: #fff; }
.alt-row-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.alt-row-inner.reverse { direction: rtl; }
.alt-row-inner.reverse > * { direction: ltr; }
.alt-row-title { font-size: 22px; font-weight: 800; color: #0F1B30; margin-bottom: 12px; line-height: 1.3; }
.alt-row-body { font-size: 14px; color: #555; line-height: 1.7; }

.checklist-mock { background: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.12); border: 1px solid #EEE; padding: 20px; }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F0F0F0; }
.checklist-item:last-child { border-bottom: none; }
.checklist-check { width: 20px; height: 20px; border-radius: 50%; background: #1E8E3E; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.checklist-label { font-size: 12.5px; color: #333; font-weight: 600; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-section { padding: 36px 40px; background: #F7F8FA; }
.process-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; max-width: 900px; margin: 0 auto; position: relative; }
.process-step { text-align: center; padding: 0 10px; position: relative; }
.process-num { width: 34px; height: 34px; border-radius: 50%; background: #0F1B30; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; margin: 0 auto 8px; position: relative; z-index: 2; }
.process-line { position: absolute; top: 17px; left: 50%; width: 100%; height: 2px; background: #DDD; z-index: 1; }
.process-step:last-child .process-line { display: none; }
.process-name { font-size: 13px; font-weight: 700; color: #0F1B30; }

/* ==========================================================================
   CASE STUDIES / RECENT WORK
   ========================================================================== */
.case-strip { padding: 36px 40px; background: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1140px; margin: 0 auto; }
.case-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #E5E5E5; }
.case-preview { aspect-ratio: 16/10; padding: 14px; }
.case-info { padding: 16px; }
.case-chrome { background: #F0F0F0; padding: 6px 8px; display: flex; gap: 4px; }
.case-chrome-dot { width: 6px; height: 6px; border-radius: 50%; background: #D0D0D0; }
.case-tag { display: inline-block; background: #F0F0F0; color: #666; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; margin-bottom: 8px; }
.case-name { font-size: 18px; font-weight: 800; color: #0F1B30; margin-bottom: 3px; }
.case-desc { font-size: 13.5px; color: #777; }
.case-service-tag { font-size: 10px; background: #F0F0F0; color: #555; padding: 3px 8px; border-radius: 10px; }

/* ==========================================================================
   RESOURCES TEASER
   ========================================================================== */
.resources-teaser { padding: 36px 40px; background: #F7F8FA; }
.resource-card { padding: 18px; }
.resource-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px; }
.resource-title { font-size: 14px; font-weight: 700; color: #0F1B30; line-height: 1.4; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { padding: 36px 40px; background: #F7F8FA; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #E5E5E5; padding: 14px 0; }
.faq-q { font-size: 14px; font-weight: 800; color: #0F1B30; margin-bottom: 4px; }
.faq-a { font-size: 12.5px; color: #666; line-height: 1.6; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { background: #0F1B30; padding: 36px 40px; }
.final-cta-row { max-width: 700px; margin: 0 auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; text-align: left; }
.final-cta-avatar { width: 64px; height: 64px; border-radius: 50%; background: #C4172A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.final-cta-title { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.final-cta-sub { color: #9FB0C8; font-size: 15px; margin-bottom: 16px; }
.final-cta-btn { background: #C4172A; color: #fff; border: none; padding: 12px 26px; border-radius: 5px; font-size: 14.5px; font-weight: 700; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #0F1B30; padding: 44px 40px 24px; border-top: 1px solid #1E2C45; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid #1E2C45; }
.footer-brand { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.footer-tagline { color: #8FA8BE; font-size: 12.5px; line-height: 1.6; max-width: 260px; }
.footer-col-title { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; }
.footer-link { display: block; color: #9FB0C8; font-size: 12.5px; margin-bottom: 9px; }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copyright { color: #7089A8; font-size: 11.5px; }
.footer-legal-links { display: flex; gap: 18px; }
.footer-legal-links a { color: #7089A8; font-size: 11.5px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-bottom: 0; }
  .browser-mock { transform: none; margin-bottom: 30px; }
  .why-grid, .case-grid, .included-grid { grid-template-columns: 1fr; }
  .conviction-grid { grid-template-columns: 1fr; }
  .alt-row-inner, .alt-row-inner.reverse { grid-template-columns: 1fr; direction: ltr; text-align: center; }
  .final-cta-row { flex-direction: column; text-align: center; }
  .final-cta-row .final-cta-title, .final-cta-row .final-cta-sub { text-align: center !important; }
  .process-row { grid-template-columns: 1fr; gap: 16px; }
  .process-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .specialty-card { grid-template-columns: 1fr; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.page-hero { background: #0F1B30; padding: 40px 40px 32px; text-align: center; }
.page-hero-title { color: #fff; font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.page-hero-sub { color: #9FB0C8; font-size: 15px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

.contact-section { padding: 40px 40px; background: #fff; }
.contact-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }

.contact-info-card { background: #F7F8FA; border-radius: 12px; padding: 26px; border: 1px solid #E5E5E5; }
.contact-info-title { font-size: 16px; font-weight: 800; color: #0F1B30; margin-bottom: 14px; }
.contact-info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon { width: 36px; height: 36px; border-radius: 9px; background: #0F1B30; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.contact-info-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.contact-info-value { font-size: 13.5px; color: #0F1B30; font-weight: 600; }

.contact-form-card { background: #fff; border-radius: 12px; padding: 28px; border: 1px solid #E5E5E5; }
.contact-form-title { font-size: 18px; font-weight: 800; color: #0F1B30; margin-bottom: 16px; }
.form-row { margin-bottom: 16px; }
.form-row.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 700; color: #0F1B30; margin-bottom: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 12px; border: 1px solid #DADADA; border-radius: 6px;
  font-size: 13.5px; font-family: inherit; color: #1A1A1E; background: #fff;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: 2px solid #0F1B30; outline-offset: 1px; border-color: #0F1B30; }
.form-textarea { resize: vertical; min-height: 110px; }
.form-submit { background: #C4172A; color: #fff; border: none; padding: 12px 28px; border-radius: 6px; font-size: 14.5px; font-weight: 700; width: 100%; }
.form-required { color: #C4172A; }
.form-privacy-note { font-size: 11.5px; color: #888; margin-top: 10px; line-height: 1.5; }

/* honeypot field — hidden from sighted users AND screen readers via aria-hidden,
   left in normal tab order removed via tabindex="-1" */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   BLOG LISTING
   ========================================================================== */
.blog-filter-bar { padding: 20px 40px; background: #F7F8FA; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #E5E5E5; }
.blog-filter-chip { font-size: 12.5px; font-weight: 700; padding: 7px 16px; border-radius: 20px; border: 1.5px solid #DADADA; color: #555; }
.blog-filter-chip.active { background: #0F1B30; color: #fff; border-color: #0F1B30; }

.blog-section { padding: 40px 40px; background: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 1140px; margin: 0 auto; }
.blog-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #E5E5E5; display: block; }
.blog-card-image { aspect-ratio: 16/10; background: linear-gradient(160deg,#2B6CB0,#16233D); }
.blog-card-body { padding: 18px; }
.blog-card-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card-title { font-size: 16px; font-weight: 800; color: #0F1B30; line-height: 1.4; margin-bottom: 8px; }
.blog-card-excerpt { font-size: 12.5px; color: #666; line-height: 1.6; margin-bottom: 10px; }
.blog-card-meta { font-size: 11px; color: #999; }

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.blog-pagination a, .blog-pagination span { padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; border: 1px solid #DADADA; color: #0F1B30; }
.blog-pagination .current { background: #0F1B30; color: #fff; border-color: #0F1B30; }

/* ==========================================================================
   SINGLE BLOG POST
   ========================================================================== */
.post-hero { background: #0F1B30; padding: 40px 40px 36px; }
.post-hero-inner { max-width: 760px; margin: 0 auto; }
.post-tag { display: inline-block; background: #C4172A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; }
.post-title { color: #fff; font-size: 32px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.post-meta { color: #9FB0C8; font-size: 13px; }

.post-content-section { padding: 44px 40px; background: #fff; }
.post-content { max-width: 720px; margin: 0 auto; font-size: 15.5px; line-height: 1.8; color: #333; }
.post-content h2 { font-size: 22px; font-weight: 800; color: #0F1B30; margin: 32px 0 12px; }
.post-content h3 { font-size: 18px; font-weight: 800; color: #0F1B30; margin: 26px 0 10px; }
.post-content p { margin: 0 0 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px; padding-left: 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: #C4172A; text-decoration: underline; }
.post-content img { border-radius: 10px; margin: 20px 0; }
.post-content blockquote { border-left: 3px solid #C4172A; padding-left: 18px; margin: 20px 0; color: #555; font-style: italic; }

.post-author-box { max-width: 720px; margin: 36px auto 0; background: #F7F8FA; border-radius: 12px; padding: 20px; display: flex; gap: 16px; align-items: center; }
.post-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: #0F1B30; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.post-author-name { font-size: 14px; font-weight: 800; color: #0F1B30; }
.post-author-role { font-size: 12px; color: #888; }
