/* ===== KSBS Consulting - Custom Styles ===== */
:root {
  --primary: #0f2240;
  --primary-light: #1a3460;
  --accent: #c8922a;
  --accent-light: #e0ac4a;
  --dark: #0a1628;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --white: #ffffff;
  --section-padding: 6rem 0;
}

/* ===== Global ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; color: var(--primary); }
a { text-decoration: none; transition: all 0.3s ease; }
section { padding: var(--section-padding); }
.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { color: var(--gray); font-size: 1.1rem; max-width: 650px; margin: 0 auto 3rem; }
.accent-text { color: var(--accent); }
.accent-bar { width: 60px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 1.5rem; }
.accent-bar-center { margin-left: auto; margin-right: auto; }

/* ===== Top Utility Bar ===== */
.top-bar {
  background: var(--white); color: var(--primary);
  font-size: 0.8rem; letter-spacing: 0.5px;
  padding: 0.5rem 0; position: fixed; top: 0; left: 0; right: 0; z-index: 1031;
  border-bottom: 1px solid var(--gray-light);
}
.top-bar .pillars { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.75rem; }
.top-bar .offices { color: var(--primary); font-weight: 500; }
.top-bar a { color: var(--primary); }
.top-bar a:hover { color: var(--accent); }

/* ===== Navbar ===== */
.navbar { padding: 0.75rem 0; transition: all 0.3s ease; background: var(--white); top: 38px; box-shadow: 0 1px 0 var(--gray-light); }
.navbar.scrolled { background: var(--white); box-shadow: 0 2px 20px rgba(15,34,64,0.08); padding: 0.5rem 0; top: 38px; }
.navbar-brand { display: flex; align-items: center; padding: 0; }
.navbar-logo {
  height: 52px; width: auto; display: block;
  padding: 0; border-radius: 0;
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-logo { height: 44px; }
.nav-link { color: var(--primary) !important; font-weight: 500; font-size: 0.92rem; padding: 0.5rem 0.9rem !important; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--gray-light); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230f2240' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Push content below fixed top-bar + navbar on inner pages */
body { padding-top: 38px; }

/* ===== Hero ===== */
.hero {
  min-height: calc(100vh - 38px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 60%, #0d1f3c 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 6rem;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(200,146,42,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(200,146,42,0.25);
}
.hero-image-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,34,64,0.25) 0%, rgba(200,146,42,0.1) 100%);
  z-index: 1; pointer-events: none;
}
.hero-image-wrap::after {
  content: ''; position: absolute;
  top: -12px; right: -12px; width: 60%; height: 60%;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}
.hero-image {
  width: 100%; height: 520px; object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.hero-image-wrap:hover .hero-image { transform: scale(1.03); }

.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,146,42,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { font-size: 3.5rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p.lead { color: rgba(255,255,255,0.8); font-size: 1.25rem; max-width: 560px; }
.hero .tagline { color: var(--accent); font-size: 1.1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }

/* ===== Buttons ===== */
.btn-accent {
  background: var(--accent); color: var(--white); border: none;
  padding: 0.75rem 2rem; border-radius: 4px; font-weight: 600;
  transition: all 0.3s ease;
}
.btn-accent:hover { background: var(--accent-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(200,146,42,0.3); }
.btn-outline-light-custom {
  border: 2px solid rgba(255,255,255,0.4); color: var(--white);
  padding: 0.7rem 2rem; border-radius: 4px; font-weight: 600; background: transparent;
}
.btn-outline-light-custom:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline-accent {
  border: 2px solid var(--accent); color: var(--accent);
  padding: 0.7rem 2rem; border-radius: 4px; font-weight: 600; background: transparent;
}
.btn-outline-accent:hover { background: var(--accent); color: var(--white); }

/* ===== Why KSBS ===== */
.why-card {
  text-align: center; padding: 2rem 1.5rem;
  border-radius: 8px; background: var(--white);
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease; height: 100%;
}
.why-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--accent); }
.why-card .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.why-card h5 { font-size: 1.05rem; font-weight: 600; }

/* ===== Services ===== */
.service-card {
  padding: 2.5rem 2rem; border-radius: 10px;
  background: var(--white); border: 1px solid var(--gray-light);
  transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 0; background: var(--accent);
  transition: height 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.service-card:hover::before { height: 100%; }
.service-card .icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.2rem; }
.service-card h4 { font-size: 1.3rem; }
.service-card p { color: var(--gray); }

/* ===== Philosophy ===== */
.philosophy {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white); position: relative;
}
.philosophy h2 { color: var(--white); }
.philosophy .accent-bar { background: var(--accent); }
.philosophy .lead { color: rgba(255,255,255,0.85); }
.philosophy blockquote { border-left: 4px solid var(--accent); padding-left: 1.5rem; font-style: italic; color: rgba(255,255,255,0.9); font-size: 1.15rem; }

/* ===== Impact ===== */
.impact-bg { background: var(--light); }
.stat-box { text-align: center; padding: 2rem; }
.stat-box .number { font-size: 3rem; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.stat-box p { color: var(--gray); font-weight: 500; margin-top: 0.5rem; }
.impact-tags span {
  display: inline-block; padding: 0.5rem 1.2rem; margin: 0.3rem;
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: var(--primary);
  transition: all 0.3s;
}
.impact-tags span:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ===== Insights ===== */
.insights { background: var(--white); }
.insight-box {
  padding: 2rem; background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 10px; border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
}
.insight-box h5 { color: var(--primary); font-weight: 600; }
.insight-box p { color: var(--gray); margin-bottom: 0; }

/* ===== Contact CTA ===== */
.contact-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white); text-align: center;
}
.contact-cta h2 { color: var(--white); font-size: 2.5rem; }
.contact-cta .contact-info { font-size: 1.15rem; color: rgba(255,255,255,0.85); }
.contact-cta .contact-info a { color: var(--accent); }
.contact-cta .contact-info a:hover { color: var(--accent-light); }

