/* ========== RESET & VARIABLES ========== */
:root {
  --primary: #1B4F6B;
  --primary-light: #24678a;
  --secondary: #7A4E6B;
  --dark: #2C3E50;
  --light: #F4F1ED;
  --positive: #3A7D6A;
  --alert: #D4923A;
  --text: #2C3E50;
  --text-muted: #5A6978;
  --white: #FFFFFF;
  --border: #e0ddd8;

  --sidebar-width: 256px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== LAYOUT ========== */
.app {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 28px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  line-height: 1.1;
}

.sidebar-brand-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.sidebar-section {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-section:last-child { border-bottom: none; }

.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px 10px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav a svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-nav a:hover {
  background: var(--light);
  color: var(--primary);
}

.sidebar-nav a.active {
  background: rgba(27,79,107,0.08);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-nav a.active svg { opacity: 1; }

.sidebar-cta {
  display: block;
  margin: 18px 8px 0;
  padding: 11px 14px;
  background: var(--primary);
  color: var(--light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}

.sidebar-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.sidebar-spacer { flex: 1; }

.sidebar-footer {
  padding: 14px 8px 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mobile toggle (hidden on desktop) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark);
  margin: 4px 0;
  border-radius: 1px;
  transition: 0.2s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
}

/* ========== TYPOGRAPHY ========== */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--light);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,79,107,0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(27,79,107,0.05);
  transform: translateY(-2px);
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 80px 0 56px;
  background: linear-gradient(165deg, var(--white) 0%, var(--light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(27,79,107,0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.page-hero h1 span { color: var(--secondary); }

.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 28px;
}

.page-hero-tag {
  display: inline-block;
  background: rgba(27,79,107,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========== GENERIC SECTION ========== */
.section {
  padding: 72px 0;
  background: var(--white);
}
.section.alt { background: var(--light); }
.section.dark {
  background: var(--primary);
  color: var(--light);
}
.section.dark .section-title { color: var(--light); }
.section.dark .section-subtitle { color: rgba(244,241,237,0.7); }
.section.dark .section-label {
  color: var(--secondary);
  opacity: 0.9;
}

.section-header { margin-bottom: 44px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ========== CRED BAR ========== */
.cred-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.cred-item .cred-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.cred-item .cred-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========== SERVICE CARDS ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-top-color: var(--primary);
}
.service-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
  border-top: 3px solid var(--secondary);
  background: linear-gradient(135deg, var(--white) 0%, rgba(122,78,107,0.03) 100%);
}
.service-card.featured .service-icon { background: rgba(122,78,107,0.1); }
.service-card.featured .service-icon svg { stroke: var(--secondary); }
.service-card.featured h3 { color: var(--secondary); }

.service-icon {
  width: 46px;
  height: 46px;
  background: rgba(27,79,107,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.service-card ul {
  list-style: none;
  margin-top: 14px;
}
.service-card ul li {
  font-size: 13px;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

/* ========== TRACK RECORD CARDS ========== */
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.track-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 28px;
  transition: background 0.25s;
}
.track-card:hover { background: rgba(255,255,255,0.1); }
.track-card .track-metric {
  font-size: 26px;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 6px;
}
.track-card .track-context {
  font-size: 14px;
  color: rgba(244,241,237,0.7);
  line-height: 1.6;
}

/* ========== ABOUT GRID ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-highlight-card {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  border-left: 3px solid var(--primary);
}
.about-highlight-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.about-highlight-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ========== EXPERIENCE TIMELINE ========== */
.exp-timeline { padding-top: 8px; }
.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child { border-bottom: none; }
.exp-dates { text-align: right; }
.exp-company {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.exp-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.exp-location {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
  margin-top: 2px;
}
.exp-details h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.exp-details p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== CASE STUDY CARDS ========== */
.case-card {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-left: 4px solid var(--secondary);
  margin-bottom: 22px;
}
.case-card.primary { border-left-color: var(--primary); }
.case-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.case-card .case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
}
.case-card p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 14px;
}
.case-card p:last-of-type { margin-bottom: 16px; }
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.case-tag-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(27,79,107,0.08);
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ========== WHY CARDS ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.why-card {
  text-align: center;
  padding: 28px 22px;
}
.why-icon {
  width: 52px;
  height: 52px;
  background: var(--light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.why-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-detail-icon {
  width: 38px;
  height: 38px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-detail-text {
  font-size: 15px;
  color: var(--text);
}
.contact-detail-text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.contact-form h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 6px;
}
.form-submit:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ========== CTA STRIP ========== */
.cta-strip {
  padding: 60px 0;
  background: var(--dark);
  color: var(--light);
  text-align: center;
}
.cta-strip h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}
.cta-strip p {
  font-size: 16px;
  color: rgba(244,241,237,0.7);
  margin-bottom: 26px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.cta-strip .btn-primary:hover {
  background: var(--light);
  color: var(--primary-light);
}

/* ========== FOOTER ========== */
.footer {
  padding: 28px 0;
  background: #1a2836;
  color: rgba(244,241,237,0.5);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--light); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  :root { --sidebar-width: 0px; }
  .main { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .sidebar-overlay.show { display: block; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .page-hero { padding: 80px 0 44px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero p { font-size: 16px; }
  .section { padding: 56px 0; }
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .track-grid { grid-template-columns: 1fr; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .exp-dates { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
}
