/* ============================================
   Karmavyuha Communications LLP – Modern static site
   Cloudflare Pages ready
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Palette: warm neutrals + teal accent */
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --header-bg: #0f172a;
  --header-text: #f8fafc;
  --header-text-muted: #94a3b8;
  --border: #e7e5e4;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--header-text);
  letter-spacing: 0.02em;
}

.site-logo:hover {
  color: var(--header-text);
  opacity: 0.9;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--header-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--header-text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition);
}
.header-cta:hover {
  background: var(--accent-hover);
  color: white !important;
}

/* Mobile menu trigger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-list a {
    display: block;
    padding: 0.75rem 0;
  }
  .header-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ----- Main content ----- */
.main {
  min-height: calc(100vh - var(--header-h) - 200px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 560px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
}

/* ----- Hero ----- */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ----- Cards (services, features) ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ----- Page headers (inner pages) ----- */
.page-header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 3rem 0;
  text-align: center;
}

.page-header .section-title {
  color: var(--header-text);
  margin-bottom: 0.25rem;
}

.page-header .section-subtitle {
  color: var(--header-text-muted);
  margin: 0 auto;
}

/* ----- Two-column layout ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--header-bg);
  color: var(--header-text-muted);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand .site-logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--header-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--header-text-muted);
  font-size: 0.9375rem;
}
.footer-col a:hover {
  color: var(--header-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
}

/* ----- Contact form ----- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition), box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  padding: 2rem;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--accent);
}

.form-success-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.form-success-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-info a {
  font-weight: 500;
}

/* ----- Utilities ----- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
