/*
Theme Name: October Marketing MD3
Theme URI: https://www.octobermarketing.com
Author: October Marketing
Author URI: https://www.octobermarketing.com
Description: Material Design 3 theme for October Marketing — Google Ads & PPC specialists.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: october-marketing-md3
Tags: custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   MATERIAL DESIGN 3 — DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --md-primary:           #1A73E8;
  --md-primary-dark:      #1557B0;
  --md-primary-light:     #D3E3FD;
  --md-primary-container: #EAF2FF;
  --md-on-primary:        #FFFFFF;
  --md-secondary:         #4285F4;
  --md-tertiary:          #1E8E3E;
  --md-tertiary-light:    #E6F4EA;
  --md-error:             #EA4335;
  --md-surface:           #FFFFFF;
  --md-surface-variant:   #F8FAFE;
  --md-surface-2:         #F1F5FF;
  --md-background:        #FAFBFF;
  --md-on-surface:        #1C1B1F;
  --md-on-surface-var:    #49454F;
  --md-outline:           #CAC4D0;
  --md-outline-var:       #E7E0EC;
  --md-shadow-1: 0 1px 2px rgba(0,0,0,.08), 0 1px 3px 1px rgba(0,0,0,.06);
  --md-shadow-2: 0 1px 2px rgba(0,0,0,.10), 0 2px 6px 2px rgba(0,0,0,.08);
  --md-shadow-3: 0 4px 8px 3px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.12);
  --md-radius-sm:   8px;
  --md-radius-md:   12px;
  --md-radius-lg:   16px;
  --md-radius-xl:   28px;
  --md-radius-full: 50px;
  --font-display: 'Nunito', sans-serif;
  --font-body:    'Roboto', sans-serif;
  --nav-height:   64px;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--md-background);
  color: var(--md-on-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--md-primary); }

/* ═══════════════════════════════════════════
   TOP APP BAR
═══════════════════════════════════════════ */
.app-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--md-outline-var);
  display: flex; align-items: center; padding: 0 24px;
  transition: box-shadow .2s;
}
.app-bar.scrolled { box-shadow: var(--md-shadow-2); }
.app-bar-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 40px; width: auto; }
.logo-fallback {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--md-primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: white;
}

/* ── Primary Nav ── */
.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.primary-nav ul li a {
  padding: 8px 16px; border-radius: var(--md-radius-full);
  font-size: 14px; font-weight: 500; color: var(--md-on-surface-var);
  text-decoration: none; transition: background .15s, color .15s; display: block;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item a {
  background: var(--md-primary-container); color: var(--md-primary);
}
.nav-cta {
  background: var(--md-primary); color: white !important;
  padding: 10px 20px; border-radius: var(--md-radius-full);
  font-size: 14px; font-weight: 500; text-decoration: none;
  margin-left: 8px; transition: background .15s, box-shadow .15s;
  box-shadow: var(--md-shadow-1);
}
.nav-cta:hover { background: var(--md-primary-dark) !important; box-shadow: var(--md-shadow-2); }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
  color: var(--md-on-surface);
}
.nav-toggle svg { width: 24px; height: 24px; display: block; }

