/* ===========================
   KM GLOBAL – MAIN STYLESHEET
   =========================== */

:root {
  --color-dark: #1C2B3A;
  --color-dark-alt: #162333;
  --color-light: #F5F7F9;
  --color-white: #FFFFFF;
  --color-teal: #3E9C8E;
  --color-teal-light: #4DB6A6;
  --color-text: #1C2B3A;
  --color-text-muted: #4A5568;
  --color-border: #D8E0E8;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --section-pad: 90px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.7;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 10px;
  display: block;
}

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

section { padding: var(--section-pad); }

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section-dark .label { color: var(--color-teal-light); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-light {
  background: var(--color-light);
  color: var(--color-text);
}
.section-white {
  background: var(--color-white);
  color: var(--color-text);
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 52px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-teal-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 110px 24px 90px;
  text-align: center;
}
.hero .label { justify-content: center; display: flex; }
.hero h1 { max-width: 760px; margin: 0 auto 20px; }
.hero p {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border: 2px solid var(--color-teal);
}
.btn-primary:hover { background: var(--color-teal-light); border-color: var(--color-teal-light); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--color-teal-light); color: var(--color-teal-light); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- SECTION HEADER ---- */
.section-header { margin-bottom: 52px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 600px;
}
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ---- WHAT WE DO GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--color-teal); transform: translateY(-2px); }
.service-icon { font-size: 1.6rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.service-card p { font-size: 0.93rem; color: var(--color-text-muted); }

/* ---- WHY KM GLOBAL CARDS ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border-top: 3px solid var(--color-teal);
  border-radius: 4px;
  padding: 28px 24px;
}
.why-card .why-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal-light);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.why-card h3 { color: var(--color-white); margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.93rem; }

/* ---- HOW WE WORK PREVIEW ---- */
.how-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.how-steps { display: flex; flex-direction: column; gap: 28px; }
.how-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.how-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-step-text h3 { font-size: 1rem; margin-bottom: 4px; }
.how-step-text p { font-size: 0.9rem; color: var(--color-text-muted); }
.how-preview-img img {
  border-radius: 4px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---- WHO WE WORK WITH ---- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.who-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.who-card:hover { border-color: var(--color-teal); }
.who-icon {
  width: 40px;
  height: 40px;
  background: var(--color-teal);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.who-card p { font-size: 0.93rem; color: var(--color-text-muted); margin-top: 4px; }

/* ---- CASE STUDY ---- */
.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.cs-block { padding: 24px; border-top: 2px solid var(--color-teal); }
.cs-block h3 { color: var(--color-teal-light); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.cs-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cs-block li { font-size: 0.93rem; color: rgba(255,255,255,0.85); padding-left: 12px; position: relative; }
.cs-block li::before { content: '—'; position: absolute; left: 0; color: var(--color-teal); }
.cs-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.cs-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  padding: 4px 10px;
  color: rgba(255,255,255,0.7);
}

/* ---- CTA SECTION ---- */
.cta-section {
  text-align: center;
}
.cta-section h2 { margin-bottom: 14px; }
.cta-section p { margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-section .btn-primary { margin-bottom: 12px; }
.cta-reply { font-size: 0.82rem; opacity: 0.6; }

/* ---- FULL-WIDTH IMAGE BANNER ---- */
.img-banner {
  width: 100%;
  padding: 0;
  max-height: none;
  overflow: hidden;
  position: relative;
}
.img-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.img-banner-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(28,43,58,0.75));
  padding: 40px 24px 20px;
}
.img-banner-caption em {
  color: rgba(255,255,255,0.88);
  font-style: italic;
  font-size: 1rem;
}

/* ---- ABOUT PAGE ---- */
.about-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.founder-img-wrap {
  border-left: 4px solid var(--color-teal);
  padding-left: 0;
}
.founder-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.founder-text h2 { margin-bottom: 16px; }
.founder-text p { margin-bottom: 16px; color: var(--color-text-muted); }
.founder-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pill {
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.founder-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.founder-contact a { color: var(--color-teal); font-size: 0.93rem; }
.founder-contact a:hover { text-decoration: underline; }
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-teal);
  font-size: 0.93rem;
}
.linkedin-link svg {
  width: 20px;
  height: 20px;
  fill: var(--color-teal);
}

/* ---- SERVICES PAGE ---- */
.services-list { display: flex; flex-direction: column; gap: 20px; }
.service-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  transition: border-color 0.2s;
}
.service-row:hover { border-color: var(--color-teal); }
.service-row .svc-icon { font-size: 1.8rem; flex-shrink: 0; width: 48px; text-align: center; }
.service-row h3 { margin-bottom: 6px; }
.service-row p { font-size: 0.93rem; color: var(--color-text-muted); }

/* ---- HOW WE WORK FULL PAGE ---- */
.steps-full { display: flex; flex-direction: column; gap: 0; }
.step-full {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.step-full:last-child { border-bottom: none; }
.step-num-big {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  opacity: 0.4;
}
.step-full h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step-full p { font-size: 0.95rem; color: var(--color-text-muted); }
.step-star { color: var(--color-teal); margin-right: 4px; }

/* ---- FEES PAGE ---- */
.fees-table-wrap { overflow-x: auto; }
.fees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.fees-table th {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: left;
  padding: 14px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fees-table td { padding: 16px 20px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: var(--color-light); }
.fee-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.fee-free { background: var(--color-teal); color: #fff; }
.fee-fixed { background: #E8F0FE; color: #1a56db; }
.fee-retainer { background: #FEF3C7; color: #92400e; }
.fee-commission { background: #F3E8FF; color: #7c3aed; }
.why-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.why-model-card {
  background: rgba(255,255,255,0.05);
  border-top: 3px solid var(--color-teal);
  border-radius: 4px;
  padding: 28px 24px;
}
.why-model-card h3 { color: var(--color-white); margin-bottom: 10px; }
.why-model-card p { color: rgba(255,255,255,0.75); font-size: 0.93rem; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { margin-bottom: 10px; }
.contact-info p { color: var(--color-text-muted); }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item strong { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-teal); }
.contact-item a { color: var(--color-text); }
.contact-item a:hover { color: var(--color-teal); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-teal);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; text-align: center; }

/* ---- FOOTER ---- */
footer {
  background: var(--color-dark-alt);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
  text-align: center;
  font-size: 0.88rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo img { height: 36px; width: auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-teal-light); }
.footer-copy { margin-top: 8px; }
.footer-linkedin a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-linkedin a:hover { color: var(--color-teal-light); }
.footer-linkedin svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 72px 24px 60px;
  text-align: center;
}
.page-hero .label { display: flex; justify-content: center; }
.page-hero h1 { margin: 8px 0 16px; }
.page-hero p { max-width: 560px; margin: 0 auto; color: rgba(255,255,255,0.8); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--color-dark); padding: 20px 24px; gap: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .how-preview,
  .about-founder-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .how-preview-img { order: -1; }

  .case-study-grid { grid-template-columns: 1fr; }
  .step-full { grid-template-columns: 52px 1fr; }
  .step-num-big { font-size: 2.5rem; }
}
