/* ==========================================================================
   NRJ Tech — Design System
   Plain CSS, no build step. Edit the variables below to retheme the whole site.
   ========================================================================== */

/* ---- Fonts ---------------------------------------------------------------
   Headings: Fraunces (a characterful "old-style" serif with optical sizing)
   Body:     Albert Sans (a clean, slightly warm grotesque)
   Both are Google Fonts, loaded in each HTML <head>.
   ------------------------------------------------------------------------- */

:root {
  /* Palette */
  --teal:        #0F6E56;   /* primary accent: buttons, links, icons */
  --teal-dark:   #085041;   /* hover states */
  --teal-deep:   #04342C;   /* dark CTA section backgrounds */
  --teal-light:  #E1F5EE;   /* badges, pills, soft backgrounds */
  --teal-fade:   #9FE1CB;   /* text on dark teal backgrounds */

  --ink:         #2C2C2A;   /* body text (near-black, warm) */
  --ink-soft:    #5F5E5A;   /* muted text, captions */
  --line:        #D9D7CE;   /* borders */
  --paper:       #FFFFFF;   /* page background */
  --paper-tint:  #F6F5F1;   /* alternating section background (warm off-white) */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing / layout */
  --maxw: 1140px;
  --gutter: 24px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20,20,18,0.04);
  --shadow-md: 0 6px 24px rgba(20,20,18,0.06);
}

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

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 460;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.18rem; font-weight: 500; letter-spacing: 0; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; }

/* ---- Layout helpers ------------------------------------------------------ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--tint { background: var(--paper-tint); }
.section--deep { background: var(--teal-deep); color: #fff; }
.narrow { max-width: 640px; }

/* ---- Pills / badges ------------------------------------------------------ */
.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-tint); color: var(--ink); }
.btn--invert { background: #fff; color: var(--teal-deep); }
.btn--invert:hover { background: var(--teal-light); color: var(--teal-deep); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.brand__name { font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a.is-active { position: relative; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 2px; background: var(--teal);
}
.nav a.btn { color: #fff; }              /* keep primary button text white in nav */
.nav a.btn:hover { color: #fff; }         /* and on hover */
.nav__cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 104px) clamp(40px, 7vw, 72px); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding-top: 18px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--teal); }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #c7c4b6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--teal-light); color: var(--teal-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 7px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Trust / feature rows ------------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 36px; }
.feature { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.feature svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 3px; }
.feature p { color: var(--ink-soft); font-size: 0.94rem; }

/* ---- Process steps ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step__num { font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.04em; margin-bottom: 8px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- Section headers ----------------------------------------------------- */
.section__head { margin-bottom: 32px; max-width: 52ch; }
.section__head h2 { margin-top: 4px; }

/* ---- FAQ (native <details>) ---------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .2s ease; flex-shrink: 0; color: var(--ink-soft); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq__body { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---- Dark CTA ------------------------------------------------------------ */
.section--deep h2 { color: #fff; }
.section--deep .lede { color: var(--teal-fade); }
.cta-deep { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---- Featured offer panel ------------------------------------------------ */
.offer {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.offer__meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0 22px; }
.offer__meta .k { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.offer__meta .v { font-weight: 600; font-size: 0.98rem; }

/* ---- Split (about / image) ----------------------------------------------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; background: var(--paper-tint); aspect-ratio: 4/5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, #efeee9, #efeee9 12px, #f6f5f1 12px, #f6f5f1 24px);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.88rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--teal); }

/* ---- Contact form -------------------------------------------------------- */
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; display: block; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: 0.82rem; color: var(--ink-soft); }
.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.checkbox input { width: auto; accent-color: var(--teal); width: 17px; height: 17px; }
.callback-fields { display: grid; gap: 16px; padding: 16px; background: var(--paper-tint); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.callback-fields[hidden] { display: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-details dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.contact-details dd { margin-bottom: 18px; font-weight: 500; }

/* ---- Reveal on scroll (progressive enhancement) --------------------------
   Content is visible by default. Only when JS adds .js-reveal to <html> do we
   hide-then-reveal, so the site is never blank if JS fails or is disabled. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .grid--3, .grid--2, .steps, .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split__media { aspect-ratio: 3/2; max-height: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 22px var(--gutter);
  }
  .nav.open a.is-active::after { display: none; }
  .nav-toggle { display: block; }
}
