/* ===================================================
   PointBIM 2025 - User CSS Overrides
   ---------------------------------------------------
   Table of Contents
   1. Fonts & Global Setup
   2. Layout & Structure
   3. Header & Navigation
   4. Buttons
   5. Hero Banner
   6. Intro Split Section
   7. Responsive Tweaks
   =================================================== */


/* ==========================
   1. Fonts & Global Setup
   ========================== */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/oswald-700.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/spacemono-400.woff2") format("woff2");
  font-display: swap;
}

/* Base text + typography defaults */
body {
  font-family: "Space Mono", monospace;
  font-size: 15px; /* matches Helix body size */
  line-height: 1.6;
}

/* Headings */
h1, .h1, .page-header h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 42px;  /* Helix H1 */
  line-height: 1.2;
}

h2, .h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 33px;  /* Helix H2 */
  line-height: 1.3;
}

h3, .h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 26px;  /* Helix H2 */
  line-height: 1.3;
}


/* ==========================
   2. Layout & Structure
   ========================== */

 
/* Reset body background (optional) */
body {
  margin: 0;             /* remove default browser margin */
  background-color: #f7f7f7; /* outside background */
  padding-left: 0;
  padding-right: 0;
}

/* Optional: add a subtle box shadow around the main content */
.container-main {
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* =====================================
   Universal boxed layout at 1320px
   (DO NOT box #topbar itself)
   ===================================== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl,
.container-header,
.container-main,
.container-component,
.container-footer,
.site {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}




/* ===========================
   Header + Nav (final clean)
   =========================== */

/* Tunables */
:root{
  --topbar-h: 30px;    /* height of top bar row */
  --bar-h:   90px;     /* height of logo/menu row */
  --brand-w: 250px;    /* reserved width for logo column */
  --header-pad: 24px;  /* side padding for desktop header row */
}

/* Header layout: 2 rows (topbar, logo/menu), 2 cols (logo | menu) */
.header.container-header{
  display: grid;
  grid-template-rows: var(--topbar-h) var(--bar-h);
  grid-template-columns: var(--brand-w) 1fr;
  height: calc(var(--topbar-h) + var(--bar-h));
  background: #333;
  position: sticky; top: 0; z-index: 9999;   /* sticky header */
  padding: 0;
  box-sizing: border-box;
}

/* Row 1: Topbar spans full header width */
.header.container-header .container-topbar{
  grid-row: 1; grid-column: 1 / -1;
}

/* Row 2: Logo (left) */
.header.container-header .brand-col{
  grid-row: 2; grid-column: 1;
  display:flex; align-items:center;
}
.header.container-header .brand-col .navbar-brand img{
  display:block;
  height: var(--bar-h);         /* keeps logo sized to row */
  width:auto;
}

/* Row 2: Menu (right) */
.header.container-header .header-nav{
  grid-row: 2; grid-column: 2;
  display:flex; align-items:center; justify-content:flex-end;
}

/* Horizontal menu */
.header.container-header .header-nav > ul.mod-menu{
  list-style:none; margin:0; padding:0;
  display:flex; gap:32px;
}
.header.container-header .header-nav > ul.mod-menu > li{ position:relative; }
.header.container-header .header-nav > ul.mod-menu > li > a,
.header.container-header .header-nav > ul.mod-menu > li > span.mod-menu__heading{
  display:flex; align-items:center;
  height: var(--bar-h);
  padding: 0 14px;
  color:#fff; text-decoration:none;
  font-weight:600; letter-spacing:.02em;
}
.header.container-header .header-nav > ul.mod-menu > li > a:hover,
.header.container-header .header-nav > ul.mod-menu > li > span.mod-menu__heading:hover{
  color:#ddd;
}

/* Caret for items with children */
.header.container-header .header-nav > ul.mod-menu > li.parent > a::after,
.header.container-header .header-nav > ul.mod-menu > li.parent > span.mod-menu__heading::after{
  content:"▾"; margin-left:.35rem; font-size:.85em; line-height:1;
}

/* Dropdowns (no hover gap) */
.header.container-header .header-nav > ul.mod-menu > li > ul{
  position:absolute; top:100%; left:0;             /* flush to parent */
  display:none; list-style:none; margin:0; padding:8px 0;
  min-width:220px; background:#2f2f2f; color:#fff;
  border-radius:4px; box-shadow:0 10px 24px rgba(0,0,0,.28);
  z-index:1002;
}
.header.container-header .header-nav > ul.mod-menu > li:hover > ul,
.header.container-header .header-nav > ul.mod-menu > li:focus-within > ul{
  display:block;
}
.header.container-header .header-nav > ul.mod-menu > li > ul > li > a,
.header.container-header .header-nav > ul.mod-menu > li > ul > li > span{
  display:block; padding:10px 16px; color:#fff; text-decoration:none; white-space:nowrap;
}
.header.container-header .header-nav > ul.mod-menu > li > ul > li > a:hover{
  background:#444;
}
.header.container-header .header-nav > ul.mod-menu > li > ul > li + li > a{
  border-top:1px solid rgba(255,255,255,.06);
}

/* Make sure the last dropdown stays on screen */
.header.container-header .header-nav > ul.mod-menu > li:last-child > ul{ right:0; left:auto; }

/* ===========================
   Topbar (desktop + mobile)
   =========================== */

/* NOTE: remove #topbar from any "boxed container" selector elsewhere;
   let #topbar be full-bleed. If you want boxed content inside, wrap a .container. */

#topbar, .topbar{
  background: transparent; /* background lives on .container-topbar */
  color:#fff;
  font-size:14px; 
  line-height:1.4;
  padding: 0 20px;            /* no vertical padding; height via min-height */
  display:flex; align-items:center; justify-content:flex-end;
  min-height: var(--topbar-h);
  font-weight:600; letter-spacing:.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 0 1px rgba(255,255,255,.18);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#topbar i, .topbar i{ margin-right:6px; color:#f2f2f2; font-size:14px; }
#topbar a, .topbar a{ color:#fff; text-decoration:none; display:inline-block; padding:2px 0; }
#topbar a + a, .topbar a + a{ margin-left:24px; }
#topbar a:hover, .topbar a:hover{ color:#ddd; }

/* ===========================
   Mobile (≤ 992px)
   =========================== */

@media (max-width: 992px){

  /* Let header grow if needed; keep three-row feel if menu stacks later */
  .header.container-header{
    padding-left: 0; padding-right: 0;          /* full-bleed on small screens */
    grid-template-columns: 1fr auto;            /* brand | burger */
    grid-template-rows: var(--topbar-h) var(--bar-h);
    height:auto;                                 /* allow menu panel to expand */
  }
  .header.container-header .brand-col{
    padding-left: 16px;
    grid-row:2; grid-column:1;
  }
  .header.container-header .header-nav{
    grid-row:2; grid-column:2;
    padding-right: 16px;
  }

  /* Topbar centered horizontally & vertically on mobile */
  #topbar, .topbar{
    justify-content:center; align-items:center;
    padding: 6px 12px;
  }
  #topbar a + a, .topbar a + a{ margin-left:16px; }

  /* Mobile menu panel: hidden by default… */
  .header.container-header .header-nav > ul.mod-menu{
    display:none;
    position:absolute; left:0; right:0;
    top: calc(var(--topbar-h) + var(--bar-h));
    background:#333; z-index:2000;
    flex-direction:column; gap:0; list-style:none;
    margin:0; padding: 12px;
    box-shadow:0 10px 24px rgba(0,0,0,.25);
  }
  /* …shown when header has .nav-open (toggled by JS) */
  .header.container-header.nav-open .header-nav > ul.mod-menu{ display:flex; }

  /* Mobile menu item sizing */
  .header.container-header .header-nav > ul.mod-menu > li > a,
  .header.container-header .header-nav > ul.mod-menu > li > span.mod-menu__heading{
    height:auto; line-height:1.3; padding:12px 8px;
  }

  /* Submenus open in-flow on mobile */
  .header.container-header .header-nav > ul.mod-menu > li > ul{
    position:static; display:none; background:transparent; box-shadow:none;
    padding:0; margin:0 0 6px 0;
  }
  .header.container-header .header-nav > ul.mod-menu > li.open > ul,
  .header.container-header .header-nav > ul.mod-menu > li:focus-within > ul{
    display:block;
  }
}

@media (min-width: 993px){
  .nav-toggle{ display:none; }
}

/* ===========================
   Small quality-of-life resets
   =========================== */

/* Remove browser default body margin (fixes top gap) */
body{ margin:0; }

/* Ensure the hero/content can't slide under sticky header if you switch to position:fixed
   (Not needed for position:sticky, but harmless.) */
/* body{ padding-top: calc(var(--topbar-h) + var(--bar-h)); }  */

/* ==========================
   4. Buttons
   ========================== */
.sppb-btn,
input[type="submit"],
button,
.sppb-addon-button .sppb-btn {
  background-color: #4E7993;
  border: 2px solid #f2f2f2;
  color: #ffffff;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 22px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;   /* 🔽 removes underline */
}
.sppb-btn:hover,
input[type="submit"]:hover,
button:hover,
.sppb-addon-button .sppb-btn:hover {
  background-color: #9B6A7D;
  color: #ffffff;
  border-color: #ffffff;
  text-decoration: none;   /* 🔽 keeps it off on hover too */
}


/* ==========================
   5. Hero Banner
   ========================== */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 6s ease;
}
.hero-banner:hover img {
  transform: scale(1.05);
}
.hero-title {
  position: absolute;
  border-radius: 0;
  text-align: center;
}

