/*
Theme Name:   Netherwood Learning
Description:  Child theme for Netherwood Learning. Hello Elementor parent.
Author:       Netherwood Learning
Template:     hello-elementor
Version:      2.0.0
Text Domain:  netherwood
*/

/* ═══════════════════════════════════════════════════════════════
   GOOGLE FONTS
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Nunito:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   BRAND TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --nw-forest:  #2A6B40;
  --nw-deep:    #1A4228;
  --nw-dark:    #0F2918;
  --nw-bark:    #C8962A;
  --nw-bark-lt: #E8B84A;
  --nw-sage:    #6B9E7A;
  --nw-cream:   #F5F2ED;
  --nw-white:   #FFFFFF;
  --nw-gray:    #5C6B5E;
  --nw-gray-lt: #EAE8E3;
  --nw-text:    #1A2B1E;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Nunito', sans-serif;
  --r:          6px;
  --sh-sm:      0 2px 12px rgba(26,66,40,.08);
  --sh-md:      0 8px 32px rgba(26,66,40,.14);
  --sh-lg:      0 20px 56px rgba(26,66,40,.20);
  --t:          0.3s cubic-bezier(.4,0,.2,1);
  /* Elementor global colour sync */
  --e-global-color-primary:   #2A6B40;
  --e-global-color-secondary: #C8962A;
  --e-global-color-text:      #1A2B1E;
  --e-global-color-accent:    #1A4228;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans) !important;
  color: var(--nw-text);
  background: var(--nw-white);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6,
.elementor-heading-title {
  font-family: var(--serif) !important;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════════
   HIDE HELLO ELEMENTOR DEFAULT HEADER & FOOTER
   (We use our own header.php / footer.php)
═══════════════════════════════════════════════════════════════ */
.site-header.elementor-template,
.elementor-location-header,
.site-footer.elementor-template,
.elementor-location-footer { display: none !important; }

/* Hide WP page title "Home" text that appears above content */
.entry-title,
.page-title,
.site-content > .page > .entry-header,
h1.entry-title { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   LOGO — remove black box / white background
═══════════════════════════════════════════════════════════════ */
.nw-logo img,
.custom-logo,
.custom-logo-link img,
.site-logo img,
.elementor-widget-image img {
  background: transparent !important;
}
/* For logos on dark backgrounds use invert */
footer .nw-logo img,
footer .custom-logo {
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* ═══════════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════════ */
.nw-topbar {
  background: var(--nw-dark);
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  font-family: var(--sans);
  padding: 7px 0;
  position: relative;
  z-index: 1001;
}
.nw-topbar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-topbar a { color: rgba(255,255,255,.65); transition: color .2s; }
.nw-topbar a:hover { color: var(--nw-bark-lt); }
.nw-topbar-right { display: flex; align-items: center; gap: 18px; }

/* ═══════════════════════════════════════════════════════════════
   MAIN NAVBAR
═══════════════════════════════════════════════════════════════ */
.nw-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nw-white);
  box-shadow: var(--sh-sm);
  border-bottom: 2px solid var(--nw-gray-lt);
}
.nw-navbar .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nw-logo img { height: 48px; width: auto; }
.nw-logo a { display: flex; align-items: center; }

/* Nav links */
.nw-nav { display: flex; align-items: center; gap: 2px; }
.nw-nav a {
  padding: 8px 13px;
  border-radius: var(--r);
  font-size: .87rem;
  font-weight: 600;
  color: var(--nw-text);
  font-family: var(--sans);
  transition: var(--t);
  position: relative;
  white-space: nowrap;
}
.nw-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--nw-forest);
  border-radius: 1px;
  transition: var(--t);
}
.nw-nav a:hover,
.nw-nav a.current { color: var(--nw-forest); }
.nw-nav a:hover::after,
.nw-nav a.current::after { left: 13px; right: 13px; }
.nw-nav .nw-lms-btn {
  background: var(--nw-forest) !important;
  color: var(--nw-white) !important;
  margin-left: 6px;
  border-radius: var(--r) !important;
}
.nw-nav .nw-lms-btn:hover { background: var(--nw-deep) !important; }
.nw-nav .nw-lms-btn::after { display: none !important; }

/* Hamburger */
.nw-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nw-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--nw-forest);
  border-radius: 2px;
  transition: var(--t);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE TABS (secondary nav bar)
═══════════════════════════════════════════════════════════════ */
.nw-tabs {
  background: var(--nw-deep);
  border-bottom: 3px solid var(--nw-bark);
  overflow-x: auto;
  scrollbar-width: none;
}
.nw-tabs::-webkit-scrollbar { display: none; }
.nw-tabs .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
}
.nw-tabs a {
  padding: 13px 16px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-family: var(--sans);
  white-space: nowrap;
  transition: var(--t);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  text-decoration: none;
}
.nw-tabs a:hover { color: var(--nw-bark-lt); }
.nw-tabs a.current { color: var(--nw-bark-lt); border-bottom-color: var(--nw-bark); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.nw-footer {
  background: var(--nw-dark);
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  padding: 72px 0 0;
}
.nw-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
}
.nw-footer h5 {
  color: var(--nw-white);
  font-size: .82rem;
  font-weight: 800;
  font-family: var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.nw-footer-links { display: flex; flex-direction: column; gap: 9px; }
.nw-footer-links a {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: color .2s;
  font-family: var(--sans);
}
.nw-footer-links a:hover { color: var(--nw-bark-lt); }
.nw-footer-desc {
  font-size: .87rem;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
}
.nw-footer-social { display: flex; gap: 9px; margin-bottom: 18px; }
.nw-soc {
  width: 36px; height: 36px;
  border-radius: var(--r);
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: .78rem; font-weight: 800;
  transition: var(--t);
  font-family: var(--sans);
}
.nw-soc:hover { background: var(--nw-bark); color: var(--nw-deep); }
.nw-accred {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,150,42,.1);
  border: 1px solid rgba(200,150,42,.2);
  border-radius: var(--r);
  padding: 7px 12px;
  font-size: .72rem;
  color: var(--nw-bark-lt);
  margin-top: 16px;
}
.nw-fci { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.nw-fci-ic { color: var(--nw-bark); font-size: .9rem; flex-shrink: 0; margin-top: 2px; }
.nw-fci-tx { font-size: .83rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.nw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.nw-footer-bottom p { font-size: .79rem; color: rgba(255,255,255,.3); }
.nw-footer-btm-links { display: flex; gap: 18px; }
.nw-footer-btm-links a { font-size: .79rem; color: rgba(255,255,255,.3); transition: color .2s; }
.nw-footer-btm-links a:hover { color: var(--nw-bark-lt); }

/* ═══════════════════════════════════════════════════════════════
   ELEMENTOR CONTENT AREA — push below sticky header
═══════════════════════════════════════════════════════════════ */
.elementor-page .site-content,
#content,
.page-content { margin-top: 0 !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nw-topbar .wrap { flex-direction: column; gap: 4px; text-align: center; }
  .nw-nav { display: none; flex-direction: column; width: 100%; }
  .nw-nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--nw-white);
    padding: 16px 24px;
    box-shadow: var(--sh-md);
    z-index: 999;
  }
  .nw-burger { display: flex; }
  .nw-footer-grid { grid-template-columns: 1fr; }
  .nw-tabs a { padding: 11px 11px; font-size: .68rem; }
}
@media (max-width: 480px) {
  .nw-topbar-right { flex-direction: column; gap: 4px; }
  .nw-logo img { height: 38px; }
}
