/* BRABE — hand-written stylesheet (mobile first). Colours, type and spacing follow the old site. */
:root {
  --green: #bcd631;
  --black: #000;
  --white: #fff;
  --line: rgba(0, 0, 0, .12);
  --head: 'Nunito', Helvetica, Arial, sans-serif;
  --text: 'Nunito Sans', Helvetica, Arial, sans-serif;
  --wrap: min(1080px, 80%);
  --header-h: 80px;
  --gap: 27px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--black);
  font: 500 18px/1.7 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.3; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; box-shadow: 0 0 0 4px var(--green); border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--green); color: var(--black); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.h-sec { font-size: 28px; text-align: center; margin-bottom: .35em; }
@media (min-width: 768px) { .h-sec { font-size: 32px; } }

/* ---------------------------------------------------------------- header */
.header { position: relative; z-index: 50; background: var(--black); color: var(--white); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); width: calc(100% - 60px); max-width: none; }
.brand { display: block; height: 100%; padding: 8px 0; }
.brand img { height: 100%; width: auto; max-height: 65px; }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--white); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-top: 3px solid var(--white); padding: 5% 10%; box-shadow: 0 2px 5px rgba(0, 0, 0, .1); }
.nav:not(.is-open) { display: none; }
.nav a { display: block; padding: 10px 5%; font: 700 16px/1.5 var(--head); text-transform: uppercase; text-decoration: none; color: var(--white); }
.nav a + a, .nav li + li a { border-top: 1px solid rgba(255, 255, 255, .1); }
.nav a[aria-current="page"] { color: var(--green); }

@media (min-width: 981px) {
  .header { position: sticky; top: 0; transition: box-shadow .3s; }
  .header__in { transition: height .4s ease; }
  .header.is-scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
  .header.is-scrolled .header__in { height: 54px; }
  .brand { padding: 0; display: flex; align-items: center; }
  .brand img { height: 80%; max-height: none; }
  .nav-toggle { display: none; }
  .nav, .nav:not(.is-open) { display: block; position: static; padding: 0; border: 0; background: none; box-shadow: none; }
  .nav ul { display: flex; gap: 22px; }
  .nav a, .nav li + li a { padding: 4px 0; border: 0; transition: color .3s; }
  .header.is-scrolled .nav a, .nav a:hover { color: var(--green); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); overflow: hidden; background: var(--black); color: var(--white); text-align: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(188, 214, 49, .35) 0%, rgba(0, 0, 0, .6) 99%), rgba(0, 0, 0, .5); }
.hero__in { position: relative; z-index: 2; width: 80%; max-width: 800px; padding: 60px 0 110px; }
.hero h1 { font-size: 27px; line-height: 1.2; text-shadow: .08em .08em 0 rgba(0, 0, 0, .4); }
.hero__down { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: block; z-index: 2; padding: 8px; color: var(--green); }
.hero__down svg { width: 32px; height: 52px; transition: transform .3s; }
.hero__down:hover svg { transform: translateY(4px); }
@media (min-width: 768px) { .hero h1 { font-size: 44px; } .hero__in { padding: 80px 0; } }
@media (min-width: 981px) { .hero h1 { font-size: 38px; } }

/* ---------------------------------------------------------------- about + services */
.about { padding: 54px 0 var(--gap); scroll-margin-top: 54px; }
.about__text { padding: var(--gap) 0; text-align: center; }
.about__text h2 { margin-bottom: 0; padding-bottom: 10px; }
.logo-panel { display: grid; place-items: center; height: 310px; background: var(--black); border-radius: 90px 0 90px 0; overflow: hidden; }
.logo-panel img { width: 85%; max-width: none; } /* wider than tall: the transparent margins of the logo are cropped, as before */
.services { display: grid; gap: var(--gap); margin-top: var(--gap); }
.card { padding: 20px; border: 1px solid var(--line); }
.card__icon { height: 55px; width: auto; color: var(--green); fill: currentColor; margin-bottom: 30px; }
.card h3 { font-size: 16px; font-weight: 800; line-height: 1.3; padding-bottom: 10px; }
.card p { line-height: 1.8; }
@media (min-width: 768px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 3%; }
  .services .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card h3 { font-size: 18px; }
}
@media (min-width: 981px) {
  .services { grid-template-columns: repeat(15, 1fr); column-gap: 32px; }
  .card { grid-column: span 5; padding: 30px; }
  .card h3 { font-size: 20px; }
  .services .card:nth-last-child(2) { grid-column: span 6; }
  .services .card:last-child:nth-child(odd), .services .card:last-child { grid-column: span 9; }
}

