/* Shared stylesheet for Uphill Tech static pages — visual refresh */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Poppins:wght@500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand-green: #6DBE45;
  --brand-green-dark: #5AA835;
  --brand-blue: #3893DF;
  --brand-blue-dark: #2676BC;
  --brand-purple: #7C4EE4;
  --brand-orange: #E8913A;
  --navy: #192A4A;
  --navy-deep: #0F1D35;
  --text: #192A4A;
  --text-secondary: #5F6B7A;
  --text-muted: #8B95A5;
  --border: #E5E9F0;
  --bg-light: #F7F9FC;
  --bg-accent: #EEF4FF;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.02em;
  color: var(--navy);
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}
.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--brand-green);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand-green); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-tel {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-tel:hover { color: var(--brand-green); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(109, 190, 69, 0.25);
  transition: transform 0.2s;
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--brand-green-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── Main content ──────────────────────────────────────────── */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.crumbs {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand-blue); }
.cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-green);
  background: rgba(109, 190, 69, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}
.meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ─── Cover image ───────────────────────────────────────────── */
.cover {
  width: 100%;
  background: var(--bg-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  margin-bottom: 32px;
  overflow: hidden;
}
.cover img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
}

/* ─── Body content ──────────────────────────────────────────── */
.body h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; }
.body h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.body p { margin-bottom: 18px; color: var(--text-secondary); }
.body ul, .body ol { margin: 0 0 20px 24px; }
.body li { margin-bottom: 8px; color: var(--text-secondary); }
.body blockquote {
  border-left: 4px solid var(--brand-green);
  background: rgba(109, 190, 69, 0.05);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--navy);
}
.body a { color: var(--brand-blue); font-weight: 600; }
.body a:hover { color: var(--brand-blue-dark); text-decoration: underline; }

/* ─── Panels ────────────────────────────────────────────────── */
.panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
}
.panel h3 { margin-top: 0; }

/* ─── Tags ──────────────────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(56, 147, 223, 0.08);
  border: 1px solid rgba(56, 147, 223, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ─── Related posts ─────────────────────────────────────────── */
.refs {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 12px;
}
.refs h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.refs .sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.ref {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: block;
  transition: all 0.2s;
}
.ref:hover {
  border-color: var(--brand-blue);
  background: var(--bg-accent);
  text-decoration: none;
}
.ref .t { font-weight: 600; color: var(--navy); }
.ref:hover .t { color: var(--brand-blue); }
.ref .d { font-size: 13.5px; color: var(--text-secondary); margin-top: 4px; }
.ref .u { font-size: 12.5px; color: var(--brand-blue); margin-top: 4px; word-break: break-all; }

/* ─── Related services (service pages) ──────────────────────── */
.related { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 28px; }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.related a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-weight: 600;
  transition: color 0.2s;
}
.related a:hover { color: var(--brand-green); text-decoration: none; }

/* ─── Index hero (services/posts landing) ───────────────────── */
.hero {
  background:
    radial-gradient(80% 120% at 80% 20%, rgba(56, 147, 223, 0.12), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy));
  color: #fff;
  text-align: center;
  padding: 72px 24px 64px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  max-width: 760px;
  margin: 0 auto 16px;
}
.hero h1 span { color: var(--brand-green); }
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto;
}

/* ─── Index card grid ───────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.card:hover { box-shadow: 0 12px 32px rgba(15, 29, 53, 0.1); }
.card .thumb {
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card .thumb img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 8px;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body .cat { margin-bottom: 10px; align-self: flex-start; }
.card-body h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-body h2 a { color: var(--navy); transition: color 0.2s; }
.card-body h2 a:hover { color: var(--brand-blue); text-decoration: none; }
.card-body .meta { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.card-body p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; flex: 1; }
.card-body .tags { margin: 0 0 16px; }
.card-body .features { margin: 0 0 18px; padding-left: 20px; }
.card-body .features li { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.price {
  display: inline-block;
  align-self: flex-start;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-green);
  background: rgba(109, 190, 69, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: auto;
}
.card-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  transition: color 0.2s;
}
.card-body .read-more:hover { color: var(--brand-blue-dark); text-decoration: none; }

/* ─── CTA ───────────────────────────────────────────────────── */
.cta {
  margin-top: 48px;
  background: linear-gradient(100deg, var(--brand-blue), var(--brand-green));
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}
.cta h2 { font-size: 26px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta p { font-size: 15px; opacity: 0.92; margin-bottom: 24px; }
.cta .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cta a.btn {
  display: inline-block;
  background: #fff;
  color: var(--brand-blue);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.2s;
}
.cta a.btn:hover { background: var(--bg-accent); text-decoration: none; transform: translateY(-1px); }
.cta a.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.2s;
}
.cta a.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--brand-green); }

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .hero { padding: 56px 20px 48px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .grid { grid-template-columns: 1fr; }
  .nav-tel { display: none; }
  .cover { padding: 24px; }
  .cover img { max-height: 220px; }
  .cta { padding: 32px 24px; }
  .topbar-inner { padding: 12px 16px; }
}
