/* ==========================================================================
   Northern Construction General Contractor
   Modern site theme (peg: elcor.com.ph) — navy + amber construction palette
   ========================================================================== */

:root {
  --navy-900: #0a1f3f;
  --navy-800: #123566;
  --navy-700: #1a4f96;
  --navy-600: #2569bd;
  --amber-500: #f5a623;
  --amber-600: #dc8c10;
  --ink: #16212e;
  --slate-600: #55636f;
  --slate-400: #8996a1;
  --cloud-100: #f4f7fb;
  --cloud-200: #e8eef5;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 31, 63, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 31, 63, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 31, 63, 0.18);
  --container-max: 1200px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.nc-page { background: var(--white); color: var(--ink); overflow-x: hidden; }
.nc-page a { border-bottom: none; }

/* Force Montserrat everywhere on redesigned pages; old main.css sets
   explicit font-family on headings/buttons/etc. via element selectors,
   which otherwise beats the inherited font on body. */
.nc-page, .nc-page * { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }
.nc-page .fa, .nc-page [class*="fa-"] { font-family: FontAwesome; }

.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--amber-500);
  border-radius: 2px;
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--navy-900);
}
.section-sub { font-size: 16px; line-height: 1.7; color: var(--slate-600); margin: 0; }

.nc-page section { position: relative; }
.py { padding: 88px 0; }
.py-sm { padding: 60px 0; }

.bg-cloud { background: var(--cloud-100); }
.bg-navy {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.bg-navy .section-title { color: var(--white); }
.bg-navy .section-sub { color: rgba(255,255,255,0.72); }
.bg-navy .eyebrow { color: var(--amber-500); }

/* ---------------------------------- Buttons ---------------------------- */
.btn-nc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-nc-primary {
  background: var(--amber-500);
  color: var(--navy-900) !important;
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}
.btn-nc-primary:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(245,166,35,0.4); }
.btn-nc-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white) !important; }
.btn-nc-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-nc-navy { background: var(--navy-700); color: var(--white) !important; }
.btn-nc-navy:hover { background: var(--navy-800); transform: translateY(-2px); }

/* ---------------------------------- Navbar ------------------------------ */
.nc-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 31, 63, 0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter: saturate(180%) blur(8px);
  transition: padding 0.3s ease;
}
.nc-navbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nc-brand { display: flex; align-items: center; gap: 10px; color: var(--white) !important; text-decoration: none !important; font-weight: 800; font-size: 15px; letter-spacing: 0.01em; }
.nc-brand img { height: 40px; width: auto; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.nc-brand span { line-height: 1.2; }
.nc-brand small { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.1em; color: var(--amber-500); text-transform: uppercase; }

.nc-nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nc-nav-links > li { position: relative; }
.nc-nav-links > li::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 14px;
}
.nc-nav-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 0;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nc-nav-links a:hover, .nc-nav-links li:hover > a { color: var(--amber-500); }
.nc-nav-links a.cta { background: var(--amber-500); color: var(--navy-900) !important; padding: 10px 18px; border-radius: 7px; font-weight: 700; }
.nc-nav-links a.cta:hover { background: var(--amber-600); }

.nc-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 14px;
  list-style: none;
}
.nc-nav-links li:hover .nc-dropdown { display: block; }
.nc-dropdown li a {
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 7px;
  display: block;
}
.nc-dropdown li a:hover { background: var(--cloud-100); color: var(--navy-700) !important; }

