/* ==========================================================
   NEXABEE — SITE-WIDE EXTENSIONS
   Shared header/footer, inner-page hero, and the new
   Services / Training / Staffing components. Built to sit
   alongside style.css without touching its rules.
   ========================================================== */

/* ---------- header / nav upgrades ---------- */
header{ position: sticky; top: 0; z-index: 500; }

nav{ position: relative; }

.nav-links{ align-items: center; }

.nav-links li{ position: relative; }

.nav-links > li > a{
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links .caret{
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    opacity: .55;
}

.nav-dropdown{
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e1e7eb;
    border-top: 2px solid #f7b719;
    box-shadow: 0 22px 44px rgba(11,31,44,.16);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 700;
}

.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown,
.nav-links > li.dd-open .nav-dropdown{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a{
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
    border-radius: 2px;
}

.nav-dropdown li a:hover{
    background: #f7f9fb;
    color: #0b6e99;
}

.nav-cta{
    display: inline-block;
    margin-left: 8px;
    padding: 11px 22px;
    background: #0b1f2c;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #0b1f2c;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.nav-cta:hover{
    background: #ffca26;
    border-color: #ffca26;
    color: #0b1f2c !important;
}

.nav-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span{
    display: block;
    height: 2px;
    background: #123b5d;
    border-radius: 2px;
}

.active-link{ color: #0b6e99 !important; }

/* ---------- inner-page hero ---------- */
.page-hero{
    position: relative;
    padding: 96px 30px 88px;
    background:
        radial-gradient(circle at 82% 12%, rgba(255,202,38,.12), transparent 46%),
        linear-gradient(155deg, #0b1f2c 0%, #0b2433 62%, #071620 100%);
    color: #ffffff;
    overflow: hidden;
}

.page-hero::after{
    content: "";
    position: absolute;
    right: -6%;
    bottom: -40%;
    width: 46%;
    padding-top: 46%;
    border: 1px solid rgba(140,199,223,.16);
    border-radius: 50%;
}

.page-hero-inner{
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero .eyebrow{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6bb6d6;
    margin-bottom: 18px;
}

.page-hero h1{
    max-width: 760px;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 22px;
}

.page-hero p{
    max-width: 620px;
    font-size: 17px;
    line-height: 1.75;
    color: #cfdce4;
}

.page-hero-crumb{
    margin-top: 34px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: #91a7b3;
}

.page-hero-crumb a{ color: #91a7b3; text-decoration: none; }
.page-hero-crumb a:hover{ color: #ffca26; }

/* ---------- generic section width / heading reuse ---------- */
.wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section{ padding: 110px 30px; }
.section-tight{ padding: 90px 30px; }
.section-alt{ background: #f7f9fb; }
.section-dark{ background: #0b1f2c; color: #ffffff; }

.section .section-heading,
.section-tight .section-heading{
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: left;
}

.section-heading.centered{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-heading .eyebrow{ color: #6bb6d6; }
.section-dark .section-heading h2{ color: #ffffff; }
.section-dark .section-heading p{ color: #b9cbd5; }

/* ---------- three-pillar overview (home) ---------- */
.pillar-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #dbe3e8;
    border: 1px solid #dbe3e8;
}

.pillar-card{
    background: #ffffff;
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background .25s ease, transform .25s ease;
}

.pillar-card:hover{ background: #f7f9fb; }

.pillar-mark{
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #123b5d;
    color: #123b5d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.pillar-card h3{
    font-size: 23px;
    color: #123b5d;
    margin-bottom: 14px;
}

.pillar-card p{
    font-size: 15px;
    line-height: 1.7;
    color: #64727c;
    margin-bottom: 26px;
    flex-grow: 1;
}

.pillar-link{
    font-size: 14px;
    font-weight: 700;
    color: #0b6e99;
}

.pillar-card:hover .pillar-link{ text-decoration: underline; }

/* ---------- course cards (training) ---------- */
.course-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card{
    background: #ffffff;
    border: 1px solid #e1e7eb;
    padding: 34px 30px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.course-card:hover{
    transform: translateY(-6px);
    border-color: #b9d7e5;
    box-shadow: 0 15px 40px rgba(20,50,70,.10);
}

.course-top{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.course-badge{
    width: 48px;
    height: 48px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1f2c;
    color: #ffca26;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
}

.course-top h3{ font-size: 20px; color: #123b5d; }

.course-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.course-meta span{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 10px;
    background: #f7f9fb;
    color: #1685b5;
    border: 1px solid #dbe3e8;
}

.course-card p{ color: #64727c; font-size: 14.5px; line-height: 1.7; margin-bottom: 18px; }

.course-list{
    list-style: none;
    margin-bottom: 22px;
}

.course-list li{
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    color: #4a5a63;
    margin-bottom: 8px;
    line-height: 1.5;
}

.course-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #ffca26;
}

.course-card > a{
    font-size: 14px;
    font-weight: 700;
    color: #0b6e99;
    text-decoration: none;
}

.course-card > a:hover{ text-decoration: underline; }

.course-card.dark{
    background: #0b2433;
    border-color: #315163;
}

.course-card.dark h3,
.course-card.dark .course-top h3{ color: #ffffff; }

.course-card.dark p{ color: #b9cbd5; }

/* ---------- process / steps (numbered — genuine sequences) ---------- */
.steps-row{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #dbe3e8;
    border: 1px solid #dbe3e8;
}

.step-card{
    background: #ffffff;
    padding: 34px 28px;
}

.step-card .step-index{
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1685b5;
    margin-bottom: 22px;
}

.step-card h3{ font-size: 18px; color: #123b5d; margin-bottom: 10px; }
.step-card p{ font-size: 14px; line-height: 1.6; color: #64727c; }

.section-dark .step-card{ background: #0b1f2c; }
.section-dark .steps-row{ background: #315163; border-color: #315163; }
.section-dark .step-card h3{ color: #ffffff; }
.section-dark .step-card p{ color: #aebfc8; }
.section-dark .step-card .step-index{ color: #6bb6d6; }

/* ---------- staffing: discipline + engagement model grids ---------- */
.discipline-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.discipline-card{
    padding: 26px 24px;
    background: #ffffff;
    border: 1px solid #e1e7eb;
}

.discipline-card h3{ font-size: 17px; color: #123b5d; margin-bottom: 8px; }
.discipline-card p{ font-size: 13.5px; color: #64727c; line-height: 1.6; }

.model-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.model-card{
    padding: 38px;
    border: 1px solid #315163;
    background: #0b1f2c;
}

.model-card h3{ font-size: 21px; color: #ffffff; margin-bottom: 12px; }
.model-card p{ font-size: 14.5px; line-height: 1.7; color: #b9cbd5; }

/* ---------- feature rows (services detail) ---------- */
.feature-row{
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px;
    border-bottom: 1px solid #e1e7eb;
}

.feature-row:last-of-type{ border-bottom: none; }

.feature-row.reverse{ direction: rtl; }
.feature-row.reverse > *{ direction: ltr; }

.feature-panel{
    aspect-ratio: 4 / 3;
    background: #0b1f2c;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 26px;
    overflow: hidden;
}

.feature-panel::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 100%),
        repeating-linear-gradient(135deg, rgba(140,199,223,.08) 0 2px, transparent 2px 34px);
}

.feature-panel span{
    position: relative;
    z-index: 1;
    color: #ffca26;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.feature-copy .eyebrow{
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1685b5;
    margin-bottom: 16px;
}

.feature-copy h2{ font-size: 32px; color: #17202a; line-height: 1.15; margin-bottom: 18px; }
.feature-copy p{ font-size: 15.5px; line-height: 1.8; color: #64727c; margin-bottom: 20px; }

.feature-copy .course-list{ margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band{
    padding: 80px 30px;
    background: #0b1f2c;
    color: #ffffff;
    text-align: center;
}

.cta-band h2{ font-size: 34px; margin-bottom: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band p{ font-size: 16px; color: #b9cbd5; max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-buttons{ justify-content: center; }

/* ---------- contact page ---------- */
.contact-grid{
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.info-card{ margin-bottom: 30px; }
.info-card h3{ font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #1685b5; margin-bottom: 10px; }
.info-card p{ font-size: 16px; color: #17202a; line-height: 1.6; }
.info-card p.muted{ font-size: 13.5px; color: #8493a0; margin-top: 6px; }
.info-card a{ color: inherit; text-decoration: none; }
.info-card a:hover{ color: #0b6e99; }
.info-card .pillar-link{ display: block; margin-bottom: 8px; font-size: 15px; }
.info-card .pillar-link:last-child{ margin-bottom: 0; }

.contact-form{
    background: #f7f9fb;
    border: 1px solid #e1e7eb;
    padding: 40px;
}

.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label{ font-size: 13px; font-weight: 700; color: #17202a; }
.form-field input,
.form-field select,
.form-field textarea{
    font-family: inherit;
    font-size: 14.5px;
    padding: 13px 14px;
    border: 1px solid #cfd8dd;
    background: #ffffff;
    color: #17202a;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{ outline: 2px solid #8cc7df; outline-offset: 1px; }
.form-field textarea{ resize: vertical; min-height: 130px; }

.form-note{ font-size: 13px; color: #8493a0; margin-top: 14px; }
.btn-submit{ border: none; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer{
    background: #071620;
    color: #b9cbd5;
    padding: 80px 30px 0;
}

.footer-grid{
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(140,199,223,.14);
}

.footer-brand img{ width: 190px; height: auto; margin-bottom: 18px; }
.footer-brand p{ font-size: 14px; line-height: 1.7; color: #8fa2ac; max-width: 300px; }

.footer-col h4{
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6bb6d6;
    margin-bottom: 20px;
}

.footer-col ul{ list-style: none; }
.footer-col li{ margin-bottom: 12px; }
.footer-col a{ color: #b9cbd5; text-decoration: none; font-size: 14.5px; }
.footer-col a:hover{ color: #ffca26; }

.footer-bottom{
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #718793;
}

.footer-bottom a{ color: #718793; text-decoration: none; }
.footer-bottom a:hover{ color: #ffca26; }

/* ---------- utility ---------- */
.mt-lg{ margin-top: 34px; }
.narrow{ max-width: 720px; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
    .pillar-grid,
    .course-grid{ grid-template-columns: 1fr 1fr; }
    .steps-row{ grid-template-columns: 1fr 1fr; }
    .discipline-grid{ grid-template-columns: 1fr 1fr; }
    .model-grid{ grid-template-columns: 1fr; }
    .feature-row{ grid-template-columns: 1fr; gap: 34px; }
    .feature-row.reverse{ direction: ltr; }
    .footer-grid{ grid-template-columns: 1fr 1fr; }
    .contact-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
    .nav-toggle{ display: flex; }
    .nav-links{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    .nav-links.open{ max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 18px 32px rgba(11,31,44,.12); }
    .nav-links > li{ border-top: 1px solid #eef1f3; }
    .nav-links > li > a{ padding: 16px 30px; justify-content: space-between; }
    .nav-dropdown{
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-width: none;
        max-height: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        padding: 0 30px;
        transition: max-height .25s ease, padding .25s ease;
    }
    .nav-links > li.dd-open .nav-dropdown{ max-height: 320px; padding: 0 30px 14px; }
    .nav-cta{ margin: 16px 30px; text-align: center; }
    .pillar-grid,
    .course-grid,
    .steps-row,
    .discipline-grid{ grid-template-columns: 1fr; }
    .footer-grid{ grid-template-columns: 1fr; }
    .form-row{ grid-template-columns: 1fr; }
}


/* ==========================================================
   PRODUCTION POLISH
   Accessibility, anchor positioning, nav states and contact UX.
   ========================================================== */
:where(a, button, input, select, textarea):focus-visible{
  outline:2px solid #f7b719;
  outline-offset:3px;
}

html{scroll-behavior:smooth}

:where(#home,#services,#projects,#about,#contact,#piping-plant3d,#stress-analysis,#mechanical,#civil,#structural,#bim,#plant3d,#caesar,#pvelite,#staadpro,#revit,#tekla,#navisworks,#microsoft){
  scroll-margin-top:104px;
}

@media (max-width:760px){
  .nav-links.open{box-shadow:0 18px 32px rgba(11,31,44,.12)}
  .nav-dropdown li a{font-size:13px}
}

.form-status{
  min-height:20px;
  margin-top:12px;
  font-size:13px;
  color:#0b6e99;
}
.form-status.error{color:#a24720}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}


/* ==========================================================
   HEADER PRODUCTION POLISH
   Compact desktop header; preserve navigation and logo branding.
   ========================================================== */
header{
  background:#fff;
}

header nav{
  min-height:76px;
  padding:11px 30px;
}

header .logo img{
  width:min(205px,22vw);
  height:auto;
}

header .nav-links{
  gap:28px;
}

header .nav-links a{
  font-size:14px;
}

header .nav-cta{
  padding:10px 20px;
}

@media (max-width:900px){
  header nav{padding:10px 24px;}
  header .logo img{width:190px;max-width:42vw;}
  header .nav-links{gap:20px;}
}

@media (max-width:760px){
  header nav{min-height:68px;padding:9px 20px;}
  header .logo img{width:170px;max-width:58vw;}
}
