/* =========================================
   Solara Lending Solutions – Main Stylesheet
   ========================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #1a3c6e;
  --primary-dark: #122b52;
  --secondary: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --light-bg: #f8fafc;
  --border: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--primary); }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.bg-light { background: var(--light-bg); }
.bg-primary { background: var(--primary); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.fw-600 { font-weight: 600; }

/* --- Section Header --- */
.section-header { margin-bottom: 50px; }
.section-header .subtitle {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-header h2 { font-size: 38px; margin-bottom: 16px; }
.section-header p { color: var(--text-light); max-width: 600px; font-size: 17px; line-height: 1.7; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }
.section-divider {
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 20px;
}
.section-header.centered .section-divider { margin: 0 auto 20px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.top-bar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar .social-links { display: flex; gap: 12px; }
.top-bar .social-links a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.top-bar .social-links a:hover { background: var(--accent); color: white; }

.header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 25px rgba(0,0,0,0.12); }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 75px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px;
}
.logo-text .brand { font-size: 20px; font-weight: 800; color: var(--primary); line-height: 1; }
.logo-text .tagline { font-size: 11px; color: var(--text-light); font-weight: 400; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--secondary); background: rgba(37,99,235,0.06); }
.nav-link .caret { font-size: 11px; transition: transform 0.2s; }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: white;
  min-width: 230px;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
  border: 1px solid var(--border);
  padding: 8px 0;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px; color: var(--text);
}
.dropdown a:hover { background: var(--light-bg); color: var(--secondary); padding-left: 26px; }

