/* ============================================================
   NORTH STAR – Frontend CSS (Left Sidebar Layout)
   Colors: Green #22b04b | Dark #272C31 | White #FFFFFF | Gray #808080
   Fonts: Roboto (body), Poppins (headings)
   ============================================================ */

:root {
  --ns-blue:         #22b04b;
  --ns-blue-dark:    #1a8c3a;
  --ns-dark:         #272C31;
  --ns-darker:       #1a1e22;
  --ns-white:        #FFFFFF;
  --ns-gray:         #808080;
  --ns-gray-light:   #E7E9EA;
  --ns-text:         #333333;
  --ns-section-bg:   #f8f9fa;
  --ns-border:       #dee2e6;
  --ns-radius:       8px;
  --ns-transition:   0.3s ease;
  --ns-shadow:       0 4px 20px rgba(0,0,0,0.08);
  --ns-shadow-lg:    0 8px 40px rgba(0,0,0,0.15);
  --ns-sidebar-w:    280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--ns-text);
  background: var(--ns-white);
}

/* ============================
   SIDEBAR LAYOUT
   ============================ */
.ns-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.ns-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--ns-sidebar-w);
  height: 100vh;
  background: var(--ns-white);
  box-shadow: 2px 0 18px rgba(109,109,109,0.13);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ns-gray-light) transparent;
}

.ns-sidebar::-webkit-scrollbar { width: 4px; }
.ns-sidebar::-webkit-scrollbar-thumb { background: var(--ns-gray-light); }

/* Sidebar Logo */
.ns-sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--ns-gray-light);
  flex-shrink: 0;
}

.ns-sidebar-logo a { display: block; }

.ns-sidebar-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Sidebar Navigation */
.ns-sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.ns-sidebar-nav ul {
  list-style: none;
}

.ns-sidebar-nav > ul > li > a,
.ns-sidebar-nav > ul > li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: all var(--ns-transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.ns-sidebar-nav > ul > li > a:hover,
.ns-sidebar-nav > ul > li > span:hover,
.ns-sidebar-nav > ul > li.active > a {
  color: var(--ns-blue);
  border-left-color: var(--ns-blue);
  background: rgba(34,176,75,0.04);
}

/* Sub-items (tower types) */
.ns-sidebar-subitems {
  background: var(--ns-section-bg);
  padding: 4px 0;
  display: none;
}

.ns-sidebar-subitems.open {
  display: block;
}

.ns-sidebar-subitems li a {
  display: block;
  padding: 8px 16px 8px 40px;
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color var(--ns-transition);
  border-left: 3px solid transparent;
}

.ns-sidebar-subitems li a:hover {
  color: var(--ns-blue);
  border-left-color: var(--ns-blue);
}

.ns-sidebar-nav .ns-expand-icon {
  font-size: 0.7rem;
  transition: transform var(--ns-transition);
}

.ns-sidebar-nav li.open > span .ns-expand-icon,
.ns-sidebar-nav li.open > a .ns-expand-icon {
  transform: rotate(180deg);
}

/* Sidebar Divider */
.ns-sidebar-divider {
  height: 1px;
  background: var(--ns-gray-light);
  margin: 8px 24px;
}

/* Sidebar Footer */
.ns-sidebar-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--ns-gray-light);
  flex-shrink: 0;
}

.ns-sidebar-footer .ns-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--ns-gray);
}

.ns-sidebar-footer .ns-contact-line i {
  color: var(--ns-blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.ns-sidebar-footer a {
  color: var(--ns-gray);
  text-decoration: none;
  transition: color var(--ns-transition);
}

.ns-sidebar-footer a:hover { color: var(--ns-blue); }

/* ── MAIN CONTENT ── */
.ns-main-content {
  margin-left: var(--ns-sidebar-w);
  flex: 1;
  min-width: 0;
}

/* ── MOBILE TOPBAR ── */
.ns-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 300;
  background: var(--ns-dark);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ns-topbar-logo img {
  height: 36px;
  width: auto;
}

.ns-topbar-logo span {
  color: var(--ns-white);
  font-size: 1.1rem;
  font-weight: 700;
}

.ns-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ns-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ns-white);
  margin: 5px 0;
  transition: var(--ns-transition);
}

/* Overlay for mobile */
.ns-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 190;
}

.ns-sidebar-overlay.active { display: block; }

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ns-dark);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ns-blue);
  margin-bottom: 0.75rem;
}

.section-header { margin-bottom: 3rem; }

.section-desc {
  color: var(--ns-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================
   HERO SECTION
   ============================ */
.ns-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ns-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,28,40,0.72);
  z-index: 0;
}

.ns-hero-content {
  position: relative;
  z-index: 1;
  color: var(--ns-white);
  width: 100%;
  padding: 0 60px;
}

.ns-hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ns-blue);
  margin-bottom: 1rem;
  padding: 6px 14px;
  background: rgba(34,176,75,0.12);
  border-left: 3px solid var(--ns-blue);
}

.ns-hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--ns-white);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.ns-hero-title span { color: var(--ns-blue); }

