/* ==========================================================
   GISMinds landing page — mobile-first, hand-written CSS
   Primary: #1a3a5c (navy, matches GIS Core theme-color)
   Accent:  #2a9d8f (teal)
   Warm:    #e76f51 (coral — for small accents only)
   ========================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.55;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: #1a3a5c; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { color: #0f2439; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .65rem 1.1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  text-align: center;
  cursor: pointer;
}
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-primary { background: #1a3a5c; color: #fff; }
.btn-primary:hover { background: #123050; text-decoration: none; }
.btn-ghost { background: transparent; color: #1a3a5c; border-color: #1a3a5c; }
.btn-ghost:hover { background: #1a3a5c; color: #fff; text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: #0f2439;
  font-size: 1.15rem;
  letter-spacing: .2px;
}
.brand:hover { text-decoration: none; }
.brand-logo { flex: none; }
.brand-accent { color: #2a9d8f; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.primary-nav a {
  color: #374151;
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a:hover { color: #1a3a5c; text-decoration: none; }
.nav-cta { color: #fff !important; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1a3a5c;
  margin: 4px auto;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background:
    radial-gradient(1000px 400px at 90% -10%, rgba(42,157,143,.12), transparent 60%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: .75rem; }
.hero-sub {
  font-size: 1.05rem;
  color: #374151;
  max-width: 38rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 1.25rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .9rem;
  color: #4b5563;
}
.hero-trust li::before { content: "✓ "; color: #2a9d8f; font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.screenshot-frame {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 36, 57, 0.18), 0 6px 16px rgba(15, 36, 57, 0.08);
  background: #fff;
}
.screenshot-chrome {
  background: #f3f4f6;
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  border-bottom: 1px solid #e5e7eb;
}
.screenshot-chrome span {
  width: 10px; height: 10px; border-radius: 50%; background: #d1d5db;
}
.screenshot-chrome em {
  font-style: normal;
  font-size: .8rem;
  color: #6b7280;
  margin-left: .75rem;
}
.screenshot-body { padding: 0; }
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 10px 10px;
}

/* Product hero screenshot */
.product-screenshot-hero {
  margin: 0 auto 3rem;
  max-width: 1000px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 36, 57, 0.18), 0 8px 20px rgba(15, 36, 57, 0.08);
  border: 1px solid #e5e7eb;
}
.product-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: #f8fafc; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }

.section-head { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head .eyebrow { margin-bottom: .4rem; }
.section-intro { color: #4b5563; font-size: 1.05rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: #2a9d8f;
  margin: 0 0 .5rem;
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 36, 57, 0.08);
  border-color: #d1d5db;
}
.card-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: .75rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: #4b5563; font-size: .95rem; }
.card.benefit h3 { color: #1a3a5c; }

/* ---------- Product feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-top: 1px solid #eef2f6;
}
.feature-row:first-of-type { border-top: none; padding-top: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-copy h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.check-list { margin: 1rem 0 0; }
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin: .35rem 0;
  color: #374151;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 14px; height: 8px;
  border-left: 2px solid #2a9d8f;
  border-bottom: 2px solid #2a9d8f;
  transform: rotate(-45deg);
}

.feature-visual { display: flex; justify-content: center; }
.feature-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a9d8f 140%);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(15, 36, 57, 0.18);
}
.feature-card strong { font-size: 1.1rem; display: block; margin-bottom: .25rem; }
.feature-card p { margin: 0; opacity: .9; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-copy h2 { margin-bottom: .75rem; }
.contact-list {
  margin-top: 1.5rem;
  display: grid;
  gap: .75rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-top: 1px solid #eef2f6;
  align-items: center;
}
.contact-list li:first-child { border-top: none; }
.contact-list strong { color: #6b7280; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

.contact-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 8px 20px rgba(15, 36, 57, 0.05);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .9rem;
  color: #374151;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  color: #1f2937;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #1a3a5c;
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.12);
}
.form-status {
  margin: .75rem 0 0;
  min-height: 1.25rem;
  font-size: .9rem;
}
.form-status.is-success { color: #065f46; }
.form-status.is-error { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2439;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1e3a56;
}
.site-footer h4 {
  color: #fff;
  font-size: .95rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-footer a { color: #cbd5e1; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul li { margin: .35rem 0; }
.brand-footer { color: #fff; }
.brand-footer .brand-text { color: #fff; }
.footer-tag { margin-top: .75rem; color: #94a3b8; font-size: .9rem; max-width: 22rem; }
.footer-bottom { padding-top: 1rem; text-align: center; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-row.reverse .feature-visual { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.is-open { max-height: 400px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1rem;
    gap: .25rem;
  }
  .primary-nav a {
    display: block;
    padding: .75rem .25rem;
    border-bottom: 1px solid #f3f4f6;
  }
  .primary-nav .nav-cta { margin-top: .5rem; }

  .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible {
  outline: 3px solid #2a9d8f;
  outline-offset: 2px;
  border-radius: 4px;
}
