/*
Theme Name: Greenwoods Dental
Theme URI: https://greenwoodsdental.ca
Author: Donald Obi
Description: Custom theme for Greenwoods Dental & Surgical Centres
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: greenwoods
*/

/* ==========================================================
   GOOGLE FONTS
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Poppins:wght@400;500;600;700&display=swap');

/* ==========================================================
   DESIGN TOKENS
   ========================================================== */
:root {
  --green-main:    #61B247;
  --green-top:     #559F3F;
  --green-forest:  #046937;
  --green-light:   #edf7e7;
  --green-mid:     #c8eab5;
  --white:         #ffffff;
  --off-white:     #f7faf5;
  --text-primary:  #1a1a1a;
  --text-secondary:#4a5568;
  --text-muted:    #718096;
  --border:        #e8f0e3;

  --font:          'DM Sans', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-head:     'Poppins', sans-serif;

  --topbar-h:      40px;
  --menubar-h:     72px;
  --tabbar-h:      40px;
  --mob-bar-h:     60px;

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.10), 0 3px 10px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(70,160,50,0.15), 0 4px 16px rgba(0,0,0,0.08);

  --max-w:      1200px;
  --sidebar-w:  300px;
}

/* ==========================================================
   RESET / BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font-body);
  font-size: 15px;
  color: #1a1a1a;
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; }

/* ==========================================================
   TOP BAR (desktop + tablet shared base)
   ========================================================== */
#topbar {
  background: var(--green-top);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 4%;
  position: relative;
  z-index: 1000;
}
.topbar-left { display: flex; align-items: center; flex-shrink: 0; }

.topbar-rotating {
  background: rgba(4,105,55,0.20);
  border-radius: 6px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 28px;
  min-width: 345px;
  position: relative;
  overflow: hidden;
}
.rotating-slot {
  position: absolute;
  left: 12px; right: 12px;
  display: flex; align-items: center; gap: 7px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  white-space: nowrap;
}
.rotating-slot.active { opacity: 1; transform: translateY(0); }
.rotating-slot .loc-name  { color: var(--white); font-size: 12px; font-weight: 600; }
.rotating-slot .sep       { color: rgba(255,255,255,0.38); font-size: 11px; margin: 0 2px; }
.rotating-slot .loc-time  { color: rgba(255,255,255,0.85); font-size: 12px; }

.topbar-center {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.tb-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--white); font-size: 12.5px; font-weight: 400;
  padding: 0 10px; height: 28px; border-radius: 4px;
  transition: background 0.18s; white-space: nowrap;
}
.tb-link:hover { background: rgba(255,255,255,0.12); }
.tb-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.25); flex-shrink: 0; }
.tb-refer {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--white); font-size: 12.5px; font-weight: 500;
  padding: 0 10px; height: 28px; border-radius: 4px;
  transition: background 0.18s; white-space: nowrap; flex-shrink: 0;
}
.tb-refer:hover { background: rgba(255,255,255,0.12); }
.tb-refer img { width: 16px; height: 16px; flex-shrink: 0; }
.tb-refer-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.28);
  color: var(--white); padding: 2px 6px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}
.topbar-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; padding-left: 12px; }