/* ═══════════════════════════════════════════
   PAGE OFFSET (for fixed header)
═══════════════════════════════════════════ */
.site-content { margin-top: var(--nav-height); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-filled {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--md-primary); color: white;
  padding: 14px 28px; border-radius: var(--md-radius-full);
  font-size: 15px; font-weight: 500; font-family: var(--font-body);
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: var(--md-shadow-2);
  transition: background .15s, box-shadow .15s, transform .1s;
  position: relative; overflow: hidden;
}
.btn-filled:hover { background: var(--md-primary-dark); box-shadow: var(--md-shadow-3); transform: translateY(-1px); color: white; }
.btn-filled svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-outlined {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--md-primary);
  padding: 13px 28px; border-radius: var(--md-radius-full);
  font-size: 15px; font-weight: 500; font-family: var(--font-body);
  text-decoration: none; border: 1.5px solid var(--md-primary);
  cursor: pointer; transition: background .15s;
}
.btn-outlined:hover { background: var(--md-primary-container); }
.btn-tonal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--md-primary-container); color: var(--md-primary);
  padding: 14px 28px; border-radius: var(--md-radius-full);
  font-size: 15px; font-weight: 500; font-family: var(--font-body);
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.btn-tonal:hover { background: #C1D8FB; box-shadow: var(--md-shadow-1); }

/* ═══════════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════════ */
.section { padding: 80px 24px; }
.section-alt { background: var(--md-surface-variant); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px; font-weight: 500; color: var(--md-primary);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800; letter-spacing: -.8px;
  color: var(--md-on-surface); line-height: 1.15; margin-bottom: 16px;
}
.section-body {
  font-size: 16px; color: var(--md-on-surface-var);
  line-height: 1.7; max-width: 620px;
}
.text-center { text-align: center; }
.text-center .section-body { margin: 0 auto; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  padding: 80px 24px 64px;
  background: linear-gradient(160deg, #EAF2FF 0%, #FAFBFF 55%, #F0F7FF 100%);
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,115,232,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,142,62,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--md-primary-container); color: var(--md-primary);
  padding: 6px 16px; border-radius: var(--md-radius-full);
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(26,115,232,.2); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.5px;
  color: var(--md-on-surface); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--md-primary); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--md-on-surface-var);
  max-width: 620px; margin: 0 auto 36px; font-weight: 400; line-height: 1.6;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: white; border-radius: var(--md-radius-full);
  padding: 12px 20px; box-shadow: var(--md-shadow-2); margin-top: 32px;
}
.g-dots { display: flex; gap: 3px; align-items: center; }
.g-dot { width: 10px; height: 10px; border-radius: 50%; }
.cert-badge-text { font-size: 13px; font-weight: 500; color: var(--md-on-surface); }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--md-primary); padding: 32px 24px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: white; line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 4px; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.md-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.md-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.md-card-flat {
  background: var(--md-surface); border-radius: var(--md-radius-md);
  border: 1px solid var(--md-outline-var); padding: 20px;
  transition: box-shadow .2s;
}
.md-card-flat:hover { box-shadow: var(--md-shadow-2); }

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}
.testimonial-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); padding: 28px;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--md-primary);
  border-radius: var(--md-radius-lg) var(--md-radius-lg) 0 0;
}
.testimonial-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.quote-mark {
  font-family: Georgia, serif; font-size: 64px; line-height: .5;
  color: var(--md-primary-light); margin-bottom: 16px; display: block;
}
.testimonial-text {
  font-size: 15px; line-height: 1.7; color: var(--md-on-surface);
  font-style: italic; flex: 1; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--md-primary-container);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--md-primary); flex-shrink: 0; overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 14px; font-weight: 500; color: var(--md-on-surface); }
.author-role { font-size: 12px; color: var(--md-on-surface-var); margin-top: 1px; }

/* ═══════════════════════════════════════════
   SPLIT LAYOUT
═══════════════════════════════════════════ */
.split-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

/* ═══════════════════════════════════════════
   SERVICE / PLATFORM CARDS
═══════════════════════════════════════════ */
.platform-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.platform-card {
  background: var(--md-surface); border-radius: var(--md-radius-md);
  box-shadow: var(--md-shadow-1); padding: 20px;
  border: 1px solid var(--md-outline-var); transition: box-shadow .2s;
}
.platform-card:hover { box-shadow: var(--md-shadow-2); }
.platform-icon {
  width: 40px; height: 40px; border-radius: var(--md-radius-sm);
  background: var(--md-primary-container);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.platform-icon svg { width: 22px; height: 22px; }
.platform-card h4 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.platform-card p { font-size: 13px; color: var(--md-on-surface-var); line-height: 1.5; }

/* ═══════════════════════════════════════════
   SERVICE BADGES
═══════════════════════════════════════════ */
.badge-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--md-radius-full);
  font-size: 13px; font-weight: 500;
  background: var(--md-primary-container); color: var(--md-primary);
  border: 1px solid rgba(26,115,232,.15);
}
.badge-green {
  background: var(--md-tertiary-light); color: var(--md-tertiary);
  border-color: rgba(30,142,62,.2);
}
.badge svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════
   FOUNDER CARD
