
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

:root {
  --ink: #171717;
  --muted: #5f5d5a;
  --blue: #40a8d0;
  --pink: #cf5892;
  --paper: #fbfaf8;
  --white: #fff;
  --line: #dedbd6;
  --max: 1180px;
  --gutter: clamp(22px, 4vw, 56px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  min-height: 82px;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,248,.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 34px);
  font-size: 14px;
  font-weight: 600;
}

nav a { transition: opacity .2s ease; }
nav a:hover { opacity: .58; }

.nav-cta {
  border: 1px solid #bdb9b4;
  border-radius: 999px;
  padding: 9px 17px;
}
.nav-cta:hover {
  opacity: 1;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.eyebrow {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .16em;
  font-weight: 700;
  margin: 0 0 18px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(52px, 7.2vw, 92px);
  line-height: .94;
  letter-spacing: -.055em;
  max-width: 820px;
  margin-bottom: 30px;
}

h1 em,
.display-serif {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 820px;
  margin-bottom: 18px;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--ink); color: white; }
.secondary { border: 1px solid #bbb7b2; background: rgba(255,255,255,.35); }

.actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* HERO — full width and visually distinctive without a giant logo */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100vh - 82px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/kerala-illustration.svg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(251,250,248,.98) 0%, rgba(251,250,248,.91) 38%, rgba(251,250,248,.24) 72%, rgba(251,250,248,.05) 100%);
}

.hero-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 100px var(--gutter);
}

.hero-copy .eyebrow { margin-bottom: 22px; }

.hero-mark { display: none; }

/* CONTENT GRID */
.content {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.about {
  padding-top: clamp(80px, 10vw, 130px);
  padding-bottom: clamp(80px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px);
}

.about-copy {
  max-width: 760px;
}
.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}
.about-copy > p strong { color: var(--ink); }

.reach {
  border-top: 1px solid var(--line);
  padding-top: clamp(70px, 8vw, 100px);
  padding-bottom: clamp(70px, 8vw, 105px);
}

.reach-inner {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 110px);
}

.reach-copy p {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 0;
}

.reach-number {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.reach-number strong {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -.05em;
}
.reach-number span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* MISSION: one coherent section, no card backgrounds */
.mission {
  border-top: 1px solid var(--line);
  padding-top: clamp(80px, 9vw, 115px);
  padding-bottom: clamp(85px, 10vw, 125px);
}

.mission-intro {
  max-width: 820px;
  margin-bottom: 60px;
}
.mission-intro > p:last-child {
  color: var(--muted);
  font-size: 18px;
  max-width: 740px;
  margin-bottom: 0;
}

.mission-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 65px);
}

.mission-value {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mission-value span {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: .1em;
}
.mission-value h3 { margin: 18px 0 10px; }
.mission-value p {
  color: var(--muted);
  max-width: 290px;
  margin-bottom: 0;
}

/* CONTACT */
.contact-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(80px, 9vw, 110px);
  padding-bottom: clamp(90px, 10vw, 130px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(400px, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: start;
}

.contact-copy {
  max-width: 470px;
}
.contact-copy h2 { font-size: clamp(40px, 4.8vw, 60px); }
.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
}
.contact-copy .text-link { margin-top: 8px; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 8px 30px rgba(23,23,23,.04);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d4d0cb;
  border-radius: 10px;
  background: #fff;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.form-field textarea {
  min-height: 145px;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(64,168,208,.12);
}
.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.form-submit { border: 0; cursor: pointer; font-family: inherit; }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.text-link {
  font-weight: 700;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 3px;
}

/* PROJECTS */
.page-hero {
  width: min(var(--max), 100%);
  margin: auto;
  padding: clamp(80px, 10vw, 125px) var(--gutter) 75px;
}
.page-hero h1 { max-width: 850px; }
.page-hero .lead { max-width: 720px; }

.projects {
  width: min(var(--max), 100%);
  margin: auto;
  padding: 0 var(--gutter) 120px;
}

.project-coming {
  min-height: 400px;
  border: 1px dashed #c6c2bc;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px;
  background: transparent;
}
.project-coming h2 { margin-bottom: 15px; }
.project-coming p {
  max-width: 620px;
  color: var(--muted);
}
.project-coming p:last-child { margin-bottom: 0; }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  padding: 35px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-weight: 600;
}
.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.footer-copy { margin: 0; }
.footer-tagline { margin: 0; }

/* THANK YOU */
.thank-you {
  min-height: calc(100vh - 82px - 117px);
  display: flex;
  align-items: center;
}

/* MOBILE */
@media (max-width: 800px) {
  .site-header { min-height: 70px; }
  .brand img { width: 48px; height: 48px; }

  nav {
    gap: 8px;
    font-size: 13px;
  }
  nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 8px 14px; }

  .hero {
    min-height: 650px;
    align-items: flex-end;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(251,250,248,.08) 0%, rgba(251,250,248,.2) 34%, rgba(251,250,248,.96) 70%, rgba(251,250,248,1) 100%);
  }
  .hero::before { background-position: 63% center; }
  .hero-copy {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  h1 { font-size: clamp(48px, 14vw, 72px); }
  .lead { font-size: 17px; }

  .about,
  .reach-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about { padding-top: 75px; padding-bottom: 75px; }
  .reach { padding-top: 70px; padding-bottom: 75px; }

  .mission { padding-top: 75px; padding-bottom: 80px; }
  .mission-intro { margin-bottom: 45px; }
  .mission-values {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .mission-value p { max-width: 600px; }

  .contact-section { padding-top: 75px; padding-bottom: 80px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .contact-copy { max-width: 650px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }

  .page-hero { padding-top: 75px; }
  .projects { padding-bottom: 80px; }
  .project-coming { min-height: 350px; padding: 30px 20px; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 28px;
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Malayalam typography: Noto Sans Malayalam is applied consistently when the
   document language is Malayalam. English keeps its original editorial type. */
html[data-language="ml"] body {
  font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif;
}
html[data-language="ml"] h1,
html[data-language="ml"] h2,
html[data-language="ml"] h3 {
  font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif;
  letter-spacing: -.035em;
}
html[data-language="ml"] h1 em {
  font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
}
html[data-language="ml"] .eyebrow {
  letter-spacing: .02em;
  font-size: 11px;
}
html[data-language="ml"] .lead,
html[data-language="ml"] .about-copy > p:not(.eyebrow),
html[data-language="ml"] .reach-copy p,
html[data-language="ml"] .mission-intro > p:last-child,
html[data-language="ml"] .contact-copy p:not(.eyebrow) {
  line-height: 1.8;
}
.language-toggle:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}
@media (max-width: 800px) {
  .nav-group { gap: 8px; }
  .language-switch {
    min-width: 106px;
  }
  .language-option {
    padding: 6px 9px;
    font-size: 11px;
  }
}

/* Language selector
   Two languages are mutually exclusive choices, so use a segmented control
   rather than an on/off switch. The active language is visibly selected and
   each option remains a normal crawlable link. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #c9c5c0;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 2px rgba(23,23,23,.04);
  white-space: nowrap;
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 47px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.language-option:hover {
  color: var(--ink);
}

.language-option[aria-current="page"] {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1px 4px rgba(23,23,23,.12);
}

.language-option[aria-current="page"]:hover {
  color: var(--ink);
}

@media (max-width: 800px) {
  .language-switch {
    min-width: 106px;
  }
  .language-option {
    min-height: 29px;
    min-width: 45px;
    padding: 6px 9px;
    font-size: 11px;
  }
}
