/*
Theme Name: WH Integrated
Theme URI: https://integratedfincap.com
Author: WebHunch
Description: A custom WordPress theme for Integrated Fincap. Premium typography and responsive design.
Version: 2.0.0
Text Domain: wh-integrated
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Georgia:ital@1&display=swap');

:root {
  --brand-red: #A32D2D;
  --brand-red-hover: #8f2626;
  --brand-red-light: #FCEBEB;
  
  --color-background-primary: #ffffff;
  --color-background-secondary: #F8F9FA;
  --color-border-primary: #E5E7EB;
  
  --color-text-primary: #111827;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #6B7280;
  
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--color-background-secondary); color: var(--color-text-primary); -webkit-font-smoothing: antialiased; }

/* Page Wrapper */
.page { width: 100%; background: var(--color-background-primary); max-width: 1600px; margin: 0 auto; box-shadow: var(--shadow-lg); min-height: 100vh; display: flex; flex-direction: column; }

/* Typography Basics for Standard WP Content */
.wp-content { max-width: 800px; margin: 0 auto; padding: 60px 40px; font-size: 18px; line-height: 1.8; color: var(--color-text-secondary); }
.wp-content h1, .wp-content h2, .wp-content h3, .wp-content h4, .wp-content h5, .wp-content h6 { color: var(--color-text-primary); margin: 2em 0 0.5em; font-weight: 600; line-height: 1.3; }
.wp-content h1 { font-size: 42px; margin-top: 0; }
.wp-content h2 { font-size: 32px; }
.wp-content h3 { font-size: 24px; }
.wp-content h4 { font-size: 20px; }
.wp-content h5 { font-size: 18px; }
.wp-content h6 { font-size: 18px; color: var(--color-text-secondary); }
.wp-content p { margin-bottom: 1.5em; }
.wp-content ul, .wp-content ol { margin-bottom: 1.5em; padding-left: 20px; }
.wp-content li { margin-bottom: 0.5em; }
.wp-content a { color: var(--brand-red); text-decoration: underline; text-decoration-color: rgba(163, 45, 45, 0.3); text-underline-offset: 4px; transition: 0.2s; }
.wp-content a:hover { text-decoration-color: var(--brand-red); }
.wp-content blockquote { font-family: var(--font-serif); font-size: 22px; font-style: italic; border-left: 4px solid var(--brand-red); margin: 2em 0; padding-left: 24px; color: var(--color-text-primary); }

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 60px; border-bottom: 1px solid var(--color-border-primary); position: sticky; top: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); z-index: 100; }
.nav-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.nav-logo-mark { height: 48px; display: flex; align-items: center; justify-content: center; }
.nav-logo-mark img { height: 100%; width: auto; object-fit: contain; }
.nav-brand { font-size: 18px; font-weight: 600; color: var(--color-text-primary); letter-spacing: -0.3px; }
.nav-brand sub { font-size: 12px; font-weight: 500; color: var(--color-text-secondary); display: block; line-height: 1.2; margin-top: 2px; }

.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; }
.nav-links li { margin: 0; padding: 0; }
.nav-links a { font-size: 16px; font-weight: 500; color: var(--color-text-secondary); text-decoration: none; transition: 0.2s; }
.nav-links li.current-menu-item a, .nav-links a.active { color: var(--brand-red); font-weight: 600; }
.nav-links a:hover { color: var(--color-text-primary); }
.nav-cta { font-size: 16px; font-weight: 600; padding: 12px 28px; background: var(--brand-red); border-radius: 40px; color: #fff; text-decoration: none; transition: 0.2s; box-shadow: 0 4px 14px rgba(163, 45, 45, 0.25); }
.nav-cta:hover { background: var(--brand-red-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(163, 45, 45, 0.35); }

/* Hero */
.hero { padding: 140px 60px 100px; border-bottom: 1px solid var(--color-border-primary); position: relative; overflow: hidden; z-index: 1; }
.hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%); z-index: -1; }

