/* ============================================================
   KARIYAMANGALAM TECHNOLOGIES — Shared Styles
   Teal updated to match logo: #1C8C79
   ============================================================ */

:root {
  --teal:       #1C8C79;
  --teal-light: #22A48F;
  --teal-pale:  #E7F5F2;
  --teal-mid:   #B0DBD5;
  --cream:      #FDFAF6;
  --stone:      #F5F0EB;
  --dark:       #1C2B22;
  --mid:        #4A6358;
  --light:      #7A9488;
  --border:     #E2EDE9;
  --amber:      #F59E0B;
  --amber-pale: #FEF9EE;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:    10px;
  --radius-lg: 20px;
  --max-w:     960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo img {
  height: 100px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mid);
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--teal); }
.nav__link.active {
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  /* invert to white for dark footer */
  filter: brightness(0) invert(1);
}
.footer__tagline {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.footer__heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer__address {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  font-style: normal;
}
.footer__address strong {
  display: block;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__address strong:first-child { margin-top: 0; }
.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav-link {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__nav-link:hover { color: white; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer__mobile { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-pale); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.page-header__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 14px;
}
.page-header__sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .nav__links { gap: 18px; }
  .nav__link { font-size: 0.82rem; }
  .nav__logo img { height: 36px; }
}