/* Location selector */
.loc-selector {
  display: flex; align-items: center; gap: 6px;
  background: rgba(4,105,55,0.20); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px; padding: 0 10px; height: 28px;
  color: var(--white); font-size: 12px; font-weight: 500;
  cursor: pointer; position: relative; transition: background 0.18s; user-select: none;
}
.loc-selector:hover { background: rgba(4,105,55,0.38); }
.loc-selector .chevron { transition: transform 0.2s; }
.loc-selector.open .chevron { transform: rotate(180deg); }
.loc-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15); min-width: 235px;
  overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s; z-index: 2000;
}
.loc-selector.open .loc-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.loc-dropdown-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #999; padding: 10px 14px 3px;
}
.loc-dropdown a { display: block; padding: 8px 14px; font-size: 13px; color: #222; transition: background 0.15s, color 0.15s; }
.loc-dropdown a:hover { background: #f0f9eb; color: var(--green-forest); }
.loc-dropdown-sep { height: 1px; background: #eee; margin: 4px 0; }

/* ==========================================================
   LOGO BAR / MAIN MENU
   ========================================================== */
#menubar {
  background: var(--green-main);
  height: calc(var(--menubar-h) + 20px);
  display: flex; align-items: center;
  padding: 0 4%;
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 14px rgba(0,0,0,0.14);
  overflow: visible;
}

.menubar-leaves {
  position: absolute; right: 0;
  bottom: -5px;
  width: auto;
  pointer-events: none; overflow: visible; z-index: 0;
}
.menubar-leaves img { height: 100%; width: auto; object-fit: contain; object-position: right center; display: inline !important; }

.three-pillars {
  font-size: 11.5px; color: rgba(255,255,255,0.82); margin-top: 4px;
  display: flex; align-items: center; gap: 6px; height: 16px; position: relative;
}
.three-pillars .pillar-prefix {
  font-weight: 500; color: rgba(255,255,255,0.6); white-space: nowrap; flex-shrink: 0;
}
.pillar-arrow { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.pillar-text-wrap { position: relative; overflow: hidden; height: 18px; min-width: 140px; }
.pillar-slot {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-weight: 600; color: rgba(255,255,255,0.92); white-space: nowrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pillar-slot.active { opacity: 1; transform: translateY(0); }

.logo-col {
  display: flex; flex-direction: column; justify-content: center;
  margin-right: 32px; flex-shrink: 0; position: relative; z-index: 1;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-wrapper {
  width: 52px; height: 52px;
  perspective: 1000px;
  filter: drop-shadow(0 4px 6px rgba(4, 55, 30, 0.15));
  flex-shrink: 0;
}
.rotating-icon {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: rotateYPartial 6s ease-in-out infinite;
}
.rotating-icon img {
  width: 100%; height: 100%;
  backface-visibility: hidden;
  transform: translateZ(10px);
  background-color: #ffffff;
  border-radius: 9px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.012);
  display: block;
}
.rotating-icon::after {
  content: "";
  position: absolute; inset: 0;
  background: #ffffff;
  border-radius: 9px;
  z-index: -1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
@keyframes rotateYPartial {
  0%   { transform: rotateY(-75deg); }
  50%  { transform: rotateY(75deg); }
  100% { transform: rotateY(-75deg); }
}
.logo-wordmark { flex: 1; max-width: 200px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.1)); }
.logo-wordmark img { display: block; width: 100%; height: auto; }

/* Main nav */
.main-nav {
  display: flex; align-items: center; gap: 0;
  flex: 1; justify-content: center;
}
.nav-item { position: relative; }
.nav-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0 13px; height: calc(var(--menubar-h) + 20px);
  color: var(--white); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.01em; background: none;
  transition: background 0.16s; white-space: nowrap;
}
.nav-btn:hover { background: rgba(0,0,0,0.1); }
.nav-item.open > .nav-btn { background: rgba(0,0,0,0.1); }
.nav-chevron { width: 14px; height: 14px; opacity: 0.75; transition: transform 0.2s; }
.nav-item.open > .nav-btn .nav-chevron { transform: rotate(180deg); }

.menubar-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 1; }
.btn-phone {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 7px; padding: 0 16px; height: 40px;
  color: var(--white); font-size: 14px; font-weight: 600;
  transition: background 0.18s, border-color 0.18s; white-space: nowrap;
}
.btn-phone:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
.btn-book {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-forest); border-radius: 7px;
  padding: 0 20px; height: 40px;
  color: var(--white); font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.18s, transform 0.15s; white-space: nowrap;
}
.btn-book:hover { background: #035228; transform: translateY(-1px); }

/* ==========================================================
   DROPDOWN / MEGA MENUS
   ========================================================== */
.dropdown-panel {
  position: fixed; left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 990;
  border-top: 3px solid var(--green-main);
}
.nav-item.open .dropdown-panel { opacity: 1; pointer-events: all; transform: translateY(0); }

.simple-dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  min-width: 210px; padding: 8px 0;
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 990; border-top: 3px solid var(--green-main);
}
.nav-item.open .simple-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.simple-dropdown a {
  display: block; padding: 9px 20px; font-size: 14px; color: #222;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}
.simple-dropdown a:hover { background: #f0f9eb; color: var(--green-forest); padding-left: 26px; }

/* Services mega */
.mega-services {
  padding: 36px 4% 32px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
}
.mega-col { padding: 0 0 0 28px; border-left: 1px solid #eef0ec; }
.mega-col:first-child { padding-left: 0; border-left: none; }
.mega-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-forest); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--green-main); display: inline-block;
}
.mega-col ul li { margin-bottom: 1px; }
.mega-col ul li a {
  display: block; padding: 6px 0; font-size: 13.5px; color: #333;
  transition: color 0.15s, padding-left 0.15s; line-height: 1.35;
}
.mega-col ul li a:hover { color: var(--green-forest); padding-left: 6px; }

