/* Ramser Technologies — static site
   Palette: blue #38b6ff, green #77b800, ink #1a1a1a, mute #555, line #e5e7eb, bg #ffffff, soft #f4fafd */

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #38b6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { line-height: 1.25; color: #1a1a1a; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: #333; }
.muted { color: #555; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }

/* Logo locked to consistent size on every page.
   width:auto preserves aspect ratio. max-width prevents huge files from blowing out. */
.brand img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.brand-name { font-weight: 700; color: #1a1a1a; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-name small { display: block; font-size: .65rem; font-weight: 600; color: #38b6ff; letter-spacing: 0.18em; }

.nav { display: flex; gap: 28px; }
.nav a { color: #1a1a1a; font-weight: 500; font-size: 0.97rem; }
.nav a.active, .nav a:hover { color: #38b6ff; text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; font-size: 1.4rem; color: #1a1a1a;
}

/* Hero — same decoration on every page, sized consistently */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 88% 18%, rgba(56,182,255,0.08) 0, transparent 40%),
    radial-gradient(circle at 12% 92%, rgba(119,184,0,0.06) 0, transparent 35%),
    linear-gradient(180deg, #f4fafd 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  width: 140px;
  height: 170px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none'>\
<rect x='10' y='10' width='80' height='18' rx='9' stroke='%2338b6ff' stroke-width='3'/>\
<rect x='10' y='40' width='80' height='18' rx='9' stroke='%2338b6ff' stroke-width='3'/>\
<rect x='10' y='70' width='80' height='18' rx='9' stroke='%2338b6ff' stroke-width='3'/>\
<rect x='110' y='25' width='80' height='18' rx='9' stroke='%2377b800' stroke-width='3'/>\
<rect x='110' y='55' width='80' height='18' rx='9' stroke='%2377b800' stroke-width='3'/>\
<rect x='110' y='85' width='80' height='18' rx='9' stroke='%2377b800' stroke-width='3'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.45;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; max-width: 22ch; }
.hero .lead { font-size: 1.2rem; color: #444; max-width: 60ch; }
.hero .cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
}
.btn-primary { background: #38b6ff; color: #fff; }
.btn-primary:hover { background: #1c9ee8; text-decoration: none; color: #fff; }
.btn-secondary { background: #fff; color: #1a1a1a; border-color: #d1d5db; }
.btn-secondary:hover { border-color: #38b6ff; color: #38b6ff; text-decoration: none; }
.btn-accent { background: #77b800; color: #fff; }
.btn-accent:hover { background: #5e9100; color: #fff; text-decoration: none; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: #f4fafd; }
.section-title { text-align: left; margin-bottom: 28px; }
.section-title .eyebrow {
  display: inline-block; color: #77b800; font-weight: 700; font-size: .78rem;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}

/* Service cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 26px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #38b6ff; transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #e6f5ff; color: #1c9ee8;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.accent .icon { background: #eef7d6; color: #5e9100; }
.card h3 { margin-bottom: 8px; }
.card p { color: #444; font-size: 0.97rem; margin-bottom: 0; }

/* Two-column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two-col h2 { margin-top: 0; }

/* Service detail blocks */
.service-block { padding: 36px 0; border-top: 1px solid #e5e7eb; }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block h2 { color: #1a1a1a; }
.service-block .tag {
  display: inline-block; background: #e6f5ff; color: #1c9ee8;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
  text-transform: uppercase;
}
.service-block.green .tag { background: #eef7d6; color: #5e9100; }

/* About — founder card with headshot */
.founder {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start;
}
.founder .photo {
  width: 240px; height: 240px; border-radius: 14px; overflow: hidden;
  background: #f4fafd; border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
}
.founder .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Branded initials fallback when headshot file is missing */
.founder .photo .initials {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #38b6ff 0%, #1c9ee8 100%);
  color: #fff; font-weight: 700; font-size: 3rem;
  letter-spacing: 0.05em;
}

/* About / timeline */
.timeline { border-left: 2px solid #e5e7eb; padding-left: 24px; margin-top: 8px; }
.timeline .item { margin-bottom: 22px; position: relative; }
.timeline .item::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: #38b6ff; position: absolute; left: -30px; top: 7px;
}
.timeline .role { font-weight: 700; color: #1a1a1a; }
.timeline .org { color: #38b6ff; font-weight: 600; }
.timeline .when { color: #777; font-size: 0.9rem; }
.timeline p { font-size: 0.97rem; margin-top: 6px; color: #444; }

/* Portfolio */
.portfolio-feature {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 32px; margin-bottom: 28px;
}
.portfolio-feature .tag {
  display: inline-block; background: #eef7d6; color: #5e9100;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
  text-transform: uppercase;
}

/* Tragget feature — two-column layout */
.tragget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.tragget-text h2 { margin-top: 6px; margin-bottom: 12px; }
.tragget-text .tragget-logo { height: 36px; width: auto; margin: 0 0 8px; }
.tragget-text .builtby { font-size: 0.9rem; margin-top: 14px; }
.tragget-image {
  border-radius: 10px; overflow: hidden;
  border: 1px solid #e5e7eb; background: #f4fafd;
}
.tragget-image img { width: 100%; height: auto; display: block; }

/* Tragget-branded button — solid color, white text always visible */
.btn-tragget {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  background: #43ABDB;          /* Tragget blue */
  color: #ffffff !important;    /* force white text against any inherited color */
  border: 1px solid #43ABDB;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
  margin-top: 8px;
}
.btn-tragget:hover {
  background: #2f8fb8;          /* darker on hover */
  border-color: #2f8fb8;
  color: #ffffff !important;
  text-decoration: none;
}

/* Reference list (unchanged) */
.ref-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ref-item {
  padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 10px;
  background: #fff;
}
.ref-item strong { color: #1a1a1a; }
.ref-item span { color: #555; font-size: 0.93rem; display: block; margin-top: 2px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info p { margin: 4px 0; }
.contact-info .label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: #77b800; text-transform: uppercase; margin-top: 14px;
}
form .field { margin-bottom: 14px; }
form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
form input, form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d1d5db; border-radius: 8px;
  font: inherit; color: #1a1a1a; background: #fff;
}
form input:focus, form textarea:focus { outline: 2px solid #38b6ff; outline-offset: 1px; border-color: #38b6ff; }
form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #666; margin-top: 8px; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #38b6ff 0%, #1c9ee8 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,0.92); max-width: 60ch; margin: 0 auto 18px; }
.cta-strip .btn-secondary { background: #fff; color: #1c9ee8; border-color: #fff; }
.cta-strip .btn-secondary:hover { color: #1a1a1a; }

/* Footer */
.site-footer {
  background: #1a1a1a; color: #cfd3d8; padding: 36px 0 24px;
  font-size: 0.92rem;
}
.site-footer a { color: #cfd3d8; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer .copy { color: #8a8f95; font-size: 0.85rem; }
.site-footer .sister { font-size: 0.9rem; }
.site-footer .sister a { color: #77b800; font-weight: 600; }

/* Responsive */
@media (max-width: 820px) {
  h1 { font-size: 2rem; }
  .brand img { height: 32px; max-width: 160px; }
  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: 2.1rem; }
  .hero::after { display: none; }   /* hide decoration on small screens to keep text readable */
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .founder { grid-template-columns: 1fr; gap: 20px; }
  .founder .photo { width: 180px; height: 180px; }
  .founder .photo .initials { font-size: 2.4rem; }
  .tragget-grid { grid-template-columns: 1fr; gap: 20px; }
  .ref-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e5e7eb;
    flex-direction: column; gap: 0; padding: 8px 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 24px; border-bottom: 1px solid #f0f2f4; }
  .site-header { position: relative; }
}