.nav-cta { margin-left: 12px; }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 620px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4f9a 100%);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1600&q=80') center/cover;
  opacity: 0.12;
}
.hero-pattern {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 55%;
  background: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=900&q=80') center/cover;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.35;
}
.hero .container { position: relative; z-index: 2; padding: 80px 20px; }
.hero-content { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px; font-weight: 800;
  color: white; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 18px; color: rgba(255,255,255,0.85);
  margin-bottom: 36px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat .num {
  font-size: 32px; font-weight: 800; color: var(--accent);
  line-height: 1;
}
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section { padding: 90px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 500px; object-fit: cover;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; bottom: 30px; left: -30px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 16px;
  min-width: 210px;
}
.about-badge .icon {
  width: 50px; height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px; flex-shrink: 0;
}
.about-badge .num { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.about-badge .lbl { font-size: 12px; color: var(--text-light); }
.about-content .subtitle { color: var(--secondary); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 12px; }
.about-content h2 { font-size: 38px; margin-bottom: 20px; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; font-size: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: var(--light-bg);
  border-radius: var(--radius);
}
.about-feature .icon { color: var(--secondary); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.about-feature h4 { font-size: 14px; margin-bottom: 4px; }
.about-feature p { font-size: 13px; color: var(--text-light); margin: 0; }

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section { padding: 90px 0; background: var(--light-bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px;
  background: rgba(37,99,235,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px; color: var(--secondary);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--secondary); color: white; }
.service-card h3 { font-size: 17px; margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }
.service-link {
  color: var(--secondary); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.service-link:hover { gap: 8px; color: var(--primary); }

/* =========================================
   PROCESS SECTION
   ========================================= */
.process-section { padding: 90px 0; }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 30px; position: relative; margin-top: 20px;
}
.process-steps::before {
  content: '';
  position: absolute; top: 36px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 2px; background: var(--border);
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--primary);
  transition: var(--transition);
}
.process-step:hover .step-num { background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary); }
.process-step h3 { font-size: 17px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* =========================================
   LENDERS SECTION
   ========================================= */
.lenders-section { padding: 60px 0; background: var(--light-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lenders-label { text-align: center; font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 36px; }
.lenders-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 32px 48px;
}
.lender-logo {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px; font-weight: 700;
  color: var(--primary);
  transition: var(--transition);
  white-space: nowrap;
}
.lender-logo:hover { box-shadow: var(--shadow); border-color: var(--secondary); color: var(--secondary); }

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section { padding: 90px 0; background: var(--primary); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }
.stars { color: var(--accent); font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.author-name { font-weight: 700; color: white; font-size: 15px; }
.author-loc { font-size: 13px; color: rgba(255,255,255,0.6); }

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-section { padding: 90px 0; background: var(--light-bg); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-card-img { height: 200px; overflow: hidden; position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-category {
  position: absolute; top: 16px; left: 16px;
  background: var(--secondary); color: white;
  padding: 4px 12px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
}
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); margin-bottom: 12px; flex-wrap: wrap; }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; line-height: 1.4; }
.blog-card h3 a:hover { color: var(--secondary); }
.blog-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.read-more { color: var(--secondary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text .brand { color: white; }
.footer-brand .logo-text .tagline { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin: 16px 0 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--secondary); color: white; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-col ul li a::before { content: '›'; color: var(--accent); font-size: 16px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact-item .icon { color: var(--accent); font-size: 16px; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.7); }
.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================
   PAGE BANNER (Inner pages)
   ========================================= */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1400&q=60') center/cover;
  opacity: 0.08;
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 42px; color: white; margin-bottom: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.7); }
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-story { padding: 90px 0; }
.values-section { padding: 80px 0; background: var(--light-bg); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.value-icon { font-size: 44px; color: var(--secondary); margin-bottom: 20px; }
.value-card h3 { font-size: 20px; margin-bottom: 12px; }
.value-card p { font-size: 15px; color: var(--text-light); line-height: 1.7; }

.team-section { padding: 80px 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition); text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-card-img { height: 240px; overflow: hidden; }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-body { padding: 24px; }
.team-card h3 { font-size: 18px; margin-bottom: 6px; }
.team-card .role { color: var(--secondary); font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.team-card p { font-size: 14px; color: var(--text-light); }

/* =========================================
   SERVICES PAGE
   ========================================= */
.service-detail { padding: 80px 0; }
.service-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.service-main h2 { font-size: 30px; margin-bottom: 20px; }
.service-main p,
.service-content p { font-size: 16px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.service-main img { border-radius: var(--radius-lg); margin-bottom: 32px; }
.benefits-list { margin: 28px 0; }
.benefits-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li .icon { color: var(--secondary); font-size: 16px; margin-top: 2px; flex-shrink: 0; }

.sidebar-widget {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 28px; box-shadow: var(--shadow);
}
.sidebar-widget h4 { font-size: 17px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--secondary); }
.sidebar-contact-form .form-group { margin-bottom: 16px; }
.sidebar-contact-form input,
.sidebar-contact-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 14px;
  transition: var(--transition);
  background: var(--light-bg);
}
.sidebar-contact-form input:focus,
.sidebar-contact-form textarea:focus { outline: none; border-color: var(--secondary); background: white; }
.sidebar-contact-form textarea { height: 100px; resize: vertical; }
.sidebar-services-list li { border-bottom: 1px solid var(--border); }
.sidebar-services-list li:last-child { border-bottom: none; }
.sidebar-services-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; font-size: 14px; color: var(--text);
}
.sidebar-services-list a:hover { color: var(--secondary); }
.sidebar-services-list a .icon { color: var(--text-light); font-size: 12px; }
.sidebar-services-list a:hover .icon { color: var(--secondary); }

/* =========================================
   CALCULATOR PAGES
   ========================================= */
.calculator-section { padding: 80px 0; }
.calculator-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.calculator-card {
  background: white; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.calculator-card h2 { font-size: 26px; margin-bottom: 8px; }
.calculator-card .desc { color: var(--text-light); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 15px;
  transition: var(--transition); color: var(--text);
}
.form-group input:focus,
.form-group select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-prefix { position: relative; }
.input-prefix-label {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-weight: 600; font-size: 15px; z-index: 1;
}
.input-prefix input { padding-left: 32px; }
.input-suffix { position: relative; }
.input-suffix-label {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-weight: 600; font-size: 14px;
}
.input-suffix input { padding-right: 40px; }
.calc-btn { width: 100%; padding: 15px; font-size: 16px; margin-top: 8px; justify-content: center; }
.result-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
}
.result-card h3 { color: white; font-size: 20px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.result-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.result-item:last-child { border-bottom: none; }
.result-label { font-size: 14px; color: rgba(255,255,255,0.75); }
.result-value { font-size: 22px; font-weight: 800; color: var(--accent); }
.result-value.main { font-size: 32px; }
.result-note { margin-top: 20px; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }
.calculator-info {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}
.calculator-info h3 { font-size: 20px; margin-bottom: 16px; }
.calculator-info p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.calculator-info ul li { font-size: 14px; color: var(--text-light); padding: 6px 0; display: flex; align-items: flex-start; gap: 8px; }
.calculator-info ul li::before { content: '✓'; color: var(--secondary); font-weight: 700; flex-shrink: 0; }
.calc-nav { margin-top: 32px; }
.calc-nav h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.calc-nav-list { display: flex; flex-direction: column; gap: 6px; }
.calc-nav-list a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  background: white; border: 1px solid var(--border);
  transition: var(--transition);
}
.calc-nav-list a:hover { border-color: var(--secondary); color: var(--secondary); }
.calc-nav-list a .icon { color: var(--accent); }

/* =========================================
   BLOG PAGE
   ========================================= */
.blog-page { padding: 80px 0; }
.blog-page-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.blog-list { display: flex; flex-direction: column; gap: 28px; }
.blog-list-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid; grid-template-columns: 280px 1fr;
  transition: var(--transition);
}
.blog-list-card:hover { box-shadow: var(--shadow-hover); }
.blog-list-img { overflow: hidden; }
.blog-list-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-list-card:hover .blog-list-img img { transform: scale(1.05); }
.blog-list-body { padding: 28px; }
.blog-list-body .blog-meta { margin-bottom: 12px; }
.blog-list-body h2 { font-size: 22px; margin-bottom: 12px; line-height: 1.4; }
.blog-list-body h2 a:hover { color: var(--secondary); }
.blog-list-body p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; }

.blog-sidebar .sidebar-widget { margin-bottom: 28px; }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-page { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; }
.contact-form-wrap h2 { font-size: 30px; margin-bottom: 8px; }
.contact-form-wrap p { color: var(--text-light); margin-bottom: 32px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 15px;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-info-wrap h2 { font-size: 26px; margin-bottom: 8px; }
.contact-info-wrap > p { color: var(--text-light); margin-bottom: 32px; font-size: 15px; }
.contact-info-item {
  display: flex; gap: 16px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.contact-info-item .icon-wrap {
  width: 48px; height: 48px;
  background: var(--secondary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14px; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
.contact-info-item p { font-size: 15px; font-weight: 600; color: var(--text); }
.map-placeholder {
  height: 220px; background: var(--border);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px;
  margin-top: 28px;
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* =========================================
   ENTRY CONTENT (WordPress-generated content)
   ========================================= */
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 28px 0 14px; }
.entry-content p { margin-bottom: 20px; }
.entry-content ul,
.entry-content ol { margin: 16px 0 20px 24px; line-height: 1.8; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: var(--radius); margin: 20px 0; }
.entry-content a { color: var(--secondary); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 16px 24px;
  background: var(--light-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-light);
}

/* WP pagination */
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-links a,
.nav-links span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links .current {
  background: var(--secondary); color: white; border-color: var(--secondary);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 40px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 75px; left: 0; right: 0;
    background: white; padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999; gap: 4px;
    max-height: calc(100vh - 75px); overflow-y: auto;
  }
  .nav.mobile-open .dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none;
    background: var(--light-bg); border-radius: var(--radius);
    margin-top: 4px; display: none; padding: 4px 0;
  }
  .nav.mobile-open .nav-item.open .dropdown { display: block; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .blog-page-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-list-card { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-btns { flex-direction: column; }
  .section-header h2 { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .top-bar .container { flex-direction: column; gap: 6px; text-align: center; }
  .about-badge { left: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-cta { display: none; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0; transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

/* =========================================
   CTA STRIP
   ========================================= */
.cta-strip { background: var(--secondary); padding: 60px 0; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { font-size: 30px; color: white; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 16px; }

/* Scroll to top */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--secondary); color: white;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary); transform: translateY(-3px); }
