/* ================================================================
   NRDS UNIVERSAL — Main Stylesheet
   Brand: Red #CC1500 | Navy #0D1B2A | White #FFFFFF
   Edit colours here to change site-wide theme
   ================================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables (edit here to retheme) ---- */
:root {
  --red:       #CC1500;
  --red-dark:  #A01000;
  --red-light: #E01800;
  --navy:      #0D1B2A;
  --navy-mid:  #1A2E44;
  --white:     #FFFFFF;
  --offwhite:  #F7F7F7;
  --grey:      #F0F0F0;
  --text:      #1A1A1A;
  --text-mid:  #444444;
  --text-light:#777777;
  --border:    #E0E0E0;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius:    4px;
  --transition:0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:var(--font-body); color:var(--text); background:var(--white); line-height:1.6; font-size:16px; }
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
ul, ol { list-style:none; }

/* ---- Typography ---- */
h1,h2,h3,h4,h5 { font-family:var(--font-head); line-height:1.1; font-weight:800; }
h1 { font-size:clamp(2rem,5vw,3.5rem); }
h2 { font-size:clamp(1.6rem,3.5vw,2.6rem); }
h3 { font-size:clamp(1.2rem,2.5vw,1.8rem); }
h4 { font-size:1.2rem; font-weight:700; }
p  { font-size:1rem; line-height:1.7; color:var(--text-mid); margin-bottom:1rem; }
p:last-child { margin-bottom:0; }

