/* ==========================================================
   Sub-Page Shared Styles (header, footer, base)
   Reuses home.css variables and components
   ========================================================== */

/* ====== CSS VARIABLES (match home.css) ====== */
:root {
  --deep-green:  #0d3b1f;
  --green-mid:   #1a6b3c;
  --gold:        #f7941d;
  --gold-light:  #fdb94d;
  --gold-glow:   rgba(247,148,29,.25);
  --earth-brown: #6b4226;
  --dark:        #0f0f0f;
  --dark-card:   #1a1a1a;
  --off-white:   #fafaf7;
  --text:        #3a3a3a;
  --text-muted:  #777;
  --white:       #fff;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 30px rgba(0,0,0,.08);
  --transition:  .35s cubic-bezier(.4,0,.2,1);
  --header-h:    70px;
  --font-body:   'Poppins', sans-serif;
  --font-head:   'Montserrat', sans-serif;
}

/* Override old header/nav to hide it */
#header { display: none !important; }
#mobile-nav, #mobile-nav-toggle, #mobile-body-overly { display: none !important; }

/* ====== BASE ====== */
body.sub-page {
  font-family: var(--font-body); color: var(--text);
  background: var(--off-white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

/* ============================================================
   HEADER (same as home)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1100;
  padding: 0 28px; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.site-header .logo img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text); text-decoration: none;
  padding: 8px 14px; border-radius: 6px; transition: var(--transition);
  position: relative;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.site-nav a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 2px;
  background: var(--gold); transition: width .3s, left .3s;
}
.site-nav a:hover::after, .site-nav a.active::after { width: 60%; left: 20%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; background: var(--gold); color: var(--white) !important;
  border-radius: 50px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; text-decoration: none;
  transition: var(--transition); border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px var(--gold-glow); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  width: 32px; height: 32px; background: none; border: none;
  cursor: pointer; padding: 0; z-index: 1200;
}
.hamburger span {
  display: block; width: 26px; height: 2.5px; border-radius: 2px;
  background: var(--dark); transition: var(--transition); margin: 3px 0;
}
.hamburger.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Offcanvas */
.offcanvas-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.offcanvas-overlay.show { opacity: 1; pointer-events: auto; }
.offcanvas-menu {
  position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw;
  height: 100vh; background: var(--dark); z-index: 1150;
  padding: 80px 30px 30px; overflow-y: auto;
  transition: right .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 4px;
}
.offcanvas-menu.open { right: 0; }
.offcanvas-menu a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.7); text-decoration: none;
  padding: 14px 16px; border-radius: var(--radius-sm);
  transition: var(--transition); display: block;
}
.offcanvas-menu a:hover, .offcanvas-menu a.active { color: var(--gold); background: rgba(255,255,255,.05); }
.offcanvas-menu .nav-cta {
  margin-top: 16px; text-align: center; justify-content: center;
  padding: 14px 22px; font-size: 14px;
}

@media (max-width: 991px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
}
@media (min-width: 992px) {
  .offcanvas-menu, .offcanvas-overlay { display: none !important; }
}

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--deep-green), #072712);
  color: var(--white); text-align: center; padding: 60px 0 40px;
}
.page-banner h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.5rem); margin-bottom: 8px;
}
.page-banner p { opacity: .65; font-size: 15px; }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.sub-content {
  padding: 60px 0; position: relative; z-index: 1;
}

/* ============================================================
   FOOTER (same as home)
   ============================================================ */
/* Hide old footer */
footer#footer { display: none !important; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--deep-green) 0%, #0a4420 60%, #072712 100%);
  color: #fff; text-align: center; padding: 90px 20px; margin-top: 40px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cg fill='rgba(255,255,255,0.04)'%3E%3Cpath d='M80 170c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm70 0c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm-35-28l-8-40h16l5 25 7-25h12l7 25 5-25h16l-8 40h-14l-7-26-7 26h-14zm-12-5l28-55h8l-28 55h-8z'/%3E%3Cpath d='M380 170c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm70 0c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm-35-28l-8-40h16l5 25 7-25h12l7 25 5-25h16l-8 40h-14l-7-26-7 26h-14zm-20-5l28-55h8l-28 55h-8z' transform='translate(50,-10) scale(0.85)'/%3E%3Cpath d='M700 170c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm70 0c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm-35-28l-8-40h16l5 25 7-25h12l7 25 5-25h16l-8 40h-14l-7-26-7 26h-14zm-15-5l28-55h8l-28 55h-8z' transform='translate(30,-15) scale(0.78)'/%3E%3Cpath d='M950 170c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm70 0c0-16.6 13.4-30 30-30s30 13.4 30 30-13.4 30-30 30-30-13.4-30-30zm-35-28l-8-40h16l5 25 7-25h12l7 25 5-25h16l-8 40h-14l-7-26-7 26h-14z' transform='translate(20,-5) scale(0.9)'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom center / 1200px auto;
  pointer-events: none;
}
.cta-banner::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  border: 2px solid rgba(255,255,255,.04); border-radius: 50%;
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 14px; }
.cta-banner p { font-size: 15px; opacity: .85; max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }

.hp-footer {
  background: var(--dark); color: rgba(255,255,255,.55);
  padding: 60px 0 0; position: relative; z-index: 1;
}
.hp-footer h4 {
  color: var(--white); font-family: var(--font-head);
  font-size: 15px; font-weight: 700; margin-bottom: 18px;
}
.hp-footer p { font-size: 14px; line-height: 1.7; text-align: left; }
.hp-footer a { color: var(--gold); text-decoration: none; }
.hp-footer a:hover { color: var(--gold-light); }
.hp-footer ul { list-style: none; padding: 0; margin: 0; }
.hp-footer ul li { margin-bottom: 8px; }
.hp-footer ul li a { color: rgba(255,255,255,.45); font-size: 14px; transition: color .2s; }
.hp-footer ul li a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); transition: var(--transition); font-size: 15px;
}
.footer-social a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 13px;
}
.footer-bottom .container { max-width: 100%; }
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: var(--gold-light); }

.contact-form-shell {
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form-layout .form-group { margin-bottom: 20px; }
.contact-form-layout input,
.contact-form-layout textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.contact-form-layout textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form-layout button {
  margin-top: 15px;
  padding: 12px 20px;
}

@media (max-width: 768px) {
  .contact-form-shell { padding: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btt {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; z-index: 999; text-decoration: none;
  opacity: 0; pointer-events: none; transition: var(--transition);
  box-shadow: 0 4px 16px var(--gold-glow);
}
.btt.show { opacity: 1; pointer-events: auto; }
.btt:hover { background: var(--gold-light); transform: translateY(-3px); }