.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255,255,255,0.15); border-radius: 30px; padding: 8px 18px; margin-bottom: 32px; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); }
.hero h1 { font-size: 64px; font-weight: 700; color: #fff; line-height: 1.15; max-width: 900px; margin-bottom: 24px; letter-spacing: -1.5px; }
.hero h1 em { color: #fff; font-style: normal; position: relative; display: inline-block; }
.hero h1 em::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 6px; background: var(--brand-red); z-index: -1; border-radius: 2px; }
.hero p { font-size: 20px; color: rgba(255,255,255,0.9); line-height: 1.6; max-width: 700px; margin-bottom: 0; font-weight: 400; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 80px; border: 1px solid rgba(255,255,255,0.15); border-radius: var(--border-radius-lg); overflow: hidden; background: rgba(255,255,255,0.15); max-width: 700px; backdrop-filter: blur(8px); }
.hero-stat { background: rgba(0,0,0,0.4); padding: 32px 40px; }
.hero-stat-num { font-size: 42px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hero-stat-label { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.8); }

/* Common Sections */
.section { padding: 120px 60px; border-bottom: 1px solid var(--color-border-primary); }
.section-label { font-size: 14px; font-weight: 600; color: var(--brand-red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; display: inline-block; }
.section-title { font-size: 42px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 20px; letter-spacing: -1px; }
.section-sub { font-size: 20px; color: var(--color-text-secondary); line-height: 1.7; max-width: 800px; margin-bottom: 60px; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.approach-card { background: #fff; border: 1px solid var(--color-border-primary); border-radius: var(--border-radius-lg); padding: 40px; box-shadow: var(--shadow-sm); transition: 0.3s; }
.approach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.approach-num { font-size: 16px; font-weight: 700; color: var(--brand-red); margin-bottom: 20px; background: var(--brand-red-light); display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; }
.approach-card h3 { font-size: 22px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 12px; }
.approach-card p { font-size: 17px; color: var(--color-text-secondary); line-height: 1.7; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 32px; }
.portfolio-card { background: #fff; border: 1px solid var(--color-border-primary); border-radius: var(--border-radius-lg); padding: 40px; box-shadow: var(--shadow-sm); transition: 0.3s; display: flex; flex-direction: column; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio-card h3 { font-size: 26px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 16px; }
.portfolio-card p { font-size: 18px; color: var(--color-text-secondary); line-height: 1.7; flex-grow: 1; }
.portfolio-sub { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--color-border-primary); display: flex; gap: 12px; flex-wrap: wrap; }
.portfolio-sub span { font-size: 14px; font-weight: 600; color: var(--color-text-secondary); background: var(--color-background-secondary); padding: 8px 16px; border-radius: 20px; }

/* Team */
.team-sub-label { font-size: 14px; font-weight: 700; color: var(--color-text-tertiary); text-transform: uppercase; letter-spacing: 2px; margin: 60px 0 30px; border-bottom: 2px solid var(--color-border-primary); padding-bottom: 12px; }
.person { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--color-border-primary); align-items: start; }
.person:last-child { border-bottom: none; }
.person-photo { width: 200px; height: 200px; border-radius: 50%; background: var(--brand-red-light); display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 600; color: var(--brand-red); overflow: hidden; box-shadow: var(--shadow-md); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-body h3 { font-size: 28px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 6px; letter-spacing: -0.5px; }
.person-role { font-size: 18px; font-weight: 600; color: var(--brand-red); margin-bottom: 10px; }
.person-creds { font-size: 15px; font-weight: 500; color: var(--color-text-tertiary); margin-bottom: 24px; }
.person-bio { font-size: 18px; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 24px; }
.person-quote { font-family: var(--font-serif); font-size: 20px; color: var(--color-text-primary); font-style: italic; border-left: 4px solid var(--brand-red); padding-left: 24px; }

/* Unlisted Styles / Page Heroes */
.pagehero { padding: 100px 60px 80px; border-bottom: 1px solid var(--color-border-primary); background: linear-gradient(135deg, var(--brand-red-light) 0%, #fff 100%); }
.pagehero .crumb { font-size: 14px; font-weight: 600; color: var(--brand-red); margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.pagehero h1 { font-size: 56px; font-weight: 700; color: var(--color-text-primary); line-height: 1.15; max-width: 900px; margin-bottom: 24px; letter-spacing: -1.5px; }
.pagehero p { font-size: 20px; color: var(--color-text-secondary); line-height: 1.7; max-width: 800px; }

.subnav { display: flex; gap: 40px; padding: 20px 60px; border-bottom: 1px solid var(--color-border-primary); position: sticky; top: 98px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); z-index: 90; }
.subnav a { font-size: 15px; font-weight: 600; color: var(--color-text-secondary); text-decoration: none; transition: 0.2s; }
.subnav a:hover { color: var(--brand-red); }

.what-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.what-card { border: 1px solid var(--color-border-primary); background: #fff; border-radius: var(--border-radius-lg); padding: 40px; box-shadow: var(--shadow-sm); transition: 0.3s; }
.what-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.what-card .ic { width: 56px; height: 56px; border-radius: var(--border-radius-md); background: var(--brand-red-light); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.what-card .ic i { font-size: 28px; color: var(--brand-red); }
.what-card h3 { font-size: 22px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 12px; }
.what-card p { font-size: 17px; color: var(--color-text-secondary); line-height: 1.7; }

.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.company-chip { border: 1px solid var(--color-border-primary); border-radius: var(--border-radius-md); padding: 24px; font-size: 16px; font-weight: 600; color: var(--color-text-primary); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 80px; background: #fff; transition: 0.2s; box-shadow: var(--shadow-sm); }
.company-chip:hover { border-color: var(--brand-red); color: var(--brand-red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.companies-note { font-size: 15px; color: var(--color-text-tertiary); margin-top: 32px; text-align: center; font-style: italic; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { border: 1px solid var(--color-border-primary); background: #fff; border-radius: var(--border-radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: 0.3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-red); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-red); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step h4 { font-size: 18px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 12px; }
.step p { font-size: 16px; color: var(--color-text-secondary); line-height: 1.6; }

.faq { max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border-primary); }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 24px 0; font-size: 20px; font-weight: 600; color: var(--color-text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-sans); transition: color 0.2s; }
.faq-q:hover { color: var(--brand-red); }
.faq-q i { color: var(--brand-red); font-size: 24px; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-q.open i { transform: rotate(45deg); }
.faq-a { font-size: 18px; color: var(--color-text-secondary); line-height: 1.8; padding: 0 0 24px; display: none; }
.faq-a.show { display: block; animation: fadeIn 0.4s ease; }

/* CTA Strip & Footer */
.cta-strip { padding: 80px 60px; background: var(--brand-red-light); display: flex; align-items: center; justify-content: space-between; gap: 40px; border-radius: var(--border-radius-lg); margin: 0 60px 80px; box-shadow: var(--shadow-md); }
.cta-strip h2 { font-size: 32px; font-weight: 700; color: var(--brand-red); max-width: 600px; line-height: 1.3; letter-spacing: -1px; }
.cta-strip p { font-size: 18px; font-weight: 500; color: var(--color-text-secondary); margin-top: 12px; }
.btn-primary { font-size: 16px; font-weight: 600; padding: 14px 32px; background: var(--brand-red); color: #fff; border-radius: 40px; border: none; cursor: pointer; text-decoration: none; transition: 0.2s; box-shadow: 0 4px 14px rgba(163, 45, 45, 0.25); display: inline-block; white-space: nowrap; }
.btn-primary:hover { background: var(--color-text-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.footer { padding: 48px 60px; border-top: 1px solid var(--color-border-primary); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; background: #fff; }
.footer p { font-size: 14px; font-weight: 500; color: var(--color-text-tertiary); }
.footer-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 14px; font-weight: 500; color: var(--color-text-secondary); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--brand-red); }
.disclaimer { padding: 32px 60px; background: var(--color-background-secondary); border-top: 1px solid var(--color-border-primary); }
.disclaimer p { font-size: 13px; color: var(--color-text-tertiary); line-height: 1.7; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .hero h1 { font-size: 48px; }
  .section-title { font-size: 36px; }
  .person { grid-template-columns: 160px 1fr; gap: 32px; }
  .person-photo { width: 160px; height: 160px; }
  .cta-strip { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .nav { padding: 20px; flex-direction: column; gap: 20px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 80px 20px; }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person-photo { margin: 0 auto; }
  .person-quote { border-left: none; border-top: 4px solid var(--brand-red); padding-left: 0; padding-top: 16px; margin-top: 24px; }
  .cta-strip { margin: 0 20px 60px; padding: 40px 20px; }
}
.process-box { position: absolute; max-width: 250px; text-align: left; }
.process-box.text-right { text-align: right; }
.process-box.text-center { text-align: center; }
.process-box h4 { font-size: 20px; color: var(--color-primary); font-weight: 700; margin-bottom: 10px; }
.process-box p { font-size: 14px; color: var(--color-text-dim); margin: 0; }
.how-it-work-section { position: relative; margin: 60px auto 140px; display: flex; justify-content: center; }
.how-it-work-section svg { width: 100%; max-width: 800px; position: relative; z-index: 2; overflow: visible; }
.process-box.process5 { left: auto; right: -60px; border-left: 2px solid; top: 120px; padding-left: 25px; border-color: var(--color-border); }
.process-box.process4 { left: auto; right: 20px; top: auto; bottom: -20px; border-left: 2px solid; padding-left: 25px; border-color: var(--color-border); }
.process-box.process3 { top: auto; bottom: -150px; left: 50%; transform: translateX(-50%); border-top: 2px solid; padding-top: 25px; border-color: var(--color-border); }
.process-box.process2 { top: auto; bottom: -20px; border-right: 2px solid; left: 20px; padding-right: 25px; border-color: var(--color-border); }
.process-box.process1 { top: 120px; left: -60px; border-right: 2px solid; padding-right: 25px; border-color: var(--color-border); }
.process-box.process1:before { content: ""; height: 2px; width: 25px; background: var(--color-border); position: absolute; right: -25px; top: 0; }
.process-box.process2:before { content: ""; height: 2px; width: 25px; background: var(--color-border); position: absolute; right: -25px; top: 0; transform: rotate(-45deg); transform-origin: left; }
.process-box.process3:before { display: none !important; }
.process-box.process4:before { content: ""; height: 2px; width: 25px; background: var(--color-border); position: absolute; left: -25px; top: 0; transform: rotate(45deg); transform-origin: right; }
.process-box.process5:before { content: ""; height: 2px; width: 25px; background: var(--color-border); position: absolute; left: -25px; top: 0; }
@media (max-width: 991px) {
    .how-it-work-section { display: none; }
    .steps { display: flex; flex-direction: column; gap: 20px; }
}
