/* ==========================================================================
   Valamai — base styles
   ========================================================================== */

:root {
  --teal-dark: #0d4f4d;
  --teal: #1f6e6b;
  --teal-mid: #2c7873;
  --teal-light: #4fb3ac;
  --teal-pale: #eef5f4;
  --yellow: #d6de23;
  --text-body: #4d7298;
  --text-heading: #1f6e6b;
  --text-dark: #2a2a2a;
  --border-light: #e2e2e2;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-nav: Arial, Helvetica, sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  margin: 0 0 20px;
}

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

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

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

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

.site-header {
  border-top: 6px solid var(--teal-dark);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 100;
  background: #fff;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 2;
}

.logo-mark {
  height: 46px;
  width: auto;
  display: inline-block;
}

.logo-text {
  font-family: var(--font-nav);
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  color: var(--teal-dark);
  letter-spacing: -1px;
}

.main-nav {
  order: 1;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 14px;
}

.main-nav > ul > li {
  position: relative;
  padding: 0 14px 0 0;
  border-right: 1px solid #ccc;
}
.main-nav > ul > li:last-child { border-right: none; }

.main-nav > ul > li > a {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a4a4a;
  padding: 6px 0;
  display: inline-block;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--teal);
}

.dropdown {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 22px;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a4a4a;
}

.dropdown li a:hover {
  color: var(--teal);
  background: var(--teal-pale);
}

.nav-toggle {
  display: none;
  order: 3;
  width: 34px;
  height: 26px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--teal-dark);
  border-radius: 2px;
}

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

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background: #0b2f2d;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 520px;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-slide.is-active { display: flex; }

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 40px;
  position: relative;
}

.hero-caption {
  background: rgba(10, 40, 38, 0.72);
  display: inline-block;
  padding: 26px 34px;
  max-width: 640px;
}

.hero-caption h1,
.hero-caption h2 {
  color: #fff;
  font-style: italic;
  font-size: 34px;
  line-height: 1.3;
  margin: 0;
}

.btn {
  display: inline-block;
  margin-top: 26px;
  padding: 14px 28px;
  background: var(--yellow);
  color: #2a2a20;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active { background: #fff; }

/* generic page banner (non-carousel hero) */
.page-banner {
  height: 260px;
  background-color: #cfd8d6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.banner-figure {
  border-radius: 4px;
  overflow: hidden;
  align-self: stretch;
}
.banner-figure img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }

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

section {
  padding: 60px 0;
}

.section-tight { padding: 40px 0; }

.eyebrow {
  font-family: var(--font-nav);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}

p { margin: 0 0 18px; }

.lede {
  font-weight: 700;
  color: var(--text-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Technology panel ---------- */

.tech-panel {
  background: #f2f2f2;
  padding: 30px;
}
.tech-panel-title {
  font-family: var(--font-nav);
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.tech-panel-title em { font-style: italic; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 20px;
}
.tech-card {
  background: var(--teal-mid);
  color: #fff;
  padding: 22px 14px;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 14px;
}
.tech-card:nth-child(even) { background: var(--teal-light); }
.tech-card .icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.platform-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 20px;
  color: #1a1a1a;
}
.platform-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #666;
}

/* ---------- Team ---------- */

.team-member {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
}
.team-member:first-of-type { border-top: none; }

.team-member:nth-of-type(even) {
  grid-template-columns: 1fr 220px;
}
.team-member:nth-of-type(even) .avatar {
  order: 2;
}
.team-member:nth-of-type(even) .team-member-body {
  text-align: right;
}
.team-member:nth-of-type(even) .linkedin-link {
  flex-direction: row-reverse;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 44px;
  font-weight: 700;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-nav);
  color: var(--text-dark);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-nav);
  color: #777;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-top: 10px;
}
.linkedin-link .badge {
  width: 22px; height: 22px;
  border-radius: 3px;
  background: #1a1a1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---------- Pipeline table ---------- */

.pipeline-note {
  background: #eef2f1;
  padding: 26px 30px;
  border-left: 4px solid var(--teal);
  margin-bottom: 40px;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-nav);
}
.pipeline-table th {
  background: var(--teal-mid);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}
.pipeline-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-dark);
}
.pipeline-table tr:nth-child(even) td { background: #f7f9f8; }
.pipeline-table th.stage-head {
  font-size: 11px;
  text-align: center;
  padding: 10px 4px;
  white-space: nowrap;
}
.stage-cell {
  padding: 8px !important;
  position: relative;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0, transparent calc(12.5% - 1px), var(--border-light) calc(12.5% - 1px), var(--border-light) 12.5%
  );
}
.stage-track {
  position: relative;
  height: 34px;
}
.stage-bar {
  position: relative;
  height: 34px;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding-left: 14px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-mid));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-badge {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--teal-dark);
  border: 1px solid var(--teal-dark);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------- Investors / partner logos ---------- */

.investor-card {
  border: 1px solid var(--border-light);
  padding: 40px 30px;
  text-align: center;
}
.fake-logo {
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--teal-dark);
}
.fake-logo small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #999;
  margin-top: 6px;
}

/* ---------- News ---------- */

.news-item {
  padding: 34px 0;
  border-bottom: 1px solid var(--border-light);
}
.news-item:first-child { padding-top: 0; }
.news-title {
  font-family: var(--font-nav);
  color: var(--teal);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.news-meta {
  font-family: var(--font-nav);
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
}
.news-meta strong { color: #333; }
.read-more {
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: underline;
}

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

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

label {
  display: block;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 22px;
}
textarea { min-height: 130px; resize: vertical; }

.form-status {
  font-family: var(--font-nav);
  font-size: 14px;
  color: var(--teal-dark);
  font-weight: 700;
  display: none;
  padding: 14px 16px;
  background: var(--teal-pale);
  margin-top: -10px;
}
.form-status.is-visible { display: block; }

.note-box {
  position: relative;
  background: #e8edb0;
  padding: 24px 26px;
  margin-top: 26px;
  font-family: var(--font-nav);
  font-size: 13px;
  color: #4a4a2e;
  letter-spacing: 0.3px;
}
.note-box .note-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #f2f2f2;
  color: #777;
  font-size: 11px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-embed {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border-light);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

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

.site-footer {
  margin-top: 40px;
}

.footer-partners {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-partner-logo {
  font-family: var(--font-nav);
  font-weight: 800;
  font-size: 20px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-align: center;
}
.footer-partner-logo small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #999;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.footer-bottom {
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-mid));
  color: #fff;
  padding: 26px 0;
}
.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-address {
  font-family: var(--font-nav);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.footer-address a { text-decoration: underline; }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 700;
}
.footer-legal {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-nav);
  font-size: 12px;
  padding: 16px 0;
}
.footer-legal-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-legal a { text-decoration: underline; }

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 18px;
  color: var(--teal);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
  z-index: 200;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .team-member { grid-template-columns: 1fr; }
  .avatar { width: 140px; height: 140px; font-size: 30px; }
}

@media (max-width: 760px) {
  .header-inner { padding: 16px 20px; }
  .container, .hero-inner, .footer-partners, .footer-bottom-inner, .footer-legal-inner { padding-left: 20px; padding-right: 20px; }
  .nav-toggle { display: flex; }
  .main-nav {
    order: 4;
    width: 100%;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav > ul > li {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    min-width: 0;
    padding: 6px 0 0 16px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .hero-caption h1, .hero-caption h2 { font-size: 24px; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .pipeline-table { display: block; overflow-x: auto; white-space: nowrap; }
}
