/*
Theme Name: WP Farm Custom
Theme URI: https://example.invalid/
Author: WP Farm
Description: Minimal theme for WP Farm landing pages (header/footer via theme + WP menus).
Version: 0.2.2
Text Domain: wp-farm-custom
*/

html,
body {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: clip;
}

main {
  display: block;
}

.wf-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
}

/* Typography: increase readable body text size (headlines unchanged). */
.wp-farm-fullbleed p,
.wp-farm-fullbleed li {
  font-size: 20px;
  line-height: 1.6;
}

.wf-sitebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.wf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.wf-brand img {
  display: block;
  max-height: 44px;
  width: auto;
}

.wf-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.wf-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0f172a;
  margin: 0;
  border-radius: 999px;
}

.wf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-menu li {
  list-style: none;
}

.wf-menu ul,
.wf-menu ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wf-menu a {
  color: #0f172a;
  text-decoration: none;
}

.wf-menu-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wf-menu-desktop > li {
  position: relative;
}

.wf-menu-desktop > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.25rem;
  font-weight: 600;
  color: #334155;
}

.wf-menu-desktop > li > a:hover {
  color: #155e75;
}

.wf-menu-desktop li.menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.8em;
  margin-left: 0.4rem;
  opacity: 0.75;
}

.wf-menu-desktop ul.sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 14rem;
  padding: 0.5rem;
  margin: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.15);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0ms linear 160ms;
  list-style: none;
}

.wf-menu-desktop ul.sub-menu li {
  position: relative;
  list-style: none;
}

.wf-menu-desktop ul.sub-menu a {
  display: flex;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.wf-menu-desktop ul.sub-menu a:hover {
  background: rgba(21, 94, 117, 0.08);
  color: #155e75;
}

.wf-menu-desktop li:hover > ul.sub-menu,
.wf-menu-desktop li:focus-within > ul.sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0ms;
}

.wf-menu-desktop ul.sub-menu ul.sub-menu {
  top: 0;
  left: 100%;
  margin-left: 0.5rem;
}

.wf-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(88vw, 360px);
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -1rem 0 2rem rgba(15, 23, 42, 0.15);
  transform: translateX(105%);
  transition: transform 200ms ease;
  z-index: 1300;
  padding: 1rem;
}

.wf-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1rem 0;
}

.wf-offcanvas-title {
  font-weight: 800;
  color: #0f172a;
}

.wf-offcanvas-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.wf-offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 1250;
}

body.wf-offcanvas-open .wf-offcanvas {
  transform: translateX(0);
}

body.wf-offcanvas-open .wf-offcanvas-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.wf-menu-mobile > li > a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 700;
  color: #0f172a;
}

.wf-menu-mobile > li {
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.wf-menu-mobile > li:last-child {
  border-bottom: 0;
}

.wf-menu-mobile li.menu-item-has-children > a {
  padding-right: 3.25rem;
}

.wf-menu-mobile .sub-menu {
  display: none;
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.5rem 0;
  border-left: 0;
}

.wf-menu-mobile .sub-menu li {
  list-style: none;
}

.wf-menu-mobile li.wf-submenu-open > .sub-menu {
  display: block;
}

.wf-submenu-toggle {
  position: absolute;
  top: 0.55rem;
  right: 0.25rem;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.wf-menu-mobile .sub-menu > li {
  border-top: 0;
}

.wf-menu-mobile .sub-menu > li > a {
  display: block;
  padding: 0.6rem 0.25rem 0.6rem 0.75rem;
  font-weight: 650;
  color: #334155;
}

.wf-footer {
  padding: 3rem 0;
  background: #0f172a;
  color: #e2e8f0;
}

.wf-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.wf-footer a:hover {
  text-decoration: underline;
}

.wf-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wf-menu-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.wf-menu-footer a {
  font-weight: 600;
}
