/*
Theme Name: Panda Quote Site
Theme URI: https://locovo.digital/
Author: Locovo Digital Ltd
Author URI: https://locovo.digital/
Description: Lightweight Panda-branded shell for the commercial waste quote journey.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: panda-quote-site
*/

:root {
  --panda-forest: #1d3028;
  --panda-forest-light: #30493e;
  --panda-green: #38b15f;
  --panda-mint: #e4f2ea;
  --panda-yellow: #f9c930;
  --panda-page: #edf2ee;
  --panda-white: #fff;
  --panda-shell-width: 1440px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.panda-quote-site {
  margin: 0;
  background: var(--panda-page);
  color: var(--panda-forest);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.panda-quote-site.admin-bar .panda-site-header { top: 32px; }

.panda-shell {
  width: min(var(--panda-shell-width), calc(100% - 32px));
  margin-inline: auto;
}

.panda-skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -100px;
  padding: 14px;
  border: 2px solid #44a9dc;
  background: var(--panda-mint);
  color: var(--panda-forest);
  font-weight: 700;
}

.panda-skip-link:focus { top: 16px; }

.panda-site-header {
  position: relative;
  z-index: 100;
  min-height: 101px;
  background: var(--panda-forest);
  color: var(--panda-white);
}

.panda-site-header__inner {
  min-height: 101px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 24px;
}

.panda-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--panda-white);
  text-decoration: none;
}

.panda-brand__logo {
  width: 176px;
  height: auto;
  display: block;
}

.panda-brand__paw {
  width: 41px;
  height: 41px;
  display: block;
  object-fit: contain;
}

.panda-brand__name {
  font-size: 40px;
  font-weight: 700;
  line-height: .95;
  letter-spacing: -2px;
}

.panda-primary-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.panda-primary-nav a {
  color: var(--panda-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  text-decoration: none;
  white-space: nowrap;
}

.panda-primary-nav a:hover,
.panda-primary-nav a:focus-visible { color: var(--panda-green); }

.panda-primary-nav__services::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 0 3px 7px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.panda-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panda-cta {
  min-height: 37px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--panda-forest);
  font-size: 16px;
  font-weight: 700;
  line-height: 20.8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.panda-cta:hover,
.panda-cta:focus-visible { transform: translateY(-1px); }
.panda-cta--secondary { background: var(--panda-mint); }
.panda-cta--primary { background: var(--panda-yellow); }
.panda-cta--primary:hover,
.panda-cta--primary:focus-visible { background: var(--panda-white); }

.panda-cta__user {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.panda-cta__user::before,
.panda-cta__user::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
}

.panda-cta__user::before {
  width: 4px;
  height: 4px;
  top: 2px;
  border-radius: 50%;
}

.panda-cta__user::after {
  width: 7px;
  height: 4px;
  bottom: 2px;
  border-radius: 6px 6px 3px 3px;
}

.panda-arrow {
  font-size: 22px;
  font-weight: 400;
  line-height: 16px;
}

.panda-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  display: none;
  place-items: center;
  background: transparent;
  color: var(--panda-white);
  cursor: pointer;
}

.panda-menu-toggle span,
.panda-menu-toggle span::before,
.panda-menu-toggle span::after {
  width: 22px;
  height: 2px;
  display: block;
  position: relative;
  background: currentColor;
}

.panda-menu-toggle span::before,
.panda-menu-toggle span::after { content: ""; position: absolute; left: 0; }
.panda-menu-toggle span::before { top: -7px; }
.panda-menu-toggle span::after { top: 7px; }

.panda-mobile-menu {
  display: none;
  padding: 0 16px 22px;
  background: var(--panda-forest);
}

.panda-mobile-menu[aria-hidden="false"] { display: block; }

