/* The site's ONE header and ONE footer (Pedro, 30 Sep 2026: "I dont want it to
   be two separated bars, they must stay the same on all pages").

   Header: a copy of the app's own top bar (wattaindustries.com/#/home/) - same
   green, logo file, items, language picker, Login / Register - measured from
   the live app, not approximated. The public pages (/en/ /pt/ /es/ /fr/) use it;
   the app keeps its own React header, which is the model.

   Footer: the public pages' footer is the official one. The public pages use it
   here, and the app loads this same file plus the footer markup from
   /showcase-assets/chrome.json (see app/frontend/wp-home.src.js) and shows it
   in place of its own.

   Every rule is scoped to .wp-bar / .wp-foot so this file can load inside the
   app (Tailwind) without touching anything else there. Light only, like the
   rest of the site. */

.wp-bar, .wp-foot { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.wp-bar *, .wp-bar *::before, .wp-bar *::after,
.wp-foot *, .wp-foot *::before, .wp-foot *::after { box-sizing: border-box; }
.wp-bar [hidden], .wp-foot [hidden] { display: none !important; }
.wp-bar svg { display: block; flex: 0 0 auto; }

/* ------------------------------------------------------------ header -- */
.wp-bar {
  position: sticky; top: 0; z-index: 50;
  background: #2d7a4f; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, Arial, sans-serif;
  letter-spacing: -.013em; color: #fff; text-align: left;
}
.wp-bar-nav { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wp-bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wp-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.wp-logo img { display: block; height: 56px; width: auto; max-width: 100%; object-fit: contain; transition: transform .3s ease; } /* shrinks on a phone, as the app's does */
.wp-logo:hover img { transform: scale(1.05); }
.wp-links, .wp-right { display: none; align-items: center; }
.wp-links { gap: 40px; }
.wp-right { gap: 24px; }
.wp-guest, .wp-user { display: contents; }
.wp-link { font-size: 14px; line-height: 20px; font-weight: 500; color: #fff; text-decoration: none; transition: color .15s ease; white-space: nowrap; }
.wp-link:hover { color: #d9f99d; }
.wp-reg, .wp-logout {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 8px 20px; font-size: 14px; line-height: 20px; font-weight: 600; font-family: inherit;
  color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, box-shadow .2s ease, transform .1s ease;
}
.wp-reg { background: #a07830; border: 0; }
.wp-reg:hover { background: rgba(160, 120, 48, .9); box-shadow: 0 10px 15px -3px rgba(160, 120, 48, .3), 0 4px 6px -4px rgba(160, 120, 48, .3); }
.wp-logout { background: #ef4444; border: 2px solid #ef4444; }
.wp-logout:hover { background: #dc2626; border-color: #dc2626; }
.wp-reg:active, .wp-logout:active, .wp-mbtn-reg:active, .wp-mbtn-red:active { transform: scale(.96); }
.wp-logout svg, .wp-mbtn svg { width: 16px; height: 16px; }

/* language picker (the app's: globe, flag, name, chevron; green menu) */
.wp-lang { position: relative; }
.wp-lang-btn {
  display: flex; align-items: center; gap: 6px; min-width: 110px; padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; background: transparent;
  color: #fff; font-family: inherit; cursor: pointer; transition: background-color .2s ease;
}
.wp-lang-btn:hover { background: rgba(255, 255, 255, .1); }
.wp-lang-btn > svg { width: 14px; height: 14px; }
.wp-lang-btn .wp-chev { width: 12px; height: 12px; margin-left: auto; transition: transform .2s ease; }
.wp-lang-btn[aria-expanded="true"] .wp-chev { transform: rotate(180deg); }
.wp-lang-cur { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 16px; font-weight: 500; color: #fff; }
.wp-lang-cur .wp-flag { font-size: 12px; }
.wp-lang-name { display: none; }
.wp-lang-menu {
  position: absolute; right: 0; top: 100%; margin-top: 8px; width: 192px; z-index: 50;
  background: #02632f; border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
  max-height: 280px; overflow-y: auto;
}
.wp-lang-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: rgba(255, 255, 255, .9); text-decoration: none; transition: background-color .15s ease; }
.wp-lang-menu a:hover { background: rgba(255, 255, 255, .1); }
.wp-lang-menu a.on { background: rgba(255, 255, 255, .2); color: #fff; }
.wp-lang-menu .wp-flag { font-size: 20px; line-height: 28px; }
.wp-lang-menu span { font-size: 14px; line-height: 20px; font-weight: 500; }
.wp-lang-menu .wp-check { margin-left: auto; }

/* phone menu */
.wp-burger { display: block; flex: 0 0 auto; padding: 8px; margin: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.wp-burger svg { width: 22px; height: 22px; }
.wp-burger .wp-i-x, .wp-burger[aria-expanded="true"] .wp-i-menu { display: none; }
.wp-burger[aria-expanded="true"] .wp-i-x { display: block; }
.wp-mnav { background: #2d7a4f; border-top: 1px solid rgba(255, 255, 255, .1); }
.wp-mnav-in { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wp-mlink { display: block; padding: 8px 0; color: #fff; font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: none; transition: color .15s ease; }
.wp-mlink:hover { color: #d9f99d; }
.wp-mnav-foot { padding-top: 16px; border-top: 1px solid rgba(4, 120, 87, .5); display: flex; flex-direction: column; gap: 12px; }
.wp-mnav-lang { padding-bottom: 12px; }
.wp-mnav-lang .wp-lang-menu { left: 0; right: auto; }
.wp-mnav .wp-guest, .wp-mnav .wp-user { display: flex; flex-direction: column; gap: 12px; }
.wp-mbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px;
  padding: 8px 16px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease;
}
.wp-mbtn-line { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.wp-mbtn-line:hover { background: rgba(255, 255, 255, .1); }
.wp-mbtn-reg { border: 0; background: #a07830; color: #fff; font-weight: 600; }
.wp-mbtn-reg:hover { background: rgba(160, 120, 48, .9); }
.wp-mbtn-white { border: 1px solid #e5e7eb; background: transparent; color: #374151; }
.wp-mbtn-white:hover { background: #f9fafb; }
.wp-mbtn-red { border: 1px solid #ef4444; background: #ef4444; color: #fff; }
.wp-mbtn-red:hover { background: #dc2626; border-color: #dc2626; }

@media (min-width: 1024px) {
  .wp-bar-nav { padding: 0 32px; }
  .wp-bar-in { height: 80px; }
  .wp-links, .wp-right { display: flex; }
  .wp-lang-name { display: inline; }
  .wp-burger, .wp-mnav { display: none !important; }
}

/* ------------------------------------------------------------ footer -- */
.wp-foot {
  background: #123d27; color: #cfe8d8; margin-top: 64px; padding-top: 44px; text-align: left;
  font: 400 14px/1.6 "Plus Jakarta Sans", -apple-system, "Segoe UI", system-ui, Arial, sans-serif;
}
.wp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.wp-foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; }
.wp-foot-brand img { display: block; height: 34px; width: auto; max-width: 100%; margin: 0 0 10px; }
.wp-foot-h { font: 700 14px/1.4 "Plus Jakarta Sans", -apple-system, "Segoe UI", system-ui, Arial, sans-serif; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; text-wrap: balance; }
.wp-foot p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; max-width: none; color: inherit; }
.wp-foot p + .wp-foot-h { margin-top: 18px; }
.wp-foot a { color: #fff; text-decoration: none; }
.wp-foot a:hover { text-decoration: underline; }
.wp-foot-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wp-foot-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-block: 18px; font-size: 13px; color: #b5d3c1; }
.wp-foot-base a { text-decoration: underline; text-underline-offset: 3px; }
.wp-foot a:focus-visible, .wp-bar a:focus-visible, .wp-bar button:focus-visible { outline: 3px solid #f3b82f; outline-offset: 2px; border-radius: 6px; }

@media (max-width: 980px) { .wp-foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .wp-foot-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wp-bar *, .wp-foot * { transition: none !important; } }

/* ------------------------------------------------------------ call bar -- */
/* Phones only: Call sales + Register fixed to the bottom of the screen, on the
   public pages and the app's public pages alike (30 Sep 2026). */
.wp-callbar, .wp-callbar-space { display: none; }
.wp-callbar [hidden] { display: none !important; }
@media (max-width: 760px) {
  .wp-callbar-space { display: block; height: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .wp-callbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid #cfe3d6; box-shadow: 0 -6px 20px rgba(18, 61, 39, .12);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, Arial, sans-serif;
  }
  .wp-callbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 9999px;
    font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent;
  }
  .wp-callbar-call { flex: 1 1 auto; background: #2d7a4f; }
  .wp-callbar-call:active { background: #1f5a39; }
  .wp-callbar-reg { flex: 0 0 auto; padding: 0 20px; background: #a07830; }
  .wp-callbar svg { display: block; width: 18px; height: 18px; flex: 0 0 auto; }
}
@media print { .wp-callbar, .wp-callbar-space { display: none !important; } }