/* ---------------------------------------------------------------- contact */
.contact { background: var(--black); color: var(--white); padding: var(--gap) 0 54px; scroll-margin-top: 54px; }
.contact--page { min-height: calc(100vh - var(--header-h) - 160px); }
.contact .h-sec { margin-bottom: 20px; }
.contact__info { display: grid; gap: 24px; margin-bottom: 40px; text-align: center; }
.cinfo__icon { display: block; height: 42px; padding-top: 6px; margin-bottom: 12px; color: var(--green); }
.cinfo__icon svg { height: 36px; width: auto; margin-inline: auto; fill: currentColor; }
.cinfo h2, .cinfo__t { font: 700 19px/1.3 var(--head); text-transform: uppercase; margin: 0 0 6px; }
.cinfo__t strong { font-weight: 700; }
.cinfo a { text-decoration: none; }
.cinfo a:hover { color: var(--green); }
@media (min-width: 768px) { .contact__info:not(.contact__info--stack) { grid-template-columns: 1fr 1fr; column-gap: 5.5%; } }
.contact__info--stack { gap: 40px; margin-top: 30px; }

.cform { width: 100%; max-width: 810px; margin-inline: auto; }
@media (min-width: 768px) { .cform { width: 75%; } }
.cform__row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 600px) { .cform__row { grid-template-columns: 1fr 1fr; gap: 3.5%; } }
.cform input[type="text"], .cform input[type="email"], .cform textarea {
  width: 100%; margin: 0; padding: 16px; border: 2px solid var(--white); border-radius: 0; background: var(--white); color: var(--black);
  font-size: 16px; line-height: 1.4; text-align: center; -webkit-appearance: none; appearance: none;
}
.cform textarea { display: block; height: 150px; min-height: 150px; resize: vertical; }
.cform ::placeholder { color: #333; opacity: 1; }
.cform :focus-visible { outline-offset: 2px; }
.cform .is-invalid input, .cform .is-invalid textarea { border-color: #ff6b6b; }
.cform__consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
.cform__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.cform__consent a { color: var(--green); }
.cform__consent.is-invalid span { color: #ff8a8a; }
.cform__foot { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 20px; }
.cform__status { flex: 1 1 260px; margin: 0; font-size: 16px; line-height: 1.5; }
.cform__status:empty { display: none; }
.cform__status.is-ok { font: 700 22px/1.4 var(--head); color: var(--green); text-align: center; padding: 24px; border: 2px solid var(--green); border-radius: 10px; }
.cform__status.is-error { color: #ff8a8a; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .3em 1em .3em .9em; border: 2px solid var(--green); border-radius: 3px; background: var(--green); color: var(--black); font: 700 20px/1.7 var(--text); text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.btn svg { width: .9em; height: .9em; fill: currentColor; }
.btn:hover { background: var(--black); color: var(--green); }
.is-sending .btn { opacity: .6; pointer-events: none; }

/* ---------------------------------------------------------------- legal pages, 404 */
.page { padding: 54px 0 80px; }
.page h1 { font-size: 28px; margin-bottom: .6em; }
@media (min-width: 768px) { .page h1 { font-size: 32px; } }
.prose { max-width: 820px; }
.prose h2 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--black); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.prose__date { font-size: 15px; color: #444; }
.todo { background: #fff3a0; padding: 0 .3em; font-weight: 700; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--black); color: var(--white); font-size: 16px; }
.footer__top { padding: 32px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.footer__grid { display: grid; gap: 24px; }
.footer__logo { width: 150px; }
.footer ul { display: grid; gap: 4px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--green); }
.footer__h { font: 700 14px/1.5 var(--head); text-transform: uppercase; color: var(--green); margin: 0 0 6px; }
@media (max-width: 980px) { .footer__bottom .wrap { padding-right: 60px; } } /* keep the credit clear of the WhatsApp button */
@media (min-width: 768px) { .footer__top { padding: 40px 0; } .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; align-items: start; } }
.footer__bottom { background: var(--green); color: var(--black); padding: 15px 0 12px; font-size: 16px; }
.footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.footer__bottom a:hover { color: var(--black); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- WhatsApp button */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--black); color: var(--white); box-shadow: 0 3px 12px rgba(0, 0, 0, .35); transition: transform .2s, background .2s, color .2s; }
.wa svg { width: 28px; height: 28px; fill: currentColor; }
.wa:hover { transform: scale(1.06); background: var(--green); color: var(--black); }
@media (min-width: 981px) { .wa { right: 25px; bottom: 25px; } }

/* ---------------------------------------------------------------- reveal (contact icons slide in from the top, as before) */
.reveal-top { opacity: 0; transform: translateY(-30px); transition: opacity .8s ease, transform .8s ease; }
.reveal-top.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-top { opacity: 1; transform: none; transition: none; } }
