/* ============================================================================
   JOHAN BESTER INGENIEURSWERKE
   Flat rebuild of the GoHighLevel funnel, matched to the original layout.

   Typeface is Poppins, which is what the GHL page actually rendered in
   (--poppins, 26 references in their stylesheet) - not Lato, which was merely
   one of six families the builder preloaded.

   Palette sampled from their logo file and the live page: black and #f90008.
   ========================================================================== */

:root{
  --red:#f90008;
  --red-d:#d10006;
  --ink:#1a1a1a;        /* the dark bands */
  --ink-2:#111;
  --paper:#fff;
  --grey:#e5e5e5;       /* the light service card */
  --text:#1a1a1a;
  --muted:#6f6f6f;
  --muted-d:#b9b9b9;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins',system-ui,Arial,sans-serif;
  color:var(--text);background:var(--paper);
  font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
h1,h2,h3,h4{font-weight:700;line-height:1.2;letter-spacing:-.01em}
img{max-width:100%;display:block}
a{color:inherit}
.wrap{max-width:1140px;margin:0 auto;padding:0 1.4rem}

.btn{
  display:inline-flex;align-items:center;gap:.5rem;background:var(--red);color:#fff;
  font-weight:600;font-size:.95rem;text-decoration:none;cursor:pointer;
  padding:.85rem 1.7rem;border:0;border-radius:6px;transition:.16s;font-family:inherit;
}
.btn:hover{background:var(--red-d)}
.btn.sm{font-size:.85rem;padding:.7rem 1.3rem}

/* ------------------------------------------------------------------- nav -- */
nav{position:absolute;top:0;left:0;right:0;z-index:60}
/* Three columns so the links sit dead centre of the page, with the logo
   hard left, which is how the original is laid out. */
/* Measured off the original render: the nav sits in a narrower container than
   the page body, with a 100px logo hard left and the links centred in what is
   left over, which lands them right of the page centre. */
.nav-in{max-width:970px;margin:0 auto;padding:1.85rem 1.4rem 1.1rem;
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem}
.brand{justify-self:start}
.brand img{height:100px;width:auto}
.nav-links{display:none;gap:5rem;justify-self:end;margin-right:3.4rem}
.nav-links a{color:#fff;text-decoration:none;font-size:1.18rem;font-weight:400}
.nav-links a:hover{color:var(--red)}
.nav-sp{display:none}
.nav-toggle{justify-self:end}
.nav-toggle{display:block;background:none;border:0;cursor:pointer;padding:.4rem}
.nav-toggle span{display:block;width:26px;height:2px;background:#fff;margin:6px 0}
.nav-drop{display:none;background:rgba(17,17,17,.97)}
.nav-drop.open{display:block}
.nav-drop a{display:block;padding:.9rem 1.4rem;color:#fff;text-decoration:none;
  text-align:center;border-bottom:1px solid rgba(255,255,255,.1)}

/* ------------------------------------------------------------------ hero -- */
.hero{position:relative;min-height:520px;display:flex;align-items:center;
  justify-content:center;text-align:center;color:#fff;overflow:hidden;background:#111}
.hero-bg{position:absolute;inset:0}
.hero-bg img{width:100%;height:100%;object-fit:cover}
.hero-bg::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.34)}
.hero-in{position:relative;padding:8rem 1.4rem 5.5rem;max-width:820px}
.hero h1{font-size:clamp(2.1rem,6vw,3.4rem);font-weight:700;letter-spacing:.01em}
.hero .sub{font-size:clamp(1.05rem,2.6vw,1.6rem);font-weight:600;margin-top:.15rem}
.hero p{margin:1.1rem auto 0;max-width:34rem;font-size:.98rem;color:#eee}
.hero .btn{margin-top:1.6rem}

/* the four service cards that overlap the foot of the hero */
.strip{background:#111}
.strip-in{max-width:1140px;margin:0 auto;padding:0 1.4rem;
  display:grid;grid-template-columns:1fr;transform:translateY(-58px);margin-bottom:-58px}
.scard{padding:1.4rem 1.3rem}
.scard:nth-child(odd){background:var(--red);color:#fff}
.scard:nth-child(even){background:var(--grey);color:#1a1a1a}
.scard img{height:30px;width:auto;margin-bottom:.5rem}
.scard:nth-child(odd) img{filter:brightness(0)}
.scard h3{font-size:1.02rem;font-weight:700;margin-bottom:.3rem}
.scard p{font-size:.82rem;line-height:1.45;opacity:.92}

/* --------------------------------------------------------------- sections -- */
section{padding:4rem 0}
.dark{background:#1a1a1a;color:#fff}
.center{text-align:center;max-width:60rem;margin:0 auto}
.center h2{font-size:clamp(1.5rem,4.2vw,2.15rem);margin-bottom:1rem}
.center p{font-size:.95rem;color:#d6d6d6}
section:not(.dark) .center p{color:var(--muted)}
.center .figure{margin-top:2.2rem}
.center .figure img{width:100%;margin:0 auto}
.narrow{max-width:640px}

.italic-sub{font-style:italic;color:var(--muted);margin-top:.4rem}

/* text one side, photo the other */
.split{display:grid;grid-template-columns:1fr;gap:2rem;align-items:center}
.split img{width:100%}
.kick{color:var(--red);font-weight:700;font-size:.82rem;letter-spacing:.02em;
  text-transform:uppercase;display:block;margin-bottom:.25rem}
.split h2{font-size:clamp(1.35rem,3.6vw,1.9rem);margin-bottom:.8rem}
.split p{font-size:.92rem;color:var(--muted)}
.dark .split p{color:var(--muted-d)}

.ticks{list-style:none;margin:1.4rem 0 1.8rem;display:grid;gap:.75rem}
.ticks li{padding-left:2rem;position:relative;font-size:.95rem}
.ticks li::before{
  content:"\2713";position:absolute;left:0;top:.15em;width:19px;height:19px;
  background:var(--red);color:#fff;border-radius:50%;font-size:.68rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

/* past work */
.pw-head{display:grid;grid-template-columns:1fr;gap:1.4rem;margin-bottom:2.4rem}
.pw-head h2{font-size:clamp(1.5rem,4.2vw,2.15rem)}
.pw-head p{font-size:.92rem;color:var(--muted)}
.pw{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;max-width:760px;margin:0 auto}
.pw img{width:100%;height:170px;object-fit:cover}

/* contact band with the red diagonals behind it */
.cta{position:relative;background:#1a1a1a;color:#fff;overflow:hidden}
.cta .dg{position:absolute;inset:0;opacity:.9}
.cta .dg img{width:100%;height:100%;object-fit:cover}
.cta-in{position:relative;display:grid;grid-template-columns:1fr;gap:2rem;align-items:center}
.cta .map{background:#e9e9e9;padding:.35rem}
.cta .map iframe{display:block;width:100%;height:260px;border:0}
.cta h2{font-size:clamp(1.5rem,4.2vw,2.15rem);margin-bottom:.7rem}
.cta p{color:#dcdcdc;font-size:.94rem;margin-bottom:1.4rem}

/* contact page cards */
.cgrid{display:grid;grid-template-columns:1fr;gap:1.2rem}
.cbox{background:#212121;border:1px solid rgba(255,255,255,.1);padding:1.6rem 1.4rem;border-radius:6px}
.cbox img{height:34px;margin-bottom:.9rem}
.cbox h3{font-size:1.05rem;margin-bottom:.5rem}
.cbox p{font-size:.88rem;color:var(--muted-d);margin-bottom:.9rem}
.cbox .lines{display:grid;gap:.45rem}
.cbox .lines a{display:flex;justify-content:space-between;gap:1rem;text-decoration:none;
  font-size:.94rem;font-weight:600;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:.45rem}
.cbox .lines a span:last-child{color:var(--red)}

form{display:grid;gap:.85rem;max-width:36rem;margin:0 auto}
form .two{display:grid;grid-template-columns:1fr;gap:.85rem}
label{font-size:.78rem;font-weight:600;color:var(--muted);display:block;margin-bottom:.3rem}
input,textarea{width:100%;font:inherit;font-size:.94rem;padding:.8rem .9rem;
  border:1px solid #d5d5d5;border-radius:6px;background:#fff;color:var(--text)}
input:focus,textarea:focus{outline:none;border-color:var(--red)}
textarea{min-height:130px;resize:vertical}
.form-note{font-size:.84rem;color:var(--muted)}

/* ---------------------------------------------------------------- footer -- */
footer{background:#111;color:#c9c9c9;text-align:center;padding:2.4rem 1.4rem 5rem;font-size:.85rem}
footer img.flogo{height:64px;width:auto;margin:0 auto 1rem}
footer .fb{display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;background:#1877f2;color:#fff;
  text-decoration:none;font-weight:700;margin-bottom:1rem}
footer .flinks{display:flex;gap:1.1rem;justify-content:center;flex-wrap:wrap;margin-bottom:.9rem}
footer .flinks a{color:#c9c9c9;text-decoration:none}
footer .flinks a:hover{color:var(--red)}
footer .fine{color:#8b8b8b;font-size:.8rem}

.callbar{position:fixed;left:0;right:0;bottom:0;z-index:90;display:flex}
.callbar a{flex:1;text-align:center;padding:.95rem;text-decoration:none;
  font-weight:600;font-size:.92rem;background:var(--red);color:#fff}

.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

@media(min-width:820px){
  .nav-links{display:flex}
  .nav-toggle,.nav-drop{display:none}
  .strip-in{grid-template-columns:repeat(4,1fr)}
  .split{grid-template-columns:1fr 1fr;gap:3rem}
  .split.flip .sp-img{order:2}
  .pw{grid-template-columns:repeat(3,1fr)}
  .pw img{height:190px}
  .pw-head{grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
  .cta-in{grid-template-columns:1fr 1fr;gap:3rem}
  .cta .map iframe{height:330px}
  .cgrid{grid-template-columns:repeat(3,1fr)}
  form .two{grid-template-columns:1fr 1fr}
  .callbar{display:none}
  footer{padding-bottom:2.4rem}
  section{padding:5rem 0}
  .hero{min-height:640px}
  .center .figure img{max-width:640px}
}
@media(max-width:819px){
  /* AJ's standing rule: centre everything on the phone */
  .split,.pw-head,.cta-in,.cbox{text-align:center}
  /* inline-grid made the list an inline box, so the Learn More button flowed
     up alongside it. Block-level grid with max-content width keeps the list
     centred and drops the button onto its own line underneath. */
  .ticks{display:grid;width:max-content;max-width:100%;
    margin-left:auto;margin-right:auto;text-align:left}
  .scard{text-align:center}
  .scard img{margin-left:auto;margin-right:auto}
  .cbox img{margin-left:auto;margin-right:auto}
  .strip-in{transform:none;margin-bottom:0;padding:0}
  .hero-in{padding:6.5rem 1.4rem 3.5rem}
}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}

/* ---------------------------------------------------- inner page heroes -- */
.hero.inner{min-height:400px}
.hero.inner .hero-in{padding:7rem 1.4rem 4rem;max-width:960px}
.hero.inner h1{font-size:clamp(1.9rem,5.2vw,3rem)}
.hero.inner .isub{font-style:italic;margin-top:.4rem;font-size:1rem;color:#eee}
.hero.inner .ilead{margin-top:1.1rem;font-size:.9rem;color:#e4e4e4;max-width:52rem}

/* the four-photo band under the About hero */
.band{display:grid;grid-template-columns:repeat(2,1fr)}
.band img{width:100%;height:190px;object-fit:cover}

.cream{background:#fdf8f5}
.cream .cbox{background:#fff;border:1px solid #efe7e2;box-shadow:0 2px 14px rgba(0,0,0,.05)}
.cream .cbox h3{color:#1a1a1a;font-size:1.35rem;margin-bottom:.7rem}
.cream .cbox p{color:var(--muted)}
.cream .cbox .lines a{color:#1a1a1a;border-bottom-color:#eee}
.cbox .addr{font-weight:700;font-size:1.02rem}
.formcard{background:#fff;border:1px solid #efe7e2;box-shadow:0 2px 14px rgba(0,0,0,.05);
  padding:2rem 1.6rem;max-width:560px;margin:2.5rem auto 0;border-radius:6px}

.twocol{display:grid;grid-template-columns:1fr;gap:1.6rem}
.twocol p{font-size:.92rem;color:var(--muted)}

@media(min-width:820px){
  .band{grid-template-columns:repeat(4,1fr)}
  .band img{height:250px}
  .twocol{grid-template-columns:1fr 1fr;gap:3rem}
  .hero.inner{min-height:470px}
}