/* ---- Utility Classes ---- */
.container  { max-width:1200px; margin:0 auto; padding:0 24px; }
.text-red   { color:var(--red); }
.text-white { color:var(--white); }
.text-upper { text-transform:uppercase; letter-spacing:0.06em; }
.section-pad { padding:80px 0; }
.section-pad-sm { padding:50px 0; }
.bg-offwhite { background:var(--offwhite); }
.bg-navy    { background:var(--navy); }
.bg-red     { background:var(--red); }
.flex       { display:flex; }
.flex-center{ display:flex; align-items:center; justify-content:center; }
.grid-2     { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.grid-3     { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.grid-4     { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 28px; font-family:var(--font-head);
  font-size:1rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.08em; border:none; cursor:pointer;
  transition:var(--transition); border-radius:var(--radius);
}
.btn-red { background:var(--red); color:#fff; }
.btn-red:hover { background:var(--red-dark); transform:translateY(-2px); box-shadow:var(--shadow); }
.btn-outline { background:transparent; color:#fff; border:2px solid #fff; }
.btn-outline:hover { background:#fff; color:var(--red); }
.btn-navy { background:var(--navy); color:#fff; }
.btn-navy:hover { background:var(--navy-mid); }
.btn-sm { padding:8px 20px; font-size:0.9rem; }
.btn svg { width:18px; height:18px; }

/* ---- Section Heading ---- */
.sec-label {
  display:inline-block;
  font-family:var(--font-head); font-size:0.8rem; font-weight:700;
  letter-spacing:0.2em; text-transform:uppercase; color:var(--red);
  border-left:3px solid var(--red); padding-left:10px;
  margin-bottom:12px;
}
.sec-title { font-size:clamp(1.6rem,3vw,2.4rem); color:var(--navy); margin-bottom:16px; }
.sec-desc  { font-size:1.05rem; color:var(--text-mid); max-width:600px; }
.sec-head  { margin-bottom:48px; }
.sec-head.center { text-align:center; }
.sec-head.center .sec-desc { margin:0 auto; }
.sec-divider { width:48px; height:3px; background:var(--red); margin:12px 0 20px; }
.sec-head.center .sec-divider { margin:12px auto 20px; }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  background:var(--navy); color:rgba(255,255,255,0.75);
  font-size:0.82rem; padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.topbar .container { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.topbar a { color:rgba(255,255,255,0.75); transition:var(--transition); }
.topbar a:hover { color:#fff; }
.topbar-links { display:flex; gap:24px; align-items:center; }
.topbar-social { display:flex; gap:12px; }
.topbar-social a {
  width:26px; height:26px; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,0.2); border-radius:50%; font-size:0.7rem;
  transition:var(--transition);
}
.topbar-social a:hover { background:var(--red); border-color:var(--red); color:#fff; }

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  background:var(--white);
  box-shadow:0 2px 16px rgba(0,0,0,0.08);
  position:sticky; top:0; z-index:1000;
  border-bottom:3px solid var(--red);
}
.header-inner {
  display:flex; align-items:center; justify-content:space-between;
  height:76px; gap:32px;
}
.logo-wrap { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo-img { height:48px; width:48px; object-fit:contain; border-radius:8px; }
.logo-text { font-family:var(--font-head); }
.logo-text .logo-main { display:block; font-size:1.6rem; font-weight:900; color:var(--red); letter-spacing:0.04em; line-height:1; }
.logo-text .logo-sub  { display:block; font-size:0.7rem; font-weight:600; color:var(--navy-mid); letter-spacing:0.12em; text-transform:uppercase; }

/* NAV */
.main-nav { display:flex; align-items:center; gap:4px; }
.nav-item  { position:relative; }
.nav-link  {
  display:flex; align-items:center; gap:4px;
  padding:8px 14px; font-family:var(--font-head);
  font-size:0.95rem; font-weight:700; text-transform:uppercase;
  letter-spacing:0.05em; color:var(--navy); transition:var(--transition);
  border-radius:var(--radius); white-space:nowrap;
}
.nav-link:hover, .nav-link.active { color:var(--red); }
.nav-link svg { width:14px; height:14px; transition:var(--transition); }
.nav-item:hover .nav-link svg { transform:rotate(180deg); }

/* DROPDOWN */
.dropdown {
  position:absolute; top:calc(100% + 8px); left:0;
  background:var(--white); min-width:220px;
  box-shadow:var(--shadow-lg); border-top:3px solid var(--red);
  opacity:0; visibility:hidden; transform:translateY(-8px);
  transition:var(--transition); z-index:999;
}
.nav-item:hover .dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a {
  display:block; padding:10px 20px;
  font-size:0.88rem; font-weight:600; color:var(--text);
  border-bottom:1px solid var(--border); transition:var(--transition);
}
.dropdown a:last-child { border-bottom:none; }
.dropdown a:hover { color:var(--red); padding-left:26px; background:var(--offwhite); }

/* Mobile hamburger */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:4px; }
.hamburger span { display:block; width:26px; height:2px; background:var(--navy); transition:var(--transition); }

/* ================================================================
   HERO BANNER (index page uses JS slider)
   ================================================================ */
.hero-slider { position:relative; height:560px; overflow:hidden; }
.slide {
  position:absolute; inset:0; opacity:0; transition:opacity 0.8s ease;
  background:var(--navy); display:flex; align-items:center;
}
.slide.active { opacity:1; z-index:1; }
/* PHOTO slot for banner: place image as background */
.slide-bg {
  position:absolute; inset:0; background-size:cover; background-position:center;
  filter:brightness(0.55);
}
/* Replace src="images/banner/banner-1.jpg" etc. in each slide */
.slide-content {
  position:relative; z-index:2;
  max-width:1200px; margin:0 auto; padding:0 24px;
}
.slide-label {
  display:inline-block; background:var(--red);
  color:#fff; font-size:0.78rem; font-weight:700;
  letter-spacing:0.16em; text-transform:uppercase;
  padding:5px 14px; margin-bottom:16px;
}
.slide h1 { color:#fff; text-shadow:0 2px 16px rgba(0,0,0,0.4); margin-bottom:20px; max-width:700px; }
.slide p  { color:rgba(255,255,255,0.85); font-size:1.1rem; max-width:540px; margin-bottom:28px; }
.slide-btns { display:flex; gap:14px; flex-wrap:wrap; }

/* Slider controls */
.slider-arrows { position:absolute; bottom:28px; right:32px; z-index:10; display:flex; gap:10px; }
.arrow-btn {
  width:44px; height:44px; border:2px solid rgba(255,255,255,0.4); background:transparent;
  color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:var(--transition); font-size:1.2rem;
}
.arrow-btn:hover { background:var(--red); border-color:var(--red); }
.slider-dots { position:absolute; bottom:36px; left:50%; transform:translateX(-50%); z-index:10; display:flex; gap:8px; }
.dot { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,0.4); cursor:pointer; border:none; transition:var(--transition); }
.dot.active { background:var(--red); }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar { background:var(--red); padding:24px 0; }
.stats-bar .container { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.stat-item { text-align:center; padding:16px 12px; border-right:1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right:none; }
.stat-num { font-family:var(--font-head); font-size:2.4rem; font-weight:900; color:#fff; line-height:1; }
.stat-lbl { font-size:0.82rem; font-weight:600; color:rgba(255,255,255,0.75); text-transform:uppercase; letter-spacing:0.08em; margin-top:4px; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background:var(--white); border:1px solid var(--border);
  transition:var(--transition); overflow:hidden;
}
.card:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.card-img { aspect-ratio:4/3; overflow:hidden; background:var(--grey); position:relative; }
.card-img img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s ease; }
.card:hover .card-img img { transform:scale(1.05); }
/* Placeholder text shown when no real image */
.img-placeholder {
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:8px;
  background:var(--grey); color:var(--text-light);
  font-size:0.8rem; text-align:center; padding:12px;
}
.img-placeholder span { font-size:2rem; opacity:0.4; }
.card-body { padding:20px 22px; }
.card-category { font-size:0.75rem; font-weight:700; color:var(--red); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:8px; }
.card-title { font-size:1.1rem; font-weight:800; color:var(--navy); margin-bottom:8px; font-family:var(--font-head); }
.card-text  { font-size:0.9rem; color:var(--text-mid); line-height:1.5; margin-bottom:14px; }
.card-link  { font-size:0.85rem; font-weight:700; color:var(--red); text-transform:uppercase; letter-spacing:0.06em; display:inline-flex; align-items:center; gap:6px; }
.card-link:hover { gap:10px; }

/* ================================================================
   ABOUT SECTION (2-col)
   ================================================================ */
.about-img { position:relative; }
.about-img img { width:100%; height:440px; object-fit:cover; }
.about-badge {
  position:absolute; bottom:-20px; right:-20px;
  background:var(--red); color:#fff; padding:20px 26px; text-align:center;
  box-shadow:var(--shadow);
}
.about-badge .num { font-family:var(--font-head); font-size:2.8rem; font-weight:900; line-height:1; }
.about-badge .lbl { font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; }
.check-list { display:flex; flex-direction:column; gap:12px; margin:20px 0; }
.check-list li { display:flex; align-items:flex-start; gap:12px; font-size:1rem; color:var(--text-mid); }
.check-list .icon { flex-shrink:0; width:22px; height:22px; background:var(--red); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.7rem; margin-top:2px; }

/* ================================================================
   SERVICE BOXES
   ================================================================ */
.service-box {
  background:var(--white); border:1px solid var(--border);
  padding:32px 28px; transition:var(--transition); position:relative; overflow:hidden;
}
.service-box::before {
  content:''; position:absolute; bottom:0; left:0;
  width:4px; height:0; background:var(--red); transition:height 0.3s ease;
}
.service-box:hover::before { height:100%; }
.service-box:hover { box-shadow:var(--shadow-lg); transform:translateY(-4px); }
.service-icon {
  width:56px; height:56px; background:rgba(204,21,0,0.08);
  border-radius:var(--radius); display:flex; align-items:center;
  justify-content:center; margin-bottom:18px; font-size:1.6rem; color:var(--red);
}
.service-box h4 { color:var(--navy); margin-bottom:10px; font-size:1.15rem; }
.service-box p  { font-size:0.92rem; color:var(--text-mid); }

/* ================================================================
   WHY US / FEATURES
   ================================================================ */
.why-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.why-item { display:flex; gap:20px; align-items:flex-start; }
.why-num {
  flex-shrink:0; width:48px; height:48px;
  background:var(--red); color:#fff; display:flex; align-items:center;
  justify-content:center; font-family:var(--font-head); font-size:1.3rem; font-weight:900;
}
.why-item h4 { color:var(--navy); margin-bottom:6px; }
.why-item p  { font-size:0.9rem; color:var(--text-mid); margin:0; }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.form-group { margin-bottom:18px; }
label { display:block; font-size:0.85rem; font-weight:700; color:var(--navy); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.04em; }
input, select, textarea {
  width:100%; padding:12px 16px;
  border:1.5px solid var(--border); background:var(--white);
  font-family:var(--font-body); font-size:1rem; color:var(--text);
  transition:var(--transition); outline:none; border-radius:var(--radius);
}
input:focus, select:focus, textarea:focus { border-color:var(--red); box-shadow:0 0 0 3px rgba(204,21,0,0.08); }
textarea { resize:vertical; min-height:130px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background:var(--navy); color:rgba(255,255,255,0.75); }
.footer-top  { padding:60px 0 40px; }
.footer-top .container { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; }
.footer-logo-text .logo-main { color:var(--red); font-size:1.8rem; }
.footer-logo-text .logo-sub  { color:rgba(255,255,255,0.5); }
.footer-desc { font-size:0.9rem; color:rgba(255,255,255,0.6); margin:16px 0 20px; line-height:1.6; }
.footer-col h5 { font-family:var(--font-head); font-size:1rem; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; color:#fff; margin-bottom:18px; padding-bottom:10px; border-bottom:2px solid var(--red); }
.footer-col a  { display:block; font-size:0.88rem; color:rgba(255,255,255,0.6); padding:5px 0; transition:var(--transition); }
.footer-col a:hover { color:#fff; padding-left:6px; }
.footer-contact-item { display:flex; gap:10px; font-size:0.88rem; margin-bottom:12px; align-items:flex-start; }
.footer-contact-item .ico { flex-shrink:0; color:var(--red); margin-top:2px; }
.footer-bottom { background:rgba(0,0,0,0.25); padding:16px 0; }
.footer-bottom .container { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.82rem; }
.footer-social { display:flex; gap:10px; }
.footer-social a { width:32px; height:32px; border:1px solid rgba(255,255,255,0.2); display:flex; align-items:center; justify-content:center; border-radius:50%; font-size:0.75rem; color:rgba(255,255,255,0.6); transition:var(--transition); }
.footer-social a:hover { background:var(--red); border-color:var(--red); color:#fff; }

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  background:var(--navy); min-height:220px;
  display:flex; align-items:center; position:relative; overflow:hidden;
}
.page-hero-bg {
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0.22;
}
.page-hero-content { position:relative; z-index:2; }
.page-hero h1 { color:#fff; margin-bottom:8px; }
.breadcrumb { display:flex; gap:8px; align-items:center; font-size:0.88rem; }
.breadcrumb a { color:rgba(255,255,255,0.6); }
.breadcrumb a:hover { color:#fff; }
.breadcrumb span { color:rgba(255,255,255,0.4); }
.breadcrumb .current { color:var(--red); font-weight:600; }

/* ================================================================
   GALLERY GRID
   ================================================================ */
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.gallery-item { aspect-ratio:1; overflow:hidden; cursor:pointer; position:relative; background:var(--grey); }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.gallery-item:hover img { transform:scale(1.08); }
.gallery-overlay {
  position:absolute; inset:0; background:rgba(204,21,0,0.6);
  opacity:0; transition:var(--transition); display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.8rem;
}
.gallery-item:hover .gallery-overlay { opacity:1; }

/* ================================================================
   TABLE (Equipment specs)
   ================================================================ */
.data-table { width:100%; border-collapse:collapse; font-size:0.9rem; }
.data-table th { background:var(--navy); color:#fff; padding:12px 16px; text-align:left; font-family:var(--font-head); font-size:0.9rem; text-transform:uppercase; letter-spacing:0.06em; }
.data-table td { padding:11px 16px; border-bottom:1px solid var(--border); }
.data-table tr:nth-child(even) td { background:var(--offwhite); }
.data-table tr:hover td { background:rgba(204,21,0,0.04); }

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:9999; align-items:center; justify-content:center; padding:20px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:90vw; max-height:88vh; object-fit:contain; box-shadow:0 0 60px rgba(0,0,0,0.5); }
.lightbox-close { position:absolute; top:20px; right:28px; color:#fff; font-size:2rem; cursor:pointer; }
.lightbox-prev, .lightbox-next { position:absolute; top:50%; transform:translateY(-50%); color:#fff; font-size:2rem; cursor:pointer; background:rgba(255,255,255,0.1); border:none; width:48px; height:48px; display:flex; align-items:center; justify-content:center; }
.lightbox-prev { left:12px; }
.lightbox-next { right:12px; }

/* ================================================================
   INQUIRY FLOATING BUTTON
   ================================================================ */
.float-inquiry {
  position:fixed; right:0; top:50%; transform:translateY(-50%);
  z-index:900; display:flex; flex-direction:column; gap:2px;
}
.float-btn {
  writing-mode:horizontal-tb; width:48px; height:auto;
  background:var(--red); color:#fff; padding:12px 8px;
  font-size:0.75rem; font-weight:700; text-align:center;
  letter-spacing:0.06em; text-transform:uppercase; cursor:pointer;
  transition:var(--transition); border:none;
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.float-btn:hover { background:var(--red-dark); width:54px; }
.float-btn .f-ico { font-size:1.2rem; }

/* ================================================================
   BACK TO TOP
   ================================================================ */
#backToTop {
  position:fixed; bottom:24px; right:24px; z-index:890;
  width:44px; height:44px; background:var(--red); color:#fff; border:none;
  cursor:pointer; display:none; align-items:center; justify-content:center;
  font-size:1.2rem; transition:var(--transition); box-shadow:var(--shadow);
}
#backToTop:hover { background:var(--red-dark); transform:translateY(-3px); }
#backToTop.show { display:flex; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width:1024px) {
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .footer-top .container { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .main-nav { display:none; flex-direction:column; position:absolute; top:79px; left:0; right:0; background:var(--white); padding:16px 0; box-shadow:var(--shadow-lg); border-top:3px solid var(--red); }
  .main-nav.open { display:flex; }
  .dropdown { position:static; box-shadow:none; border-top:none; opacity:1; visibility:visible; transform:none; background:var(--offwhite); display:none; }
  .nav-item.open .dropdown { display:block; }
  .nav-link { padding:12px 24px; }
  .hamburger { display:flex; }
  .hero-slider { height:420px; }
  .stats-bar .container { grid-template-columns:1fr 1fr; }
  .stat-item:nth-child(2) { border-right:none; }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .footer-top .container { grid-template-columns:1fr; gap:32px; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  .about-badge { right:0; bottom:-10px; }
  .float-inquiry { display:none; }
  .header-inner { height:64px; }
}
@media (max-width:480px) {
  .stats-bar .container { grid-template-columns:1fr 1fr; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
  .hero-slider { height:340px; }
}
