:root{
  --green-900:#0C6D38; --green-700:#468A3D; --lime-500:#B8D334;
  --ink:#101B14; --ink-soft:#586459; --paper:#FFFFFF; --surface:#F2F8EF; --line:#DDE8D9;
  --shadow: 0 24px 56px -28px rgba(12,109,56,.32);
}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Poppins",system-ui,sans-serif;line-height:1.55}
body *{box-sizing:border-box}
h1,h2,h3{font-family:"Poppins",system-ui,sans-serif;font-weight:600;margin:0;color:var(--ink)}
a{color:inherit}

/* ===== global header ===== */
.rph-header-wrap{
  position:sticky;top:0;z-index:9999;
  background:rgba(255,255,255,.86);backdrop-filter:blur(14px) saturate(1.3);
  border-bottom:1px solid var(--line);
}
.rph-nav{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;max-width:1200px;margin:0 auto;gap:24px}
.rph-logo img{height:56px;width:auto;display:block}
.rph-links{display:flex;align-items:center;gap:28px;font-size:14.5px;font-weight:500;flex-wrap:wrap}
.rph-links > a{text-decoration:none;color:var(--ink-soft);padding-block:4px;border-bottom:2px solid transparent;transition:color .15s ease,border-color .15s ease}
.rph-links > a:hover,.rph-links > a.active{color:var(--green-900);border-color:var(--lime-500)}
.rph-drop{position:relative}
.rph-drop-trigger{display:inline-flex;align-items:center;gap:5px;text-decoration:none;color:var(--ink-soft);padding-block:4px;border-bottom:2px solid transparent;cursor:pointer;font:inherit;background:none;border-top:none;border-left:none;border-right:none}
.rph-drop-trigger svg{transition:transform .15s ease}
.rph-drop:hover .rph-drop-trigger,.rph-drop-trigger.active{color:var(--green-900);border-color:var(--lime-500)}
.rph-drop:hover .rph-drop-trigger svg{transform:rotate(180deg)}
.rph-drop-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(6px);margin-top:14px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:8px;min-width:240px;opacity:0;visibility:hidden;transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:5}
.rph-drop:hover .rph-drop-menu,.rph-drop:focus-within .rph-drop-menu{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}
.rph-drop-menu a{display:block;text-decoration:none;color:var(--ink-soft);font-size:14px;padding:10px 14px;border-radius:9px}
.rph-drop-menu a:hover{background:var(--surface);color:var(--green-900)}
.rph-cta{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(120deg,var(--green-900),var(--green-700));color:#fff;padding:10px 18px;border-radius:999px;font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap;box-shadow:0 12px 30px -12px rgba(12,109,56,.5)}
.rph-menu-btn{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:8px 10px;color:var(--ink);font-size:18px;cursor:pointer}
@media (max-width:900px){
  .rph-links{display:none}
  .rph-links.rph-open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;background:var(--paper);border-bottom:1px solid var(--line);padding:16px 24px;gap:14px}
  .rph-menu-btn{display:inline-flex}
  .rph-cta{display:none}
}

/* ===== global footer ===== */
.rph-footer{background:#0A140E;padding-block:56px 32px;font-size:13.5px;color:rgba(255,255,255,.55);position:relative;overflow:hidden}
.rph-footer::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 300px at 8% 0%, rgba(184,211,52,.12), transparent 70%)}
.rph-footer .wrap{position:relative;max-width:1160px;margin-inline:auto;padding-inline:24px}
.rph-foot-top{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:32px;padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.1)}
.rph-foot-logo{height:60px;width:auto;filter:brightness(0) invert(1)}
.rph-foot-tag{margin-top:14px;max-width:36ch;font-size:14px;color:rgba(255,255,255,.6)}
.rph-foot-cols{display:flex;gap:56px;flex-wrap:wrap}
.rph-foot-col h4{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--lime-500);font-weight:600;margin-bottom:14px}
.rph-foot-col a{display:block;text-decoration:none;color:rgba(255,255,255,.68);font-size:14px;margin-bottom:10px;transition:color .15s ease}
.rph-foot-col a:hover{color:var(--lime-500)}
.rph-foot-grid{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;padding-top:24px;font-size:12.5px}

/* ===== shared page-hero (used by non-home pages) ===== */
.rph-page-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0A140E 0%,#0C2416 45%,#0A140E 100%);padding-block:76px}
.rph-page-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(700px 340px at 90% -10%, rgba(184,211,52,.18), transparent 70%)}
.rph-page-hero .wrap{position:relative;z-index:1;max-width:1160px;margin-inline:auto;padding-inline:24px}
.rph-page-hero h1{color:#fff;font-size:clamp(34px,5vw,54px);line-height:1.05}
.rph-page-hero p{margin-top:14px;color:rgba(255,255,255,.75);max-width:60ch;font-size:16.5px}
.rph-crumbs{font-size:12.5px;color:rgba(255,255,255,.5);margin-bottom:14px}
.rph-crumbs a{text-decoration:none;color:rgba(255,255,255,.5)}
.rph-crumbs a:hover{color:var(--lime-500)}
.rph-eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--lime-500);display:inline-flex;align-items:center;gap:8px}
.rph-eyebrow::before{content:"";width:16px;height:1px;background:var(--lime-500)}

/* remove default TT5 page-title block spacing on our custom-html pages */
.wp-site-blocks > .entry-content{margin:0;padding:0;max-width:none}


/* ===== break our full-page content blocks out of the theme's constrained content width ===== */
.entry-content.is-layout-constrained > .rph-home,
.entry-content.is-layout-constrained > .rph-about,
.entry-content.is-layout-constrained > .rph-cert,
.entry-content.is-layout-constrained > .rph-careers,
.entry-content.is-layout-constrained > .rph-contact {
  max-width: none;
  width: 100%;
}

.entry-content.is-layout-constrained > .rph-home,
.entry-content.is-layout-constrained > .rph-about,
.entry-content.is-layout-constrained > .rph-cert,
.entry-content.is-layout-constrained > .rph-careers,
.entry-content.is-layout-constrained > .rph-contact {
  max-width: none !important;
  width: 100% !important;
}


/* our pages always carry their own hero inside the content, so hide WP's default page-title block and the empty space around it */
.wp-block-post-title {
  display: none;
}
.wp-block-group:has(> .wp-block-post-title) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* our pages (custom-html and the product-catalogue plugin templates) are
   fully self-contained with their own max-width/padding, so strip the
   theme's global content padding and the main-element top margin site-wide */
main.wp-block-group {
  margin-top: 0 !important;
}
.has-global-padding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


.rph-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}
.rph-page-hero > .wrap {
  position: relative;
  z-index: 2;
}

html body .wp-site-blocks .entry-content.alignfull.has-global-padding,
html body .wp-site-blocks .wp-block-group.alignfull.has-global-padding {
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* WP's block-spacing adds a margin-top on the flow content wrapper even
   with the page-title hidden, leaving a visible gap under the header */
.entry-content.alignfull {
  margin-top: 0 !important;
}
.rph-logo img {
  height: 72px;
  width: auto;
  display: block;
}
