/* ==========================================================================
   Kanithi Systems — shared stylesheet
   Design language: Inter, white surfaces, near-black text, red (#cc0000)
   accent, 8px-radius bordered cards, sticky header, light-gray footer.
   ========================================================================== */

:root {
  --accent: #cc0000;
  --accent-dark: #a30000;
  --text: #111111;
  --text-muted: #555555;
  --text-soft: #333333;
  --border: #dddddd;
  --surface: #ffffff;
  --surface-alt: #f8f8f8;
  --surface-footer: #f2f2f2;
  --radius: 8px;
  --max-width: 1200px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  background-color: var(--surface);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

/* ---------------------------------- Header ---------------------------------- */

header {
  background-color: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 6px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 6px 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  border-bottom: 2px solid var(--text-soft);
}

.main-nav a.active {
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1002;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-soft);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100vh;
  background-color: var(--surface);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  padding: 24px;
  z-index: 1001;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav-menu.active {
  display: flex;
  transform: translateX(0);
}

.mobile-nav-menu a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 12px 0;
  display: block;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
  color: var(--accent);
}

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.nav-scrim.active {
  display: block;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-soft);
}

/* ---------------------------------- Hero ---------------------------------- */

.hero-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background-color: var(--surface-alt);
  padding: 5rem 24px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------- Page header (inner pages) ---------------------------------- */

.pageheader {
  background-color: var(--surface-alt);
  padding: 3.5rem 24px 3rem;
  text-align: center;
}

.pageheader-inner {
  max-width: 780px;
  margin: 0 auto;
}

.pageheader h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.pageheader p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------------------------------- Sections ---------------------------------- */

section {
  padding: 4rem 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

.section-alt {
  background-color: var(--surface-alt);
}

/* ---------------------------------- Cards / grid ---------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(204, 0, 0, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 18px;
  font-weight: 700;
}

.info-card p {
  margin: 0 0 1rem;
  font-size: 14.5px;
  color: var(--text-muted);
  flex-grow: 1;
}

.info-card a.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.info-card a.card-link:hover {
  text-decoration: underline;
}

/* ---------------------------------- Stats ---------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-row .stat-number {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-row .stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------------------------------- CTA band ---------------------------------- */

.cta-band {
  background-color: var(--text);
  color: #ffffff;
  text-align: center;
  padding: 3.5rem 24px;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-band p {
  font-size: 16px;
  color: #cccccc;
  margin: 0 0 28px;
}

/* ---------------------------------- Two-column blocks ---------------------------------- */

.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-block h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.split-block p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.split-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.split-block ul li {
  margin-bottom: 8px;
}

.split-visual {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

.split-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* ---------------------------------- Service detail sections ---------------------------------- */

.service-block {
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type {
  border-bottom: none;
}

/* ---------------------------------- Values / approach list ---------------------------------- */

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-item .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.value-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.value-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------------------------------- Contact ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background-color: var(--surface);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-detail .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(204, 0, 0, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.contact-detail a:hover {
  color: var(--accent);
}

.contact-detail .detail-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

/* ---------------------------------- Footer ---------------------------------- */

footer {
  background-color: var(--surface-footer);
  padding: 40px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-section .logo {
  margin-bottom: 12px;
}

.footer-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-block,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .value-list {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 36px;
  }
}

@media screen and (max-width: 767px) {
  .main-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .header-inner {
    padding: 12px 16px;
  }
  .header-actions .btn {
    display: none;
  }
  .mobile-nav-menu .btn {
    margin-top: 12px;
    text-align: center;
  }
  .logo {
    font-size: 19px;
  }
  section {
    padding: 3rem 20px;
  }
  .hero-section {
    padding: 3.5rem 20px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .pageheader h1 {
    font-size: 28px;
  }
  .info-grid,
  .info-grid.cols-2,
  .stat-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