/* Hero title positions */
.hero-title.center   { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-title.top-left  { top: 0; left: 0; transform: none; }
.hero-title.top-right { top: 20px; right: 20px; }
.hero-title.bottom-left { bottom: 20px; left: 20px; }
.hero-title.bottom-right { bottom: 20px; right: 20px; }

/* ==========================
   5. Hero Title Case
   ========================== */

/* Wrapper-based differences (backgrounds, height, overlay, etc.) */
.hero--case .hero-title h3 { /* case-study heading styles */ }
.hero--service .hero-title h1 { /* service heading styles */ }

/* Heading-specific tweaks (font, casing, spacing) */
.hero-title--case h3 {
  /* e.g. */
  color: #F2f2f2;
  background: rgba(51, 51, 51, 1);
  padding: 20px 20px 20px 20px;
  text-shadow: 0px 0px 2px;
  margin: 0;

}

.hero-title--service h1 {
  /* e.g. */
  color: #000;
  background: rgba(255, 255, 255, .8);
  padding: 20px 20px 20px 20px;
  text-shadow: 0px 0px 1px;
}

@media (max-width: 768px) {
  .hero-title--case {
    display: none;
  }
}


/* ==========================
   6. Intro Split Section
   ========================== */
.intro-container {
  display: flex;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}
.intro-heading {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  z-index: 10;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 12px;
}
.intro-image-wrapper {
  flex: 0 0 50%;
  overflow: hidden;
  position: relative;
}
.intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease;
}
.intro-image:hover { transform: scale(1.05); }
.intro-text {
  flex: 0 0 50%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
}
.intro-text p:first-of-type { margin-top: 100px; }
.intro-text p { margin: 0 0 18px; }

