/* ===========================
   NanoRise Global – Main CSS
   =========================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;900&family=Golos+Text:wght@500;600&display=swap');

/* ---- Reset / Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --skin: #3366cc;
  --skin-hover: #254fa3;
  --dark: #030c1d;
  --text: #444;
  --heading: #111;
  --grey-bg: #f4f5f7;
  --border: #e0e0e0;
  --white: #ffffff;
  --font: 'Noto Sans', sans-serif;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--skin); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER
   =========================== */
#masthead {
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  padding: 0 40px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  position: relative;
}

/* Logo */
.site-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}
.main-nav ul li a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  color: var(--heading);
  transition: color 0.2s;
  position: relative;
}
.main-nav ul li a:hover { color: var(--skin); }

/* Dropdown */
.main-nav .has-dropdown { position: relative; }
.main-nav .has-dropdown > a::after {
  content: "▾";
  margin-left: 5px;
  font-size: 11px;
}
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;          /* flush to the nav item – no gap */
  left: 0;
  background: #fff;
  min-width: 190px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 16px 0 8px; /* top padding replaces the visual gap */
  z-index: 999;
}
/* Invisible bridge fills the space between nav item and dropdown */
.main-nav .has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px; /* matches dropdown top padding */
  background: transparent;
}
.main-nav .dropdown li a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--heading);
  white-space: nowrap;
}
.main-nav .dropdown li a:hover {
  background: #f0f4fb;
  color: var(--skin);
}
.main-nav .has-dropdown:hover .dropdown { display: block; }

/* Header CTA */
.header-cta a {
  background: var(--skin);
  color: #fff;
  padding: 10px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.header-cta a:hover { background: var(--skin-hover); color: #fff; }

/* Mobile Toggle */
.menu-toggle-btn {
  display: none;
  background: var(--skin);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Sticky */
.header-inner.is-sticky {
  position: fixed;
  top: 0; left: 0; right: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

/* ===========================
   HERO / SLIDER
   =========================== */
.hero-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://www.nanoriseglobal.com/wp-content/uploads/2025/11/Main-banner-1920x1080-1-scaled.jpg') center/cover no-repeat;
  opacity: 0.55;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 60px 20px;
}
.hero-content .eyebrow {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--skin);
  color: #fff;
  padding: 16px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--skin-hover); color: #fff; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-left: 12px;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ===========================
   SECTION COMMONS
   =========================== */
section { padding: 80px 0; }

.section-tag {
  display: inline-block;
  background: #e8f0fc;
  color: var(--skin);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--skin); }
.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 640px;
}
.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ===========================
   SERVICES STRIP (Grey BG)
   =========================== */
.services-strip { background: var(--grey-bg); padding: 60px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(51,102,204,0.12);
  transform: translateY(-4px);
}
.service-card .icon {
  font-size: 36px;
  color: var(--skin);
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p { font-size: 14px; color: #777; }

/* ===========================
   SERVICES LIST (6 services)
   =========================== */
.services-list-section { background: #fff; }
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.service-item {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-item:hover {
  box-shadow: 0 8px 32px rgba(51,102,204,0.10);
  transform: translateY(-3px);
}
.service-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.service-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section { background: var(--grey-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: #555; font-size: 15.5px; }

/* ===========================
   WHY NANORISE
   =========================== */
.why-section { background: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.why-card {
  background: var(--grey-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.why-card .num {
  font-size: 40px;
  font-weight: 900;
  color: var(--skin);
  line-height: 1;
  margin-bottom: 12px;
}
.why-card h3 { font-size: 16px; font-weight: 700; color: var(--heading); }

/* ===========================
   PROCESS (Tabs)
   =========================== */
.process-section { background: var(--dark); color: #fff; }
.process-section .section-title { color: #fff; }
.process-section .section-desc { color: rgba(255,255,255,0.7); }

.process-tabs {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 48px;
  background: rgba(255,255,255,0.05);
}
.process-tab-btn {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  border: none;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}
.process-tab-btn .step-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: rgba(255,255,255,0.2);
  line-height: 1;
  margin-bottom: 6px;
}
.process-tab-btn.active {
  background: var(--skin);
  color: #fff;
  border-bottom-color: #fff;
}
.process-tab-btn.active .step-num { color: rgba(255,255,255,0.5); }

.process-tab-content { display: none; margin-top: 40px; }
.process-tab-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.process-tab-content h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.process-block { margin-bottom: 24px; }
.process-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--skin);
  margin-bottom: 8px;
  font-weight: 700;
}
.process-block p { color: rgba(255,255,255,0.75); font-size: 14.5px; }

/* ===========================
   TEAM
   =========================== */
.team-section { background: #fff; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 360px);
  gap: 36px;
  margin-top: 48px;
  justify-content: center;
}
.team-grid.team-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  justify-content: stretch;
}
.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.team-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  background: var(--grey-bg);
}
.team-card-no-photo {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #e8f0fc 0%, #d0ddf7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-no-photo span {
  font-size: 52px;
  font-weight: 900;
  color: var(--skin);
  letter-spacing: -2px;
  opacity: 0.55;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0a66c2;
  text-decoration: none;
  transition: opacity .2s;
}
.team-linkedin:hover { opacity: .75; color: #0a66c2; }
.team-card-body { padding: 24px 24px 28px; }
.team-card-body h3 { font-size: 20px; font-weight: 800; color: var(--heading); margin-bottom: 4px; }
.team-card-body .role {
  font-size: 13px;
  color: var(--skin);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.team-card-body p { font-size: 14px; color: #666; line-height: 1.6; }

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  background: var(--skin);
  padding: 70px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; margin-bottom: 10px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--skin);
  padding: 16px 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  transition: background 0.2s;
}
.btn-white:hover { background: #e8f0fc; color: var(--skin); }

/* ===========================
   PILLARS (Core Principles)
   =========================== */
.pillars-section { background: var(--grey-bg); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar-item {
  padding: 32px 16px;
  text-align: center;
  background: #fff;
  border-right: 1px solid #ddd;
}
.pillar-item:last-child { border-right: none; }
.pillar-item .icon { font-size: 30px; color: var(--skin); margin-bottom: 14px; }
.pillar-item h3 { font-size: 14px; font-weight: 700; color: var(--heading); line-height: 1.4; }

/* ===========================
   FOOTER
   =========================== */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.75);
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 70px 0 50px;
}
.footer-brand img { height: 50px; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--skin);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact-item .ic { color: var(--skin); font-size: 18px; margin-top: 2px; }
.footer-contact-item p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ===========================
   BACK TO TOP
   =========================== */
#totop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--skin);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#totop.visible { opacity: 1; pointer-events: auto; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-list-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .main-nav.open ul li a { display: block; padding: 10px 0; border-bottom: 1px solid #eee; }
  .main-nav .dropdown { position: static; box-shadow: none; padding: 0 0 0 16px; }
  .menu-toggle-btn { display: flex; }
  .hero-section { min-height: 480px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-list-grid { grid-template-columns: 1fr; }
  .process-tabs { flex-direction: column; }
  .process-tab-content.active { grid-template-columns: 1fr; }
  .team-grid,
  .team-grid.team-grid-4 { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .team-grid .team-card { width: 100%; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 28px; }
}
