/* ==========================================================================
   Trishara Mobility — public marketing site
   Theme: white background, dark grey type, dark green highlights (EV / green energy)
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg-alt: #f6f8f6;
  --ink: #2b2b2b;
  --ink-muted: #5c5f5c;
  --ink-faint: #8a8d8a;
  --border: #e6e8e6;

  --green: #0f5a35;
  --green-dark: #0b4327;
  --green-soft: #e9f4ee;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(15, 90, 53, 0.18);
  --max-width: 1160px;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-muted); }

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}

/* Highlight accents ------------------------------------------------------ */
.hl {
  color: var(--green);
  font-weight: 700;
}
.hl-soft {
  color: var(--green);
  font-weight: 600;
}
.hl-invert {
  color: var(--green-soft);
}

.eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}
.eyebrow.center { text-align: center; }

.center { text-align: center; margin-left: auto; margin-right: auto; }
h2.center { max-width: 720px; }
.lead.center { max-width: 620px; }

.lead {
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.body-text { color: var(--ink-muted); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-lg { padding: 13px 26px; font-size: 1rem; }

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
}
.btn-ghost:hover { color: var(--green); }

.btn-invert {
  background: #fff;
  color: var(--green-dark);
}
.btn-invert:hover { background: var(--green-soft); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-name .dot { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--green);
  border-color: var(--green);
}
.main-nav a.active {
  color: var(--green);
  border-color: var(--green);
}

/* Dropdown submenu ("Company") ------------------------------------------- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.nav-dropdown-toggle .chevron {
  display: block;
  transition: transform 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--green);
  border-color: var(--green);
}
.nav-dropdown.open .nav-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--green-soft);
  color: var(--green-dark);
}

.mobile-menu-panel { display: contents; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero ---------------------------------------------------------------------*/
.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(15, 90, 53, 0.06), transparent 70%),
    var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 0.4em; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pillar strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--ink);
}
.pillar span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 440px; }

/* Strip ---------------------------------------------------------------------*/
.strip {
  background: var(--green-soft);
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-inner p {
  margin: 0;
  text-align: center;
  color: var(--green-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.strip-inner .hl { color: var(--green-dark); }

/* Sections ------------------------------------------------------------------*/
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.about-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-stats li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.about-stats strong {
  display: block;
  font-family: var(--font-head);
  color: var(--green);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.about-stats span {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Card grid ------------------------------------------------------------------*/
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(15, 90, 53, 0.25);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.92rem; }

/* Steps ------------------------------------------------------------------*/
.steps {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 28px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.step-no {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; font-size: 1.05rem; }
.steps p { font-size: 0.9rem; margin: 0; }

/* Pill grid (industries) ---------------------------------------------------*/
.pill-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--ink);
  border-left: 3px solid var(--green);
}

/* Green / why-electric section ---------------------------------------------*/
.green-section {
  background: var(--bg-alt);
}
.green-art {
  display: flex;
  justify-content: center;
}
.green-art svg { width: 100%; max-width: 340px; }

.check-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Partners / investors --------------------------------------------------- */
.partner-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.partner-card h3 {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 8px;
}
.partner-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* CTA banner --------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 64px 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; }

/* Contact ------------------------------------------------------------------*/
.contact-details {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-details dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.contact-details dd {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-head);
}
.contact-details a:hover { color: var(--green); }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* Footer ---------------------------------------------------------------------*/
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p {
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 240px;
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
}

/* Responsive ---------------------------------------------------------------*/
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-pillars { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 18px;
  }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-cta {
    display: flex;
    flex-direction: column;
    position: static;
    background: none;
    padding: 0;
    gap: 14px;
  }

  /* Dropdown becomes an inline accordion on mobile */
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 6px 0;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 12px;
    min-width: 0;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .card-grid, .pill-grid, .partner-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pricing page
   ========================================================================== */

.pricing-hero {
  padding: 64px 0 40px;
}
.pricing-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }

.pricing-section { padding-top: 24px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(15, 90, 53, 0.25);
}
.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-tag {
  color: var(--green);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.price-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 20px;
}
.price .amount {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
}
.price .period {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.price-cta { width: 100%; }

.pricing-footnote {
  margin-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-footnote strong { color: var(--ink-muted); }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