/* Locations mega */
.mega-locations { padding: 36px 4% 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mega-loc-col { padding: 0 40px 0 0; border-right: 1px solid #eef0ec; }
.mega-loc-col:last-child { border-right: none; padding-left: 40px; padding-right: 0; }
.mega-loc-col:first-child { padding-left: 0; }
.mega-loc-col ul li a { display: block; padding: 7px 0; font-size: 14px; color: #333; transition: color 0.15s, padding-left 0.15s; }
.mega-loc-col ul li a:hover { color: var(--green-forest); padding-left: 6px; }

/* Sleep mega */
.mega-sleep { padding: 36px 4% 32px; display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.sleep-intro h3 { font-size: 18px; font-weight: 600; color: var(--green-forest); margin-bottom: 8px; }
.sleep-intro p { font-size: 13.5px; color: #555; line-height: 1.65; }
.sleep-options { display: flex; gap: 16px; }
.sleep-card {
  flex: 1; background: #f6faf3; border: 1.5px solid #ddefd5;
  border-radius: 10px; padding: 20px 18px; display: block;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.sleep-card:hover { border-color: var(--green-main); box-shadow: 0 4px 18px rgba(97,178,71,0.18); transform: translateY(-2px); }
.sleep-card-icon { width: 36px; height: 36px; background: var(--green-main); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.sleep-card h4 { font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.sleep-card p { font-size: 12.5px; color: #666; line-height: 1.5; }

/* Hover bridge */
.nav-item::after {
  content: ''; position: absolute; left: 0; right: 0;
  top: 100%; height: 8px;
  display: block;
}
#menu-overlay { position: fixed; inset: 0; z-index: 988; display: none; }
#menu-overlay.active { display: block; }

/* ==========================================================
   MOBILE TOP BAR
   ========================================================== */
#mob-topbar {
  display: none; background: var(--green-top); height: 44px;
  align-items: center; padding: 0 14px; gap: 8px;
  position: sticky; top: 0; z-index: 1000;
}
.mob-topbar-left { flex: 1; overflow: hidden; }
.mob-rotating { display: flex; align-items: center; height: 28px; position: relative; overflow: hidden; }
.mob-rotating-slot {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s; white-space: nowrap;
}
.mob-rotating-slot.active { opacity: 1; transform: translateY(0); }
.mob-rotating-slot .m-loc  { font-size: 11.5px; font-weight: 600; color: var(--white); }
.mob-rotating-slot .m-time { font-size: 11px; color: rgba(255,255,255,0.82); }
.mob-rotating-slot .m-sep  { color: rgba(255,255,255,0.38); margin: 0 2px; }

.mob-loc-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(4,105,55,0.28); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px; padding: 4px 8px; color: var(--white);
  font-size: 11.5px; font-weight: 500; cursor: pointer; flex-shrink: 0;
  position: relative; user-select: none;
}
.mob-loc-btn .mob-loc-chevron { transition: transform 0.2s; }
.mob-loc-btn.open .mob-loc-chevron { transform: rotate(180deg); }
.mob-loc-dropdown {
  position: absolute; top: calc(100% + 4px); right: 0;
  background: var(--white); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); min-width: 210px;
  overflow: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity 0.2s, transform 0.2s; z-index: 3000;
}
.mob-loc-btn.open .mob-loc-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.mob-loc-dropdown .loc-dropdown-group-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #999; padding: 8px 12px 3px; }
.mob-loc-dropdown a { display: block; padding: 8px 12px; font-size: 13px; color: #222; transition: background 0.15s; }
.mob-loc-dropdown a:hover { background: #f0f9eb; color: var(--green-forest); }
.mob-loc-dropdown .loc-dropdown-sep { height: 1px; background: #eee; margin: 3px 0; }

/* ==========================================================
   MOBILE LOGO BAR
   ========================================================== */
#mob-logobar {
  display: none; background: var(--green-main);
  padding: 10px 16px 12px; align-items: flex-start;
  justify-content: space-between;
  position: relative; overflow: hidden;
  flex-direction: row;
}
.mob-logo-col {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; position: relative; z-index: 1;
}
.mob-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-icon-wrapper {
  width: 54px; height: 54px;
  perspective: 1000px;
  filter: drop-shadow(0 3px 5px rgba(4, 55, 30, 0.15));
  flex-shrink: 0;
}
.mob-rotating-icon {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: rotateYPartial 6s ease-in-out infinite;
}
.mob-rotating-icon img {
  width: 100%; height: 100%;
  backface-visibility: hidden;
  transform: translateZ(8px);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  display: block;
}
.mob-rotating-icon::after {
  content: "";
  position: absolute; inset: 0;
  background: #ffffff;
  border-radius: 8px;
  z-index: -1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.mob-logo-wordmark { max-width: 250px; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.1)); }
.mob-logo-wordmark img { display: block; width: 100%; height: auto; }
.mob-three-pillars {
  font-size: 11px; color: rgba(255,255,255,0.82);
  display: flex; align-items: center; gap: 5px; height: 15px;
}
.mob-three-pillars .pillar-prefix {
  font-weight: 500; color: rgba(255,255,255,0.6); white-space: nowrap; flex-shrink: 0;
}
.mob-pillar-arrow { color: rgba(255,255,255,0.5); flex-shrink: 0; }
.mob-pillar-text-wrap { position: relative; overflow: hidden; height: 15px; min-width: 120px; }
.mob-pillar-slot {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-weight: 600; color: rgba(255,255,255,0.92); white-space: nowrap;
  opacity: 0; transform: translateY(7px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mob-pillar-slot.active { opacity: 1; transform: translateY(0); }
.mob-logobar-hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(0,0,0,0.12); border-radius: 7px;
  color: var(--white); border: none; cursor: pointer;
  position: relative; z-index: 1; align-self: center;
}
#mob-logobar .mob-leaves {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
#mob-logobar .mob-leaves img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* ==========================================================
   MOBILE BOTTOM BAR
   ========================================================== */
#mob-bottombar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--green-main); height: var(--mob-bar-h);
  align-items: center; z-index: 1000; box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.mob-menu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 72px; height: var(--mob-bar-h);
  color: var(--white); font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
}
.mob-book-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--mob-bar-h); background: var(--green-forest);
  color: var(--white); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.mob-call-btn {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: var(--mob-bar-h); color: var(--white); background: rgba(0,0,0,0.12);
}

/* ==========================================================
   SIDEBAR
   ========================================================== */
#sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#sidebar-overlay.open { opacity: 1; pointer-events: all; }

#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(85vw, 340px); background: var(--green-forest);
  z-index: 1200; display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
#sidebar.open { transform: translateX(0); }

.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-shrink: 0;
}
.sidebar-header img.sb-logo { height: 36px; }
.sidebar-close {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 6px; flex-shrink: 0;
}
.sidebar-close img { width: 18px; height: 18px; }

.sb-nav { flex: 1; overflow-y: auto; padding: 6px 0; }
.sb-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.sb-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 52px; padding: 0 20px;
  color: var(--white); font-size: 15.5px; font-weight: 500;
  background: none; text-align: left; transition: background 0.15s;
}
.sb-row:hover { background: rgba(255,255,255,0.07); }
.sb-row-label { display: flex; align-items: center; gap: 10px; }
.sb-arrow { transition: transform 0.2s; opacity: 0.5; }

.sb-utility { padding: 6px 0 4px; border-top: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.sb-utility a, .sb-utility button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 20px; color: rgba(255,255,255,0.82); font-size: 14.5px;
  font-weight: 400; text-align: left; transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.06); background: none;
}
.sb-utility a:hover, .sb-utility button:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.refer-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24);
  color: rgba(255,255,255,0.85); padding: 2px 6px; border-radius: 3px; margin-left: auto;
}

.sb-cta { padding: 14px 20px 28px; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.sb-cta-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 8px; color: var(--white); font-size: 14px; font-weight: 600; transition: background 0.18s;
}
.sb-cta-call:hover { background: rgba(255,255,255,0.18); }
.sb-cta-book {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; background: var(--green-main); border-radius: 8px;
  color: var(--white); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; transition: background 0.18s;
}
.sb-cta-book:hover { background: #72c458; }

/* Sub-panels */
.sb-sub {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--green-forest);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; z-index: 10; display: flex; flex-direction: column;
}
.sb-sub.open { transform: translateX(0); }
.sb-sub-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.12); flex-shrink: 0;
}
.sb-sub-back {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1); border-radius: 6px; color: var(--white); flex-shrink: 0;
}
.sb-sub-title { font-size: 15px; font-weight: 600; color: var(--white); }