═══════════════════════════════════════════ */
.founder-card {
  background: var(--md-surface); border-radius: var(--md-radius-xl);
  box-shadow: var(--md-shadow-3); overflow: hidden;
  display: grid; grid-template-columns: 280px 1fr;
}
.founder-panel {
  background: linear-gradient(145deg, var(--md-primary) 0%, #1557B0 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 32px; text-align: center;
}
.founder-avatar-lg {
  width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  overflow: hidden; margin-bottom: 16px; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 40px; color: white;
}
.founder-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.founder-panel h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: white; margin-bottom: 4px;
}
.founder-panel p { font-size: 13px; color: rgba(255,255,255,.75); }
.founder-body { padding: 40px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.founder-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--md-radius-full);
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--md-primary); color: var(--md-primary);
  transition: background .15s;
}
.founder-link:hover { background: var(--md-primary-container); }
.founder-link svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════
   RESOURCE CARDS
═══════════════════════════════════════════ */
.resources-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px; margin-top: 48px;
}
.resource-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.resource-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.resource-header {
  padding: 32px 28px 24px;
  background: linear-gradient(135deg, var(--md-primary) 0%, #1557B0 100%);
  color: white;
}
.resource-header.green { background: linear-gradient(135deg, #1E8E3E 0%, #136A2C 100%); }
.resource-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; opacity: .8; margin-bottom: 8px;
}
.resource-header h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px; line-height: 1.2; margin-bottom: 8px;
}
.resource-header p { font-size: 14px; opacity: .85; line-height: 1.5; }
.resource-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.resource-body p {
  font-size: 15px; color: var(--md-on-surface-var);
  line-height: 1.7; flex: 1; margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, #1A73E8 0%, #1557B0 100%);
  padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.cta-band::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.04); pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 48px); color: white;
  line-height: 1.15; letter-spacing: -.8px; margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cta-band p {
  font-size: 17px; color: rgba(255,255,255,.8);
  margin-bottom: 36px; position: relative; z-index: 1;
}
.cta-band .btn-filled { background: white; color: var(--md-primary); }
.cta-band .btn-filled:hover { background: #F0F7FF; color: var(--md-primary); }

/* ═══════════════════════════════════════════
   PAGE HERO (interior pages)
═══════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(160deg, #EAF2FF 0%, #FAFBFF 60%);
  padding: 64px 24px 48px; border-bottom: 1px solid var(--md-outline-var);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; letter-spacing: -1px; color: var(--md-on-surface);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 18px; color: var(--md-on-surface-var); max-width: 640px; line-height: 1.6;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--md-on-surface-var); margin-bottom: 16px;
}
.breadcrumb a { color: var(--md-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   SERVICES PAGE GRID
═══════════════════════════════════════════ */
.services-primary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-top: 48px;
}
.service-feature-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.service-feature-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.service-card-header {
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  padding: 24px; color: white;
}
.service-card-header.green { background: linear-gradient(135deg, #1E8E3E, #136A2C); }
.service-card-header.amber { background: linear-gradient(135deg, #E37400, #B45C00); }
.service-card-icon {
  width: 48px; height: 48px; border-radius: var(--md-radius-md);
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.service-card-icon svg { width: 26px; height: 26px; color: white; }
.service-card-header h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.service-card-header p { font-size: 13px; opacity: .85; }
.service-card-body { padding: 24px; flex: 1; }
.service-card-body ul { list-style: none; }
.service-card-body ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; font-size: 14px; color: var(--md-on-surface-var);
  border-bottom: 1px solid var(--md-outline-var);
}
.service-card-body ul li:last-child { border-bottom: none; }
.service-card-body ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--md-primary); flex-shrink: 0; margin-top: 6px;
}
.legacy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 32px;
}
.legacy-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  border: 1px solid var(--md-outline-var); padding: 24px;
}
.legacy-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--md-on-surface); }
.legacy-card ul { list-style: none; }
.legacy-card ul li {
  font-size: 13px; color: var(--md-on-surface-var); padding: 3px 0;
  padding-left: 14px; position: relative;
}
.legacy-card ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--md-primary); font-size: 11px;
}