.nc-nav-toggle {
  display: none;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 8px;
  width: 42px; height: 42px;
  color: var(--white);
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nc-mobile-panel {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 82vw);
  background: var(--navy-900);
  z-index: 1100;
  padding: 24px;
  box-shadow: -12px 0 40px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.nc-mobile-panel.open { transform: translateX(0); }
.nc-mobile-panel .close-panel { background: none; border: none; color: var(--white); font-size: 22px; float: right; cursor: pointer; }
.nc-mobile-panel ul { list-style: none; margin: 50px 0 0; padding: 0; }
.nc-mobile-panel li { margin-bottom: 4px; }
.nc-mobile-panel a {
  display: block;
  color: rgba(255,255,255,0.9);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nc-mobile-panel .sub-link { padding-left: 18px; font-size: 13.5px; color: rgba(255,255,255,0.72); }
.nc-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1090; }
.nc-scrim.open, .nc-mobile-panel.open { display: block; }

@media (max-width: 991px) {
  .nc-nav-links { display: none; }
  .nc-nav-toggle { display: inline-flex; }
}

/* ---------------------------------- Hero -------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(6,17,35,0.78) 0%, rgba(8,24,46,0.82) 55%, rgba(10,31,63,0.95) 100%),
              url('../../logo/main_index2.jpg') center/cover no-repeat;
  position: relative;
  padding: 140px 0 60px;
}
.hero-content { position: relative; z-index: 2; color: var(--white); max-width: 720px; }
.hero-content .eyebrow { color: var(--amber-500); }
.hero-content .eyebrow::before { background: var(--amber-500); }
.hero-title { font-size: clamp(32px, 5.2vw, 58px); font-weight: 800; line-height: 1.12; margin: 0 0 20px; color: var(--white); }
.hero-title em { color: var(--amber-500); font-style: normal; }
.hero-sub { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.75; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  position: relative; z-index: 2; margin-top: 60px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.hero-stat { padding: 26px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: var(--amber-500); line-height: 1; margin-bottom: 6px; }
.hero-stat .label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-weight: 600; }

@media (max-width: 767px) {
  .hero { padding-top: 120px; padding-bottom: 40px; min-height: unset; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .hero-stat:nth-child(2n) { border-right: none; }
}

/* ---------------------------------- About -------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.about-media .badge-since {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--navy-900); color: var(--white);
  border-radius: 12px; padding: 16px 20px;
  box-shadow: var(--shadow-md); text-align: center; min-width: 128px;
}
.about-media .badge-since .yr { font-size: 26px; font-weight: 800; color: var(--amber-500); display: block; }
.about-media .badge-since .txt { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.about-text p { color: var(--slate-600); line-height: 1.8; font-size: 15.5px; margin: 0 0 16px; }

.value-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; background: var(--cloud-100); border-radius: 10px; padding: 14px 16px; }
.pillar i { color: var(--amber-600); font-size: 18px; margin-top: 2px; }
.pillar strong { display: block; font-size: 13.5px; color: var(--navy-900); }
.pillar span { font-size: 12.5px; color: var(--slate-600); }

@media (max-width: 991px) { .about-grid { grid-template-columns: 1fr; } .about-media { margin-bottom: 40px; } }
@media (max-width: 575px) {
  .about-media .badge-since { left: 12px; bottom: -18px; padding: 10px 14px; min-width: 100px; }
  .value-pillars { grid-template-columns: 1fr; }
}

/* ------------------------------ Mission/Vision --------------------------- */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.mv-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 30px 26px; }
.mv-card i { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: rgba(245,166,35,0.15); color: var(--amber-500); border-radius: 10px; font-size: 20px; margin-bottom: 18px; }
.mv-card h4 { color: var(--white); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.mv-card p { color: rgba(255,255,255,0.72); font-size: 14px; line-height: 1.7; margin: 0; }
@media (max-width: 767px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Card grid (services/projects) --------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 220px;
  box-shadow: var(--shadow-sm); cursor: pointer; background: var(--navy-900);
  text-decoration: none !important; display: block;
}
.svc-card .svc-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(245,166,35,0.9); font-size: 40px;
}
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,31,63,0) 30%, rgba(6,15,30,0.92) 100%); }
.svc-card .svc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; color: var(--white); }
.svc-card .svc-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-500); margin-bottom: 6px; }
.svc-card h4 { font-size: 16px; font-weight: 700; margin: 0 0 8px; line-height: 1.3; color: var(--white); }
.svc-card .svc-link { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px; }
.svc-card:hover .svc-link { color: var(--amber-500); }
.svc-card:hover .svc-icon { transform: scale(1.05); }

@media (max-width: 991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .svc-grid { grid-template-columns: 1fr; } .svc-card { height: 180px; } }

/* ---------------------------------- Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; background: var(--white); border: 1px solid var(--cloud-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.contact-card i { width: 44px; height: 44px; min-width: 44px; background: var(--navy-700); color: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.contact-card h5 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--navy-900); }
.contact-card p { margin: 0; font-size: 13.5px; color: var(--slate-600); line-height: 1.6; }
.contact-card a { color: var(--slate-600); text-decoration: none; }
.contact-card a:hover { color: var(--navy-700); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Footer -------------------------------- */
.nc-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 16px; margin-bottom: 16px; }
.footer-brand img { height: 34px; background: #fff; border-radius: 4px; padding: 2px; }
.footer-col h5 { color: var(--white); font-size: 13.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col p { font-size: 13.5px; line-height: 1.7; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber-500); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: 12.5px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Back to top --------------------------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  background: var(--navy-700); color: var(--white) !important;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
  text-decoration: none !important;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--amber-500); color: var(--navy-900) !important; }

/* ------------------------------- Page Header (inner pages) ---------------- */
.page-header { padding: 150px 0 60px; background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%); color: var(--white); text-align: center; }
.page-header .eyebrow { justify-content: center; color: var(--amber-500); }
.page-header .eyebrow::before { display: none; }
.page-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; color: var(--white); }
.page-header p { color: rgba(255,255,255,0.75); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ---------------------------------- Gallery grid (photo showcase pages) --- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--cloud-100); text-decoration: none !important; }
.gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--navy-900); }
@media (max-width: 900px) { .gallery-grid, .gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .gallery-grid, .gallery-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------------------------------- Prose / content blocks ---------------- */
.prose { max-width: 820px; color: var(--slate-600); font-size: 15.5px; line-height: 1.8; }
.prose.center { margin: 0 auto; }
.prose h3 { color: var(--navy-900); font-size: 20px; font-weight: 800; margin: 34px 0 14px; }
.prose p { margin: 0 0 16px; color: var(--slate-600); }
.prose strong { color: var(--navy-900); }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--slate-600); }
.prose li { margin-bottom: 8px; color: var(--slate-600); }
.prose.on-dark p, .prose.on-dark li, .prose.on-dark ul { color: rgba(255,255,255,0.78); }
.prose.on-dark strong { color: var(--white); }

/* ---------------------------------- Job / position cards ------------------ */
.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 10px 0 30px; }
.job-card { background: var(--cloud-100); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--cloud-200); }
.job-card i { color: var(--amber-600); font-size: 20px; margin-bottom: 10px; display: block; }
.job-card h4 { margin: 0 0 6px; color: var(--navy-900); font-size: 16px; font-weight: 700; }
.job-card span { font-size: 12.5px; color: var(--slate-600); }
@media (max-width: 700px) { .job-grid { grid-template-columns: 1fr; } }

/* ---------------------------------- Keep old, not-yet-redesigned pages clear of the new fixed navbar */
#wrapper { padding-top: 92px; }