.sb-sub-section { padding: 0; }
.sb-section-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 15px 20px 13px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; color: rgba(255,255,255,0.55);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.15s;
}
.sb-section-toggle:hover { background: rgba(255,255,255,0.09); }
.sb-section-toggle svg { transition: transform 0.2s; opacity: 0.5; }
.sb-section-toggle.section-open svg { transform: rotate(180deg); }

.sb-section-links { max-height: 0; overflow: hidden; transition: max-height 0.32s cubic-bezier(0.4,0,0.2,1); }
.sb-section-links.open { max-height: 600px; }
.sb-section-links a {
  display: flex; align-items: center;
  padding: 10px 20px 10px 28px; font-size: 14.5px; color: rgba(255,255,255,0.88);
  font-weight: 400; transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sb-section-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.sb-sub-section-plain { padding: 10px 0 2px; }
.sb-sub-section-plain a {
  display: flex; align-items: center;
  padding: 10px 20px; font-size: 14.5px; color: rgba(255,255,255,0.88);
  font-weight: 400; transition: background 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sb-sub-section-plain a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* ==========================================================
   TABLET NAV ROW
   ========================================================== */
#tab-navrow {
  display: none;
  background: var(--green-top);
  height: calc(var(--menubar-h) - 28px);
  align-items: center;
  justify-content: center;
  padding: 0 3%;
  gap: 0;
  position: sticky;
  top: var(--menubar-h);
  z-index: 998;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#tab-navrow .nav-item { position: relative; }
#tab-navrow .nav-btn {
  height: calc(var(--menubar-h) - 28px);
  font-size: 14px; padding: 0 14px;
}

/* ==========================================================
   FOOTER STYLES
   ========================================================== */
footer {
  position: relative;
  background-color: #000;
  color: white;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.footer-background {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(4,105,55,0.90), rgba(4,105,55,0.90)), url("https://file.greenwoodsdental.com/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.footer-content { position: relative; z-index: 10; }
.footer-main { padding: 2rem 1rem; }
.collapsible-sections { display: block; }
.section-item { border-bottom: 1px solid rgba(255,255,255,0.2); }
.section-button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; background: none; border: none;
  color: white; cursor: pointer; text-align: left;
  font-family: 'Poppins', sans-serif;
}
.section-title { font-weight: 700; font-size: 17px; }
.chevron-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  filter: brightness(0) invert(1); transition: transform 0.3s;
}
.section-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.section-content.open { max-height: 1000px; padding-bottom: 1rem; }
.section-content ul { list-style: none; }
.section-content li { margin-bottom: 0.75rem; }
.section-content a { color: white; text-decoration: none; font-size: 14px; opacity: 0.75; transition: opacity 0.2s; }
.section-content a:hover { opacity: 1; }
.desktop-grid { display: none; }
.footer-divider { padding: 0 1rem; }
.divider-line { border-top: 0; border-color: rgba(255,255,255,0.2); }
.footer-bottom { padding: 1.5rem 1rem; }
.bottom-content { display: flex; flex-direction: column; gap: 1.5rem; }
footer .logo-container svg { width: 280px; height: auto; }
.privacy-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 13px;
}
.privacy-links a { color: white; text-decoration: none; transition: opacity 0.2s; }
.privacy-links a:hover { opacity: 0.75; }
.privacy-links .separator { display: none; }
.social-icons { display: flex; gap: 0.6rem; }
.social-icon { width: 33px; height: auto; color: white; }
.copyright-bar { background-color: #61b247; padding: 1rem; font-family: 'Poppins', sans-serif; }
.copyright-bar p { font-size: 15px; }

/* ==========================================================
   BREADCRUMB
   ========================================================== */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-bar .inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--green-forest); font-weight: 500; transition: color 0.18s; }