.panda-mobile-menu a {
  padding: 12px 0;
  display: block;
  border-top: 1px solid rgba(255,255,255,.16);
  color: var(--panda-white);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.panda-mobile-menu__actions {
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.panda-mobile-menu__actions .panda-cta { color: var(--panda-forest); }

.panda-quote-main {
  min-height: 52vh;
  padding: 10px 0 30px;
  background: var(--panda-page);
}

.panda-quote-main > .wp-block-group,
.panda-quote-main > .wp-block-post-content,
.panda-quote-main .wp-block-group.alignwide,
.panda-quote-main .wp-block-group.alignfull {
  width: 100%;
  max-width: none;
  margin: 0;
}

.panda-site-footer {
  padding: 36px 0 20px;
  background: var(--panda-forest);
  color: var(--panda-mint);
}

.panda-site-footer a { color: inherit; text-decoration: none; }
.panda-site-footer a:hover,
.panda-site-footer a:focus-visible { color: var(--panda-green); }

.panda-footer-brand {
  margin-bottom: 33px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--panda-white);
}

.panda-footer-brand .panda-brand__logo { width: 190px; }

.panda-footer-brand .panda-brand__paw { width: 43px; height: 43px; }
.panda-footer-brand .panda-brand__name { font-size: 43px; }

.panda-footer-grid {
  padding: 20px 0 35px;
  display: grid;
  grid-template-columns: .75fr .75fr .85fr 1fr;
  gap: 48px;
  border-top: 1px solid rgba(228,242,234,.75);
  border-bottom: 1px solid rgba(228,242,234,.75);
}

.panda-footer-column h2 {
  margin: 0 0 22px;
  color: var(--panda-white);
  font-size: 20px;
  line-height: 1.25;
}

.panda-footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panda-footer-column li + li { margin-top: 13px; }
.panda-footer-column a,
.panda-footer-address { font-size: 17px; }

.panda-footer-contact {
  padding-left: 55px;
  border-left: 1px solid rgba(228,242,234,.75);
}

.panda-socials {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.panda-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 5px;
  color: var(--panda-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.panda-socials .panda-socials__youtube { width: 37px; border-radius: 8px; }
.panda-socials .panda-socials__facebook { border-radius: 50%; }

.panda-footer-address { margin: 0; font-style: normal; line-height: 1.65; }

.panda-footer-legal {
  min-height: 66px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(228,242,234,.75);
}

.panda-footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.panda-footer-legal__links a { font-size: 14px; }

.panda-iso-badges { display: flex; gap: 18px; }
.panda-iso-badges span {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228,242,234,.55);
  color: rgba(228,242,234,.72);
  font-size: 8px;
  font-weight: 700;
}

.panda-copyright { margin: 16px 0 0; font-size: 15px; }

@media (max-width: 1100px) {
  .panda-site-header__inner { grid-template-columns: auto 1fr auto; }
  .panda-primary-nav { gap: 18px; }
  .panda-primary-nav a { font-size: 16px; }
  .panda-header-actions .panda-cta--secondary { display: none; }
}

@media (max-width: 820px) {
  body.panda-quote-site.admin-bar .panda-site-header { top: 46px; }
  .panda-site-header,
  .panda-site-header__inner { min-height: 82px; }
  .panda-site-header__inner { grid-template-columns: 1fr auto; }
  .panda-primary-nav,
  .panda-header-actions { display: none; }
  .panda-menu-toggle { display: grid; }
  .panda-brand__paw { width: 35px; height: 35px; }
  .panda-brand__name { font-size: 35px; }
  .panda-brand__logo { width: 158px; }
  .panda-footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .panda-footer-contact { padding-left: 0; border-left: 0; }
  .panda-footer-legal { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .panda-shell { width: min(100% - 28px, var(--panda-shell-width)); }
  .panda-mobile-menu__actions { grid-template-columns: 1fr; }
  .panda-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .panda-footer-column h2 { margin-bottom: 12px; }
  .panda-footer-brand { margin-bottom: 25px; }
}