.ns-hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.ns-hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.ns-hero-tag {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.ns-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-ns-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ns-blue);
  color: var(--ns-white);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--ns-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--ns-transition);
  border: 2px solid var(--ns-blue);
}

.btn-ns-primary:hover {
  background: var(--ns-blue-dark);
  border-color: var(--ns-blue-dark);
  color: var(--ns-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,176,75,0.4);
}

.btn-ns-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ns-white);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--ns-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--ns-transition);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-ns-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--ns-white);
  color: var(--ns-white);
}

.ns-hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  font-size: 1.5rem;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================
   SECTIONS BASE
   ============================ */
.ns-section { padding: 80px 60px; }

.ns-section-dark {
  background: var(--ns-dark);
  color: var(--ns-white);
}

.ns-section-dark .section-title,
.ns-section-dark h2, .ns-section-dark h3 {
  color: var(--ns-white);
}

.ns-section-dark .section-desc { color: rgba(255,255,255,0.7); }

.ns-section-gray { background: var(--ns-section-bg); }

/* ============================
   ABOUT SECTION
   ============================ */
.ns-about-img-wrap { position: relative; }

.ns-about-img {
  width: 100%;
  border-radius: var(--ns-radius);
  object-fit: cover;
  height: 480px;
}

.ns-about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--ns-blue);
  color: var(--ns-white);
  padding: 20px 24px;
  border-radius: var(--ns-radius);
  text-align: center;
  box-shadow: var(--ns-shadow-lg);
}

.ns-about-badge .number { font-size: 2rem; font-weight: 800; display: block; line-height: 1; }
.ns-about-badge .label  { font-size: 0.78rem; opacity: 0.9; display: block; margin-top: 4px; }

.ns-vision-badge {
  position: absolute;
  top: 20px;
  right: -10px;
  background: var(--ns-white);
  padding: 10px;
  border-radius: var(--ns-radius);
  box-shadow: var(--ns-shadow);
}

.ns-vision-badge img { height: 40px; width: auto; }

.ns-about-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.ns-about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.ns-about-list li i { color: var(--ns-blue); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* ============================
   MISSION – Fancy Box (WP style2)
   ============================ */
.ns-fancy-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--ns-white);
  border-radius: var(--ns-radius);
  border: 1px solid var(--ns-border);
  margin-bottom: 20px;
  transition: all var(--ns-transition);
}

.ns-fancy-box:hover {
  border-color: var(--ns-blue);
  box-shadow: var(--ns-shadow);
}

.ns-fancy-box-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--ns-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.ns-fancy-box h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ns-dark);
}

.ns-fancy-box p {
  font-size: 0.88rem;
  color: var(--ns-gray);
  margin: 0;
  line-height: 1.6;
}

/* ============================
   TOWERS – Individual Sections
   ============================ */
.ns-tower-section {
  padding: 80px 60px;
}

.ns-tower-section:nth-child(odd)  { background: var(--ns-white); }
.ns-tower-section:nth-child(even) { background: var(--ns-section-bg); }

.ns-tower-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ns-blue);
  margin-bottom: 8px;
}

.ns-tower-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ns-dark);
  margin-bottom: 10px;
  line-height: 1.2;
}

.ns-tower-divider {
  width: 50px;
  height: 3px;
  background: var(--ns-blue);
  border-radius: 2px;
  margin-bottom: 24px;
}

.ns-tower-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.ns-tower-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--ns-text);
  border-bottom: 1px solid var(--ns-gray-light);
}

.ns-tower-bullets li:last-child { border-bottom: none; }

.ns-tower-bullets li i {
  color: var(--ns-blue);
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 3px;
}

.ns-tower-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ns-tower-imgs img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--ns-radius);
  transition: transform 0.4s ease;
}

.ns-tower-imgs img:hover { transform: scale(1.02); }

/* ============================
   SERVICES
   ============================ */
.ns-service-card {
  background: var(--ns-white);
  border-radius: var(--ns-radius);
  padding: 26px;
  border: 1px solid var(--ns-border);
  transition: all var(--ns-transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ns-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--ns-blue);
  transition: height var(--ns-transition);
}

.ns-service-card:hover {
  box-shadow: var(--ns-shadow);
  border-color: rgba(34,176,75,0.2);
  transform: translateY(-3px);
}

.ns-service-card:hover::before { height: 100%; }

.ns-service-icon {
  width: 48px; height: 48px;
  background: rgba(34,176,75,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background var(--ns-transition);
}

.ns-service-card:hover .ns-service-icon { background: var(--ns-blue); }
.ns-service-icon i { font-size: 1.3rem; color: var(--ns-blue); transition: color var(--ns-transition); }
.ns-service-card:hover .ns-service-icon i { color: var(--ns-white); }
.ns-service-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--ns-dark); margin-bottom: 0.5rem; line-height: 1.4; }
.ns-service-card p  { font-size: 0.83rem; color: var(--ns-gray); line-height: 1.6; margin: 0; }

/* ============================
   PARTNERS
   ============================ */
