/* ===============================
   PLATINUM 3SIXTY – GLOBAL STYLES
   Cleaned stylesheet so each page
   controls its own hero image
   =============================== */

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@200;300;400;500;600;700;800;900&display=swap');

@font-face {
  font-family: 'Sansation';
  src: url('/fonts/Sansation_Light.ttf');
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

/* BODY / TYPOGRAPHY */
body {
  background: #0d0d0d;
  color: #fff;
  font-family: 'Sansation', Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Sansation', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #d49800;
}

p {
  font-size: 16px;
  color: #ccc;
}

a {
  color: #d49800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINERS & SECTIONS */
section {
  padding: 60px 20px;
}

.container,
.main-container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===============================
   BUTTONS
   =============================== */

.btn__primary {
  display: inline-block;
  background: #d49800;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn__primary:hover {
  background: #f0b000;
  transform: translateY(-1px);
}

/* ===============================
   NAVIGATION (matches current pages)
   =============================== */

nav.nav {
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand block */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-link img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-labels {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.brand-sub {
  color: #d49800;
  font-weight: 600;
  font-size: 12px;
}

/* Desktop links */
.navbar__links ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #d49800;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* Mobile full-screen menu */
.mobile__menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile__menu.show {
  display: flex;
}

.mobile__menu a {
  color: #fff;
  font-size: 22px;
  padding: 12px 0;
  border-bottom: 1px solid #222;
  width: 60%;
  text-align: center;
}

/* ===============================
   HERO / SHOWCASE
   (NO GLOBAL BACKGROUND IMAGE)
   =============================== */

/*
  IMPORTANT:
  - Do NOT set a default background-image here.
  - Each page (home, about, services, case studies,
    individual case studies, resource centre, etc.)
    sets its own hero background in its own <style>.
*/

.showcase {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 80px 16px;
  overflow: hidden;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.showcase__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.showcase__content h1 {
  font-size: 52px;
  color: #fff;
  margin-bottom: 6px;
}

.showcase__content h2 {
  font-size: 24px;
  color: #d49800;
  margin-top: 6px;
  margin-bottom: 10px;
}

.showcase__content p {
  color: #fff;
  margin-bottom: 18px;
}

.hero-logo {
  max-width: 180px;
  margin: 0 auto 16px;
  display: block;
}

/* Hero on smaller screens */
@media (max-width: 768px) {
  .showcase {
    padding: 60px 16px;
    min-height: 260px;
  }

  .showcase__content h1 {
    font-size: 40px;
  }

  .showcase__content h2 {
    font-size: 20px;
  }
}

/* ===============================
   HOMEPAGE – SERVICES GRID
   (hp-section-3)
   =============================== */

.hp-section-3 {
  padding: 60px 16px;
  background: #0a0a0a;
}

.hp-section-3 h2 {
  color: #d49800;
  text-align: center;
  margin-bottom: 20px;
}

.hp-section-3__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hp-section-3__card {
  background: #141414;
  border-radius: 8px;
  border: 1px solid #d49800;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-section-3__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.hp-section-3__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hp-section-3__card h4 {
  color: #d49800;
  margin: 12px 12px 6px;
}

.hp-section-3__card p {
  color: #ccc;
  margin: 0 12px 16px;
}

.hp-section-3__card.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ===============================
   CASE STUDIES GRID (LIST PAGE)
   =============================== */

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.case-card {
  background: #141414;
  border: 1px solid #d49800;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-card > div {
  padding: 16px;
}

.case-card h3 {
  color: #d49800;
  margin-bottom: 10px;
}

.case-card p {
  color: #ccc;
  margin-bottom: 10px;
}

/* ===============================
   EMBEDDED PDF FRAMES (CASE STUDIES)
   =============================== */

.pdf-frame {
  width: 100%;
  height: 780px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: #111;
}

@media (max-width: 768px) {
  .pdf-frame {
    height: 600px;
  }
}

/* ===============================
   GENERIC FORM WRAPPER
   (Contact / Quote forms)
   =============================== */

.contact__form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #121212;
  border-radius: 10px;
}

.contact__form__container {
  padding: 24px;
}

.contact__form__heading h3 {
  color: #d49800;
  margin-bottom: 8px;
}

.contact__form__heading h2 {
  color: #fff;
  margin-bottom: 12px;
}

.contact__form__item {
  margin-bottom: 14px;
}

.contact__form__item input,
.contact__form__item textarea,
.contact__form__item select {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #fff;
  font-size: 15px;
}

.contact__form__item input:focus,
.contact__form__item textarea:focus,
.contact__form__item select:focus {
  outline: none;
  border-color: #d49800;
}

/* ===============================
   FOOTER – STANDARD ACROSS PAGES
   =============================== */

footer.footer {
  background: #111;
  padding: 40px 20px;
  border-top: 1px solid #222;
}

.footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: flex-start;
}

.footer__left p {
  color: #ccc;
  margin-bottom: 10px;
}

.socials {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}

.footer-social {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-badge {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer__right h3 {
  color: #d49800;
  margin-bottom: 8px;
  font-size: 22px;
}

.footer__right p {
  color: #ccc;
  margin: 4px 0;
}

/* Slug bar at very bottom */
.slug {
  background: #000;
  color: #888;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.slug a {
  color: #d49800;
  text-decoration: none;
}

/* Footer layout on small screens */
@media (max-width: 768px) {
  .footer__wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ===============================
   SMALL RESPONSIVE TWEAKS
   =============================== */

@media (max-width: 576px) {
  section {
    padding: 40px 16px;
  }

  .showcase__content h1 {
    font-size: 34px;
  }

  .showcase__content h2 {
    font-size: 18px;
  }
}
/* === FIX: ABOUT + SERVICES HERO ZOOM === */

/* About Page */
body.about-page header .showcase {
  background-position: top center !important;
  background-size: contain !important;
  min-height: 45vh !important;
}

/* Services Page */
body.services-page header .showcase {
  background-position: top center !important;
  background-size: contain !important;
  min-height: 45vh !important;
}

/* Desktop only – better cropping */
@media (min-width: 900px) {
  body.about-page header .showcase,
  body.services-page header .showcase {
    background-size: cover !important;
    background-position: top !important;
  }
}
/* === PAGE-SPECIFIC HERO FIXES (OVERRIDE GLOBAL SHOWCASE) === */

/* ABOUT PAGE */
.about-page .showcase {
  background-image: url('/imgs/about-hero.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  min-height: 420px !important;
}

/* SERVICES PAGE */
.services-page .showcase {
  background-image: url('/imgs/services-hero.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  min-height: 420px !important;
}

/* CASE STUDIES PAGE */
.case-studies-page .showcase {
  background-image: url('/imgs/casestudy-hero.jpg') !important;
  background-size: cover !important;
  background-position: center top !important;
  min-height: 420px !important;
}
/* === FINAL OVERRIDE FIX — THIS ALWAYS WINS === */

/* ABOUT PAGE HERO */
body.about-page header .showcase {
    background-image: url('/imgs/about-hero.jpg') !important;
    background-size: cover !important;
    background-position: top center !important;
    height: 420px !important;
    min-height: 420px !important;
}

/* SERVICES PAGE HERO */
body.services-page header .showcase {
    background-image: url('/imgs/services-hero.jpg') !important;
    background-size: cover !important;
    background-position: top center !important;
    height: 420px !important;
    min-height: 420px !important;
}

/* CASE STUDIES HERO */
body.case-studies-page header .showcase {
    background-image: url('/imgs/casestudy-hero.jpg') !important;
    background-size: cover !important;
    background-position: top center !important;
    height: 420px !important;
    min-height: 420px !important;
}

/* FINAL HARD OVERRIDE — stops style.css overriding About hero */
body.about-page header .showcase {
  
    height: 420px !important;
    min-height: 420px !important;
    background-position-y: center !important; /* stops zoom cropping */
}
/* === FINAL FIX: RESTORE HERO BACKGROUNDS ON ALL PAGES === */

header .showcase {
    background-image: inherit !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* ABOUT PAGE HERO */
body.about-page header .showcase {
    background-image: url('/imgs/about-hero.jpg') !important;
}

/* SERVICES PAGE HERO */
body.services-page header .showcase {
    background-image: url('/imgs/services-hero.jpg') !important;
}

/* CASE STUDIES HERO */
body.casestudies-page header .showcase {
    background-image: url('/imgs/casestudy-hero.jpg') !important;
}

/* CONTACT PAGE HERO */
body.contact-page header .showcase {
    background-image: url('/imgs/contact-hero.jpg') !important;
}