.breadcrumb-bar a:hover { color: var(--green-main); }
.breadcrumb-bar .sep { color: var(--border); font-size: 16px; }
.breadcrumb-bar .current { color: var(--text-secondary); font-weight: 500; }
.breadcrumb-bar svg { color: var(--green-forest); }

/* ==========================================================
   PAGE WRAPPER & SIDEBAR WIDGET LAYOUT
   ========================================================== */
.page-wrap {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px 24px 60px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
}
.page-wrap.full-width { grid-template-columns: 1fr; }

.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.widget-head {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.widget-head h3 {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-forest);
}
.widget-head .widget-icon {
  width: 28px; height: 28px; background: var(--green-light);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.widget-body { padding: 16px 20px; }

/* Search widget */
.search-form {
  display: flex; gap: 0; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.2s;
}
.search-form:focus-within { border-color: var(--green-main); }
.search-form input {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-family: var(--font-body); font-size: 14px;
  color: var(--text-primary); background: transparent;
}
.search-form button {
  width: 42px; background: var(--green-main); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: white; transition: background 0.18s;
}
.search-form button:hover { background: var(--green-forest); }

/* Category pills */
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
  transition: background 0.16s, color 0.16s; cursor: pointer;
}
.cat-item:hover { background: var(--green-light); color: var(--green-forest); }
.cat-item .cat-count {
  font-size: 11px; font-weight: 700; background: var(--green-light);
  color: var(--green-forest); padding: 2px 7px; border-radius: 20px;
}
.cat-item:hover .cat-count { background: var(--green-mid); }