/* ═══════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════ */
.stats-mini-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin-top: 32px;
}
.stat-mini {
  background: var(--md-primary-container); border-radius: var(--md-radius-md);
  padding: 20px; text-align: center;
}
.stat-mini-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  color: var(--md-primary); line-height: 1;
}
.stat-mini-label { font-size: 12px; color: var(--md-primary-dark); margin-top: 6px; font-weight: 500; }

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
.contact-info-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); padding: 36px;
}
.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--md-outline-var);
}
.contact-detail:last-child { border-bottom: none; padding-bottom: 0; }
.contact-detail-icon {
  width: 40px; height: 40px; border-radius: var(--md-radius-sm);
  background: var(--md-primary-container);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--md-primary); }
.contact-detail-label { font-size: 12px; color: var(--md-on-surface-var); font-weight: 500; margin-bottom: 2px; }
.contact-detail-value { font-size: 15px; color: var(--md-on-surface); font-weight: 400; }
.contact-detail-value a { color: var(--md-primary); text-decoration: none; }
.contact-form-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); padding: 36px;
}
.contact-form-card h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin-bottom: 24px; color: var(--md-on-surface);
}

/* MD3 Form Inputs */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--md-on-surface-var); margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--md-outline);
  border-radius: var(--md-radius-md);
  font-size: 15px; font-family: var(--font-body);
  color: var(--md-on-surface); background: var(--md-surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Contact Form 7 compatibility */
.wpcf7-form .form-row { margin-bottom: 20px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--md-outline);
  border-radius: var(--md-radius-md);
  font-size: 15px; font-family: var(--font-body);
  color: var(--md-on-surface); transition: border-color .15s; outline: none;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
  border-color: var(--md-primary);
}
.wpcf7-form input[type="submit"] {
  background: var(--md-primary); color: white;
  padding: 14px 32px; border-radius: var(--md-radius-full);
  border: none; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background .15s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--md-primary-dark); }

/* ═══════════════════════════════════════════
   BLOG / ARCHIVE
═══════════════════════════════════════════ */
.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-top: 40px;
}
.post-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); overflow: hidden; display: flex;
  flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.post-card-thumb { height: 200px; overflow: hidden; background: var(--md-primary-container); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--md-on-surface-var); margin-bottom: 10px;
}
.post-card-meta .post-cat {
  background: var(--md-primary-container); color: var(--md-primary);
  padding: 3px 10px; border-radius: var(--md-radius-full); font-weight: 500;
}
.post-card-body h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: var(--md-on-surface); margin-bottom: 10px; line-height: 1.3;
}
.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card-body h3 a:hover { color: var(--md-primary); }
.post-card-body p { font-size: 14px; color: var(--md-on-surface-var); line-height: 1.6; flex: 1; }
.post-card-footer { padding: 0 24px 24px; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--md-primary); text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════ */
.single-post-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.post-content { max-width: none; }
.post-content h1 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -.8px; margin-bottom: 16px;
}
.post-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 36px 0 12px; }
.post-content h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.post-content p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; color: var(--md-on-surface); }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.post-content img { border-radius: var(--md-radius-md); margin: 24px 0; }
.post-content blockquote {
  border-left: 4px solid var(--md-primary); padding-left: 20px;
  margin: 24px 0; font-style: italic; color: var(--md-on-surface-var);
}
.post-meta-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--md-on-surface-var); margin-bottom: 32px;
  padding-bottom: 20px; border-bottom: 1px solid var(--md-outline-var);
}
.post-meta-bar a { color: var(--md-primary); text-decoration: none; }
.post-featured-image { border-radius: var(--md-radius-lg); overflow: hidden; margin-bottom: 36px; }
.post-featured-image img { width: 100%; height: 360px; object-fit: cover; }
.post-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

/* Sidebar Widget */
.sidebar-widget {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-1); padding: 24px; margin-bottom: 20px;
}
.sidebar-widget h4 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  margin-bottom: 16px; color: var(--md-on-surface);
  padding-bottom: 10px; border-bottom: 2px solid var(--md-primary-container);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { padding: 6px 0; border-bottom: 1px solid var(--md-outline-var); }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { font-size: 14px; color: var(--md-on-surface); text-decoration: none; }