/* ==========================
   6. Case Study Snippets
   ========================== */

.case-study {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}

.case-study-image {
  flex: 1 1 50%;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: auto;
  transition: transform 5s ease;
}

.case-study-image:hover img {
  transform: scale(1.05); /* subtle zoom */
}

.case-study-text {
  flex: 1 1 50%;
  padding: 20px;
}

.case-study-text h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.case-study-text p {
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .case-study {
    flex-direction: column;
  }

  .case-study-image,
  .case-study-text {
    flex: 1 1 100%;
    padding: 10px 0;
  }

  .case-study-text h2 {
    font-size: 1.3rem;
  }
}

/* ==========================
   7. Responsive Tweaks
   ========================== */
@media (max-width: 768px) {
  /* Hero title */
  .hero-title h1 {
    font-size: 1.2rem !important;
    line-height: 1.3;
  }
  .hero-title { padding: 2px 4px; }

  /* Intro split stacks */
  .intro-container { flex-direction: column; }
  .intro-heading {
    position: static;
    transform: none;
    text-align: center;
    margin-bottom: 20px;
    background: none;
    padding: 0;
    font-size: 28px;
  }
  .intro-text {
    padding: 20px;
    font-size: 16px;
  }
  .intro-text p:first-of-type { margin-top: 0; }
}