/* ===== Footer ===== */
.footer {
  background: var(--white); color: var(--gray);
  padding: 4rem 0 1.5rem; font-size: 0.9rem;
  border-top: 1px solid var(--gray-light);
}
.footer h5 { color: var(--primary); font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1.2rem; }
.footer h6 { color: var(--primary) !important; }
.footer a { color: var(--primary); transition: color 0.3s; }
.footer a:hover { color: var(--accent); }
.footer p, .footer small { color: var(--gray); }
.footer .footer-brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--primary); font-weight: 700; }
.footer .footer-brand span { color: var(--accent); }
.footer .footer-logo { height: 60px; width: auto; padding: 0; border-radius: 0; margin-bottom: 1.2rem; display: inline-block; }
.footer .pillars-line { color: var(--accent); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem; margin-bottom: 0.8rem; }
.footer hr { border-color: var(--gray-light); }

/* ===== Page Header (Inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  padding: 9rem 0 4rem; text-align: center; position: relative;
}
.page-header h1 { color: var(--white); font-size: 3rem; margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.15rem; }
.page-header .breadcrumb { justify-content: center; }
.page-header .breadcrumb-item a { color: var(--accent); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.page-header .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== Operating Style ===== */
.style-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.5rem; background: var(--white);
  border-radius: 8px; border: 1px solid var(--gray-light);
  margin-bottom: 1rem; transition: all 0.3s ease;
}
.style-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.06); border-left: 3px solid var(--accent); }
.style-item .icon { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; margin-top: 0.2rem; }
.style-item h5 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.style-item p { color: var(--gray); margin-bottom: 0; font-size: 0.95rem; }

/* ===== Service Detail List ===== */
.service-list li {
  padding: 0.6rem 0; color: #555;
  border-bottom: 1px solid var(--gray-light);
  position: relative; padding-left: 1.5rem;
}
.service-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.service-list li:last-child { border-bottom: none; }

/* ===== Contact Form ===== */
.contact-form .form-control {
  border: 1px solid var(--gray-light); border-radius: 6px;
  padding: 0.8rem 1rem; font-size: 0.95rem;
  transition: border-color 0.3s;
}
.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(200,146,42,0.15);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Service Mini Card Grid (10 services overview) ===== */
.service-mini-card {
  padding: 1.75rem 1.5rem; border-radius: 10px;
  background: var(--white); border: 1px solid var(--gray-light);
  transition: all 0.3s ease; height: 100%;
  display: flex; flex-direction: column;
}
.service-mini-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: var(--accent); }
.service-mini-card .num {
  font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700;
  color: var(--accent); letter-spacing: 1px;
}
.service-mini-card .icon { font-size: 1.8rem; color: var(--accent); margin: 0.5rem 0 0.8rem; }
.service-mini-card h5 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--primary); }
.service-mini-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 0.8rem; flex-grow: 1; }
.service-mini-card a.more { color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.service-mini-card a.more:hover { color: var(--primary); }

/* ===== Services Detail Blocks (services.html) ===== */
.service-detail-card {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--gray-light);
  padding: 2rem 2rem 1.5rem;
  transition: all 0.3s ease; height: 100%;
}
.service-detail-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-color: var(--accent); }
.service-detail-card .service-head {
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}
.service-detail-card .service-head .num-badge {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px;
  background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem;
}
.service-detail-card .service-head i { font-size: 1.8rem; color: var(--accent); }
.service-detail-card .service-head h3 { margin: 0; font-size: 1.3rem; }
.service-detail-card p.intro { color: var(--gray); font-size: 0.95rem; }
.service-detail-card .service-list li { padding: 0.45rem 0 0.45rem 1.5rem; font-size: 0.92rem; }

/* ===== Offices Section ===== */
.offices-section { background: var(--light); padding: 3rem 0; }
.office-card {
  text-align: center; padding: 1.2rem 1rem;
  background: var(--white); border-radius: 8px;
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
}
.office-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.office-card i { font-size: 1.5rem; color: var(--accent); margin-bottom: 0.4rem; }
.office-card h6 { margin: 0; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--primary); font-size: 0.95rem; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; }
  section { padding: 4rem 0; }
  .page-header { padding: 8rem 0 3rem; }
  .page-header h1 { font-size: 2.2rem; }
  .top-bar .offices { display: none; }
}
@media (max-width: 767px) {
  .hero { min-height: calc(90vh - 38px); text-align: center; padding-top: 5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p.lead { margin: 0 auto; }
  .hero .tagline { font-size: 0.95rem; }
  .stat-box .number { font-size: 2.2rem; }
  .navbar-collapse { background: var(--white); padding: 1rem; border-radius: 8px; margin-top: 0.5rem; border: 1px solid var(--gray-light); }
  .top-bar { font-size: 0.72rem; padding: 0.4rem 0; }
  .top-bar .pillars { font-size: 0.65rem; letter-spacing: 1px; }
  .navbar-logo { height: 44px; }
  .navbar.scrolled .navbar-logo { height: 38px; }
}