/* Service links widget */
.service-links { display: flex; flex-direction: column; }
.service-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-secondary); font-weight: 500;
  transition: color 0.16s, padding-left 0.16s;
}
.service-link:last-child { border-bottom: none; }
.service-link:hover { color: var(--green-forest); padding-left: 6px; }
.service-link svg { opacity: 0.35; transition: opacity 0.16s; }
.service-link:hover svg { opacity: 1; }

/* Recent posts widget */
.recent-post-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.recent-post-item:last-child { border-bottom: none; }
.recent-thumb {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--green-light);
}
.recent-post-text { flex: 1; min-width: 0; }
.recent-post-text a {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.16s;
}
.recent-post-text a:hover { color: var(--green-forest); }
.recent-post-date { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }

/* CTA widget */
.cta-widget {
  background: linear-gradient(135deg, var(--green-forest) 0%, #035228 100%);
  border-radius: var(--radius-lg); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.cta-widget .cta-icon {
  width: 52px; height: 52px; background: rgba(255,255,255,0.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.cta-widget h3 {
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: white; margin-bottom: 8px; line-height: 1.3;
}
.cta-widget p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.55; margin-bottom: 18px; }
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px; background: var(--green-main);
  color: white; border: none; border-radius: var(--radius-md);
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: background 0.18s, transform 0.15s; text-decoration: none;
}
.cta-btn:hover { background: #72c458; transform: translateY(-1px); }
.cta-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 20px; background: transparent;
  color: white; border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md); font-family: var(--font-head);
  font-size: 13px; font-weight: 600; margin-top: 10px;
  cursor: pointer; transition: background 0.18s, border-color 0.18s; text-decoration: none;
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ==========================================================
   POST CARD (shared by archive + search)
   ========================================================== */
.post-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.post-card-thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--green-light); }
.post-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-cat-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--green-forest); background: var(--green-light); padding: 3px 10px; border-radius: 20px;
}
.post-date { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.post-card-title {
  font-family: var(--font-head); font-size: 18px; font-weight: 600;
  color: var(--text-primary); line-height: 1.35; margin-bottom: 10px; transition: color 0.16s;
}
.post-card:hover .post-card-title { color: var(--green-forest); }
.post-card-excerpt {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--green-forest);
  transition: gap 0.18s, color 0.18s;
}
.read-more:hover { gap: 10px; color: var(--green-main); }
.read-time { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ==========================================================
   PAGINATION
   ========================================================== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 40px 0 0;
}
.page-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: background 0.16s, color 0.16s, border-color 0.16s; text-decoration: none;
}
.page-btn:hover { background: var(--green-light); color: var(--green-forest); border-color: var(--green-mid); }
.page-btn.active { background: var(--green-forest); color: white; border-color: var(--green-forest); }
.page-btn.page-next, .page-btn.page-prev {
  width: auto; padding: 0 14px; gap: 6px;
  display: inline-flex; align-items: center;
}