/* header should NOT have side padding */
.header.container-header{
  padding-left: 0;
  padding-right: 0;
}

/* add the breathing room to the inner cells */
:root{ --header-pad: 24px; } /* keep your value */

.header.container-header .brand-col{  padding-left:  var(--header-pad); }
.header.container-header .header-nav{  padding-right: var(--header-pad); }

/* keep the topbar row full header width (1320px) */
.header.container-header .container-topbar{ background:#444; width:100%; }

/* Mobile: submenus open ONLY when .open is set by JS */
@media (max-width: 992px){
  /* neutralize desktop rule on mobile */
  .header.container-header .header-nav > ul.mod-menu > li:focus-within > ul{
    display: none !important;
  }
  /* the only way to show a submenu on mobile */
  .header.container-header .header-nav > ul.mod-menu > li.open > ul{
    display: block !important;
  }
}

/* === BURGER — FINAL (span version): 40×30, tight stack, rounded ends, no hover === */

/* show burger only on mobile/tablet */
@media (max-width: 992px){
  .header.container-header .nav-toggle{
    display:flex !important;
    flex-direction:column !important;   /* vertical stack */
    justify-content:center !important;
    align-items:center !important;
    width:40px;
    height:30px;
    gap:4px;                             /* spacing between lines */
    padding:0;
    background:transparent !important;
    border:0 !important;
    line-height:0;
    box-shadow:none !important;
    appearance:none;
  }

  .header.container-header .nav-toggle .bar{
    display:block !important;            /* beat any older inline rules */
    width:28px;                          /* line length */
    height:3px;                          /* line thickness */
    background:#fff;                     /* static color */
    border-radius:999px;                 /* rounded ends */
    box-shadow:none !important;
    transition:none !important;          /* no hover effects */
  }

  /* explicitly kill any old hover/active styles */
  .header.container-header .nav-toggle:hover .bar,
  .header.container-header .nav-toggle:focus-visible .bar,
  .header.container-header.nav-open .nav-toggle .bar{
    background:#fff !important;
    box-shadow:none !important;
  }
}

/* hide burger on desktop only */
@media (min-width: 993px){
  .header.container-header .nav-toggle{ display:none !important; }
}

/* === Burger visibility fix (use currentColor, force size/stack) === */
@media (max-width: 992px){
  /* give the button a color – bars inherit this */
  .header.container-header .nav-toggle{
    color:#fff;                  /* change here if you want darker/lighter */
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    width:40px; height:30px;
    gap:4px;
    background:transparent !important;
    border:0 !important;
    line-height:0;
  }

  .header.container-header .nav-toggle .bar{
    display:block !important;    /* beat any global .bar rules */
    width:28px !important;
    height:3px !important;
    background-color: currentColor !important;  /* <- uses .nav-toggle color */
    border-radius:999px;
    box-shadow:none !important;
    opacity:1 !important;
  }

  /* (optional) if you want hover/active to match menu hover */
  /* .header.container-header .nav-toggle:hover { color:#ddd; } */
  /* .header.container-header.nav-open .nav-toggle { color:#ddd; } */
}

/* hide burger on desktop */
@media (min-width: 993px){
  .header.container-header .nav-toggle{ display:none !important; }
}



/* ==========================
   7. Responsive Image Block 50%
   ========================== */

/* Responsive Image Block */
.responsive-image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* hides zoom spillover */
}

.responsive-image-block img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hover zoom effect (desktop only) */
@media (hover: hover) and (pointer: fine) {
  .responsive-image-block img {
    transition: transform 6s ease;
  }

  .responsive-image-block:hover img {
    transform: scale(1.05);
  }
}


/* ==========================
   7. Back To Service Link
   ========================== */

.case-study-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.case-study-nav a {
  color: #fff; /* match your menu colour */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.case-study-nav a:hover {
  color: #9B6A7D; /* hover colour */
}




