/* ==========================================================================
   RAMA Technologies PLC — site stylesheet
   Palette derived from the supplied logo:
   navy #033452 · gold #F9C704 · green #056639 · cream #FDFCFA
   ========================================================================== */

:root {
  --navy:      #033452;
  --navy-deep: #02273E;
  --navy-lift: #0A4468;
  --gold:      #F9C704;
  --green:     #056639;
  --green-lift:#0A7A46;
  --cream:     #FDFCFA;
  --white:     #FFFFFF;
  --ink:       #13212B;
  --slate:     #56666F;
  --slate-lt:  #84949C;
  --rule:      #E5E2DB;
  --rule-dk:   rgba(255,255,255,.16);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-data:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1140px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-color: rgba(3,52,82,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.005em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.1rem;
  display: block;
}

.eyebrow-alt { color: var(--gold); }

.muted { color: var(--slate); }
.small { font-size: .9rem; }

.note {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--slate);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
  margin: 1.4rem 0 0;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 800px; }

.section { padding: 74px 0; }
.section-tight { padding: 52px 0; }
.section-tint { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.section-head { max-width: 66ch; margin-bottom: 40px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: start;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #ffd634; border-color: #ffd634; }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.42); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.09); }

.btn-solid { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-solid:hover { background: var(--navy-lift); border-color: var(--navy-lift); }

.btn-line { background: transparent; color: var(--navy); border-color: rgba(3,52,82,.3); }
.btn-line:hover { border-color: var(--navy); background: rgba(3,52,82,.05); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- top bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,.82);
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .04em;
}

.topbar-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar a { color: rgba(255,255,255,.92); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-set { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .93rem;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 3px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a:not(.btn):hover { background: rgba(3,52,82,.055); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold); font-weight: 600; }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(3,52,82,.3);
  border-radius: 3px;
  padding: 9px 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 84px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 380px at 8% -8%, rgba(10,122,70,.30), transparent 62%),
    radial-gradient(560px 300px at 96% 108%, rgba(249,199,4,.13), transparent 60%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,.8); }
.hero .eyebrow { color: var(--gold); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

/* ---------- signature: the measured method chain ---------- */

.chain {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  padding: 30px 30px 26px;
}

.chain-title {
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin: 0 0 22px;
}

.chain-list { list-style: none; margin: 0; padding: 0; position: relative; }

.chain-item {
  position: relative;
  padding: 0 0 22px 34px;
}
.chain-item:last-child { padding-bottom: 0; }

.chain-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 15px;
  bottom: -7px;
  width: 1.5px;
  background: rgba(255,255,255,.2);
}
.chain-item:last-child::before { display: none; }

.chain-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: var(--navy);
}

.chain-measured .chain-dot { background: var(--gold); border-color: var(--gold); }

.chain-step {
  display: block;
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
}

.chain-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.chain-tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-data);
  font-size: .6rem;
  letter-spacing: .13em;
  color: var(--navy);
  background: var(--gold);
  padding: 2px 7px;
  border-radius: 2px;
  vertical-align: 1.5px;
}

.chain-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .86rem;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

/* expanded chain (hydrogen page) */

.method { list-style: none; margin: 0; padding: 0; counter-reset: m; }

.method-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.method-item:last-child { border-bottom: 1px solid var(--rule); }

.method-num {
  font-family: var(--font-data);
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--green);
  padding-top: 4px;
}

.method-item h3 { margin-bottom: .35em; }
.method-item p { color: var(--slate); margin: 0; }

/* ---------- cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px;
}

.section-tint .card { background: var(--cream); }

.card h3 { margin-bottom: .45em; }
.card p { color: var(--slate); font-size: .96rem; margin: 0; }

.card-mark {
  width: 34px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
}

/* ---------- service list ---------- */

.svc { list-style: none; margin: 0; padding: 0; }

.svc-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.svc-item:last-child { border-bottom: 1px solid var(--rule); }

.svc-item h3 { margin: 0; }
.svc-item p { color: var(--slate); margin: 0; }

/* ---------- facts / registration data ---------- */

.facts { margin: 0; }

.facts-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.facts-row:last-child { border-bottom: 1px solid var(--rule); }

.facts-key {
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0;
  padding-top: 3px;
}

.facts-val { margin: 0; font-size: .99rem; }
.facts-val strong { font-weight: 600; }
.facts-mono { font-family: var(--font-data); font-size: .92rem; }

