/* Green Hub: base, header (matches the Shopify header), mega menu and mobile drawer.
   Page designs live in their own sections / stylesheets. */

/* ---------- Base (like the Shopify theme's reset) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Roboto Flex", sans-serif; font-size: 16px; line-height: 1.6; color: #5c5e5e; background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: .5rem; font-family: inherit; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; }
img, svg { vertical-align: middle; }
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 1000; background: #103b2b; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header (transparent, sits over each page's dark hero) ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 60; color: #fff; }
.site-header__inner { display: flex; align-items: center; height: 92px; padding: 0 15px; }
.site-header__logo { display: block; flex: none; width: 180px; height: 60px; }
.site-header__logo img { display: block; width: 180px; height: 60px; object-fit: contain; }
.site-nav { flex: 1; margin-left: 30px; height: 100%; }
.site-nav__list { display: flex; align-items: stretch; height: 100%; margin: 0; padding: 0; list-style: none; gap: 29px; }
.site-nav__item { display: flex; }
.site-nav__link { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 92px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; letter-spacing: .1px; text-transform: capitalize; white-space: nowrap; }
.site-nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.site-nav__link:hover::after, .site-nav__link.is-active::after, .has-mega.open > .site-nav__link::after { transform: scaleX(1); transform-origin: left; }
.site-nav__link svg { transition: transform .2s; }
.has-mega.open > .site-nav__link svg { transform: rotate(180deg); }
.site-header__right { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.hdr-phone { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.hdr-phone > span { display: flex; flex-direction: column; line-height: 1.3; }
.hdr-phone > span > span { font-size: 12px; font-weight: 400; }
.hdr-phone strong { font-size: 15px; font-weight: 700; }
.hdr-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; text-decoration: none; }
.hdr-icon__circle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(216, 218, 223, .13); border: 1px solid rgba(255, 255, 255, .09); transition: background .2s; }
.hdr-icon:hover .hdr-icon__circle { background: rgba(216, 218, 223, .24); }
.hdr-book { display: block; width: max-content; height: 38px; border: 2px solid transparent; background: linear-gradient(180deg, #4aae4e 0%, #35943a 45%, #23812c 100%) padding-box; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 1px 2px rgba(255,255,255,.2), inset 0 -2px 4px rgba(0,50,0,.18); color: #fff; text-decoration: none; overflow: hidden; transition: filter .2s, transform .2s; }
.hdr-book:hover { filter: brightness(1.06); transform: translateY(-1px); }
.hdr-book > span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 0 13px; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1; color: #fff; }
.hdr-book--block { width: 100%; height: 46px; }
.hdr-burger { display: none; }

/* Account dropdown (logged in) */
.hdr-acct { position: relative; }
.hdr-acct__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(12, 45, 34, .2); padding: 8px; display: none; color: #1c1c1d; z-index: 70; }
.hdr-acct.open .hdr-acct__menu { display: block; }
.hdr-acct__hello { margin: 4px 10px 8px; font-size: 13px; color: #5c5e5e; }
.hdr-acct__menu a, .hdr-acct__menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: #1c1c1d; background: none; border: 0; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.hdr-acct__menu a:hover, .hdr-acct__menu button:hover { background: #f2f8f3; color: #35943a; }
.hdr-acct__menu form { margin: 0; border-top: 1px solid #edf0f0; margin-top: 4px; padding-top: 4px; }

/* ---------- Mega menu (white panel, like the Shopify theme) ---------- */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: inset 0 2px 4px rgba(0,0,0,.06), 0 24px 40px rgba(0,0,0,.08); padding: 9px 0 27px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; color: #1c1c1d; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1200px) { .has-mega:hover .mega { opacity: 1; visibility: visible; transform: none; } }
.mega__inner { display: flex; gap: 30px; padding: 0 15px; max-width: 100%; }
.mega__cols { flex: 0 0 75%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 22px; }
.mega__title { padding-bottom: 8px; }
.mega__title a { color: #1c1c1d; text-decoration: none; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.mega__title a:hover { color: #35943a; }
.mega__links { list-style: none; margin: 0; padding: 0; }
.mega__links a { display: inline-block; color: #1c1c1d; text-decoration: none; font-size: 14px; line-height: 22.4px; padding: 3px 0; transition: color .2s, transform .2s; }
.mega__links a:hover { color: #35943a; transform: translateX(3px); }
.mega__promo { flex: 1; max-width: 25%; padding-top: 16px; }
.mega__promo img { display: block; width: 100%; max-height: 330px; object-fit: contain; object-position: center bottom; }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); background: #fff; display: flex; flex-direction: column; overflow-y: auto; animation: drawer-in .25s ease; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e7e9f1; }
.drawer__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e7e9f1; background: #fff; color: #5c5e5e; cursor: pointer; display: grid; place-items: center; }
.drawer__nav { display: flex; flex-direction: column; padding: 8px 20px; }
.drawer__link { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid #f0f1f5; background: none; color: #5c5e5e; font-size: 16px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.drawer__sub { padding: 6px 0 10px 4px; border-bottom: 1px solid #f0f1f5; }
.drawer__group { padding: 8px 0; }
.drawer__group-title { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #1c1c1d; text-decoration: none; margin-bottom: 4px; }
.drawer__group a:not(.drawer__group-title) { display: block; padding: 6px 0; font-size: 14px; color: #1c1c1d; text-decoration: none; }
.drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 14px; border-top: 1px solid #e7e9f1; }
.drawer__phone { display: flex; align-items: center; justify-content: center; gap: 8px; color: #103b2b; font-weight: 700; text-decoration: none; }
body.drawer-open { overflow: hidden; }

/* Mobile "Call us" button and popup */
.hdr-call { position: relative; display: none; }
.hdr-call__btn { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(180deg, #4aae4e 0%, #35943a 45%, #23812c 100%); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.3), inset 0 1px 2px rgba(255,255,255,.2); cursor: pointer; }
.hdr-call__btn svg { width: 20px; height: 20px; }
.hdr-call__btn[aria-expanded="true"] { filter: brightness(1.08); }

/* "Call us" box: centred over the dimmed page (same layout as Fantastic Services) */
.call-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.call-modal__overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, .55); backdrop-filter: blur(1px); animation: call-fade .18s ease; }
.call-modal__box { position: relative; width: min(340px, 100%); background: #fff; border-radius: 14px; box-shadow: 0 10px 50px rgba(0, 0, 0, .22); padding: 34px 30px 30px; color: #394e66; animation: call-pop .2s ease; }
@keyframes call-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes call-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.call-modal__close { position: absolute; top: -12px; right: -12px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #d9dde3; background: #fff; color: #394e66; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.call-modal__close svg { width: 13px; height: 13px; }
.call-modal__row { display: flex; align-items: center; gap: 14px; padding-bottom: 24px; border-bottom: 1px solid #e3e7eb; text-decoration: none; -webkit-tap-highlight-color: rgba(53,148,58,.12); }
.call-modal__row:hover .call-modal__number { text-decoration: underline; text-underline-offset: 4px; }
.call-modal__icon { flex: none; width: 34px; color: #103b2b; display: grid; place-items: center; }
.call-modal__label { display: block; font-size: 17px; color: #394e66; line-height: 1.35; }
.call-modal__number { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; color: #35943a; text-decoration: none; letter-spacing: .01em; line-height: 1.25; }
.call-modal__skip { margin: 22px 0 16px; text-align: center; font-size: 17px; color: #394e66; }
.call-modal__book { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 10px; background: linear-gradient(180deg, #4aae4e 0%, #35943a 45%, #23812c 100%); color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.call-modal__book:hover { filter: brightness(1.06); }
body.call-open { overflow: hidden; }

@media (max-width: 1399px) { .hdr-book:not(.hdr-book--block) { display: none; } }
@media (max-width: 1199px) {
  .site-nav, .hdr-phone { display: none; }
  .hdr-burger { display: inline-flex; }
  .site-header__inner { height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
  .hdr-burger { justify-self: start; }
  .site-header__logo { width: 150px; height: 50px; }
  .site-header__logo img { width: 150px; height: 50px; }
  .site-header__right { margin-left: 0; gap: 6px; justify-self: end; }
  .hdr-call { display: block; }
  .site-header__right .hdr-icon { width: 44px; height: 44px; }
}

/* Generated sub-pages: keep the hero photo clear of the header */
@media (min-width: 761px) {
  .ghpr--gen .hero-visual > img, .ghpr--gen .hero-visual::after { inset: 112px -8vw 44px 0 !important; height: auto !important; }
  .ghpr--gen .hero-copy { padding-top: 130px !important; }
}

@media (max-width: 420px) {
  .site-header__inner { padding: 0 10px; }
  .site-header__logo, .site-header__logo img { width: 112px; height: 38px; }
  .site-header__right .hdr-icon, .hdr-burger { width: 40px; height: 40px; }
  .hdr-icon__circle { width: 38px; height: 38px; }
  .hdr-call__btn { width: 44px; height: 44px; }
}

/* ---------- Shared bits for Green Hub's own pages (account, legal, messages) ---------- */
.gh-band { background: linear-gradient(125deg, #0b2c1c, #185332); color: #fff; padding: 132px 0 56px; text-align: center; position: relative; overflow: hidden; }
.gh-band::before { content: ""; position: absolute; width: 640px; height: 640px; border: 1px solid #c3efbe20; left: -260px; bottom: -470px; border-radius: 50%; box-shadow: 0 0 0 70px #c3efbe08, 0 0 0 140px #c3efbe05; }
.gh-band__in { position: relative; width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.gh-band__kicker { display: block; font-size: 12px; letter-spacing: .13em; color: #a4ea9d; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; }
.gh-band h1 { color: #fff; font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 12px; }
.gh-band p { color: #dbeee0; font-size: 17px; max-width: 640px; margin: 0 auto; }
.gh-band--left { text-align: left; }
.gh-band--left p { margin: 0; }

.gh-prose { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; color: #173427; font-size: 16px; line-height: 1.8; }
.gh-prose h2 { font-size: 22px; font-weight: 800; color: #103321; letter-spacing: -.02em; margin: 34px 0 10px; }
.gh-prose ul { padding-left: 20px; }
.gh-prose a { color: #35943a; font-weight: 600; }
.gh-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.gh-prose th, .gh-prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e2ede4; }
.gh-prose th { background: #f2f8f3; color: #103321; }
.gh-draft { background: #fffaf0; border: 1px solid #e8dcc0; color: #766f63; border-radius: 10px; padding: 13px 16px; font-size: 14px; font-weight: 600; }
.gh-prose mark { background: #fff1b8; }

.gh-message { width: min(640px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 100px; text-align: center; color: #173427; }
.gh-message__icon { width: 76px; height: 76px; border-radius: 50%; background: #35943a; color: #fff; display: grid; place-items: center; margin: 0 auto 22px; font-size: 34px; }
.gh-message h2 { color: #103321; font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.gh-message p { color: #65776a; }
.gh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; padding: 13px 23px; font-size: 14px; font-weight: 800; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.gh-btn--primary { background: #35943a; color: #fff; }
.gh-btn--primary:hover { background: #2a7d30; }
.gh-btn--ghost { border-color: #cfe0d3; color: #173427; background: #fff; }
.gh-btn--ghost:hover { border-color: #35943a; color: #35943a; }
.gh-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