.sidebar-widget ul li a:hover { color: var(--md-primary); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
  border-radius: var(--md-radius-lg); padding: 28px; text-align: center; color: white;
  margin-bottom: 20px;
}
.sidebar-cta h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.sidebar-cta p { font-size: 13px; opacity: .85; margin-bottom: 16px; line-height: 1.5; }
.sidebar-cta a { background: white; color: var(--md-primary); padding: 10px 20px; border-radius: var(--md-radius-full); font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 48px;
}
.pagination a, .pagination span {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s;
}
.pagination a { color: var(--md-primary); }
.pagination a:hover { background: var(--md-primary-container); }
.pagination .current { background: var(--md-primary); color: white; }

/* ═══════════════════════════════════════════
   PORTFOLIO PAGE
═══════════════════════════════════════════ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 40px;
}
.portfolio-card {
  background: var(--md-surface); border-radius: var(--md-radius-lg);
  box-shadow: var(--md-shadow-2); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.portfolio-card:hover { box-shadow: var(--md-shadow-3); transform: translateY(-2px); }
.portfolio-thumb {
  height: 220px; background: var(--md-primary-container);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 20px 24px; }
.portfolio-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.portfolio-body p { font-size: 13px; color: var(--md-on-surface-var); }

/* ═══════════════════════════════════════════
   GENERIC PAGE CONTENT
═══════════════════════════════════════════ */
.page-content { max-width: 860px; margin: 0 auto; }
.page-content h1, .page-content h2 {
  font-family: var(--font-display); font-weight: 700; margin-bottom: 16px;
}
.page-content h1 { font-size: 36px; }
.page-content h2 { font-size: 26px; margin-top: 36px; }
.page-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.page-content p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; color: var(--md-on-surface); }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.page-content a { color: var(--md-primary); }
.page-content img { border-radius: var(--md-radius-md); margin: 20px 0; }

/* ═══════════════════════════════════════════
   404 PAGE
═══════════════════════════════════════════ */
.error-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.error-code {
  font-family: var(--font-display); font-size: 120px; font-weight: 800;
  color: var(--md-primary-container); line-height: 1; margin-bottom: 8px;
}
.error-page h2 { font-family: var(--font-display); font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.error-page p { font-size: 16px; color: var(--md-on-surface-var); margin-bottom: 32px; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: #1C1B1F; color: rgba(255,255,255,.8); padding: 56px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7;
  margin-top: 16px; max-width: 260px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: white;
}
.footer-col h4 {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,.7);
  text-decoration: none; padding: 4px 0; transition: color .15s;
}
.footer-col a:hover { color: white; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.footer-social a:hover { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════
   RIPPLE
═══════════════════════════════════════════ */
.ripple-target { position: relative; overflow: hidden; }
.md-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3); transform: scale(0);
  animation: mdRipple .55s linear; pointer-events: none;
}
@keyframes mdRipple { to { transform: scale(4); opacity: 0; } }

/* ═══════════════════════════════════════════
   FAB
═══════════════════════════════════════════ */
.fab {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  width: 56px; height: 56px; border-radius: var(--md-radius-full);
  background: var(--md-primary); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--md-shadow-3); text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.fab:hover { background: var(--md-primary-dark); box-shadow: 0 8px 24px rgba(26,115,232,.4); transform: scale(1.05); color: white; }
.fab svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-panel { height: 240px; flex-direction: row; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .single-post-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 16px; }
  .primary-nav ul { display: none; }
  .primary-nav ul.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; background: white; box-shadow: var(--md-shadow-3); padding: 16px; z-index: 99; gap: 4px; }
  .primary-nav ul.open li a { padding: 12px 16px; border-radius: var(--md-radius-md); display: block; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .founder-panel { flex-direction: column; height: auto; }
}

/* ═══════════════════════════════════════════
   WP ALIGNMENT CLASSES
═══════════════════════════════════════════ */
.aligncenter { display: block; margin: 0 auto 20px; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--md-on-surface-var); text-align: center; margin-top: 6px; }