/* ---------- measured result panel ---------- */

.result {
  background: var(--navy);
  color: var(--white);
  border-radius: 5px;
  padding: 34px 34px 30px;
}

.result-label {
  font-family: var(--font-data);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}

.result-read {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-data);
  margin-bottom: 18px;
}

.result-from, .result-to { font-size: 1.72rem; font-weight: 500; }
.result-from { color: rgba(255,255,255,.55); }
.result-to { color: var(--white); }
.result-arrow { color: var(--gold); font-size: 1.2rem; }
.result-unit { font-size: .85rem; color: rgba(255,255,255,.6); letter-spacing: .08em; }

.result-delta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.result-cond {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.15);
}

/* ---------- eligibility ---------- */

.elig { list-style: none; margin: 0; padding: 0; }

.elig-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .97rem;
}
.elig-item:last-child { border-bottom: 0; }

.elig-mark {
  font-family: var(--font-data);
  font-weight: 500;
  flex: 0 0 auto;
  width: 18px;
}
.elig-yes .elig-mark { color: var(--green); }
.elig-no .elig-mark { color: #B4442E; }

/* ---------- band ---------- */

.band { background: var(--navy); color: var(--white); padding: 62px 0; }
.band h2 { color: var(--white); }
.band .lede { color: rgba(255,255,255,.8); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.band-in > div { flex: 1 1 420px; }

.band-green { background: var(--green); }

/* ---------- credential strip ---------- */

.strip { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 34px 0; }

.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.strip-item p { margin: 0; }
.strip-k {
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 6px !important;
}
.strip-v { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy); }

/* ---------- forms ---------- */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }

.field label {
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px 14px;
  width: 100%;
}

.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 132px; resize: vertical; }

.form-note { font-size: .84rem; color: var(--slate); margin: 0; }

/* ---------- contact blocks ---------- */

.contact-block { padding: 22px 0; border-top: 1px solid var(--rule); }
.contact-block:first-child { border-top: 0; padding-top: 0; }
.contact-block h3 { margin-bottom: .3em; }
.contact-block p { margin: 0; color: var(--slate); }
.contact-block a { color: var(--navy); font-weight: 600; }

/* ---------- footer ---------- */

.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 30px; font-size: .93rem; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }

.footer-logo {
  background: var(--cream);
  display: inline-block;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.footer-logo img { height: 34px; width: auto; }

.footer h4 {
  color: var(--white);
  font-size: .74rem;
  font-family: var(--font-data);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer a:hover { color: var(--gold); }

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dk);
  font-family: var(--font-data);
  font-size: .74rem;
  line-height: 1.8;
  letter-spacing: .03em;
  color: rgba(255,255,255,.55);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 66px; }

  .nav-toggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 10px var(--gut) 18px;
    box-shadow: 0 14px 26px rgba(3,52,82,.09);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold); }
  .nav-cta { margin: 14px 0 0; justify-content: center; }

  .header-in { position: relative; min-height: 66px; }
  .brand img { height: 34px; }

  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .svc-item, .facts-row, .method-item { grid-template-columns: 1fr; gap: 8px; }
  .method-item { gap: 4px; }
  .topbar-in { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .nav, .nav-toggle, .btn-row { display: none; }
  .hero, .band, .footer, .result { background: #fff !important; color: #000 !important; }
}

/* ==========================================================================
   Additions for the systems-integration front
   ========================================================================== */

.chain-sub {
  display: block;
  font-size: .87rem;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
  margin-top: 3px;
}

.chain-item-plain .chain-dot { background: transparent; border-color: rgba(255,255,255,.55); }
.chain-item-energy .chain-dot { background: var(--green-lift); border-color: var(--green-lift); }

/* product / capability tag lists */

.taglist { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }

.taglist li {
  font-family: var(--font-data);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--navy);
  background: rgba(3,52,82,.06);
  border: 1px solid rgba(3,52,82,.1);
  border-radius: 2px;
  padding: 5px 10px;
}

.section-tint .taglist li { background: rgba(3,52,82,.05); }

/* division callout */

.division {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 26px 28px;
}

.division h3 { margin: 0 0 .3em; }
.division p { margin: 0; color: var(--slate); font-size: .96rem; }

.division-tag {
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--green);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 760px) {
  .division { grid-template-columns: 1fr; gap: 16px; }
  .division-tag { writing-mode: horizontal-tb; transform: none; }
}