/* ==========================================================
   SERVICES ARCHIVE
   ========================================================== */
.services-archive-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.sa-hero {
  text-align: center;
  margin-bottom: 40px;
}
.sa-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--green-forest);
  margin-bottom: 12px;
}
.sa-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.sa-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 36px;
}
.sa-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  transition: border-color 0.2s;
  box-shadow: var(--shadow-sm);
}
.sa-search:focus-within { border-color: var(--green-main); }
.sa-search input {
  flex: 1; padding: 11px 14px;
  border: none; outline: none;
  font-family: var(--font-body); font-size: 14px; color: var(--text-primary);
  background: transparent;
}
.sa-search button {
  width: 44px; background: var(--green-main); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: white; transition: background 0.18s; align-self: stretch;
}
.sa-search button:hover { background: var(--green-forest); }
.sa-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; flex: 1;
}
.sa-tab {
  padding: 8px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: var(--white); color: var(--text-secondary);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all 0.18s;
  box-shadow: var(--shadow-sm);
}
.sa-tab:hover { background: var(--green-light); color: var(--green-forest); border-color: var(--green-mid); }
.sa-tab.active { background: var(--green-forest); color: white; border-color: var(--green-forest); }

.sa-category-section { margin-bottom: 52px; }
.sa-category-title {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-forest);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-main);
  display: inline-block;
}
.sa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.sa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px 20px 20px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 14px;
  text-decoration: none;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  border: 1.5px solid transparent;
}
.sa-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--green-mid);
}
.sa-card-icon {
  width: 64px; height: 64px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sa-card-icon img { width: 40px; height: 40px; object-fit: contain; }
.sa-card-name {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color 0.16s;
}
.sa-card:hover .sa-card-name { color: var(--green-forest); }
.sa-card-excerpt {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.55;
}
.sa-card-arrow {
  margin-top: auto; color: var(--green-main);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}
.sa-card:hover .sa-card-arrow { opacity: 1; transform: translateX(0); }
.sa-no-results {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 16px;
  display: none;
}
.sa-no-results.visible { display: block; }

/* ==========================================================
   BREAKPOINTS
   ========================================================== */

/* Mobile < 768px */
@media (max-width: 767px) {
  #topbar   { display: none; }
  #menubar  { display: none; }
  #mob-topbar    { display: flex; }
  #mob-logobar   { display: flex; }
  #mob-bottombar { display: flex; }
  .page-body { padding-bottom: calc(var(--mob-bar-h) + 20px); }
  footer { padding-bottom: 60px; }
  .footer-divider { display: none; }
  footer .logo-container img { width: 280px; height: auto; }
  .section-title { font-weight: 500; font-size: 16px; }
}

/* Tablet 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  #menubar { box-shadow: none; }
  #mob-topbar    { display: none; }
  #mob-logobar   { display: none; }
  #mob-bottombar { display: none; }
  #topbar { display: flex; padding: 0 3%; }
  .topbar-rotating { min-width: 345px; }
  .topbar-center { flex: 1; justify-content: center; gap: 6px; }
  .tb-email-link  { display: none !important; }
  .tb-refer-tb    { display: none !important; }
  .tb-divider.tab-hide { display: none !important; }
  .topbar-right { padding-left: 8px; }
  #menubar { display: flex; padding: 0 3%; position: sticky; top: 0; }
  .logo-col { margin-right: 0; }
  .logo-wrap img { width: 190px; }
  .btn-phone { display: flex; }
  .btn-book  { padding: 0 14px; font-size: 12.5px; }
  .main-nav { display: none; }
  .menubar-cta { margin-left: auto; }
  #tab-navrow { display: flex; }
  .three-pillars { display: flex; }
  .menubar-leaves { display: block; }
  .footer-main { padding: 3rem 1.5rem; }
  footer .logo-container svg { width: 280px; }
  .social-icon { width: 30px; }
}

/* Small laptop 1024–1239px */
@media (min-width: 1024px) and (max-width: 1239px) {
  #mob-topbar    { display: none; }
  #mob-logobar   { display: none; }
  #mob-bottombar { display: none; }
  #tab-navrow    { display: none; }
  #topbar  { display: flex; padding: 0 3%; }
  #menubar { display: flex; padding: 0 3%; }
  .tb-email-link { display: none !important; }
  .tb-divider.desktop-only { display: none !important; }
  .topbar-center { flex: 1; justify-content: center; }
  .logo-wrap img { width: 200px; }
  .nav-btn { padding: 0 9px; font-size: 13px; }
  .btn-phone { display: none; }
  .btn-book  { padding: 0 16px; font-size: 13px; }
  .main-nav { display: flex; }
  .three-pillars { display: flex; }
  .menubar-leaves { display: block; }
  footer { padding-top: 15px; }
  .footer-main { padding: 3rem 5rem; }
  .collapsible-sections { display: none; }
  .desktop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .grid-column { display: flex; flex-direction: column; gap: 2rem; }
  .grid-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 0.75rem; }
  .grid-section h3 a { font-size: 17px; color: white; text-decoration: none; display: block; }
  .grid-section ul { list-style: none; }
  .grid-section li { margin-bottom: 0.5rem; }
  .grid-section a { color: white; text-decoration: none; font-size: 13px; opacity: 0.75; transition: opacity 0.2s; }
  .grid-section h3 a { opacity: 1; }
  .grid-section h3 a:hover { color: #62b143; }
  .grid-section a:hover { opacity: 1; }
  .divider-line { border-top-width: 1px; }
  footer .logo-container img { width: 300px; height: auto; }
  .footer-bottom { padding: 2rem 5rem; }
  .bottom-content { flex-direction: row; align-items: center; justify-content: space-between; }
  .privacy-links .separator { display: inline; }
  .copyright-bar { padding: 1.25rem 5rem; }
}

/* Desktop 1240px+ */
@media (min-width: 1240px) {
  #mob-topbar    { display: none; }
  #mob-logobar   { display: none; }
  #mob-bottombar { display: none; }
  #tab-navrow    { display: none; }
  #topbar  { display: flex; }
  #menubar { display: flex; }
  .main-nav { display: flex; }
  .three-pillars { display: flex; }
  .tb-email-link { display: flex; }
  .menubar-leaves { display: block; }
  footer { padding-top: 15px; }
  .footer-main { padding: 3rem 5rem; }
  .collapsible-sections { display: none; }
  .desktop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; }
  .grid-column { display: flex; flex-direction: column; gap: 2rem; }
  .grid-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 0.75rem; }
  .grid-section h3 a { font-size: 17px; color: white; text-decoration: none; display: block; }
  .grid-section ul { list-style: none; }
  .grid-section li { margin-bottom: 0.5rem; }
  .grid-section a { color: white; text-decoration: none; font-size: 13px; opacity: 0.75; transition: opacity 0.2s; }
  .grid-section h3 a { opacity: 1; }
  .grid-section h3 a:hover { color: #62b143; }
  .grid-section a:hover { opacity: 1; }
  .divider-line { border-top-width: 1px; }
  footer .logo-container img { width: 300px; height: auto; }
  .footer-bottom { padding: 2rem 5rem; }
  .bottom-content { flex-direction: row; align-items: center; justify-content: space-between; }
  .privacy-links .separator { display: inline; }
  .copyright-bar { padding: 1.25rem 5rem; }
}

/* Template shared responsive */
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .sidebar { order: 2; }
  .main-content { order: 1; }
}
@media (max-width: 600px) {
  .page-wrap { padding: 24px 16px 0; gap: 28px; }
  .post-card-body { padding: 16px 18px 18px; }
  .post-card-title { font-size: 16px; }
  .sa-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