.ns-partner-card {
  background: var(--ns-white);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all var(--ns-transition);
}

.ns-partner-card:hover {
  border-color: var(--ns-blue);
  box-shadow: var(--ns-shadow);
  transform: translateY(-2px);
}

.ns-partner-card img {
  max-height: 55px;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.8;
  transition: all var(--ns-transition);
}

.ns-partner-card:hover img { filter: grayscale(0%); opacity: 1; }

/* ============================
   CONTACT
   ============================ */
.ns-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.ns-contact-info-icon {
  width: 44px; height: 44px;
  background: rgba(34,176,75,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ns-contact-info-icon i { color: var(--ns-blue); font-size: 1.1rem; }

.ns-contact-info-item h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}

.ns-contact-info-item p,
.ns-contact-info-item a {
  color: var(--ns-white);
  text-decoration: none;
  margin: 0;
  font-size: 0.92rem;
}

.ns-contact-info-item a:hover { color: var(--ns-blue); }

.ns-contact-form {
  background: var(--ns-white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--ns-shadow-lg);
}

.ns-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ns-form-group { margin-bottom: 18px; }

.ns-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ns-dark);
  margin-bottom: 6px;
}

.ns-form-control, .ns-form-select {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-radius);
  font-size: 0.88rem;
  color: var(--ns-text);
  background: var(--ns-white);
  transition: border-color var(--ns-transition);
  outline: none;
  appearance: none;
}

.ns-form-control:focus, .ns-form-select:focus {
  border-color: var(--ns-blue);
  box-shadow: 0 0 0 3px rgba(34,176,75,0.1);
}

textarea.ns-form-control { resize: vertical; min-height: 110px; }

.btn-ns-submit {
  width: 100%;
  background: var(--ns-blue);
  color: var(--ns-white);
  border: none;
  padding: 13px 28px;
  border-radius: var(--ns-radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ns-transition);
}

.btn-ns-submit:hover {
  background: var(--ns-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,176,75,0.4);
}

.ns-hours-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ns-radius);
  padding: 18px;
  margin-top: 2rem;
}

.ns-hours-box h5 { color: var(--ns-blue); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ns-hours-box p  { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 4px 0; }

/* ============================
   FOOTER
   ============================ */
.ns-footer {
  background: var(--ns-darker);
  color: rgba(255,255,255,0.75);
  padding: 60px 60px 0;
}

.ns-footer-logo img { height: 48px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.ns-footer-logo span { font-size: 1.3rem; font-weight: 800; color: var(--ns-white); }

.ns-footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; }

.ns-footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ns-white);
  margin-bottom: 1.2rem;
  padding-bottom: 10px;
  position: relative;
}

.ns-footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--ns-blue);
}

.ns-footer-links { list-style: none; }
.ns-footer-links li { margin-bottom: 8px; }

.ns-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--ns-transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ns-footer-links a:hover { color: var(--ns-blue); padding-left: 4px; }

.ns-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.ns-footer-contact-item i { color: var(--ns-blue); flex-shrink: 0; }
.ns-footer-contact-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.ns-footer-contact-item a:hover { color: var(--ns-blue); }

.ns-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ns-footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin: 0; }

/* ============================
   FLASH MESSAGES
   ============================ */
.ns-flash-success {
  background: rgba(39,176,78,0.12);
  border: 1px solid rgba(39,176,78,0.3);
  color: #27b04e;
  padding: 14px 18px;
  border-radius: var(--ns-radius);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.ns-flash-error {
  background: rgba(217,83,79,0.1);
  border: 1px solid rgba(217,83,79,0.25);
  color: #d9534f;
  padding: 14px 18px;
  border-radius: var(--ns-radius);
  margin-bottom: 18px;
  font-size: 0.88rem;
}

/* ============================
   ANIMATE ON SCROLL
   ============================ */
.aos-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-fade.visible { opacity: 1; transform: none; }

/* ============================
   RESPONSIVE – Mobile
   ============================ */
@media (max-width: 991px) {
  :root { --ns-sidebar-w: 0px; }

  .ns-sidebar {
    transform: translateX(-280px);
    width: 280px;
    transition: transform 0.3s ease;
  }

  .ns-sidebar.mobile-open {
    transform: translateX(0);
  }

  .ns-topbar { display: flex; }

  .ns-main-content {
    margin-left: 0;
    padding-top: 60px; /* topbar height */
  }

  .ns-section { padding: 60px 20px; }
  .ns-tower-section { padding: 60px 20px; }
  .ns-hero-content { padding: 0 20px; }
  .ns-footer { padding: 50px 20px 0; }
  .ns-form-row { grid-template-columns: 1fr; }
  .ns-tower-imgs { grid-template-columns: 1fr; }
  .ns-tower-imgs img { height: 220px; }
}

@media (max-width: 767px) {
  .section-title { font-size: 1.6rem; }
  .ns-hero-title  { font-size: 1.8rem; }
  .ns-contact-form { padding: 22px; }
  .ns-about-img { height: 280px; }
  .ns-about-badge { display: none; }
}
