/* ==========================================================================
   Orectec LLC — brand stylesheet
   Green #0ED145  ·  Orange #FF7F27
   ========================================================================== */

:root {
  --green: #0ED145;        /* vivid brand green — solid fills, dark text on top */
  --green-strong: #0bb53c; /* button hover */
  --green-ink: #067f2b;    /* readable green for text / links / eyebrow on white */
  --green-soft: #e9fbef;   /* light green tint — icon tiles, chips */
  /* legacy aliases kept so existing rules resolve */
  --green-dark: var(--green-ink);
  --orange-dark: var(--green-ink);
  --gradient: var(--green);

  --ink: #14211a;
  --body: #4a5250;
  --muted: #737b78;
  --line: #e6e9e7;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --bg-tint: var(--green-soft);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 26, .06);
  --shadow: 0 12px 30px -12px rgba(20, 33, 26, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 33, 26, .25);

  --container: 1120px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.grad-text {
  color: var(--green-ink);
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-ink);
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  will-change: transform;
}
.btn-sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .9rem; }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: 0 10px 22px -10px rgba(14,209,69,.6); }
.btn-primary:hover { transform: translateY(-2px); background: var(--green-strong); box-shadow: 0 16px 30px -10px rgba(14,209,69,.55); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green-ink); }
.btn:focus-visible { outline: 3px solid rgba(14,209,69,.4); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand img { height: 30px; width: auto; }
.brand:focus-visible { outline: 3px solid rgba(14,209,69,.4); outline-offset: 4px; border-radius: 6px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gradient); border-radius: 2px; transition: width .22s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a:not(.nav-cta):hover { color: var(--green-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; }
.hero .lead { font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--body); margin-top: 1.4rem; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-glow {
  position: absolute; z-index: 1; top: -30%; right: -12%;
  width: 640px; height: 640px; max-width: 90vw; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(14,209,69,.16), transparent 60%),
              radial-gradient(circle at 72% 62%, rgba(14,209,69,.08), transparent 62%);
  filter: blur(10px); pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { margin-bottom: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; }
.section-sub { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--green-ink); background: var(--green-soft); margin-bottom: 1.2rem;
  transition: background .25s ease, color .25s ease;
}
.card:hover .card-icon { background: var(--green); color: var(--ink); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin: .8rem 0 1.3rem; }
.about-copy p + p { margin-top: 1rem; }
.values { display: flex; flex-direction: column; gap: 1.2rem; }
.value {
  display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.value-dot {
  flex: none; width: 14px; height: 14px; margin-top: .45rem; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 0 5px rgba(14,209,69,.12);
}
.value h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.value p { font-size: .94rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-card {
  max-width: 920px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--gradient);
}
.contact-item { display: flex; gap: 1rem; }
.contact-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--green-dark); background: var(--bg-tint);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: .3rem; }
.contact-item p { font-size: .96rem; color: var(--muted); }
.contact-item a { color: var(--green-dark); font-weight: 500; transition: color .18s; }
.contact-item a:hover { color: var(--orange-dark); text-decoration: underline; }
.contact-cta { grid-column: 1 / -1; justify-self: start; margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d0cb; padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: .9rem; }
.footer-brand p { max-width: 320px; font-size: .95rem; color: #9aa8a1; }
.footer-nav { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: #dfe6e2; transition: color .18s; }
.footer-nav a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .86rem; color: #8a968f; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .06s; }
.cards .reveal:nth-child(3) { transition-delay: .12s; }
.cards .reveal:nth-child(4) { transition-delay: .18s; }
.cards .reveal:nth-child(5) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1rem; border: 0; text-align: center; }
  .nav .btn { background: var(--gradient); color: #fff; }
}

@media (max-width: 560px) {
  .cards, .contact-card { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gradient);
}
.page-hero .eyebrow { margin-bottom: .7rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.page-hero .updated { margin-top: .8rem; color: var(--muted); font-size: .95rem; }

.legal { max-width: 780px; margin-inline: auto; padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.legal .lede { font-size: 1.1rem; color: var(--body); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .7rem; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.06rem; margin: 1.4rem 0 .4rem; }
.legal p { margin-bottom: .95rem; color: var(--body); }
.legal ul { margin: 0 0 1.1rem 1.25rem; }
.legal li { margin-bottom: .45rem; color: var(--body); }
.legal a { color: var(--green-dark); text-decoration: underline; }
.legal a:hover { color: var(--orange-dark); }
.legal .toc {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem;
}
.legal .toc h2 { margin: 0 0 .6rem; font-size: 1rem; }
.legal .toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.legal .toc li { margin-bottom: .35rem; }
.legal .toc a { text-decoration: none; font-weight: 500; }
.legal .contact-block {
  margin-top: 2.5rem; padding: 1.4rem 1.6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-tint);
}
.legal .contact-block p { margin: 0; }

@media (max-width: 560px) {
  .legal .toc ol { columns: 1; }
}
