/* ============================================================
   TREETOP BUSINESS SOLUTIONS -- Shared Stylesheet
   styles.css
   ============================================================ */

/* -- TOKENS -- */
:root {
  --green:     #0A2922;
  --green-mid: #0d3830;
  --gold:      #CFB87D;
  --gold-light:#e2d0a2;
  --white:     #FFFFFF;
  --cream:     #F8F5EF;
  --text:      #1a1a1a;
  --text-mid:  #4a4a4a;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', sans-serif;
}

/* -- RESET -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* -- NAV -- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: 110px;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: var(--green);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
nav.solid {
  background: var(--green);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.792rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-cta {
  font-size: 0.748rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green) !important;
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* -- HAMBURGER / MOBILE MENU -- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 110px; left: 0; right: 0;
  background: var(--green);
  padding: 24px 5% 32px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.935rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.mobile-menu .nav-cta {
  display: inline-block;
  margin-top: 8px;
  text-align: center;
}

/* -- PAGE HEADER (inner pages) -- */
.page-header {
  background: var(--green);
  padding: 160px 4% 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 90% 50%, rgba(207,184,125,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}
.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.page-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.page-eyebrow span {
  font-size: 0.715rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(3.08rem, 5.5vw, 4.84rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}
.page-title em { font-style: italic; color: var(--gold); }

/* -- SHARED SECTION LABELS -- */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.section-label-line { width: 30px; height: 1px; background: var(--gold); }
.section-label span {
  font-size: 0.682rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.section-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.85vw, 3.3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: 20px;
}
.section-headline em { font-style: italic; }

/* -- BUTTONS -- */
.btn-primary {
  display: inline-block;
  font-size: 0.77rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  background: var(--gold);
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(207,184,125,0.25);
}
.btn-outline {
  display: inline-block;
  font-size: 0.748rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost::after { content: '→'; font-size: 0.99rem; transition: transform 0.2s; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* -- FOOTER -- */
footer {
  background: var(--green);
  padding: 64px 4% 32px;
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand p {
  font-size: 0.913rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.682rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.902rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col address a,
.footer-col address span {
  font-size: 0.902rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col address a:hover { color: var(--gold); }
.footer-bbb-seal {
  height: 52px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
  margin-top: 4px;
}
.footer-col a:has(.footer-bbb-seal):hover .footer-bbb-seal { opacity: 1; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.792rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.footer-bottom a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* -- ANIMATIONS -- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* -- SCROLL REVEAL -- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -- RESPONSIVE -- */
@media (max-width: 768px) {
  nav { padding: 0 5%; }
  .page-header { padding: 140px 5% 60px; }
  footer { padding: 48px 5% 24px; }
  .mobile-menu { padding: 24px 5% 32px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .trust-divider { display: none; }
  .trust-inner { justify-content: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* -- BACK TO TOP -- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  border: 1.5px solid rgba(207,184,125,0.35);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--green);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* -- FLOATING SIDE BUTTON -- */
.float-side-btn {
  position: fixed;
  right: -108px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: var(--gold);
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 4px 0 0 4px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  transition: right 0.3s ease, background 0.2s;
  box-shadow: -3px 0 16px rgba(0,0,0,0.15);
}
.float-side-btn.visible {
  right: 0;
}
.float-side-btn:hover {
  background: var(--gold-light);
}

@media (max-width: 600px) {
  .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
  .float-side-btn { display: none; }
}
