/* ============================================================
   JHA Media — Clean Stylesheet
   Converted from MotoCMS3 to standard HTML5/CSS

   Color palette:
     Accent:       #f65f30  (orange)
     Dark text:    #302e33  (near-black)
     Medium gray:  #848084
     Light gray:   #9c999c
     Border:       #d6d6d6
     Background:   #ffffff

   Fonts:
     Headings:  Trebuchet MS, Geneva (system)
     Body/Nav:  Ubuntu (Google Fonts)
     Icons:     Font Awesome 4.7
============================================================ */


/* ============================================================
   RESET & BASE
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Ubuntu', sans-serif;
  background-color: #fff;
  color: #302e33;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}


/* ============================================================
   LAYOUT — CONTAINER
============================================================ */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #d6d6d6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

/* Site Name / Logo */
.site-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 2;
  color: #302e33;
}

.site-name a {
  color: #302e33;
  text-decoration: none;
}

.site-name a:hover {
  color: #302e33;
}

.site-name img {
  display: inline-block;
  vertical-align: middle;
}


/* ============================================================
   NAVIGATION
============================================================ */

.site-nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Hamburger button — hidden on desktop */
.menu-toggle {
  display: none;
  background: #efefef;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  color: #000;
  padding: 0 8px;
  line-height: 40px;
}

/* Top-level nav list */
.nav-list {
  display: flex;
  align-items: center;
}

.nav-list > li {
  margin-left: 68px;
}

.nav-list > li:first-child {
  margin-left: 0;
}

/* All nav links */
.nav-link {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #302e33;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: color 0.35s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #f65f30;
}

.nav-arrow {
  font-size: 12px;
  margin-left: 3px;
}

/* Dropdown menus */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 21px);
  left: -69px;
  width: 180px;
  background-color: #302e33;
  padding: 20px 0;
  z-index: 300;
}

/* Hover bridge so mouse can travel to dropdown */
.submenu::before {
  content: '';
  position: absolute;
  top: -21px;
  left: 0;
  width: 100%;
  height: 21px;
  background: transparent;
}

.has-submenu:hover > .submenu {
  display: block;
}

.submenu li {
  display: block;
  position: relative;
  text-align: center;
}

.submenu .nav-link {
  color: #fff;
  background-color: #302e33;
  font-size: 14px;
  line-height: 18px;
  padding: 9px 0;
  text-align: center;
}

.submenu .nav-link:hover {
  color: #f65f30;
}

/* Third-level dropdown */
.submenu-level-2 {
  top: 0;
  left: 100%;
}

.submenu-level-2::before {
  top: 0;
  left: -4px;
  width: 4px;
  height: 100%;
}


/* ============================================================
   SECTIONS — INTRO
============================================================ */

.section-intro {
  padding: 50px 0 20px;
  text-align: center;
}


/* ============================================================
   SECTIONS — TWO COLUMN
============================================================ */

.section-two-col {
  padding: 20px 0 60px;
}

.two-col {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.col {
  flex: 1;
  text-align: center;
}

.col-image {
  margin: 0 auto 20px;
  max-width: 100%;
}

.col-image img {
  margin: 0 auto;
  max-width: 100%;
}


/* ============================================================
   SECTIONS — BACKGROUND IMAGE BANNER
============================================================ */

.section-bg-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.bg-spacer {
  height: 300px;
}


/* ============================================================
   TYPOGRAPHY — MATCHING ORIGINAL moto-text_system_* CLASSES
============================================================ */

/* moto-text_system_4 — "Hello There!" big display heading */
.heading-xl {
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  font-weight: 700;
  font-size: 102px;
  line-height: 1.1;
  letter-spacing: -4px;
  color: #302e33;
  text-align: center;
  margin-bottom: 20px;
}

/* moto-text_system_6 — Section headings (CONSULTING, RESEARCH) */
.heading-section {
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: 1px;
  color: #302e33;
  text-align: center;
  margin-bottom: 4px;
}

/* moto-text_system_11 — Small subheadings (Figuring it Out / Looking it Up) */
.heading-sub {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #848084;
  text-align: center;
  margin-bottom: 20px;
}

/* moto-text_system_9 — Column h3 labels (CONSULTING, GENEALOGY...) */
.heading-col {
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: #302e33;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* moto-text_system_10 — Body paragraph text */
.text-body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.9;
  color: #848084;
  margin-bottom: 16px;
}

.text-body a {
  color: #848084;
  text-decoration: none;
}

.text-body a:hover {
  color: #f65f30;
}

.text-center {
  text-align: center;
}


/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid #d6d6d6;
}

/* moto-text_system_13 — Footer text */
.footer-text {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-size: 10px;
  line-height: 1.7;
  color: #9c999c;
  text-align: center;
}

.footer-text a {
  color: #9c999c;
  text-decoration: none;
}

.footer-text a:hover {
  color: #f65f30;
}


/* ============================================================
   RESPONSIVE — TABLET (max 1039px)
============================================================ */

@media (max-width: 1039px) {
  .site-name {
    font-size: 18px;
  }

  .nav-list > li {
    margin-left: 52px;
  }

  .nav-link {
    font-size: 13px;
  }

  .submenu .nav-link {
    font-size: 12px;
  }

  .heading-xl {
    font-size: 49px;
    letter-spacing: 0;
  }

  .heading-section {
    font-size: 30px;
  }

  .heading-col {
    font-size: 13px;
  }

  .text-body {
    font-size: 12px;
    line-height: 1.4;
  }
}


/* ============================================================
   RESPONSIVE — MOBILE (max 767px)
============================================================ */

@media (max-width: 767px) {
  .site-name {
    font-size: 20px;
  }

  /* Show hamburger, hide nav list by default */
  .menu-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    background: #fff;
    border: 2px solid #d6d6d6;
    width: 240px;
    z-index: 500;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list > li {
    margin-left: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    padding: 10px 50px 10px 20px;
    font-size: 15px;
    line-height: 1.2;
    color: #9c999c;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #f65f30;
  }

  /* Mobile dropdowns — stack inline */
  .submenu {
    display: none;
    position: static;
    width: 100%;
    padding: 0;
    background: #302e33;
  }

  .submenu::before {
    display: none;
  }

  .has-submenu.open > .submenu {
    display: block;
  }

  .submenu .nav-link {
    padding: 7px 40px;
    text-align: left;
    font-size: 14px;
  }

  .submenu-level-2 {
    position: static;
    left: auto;
    top: auto;
  }

  .submenu-level-2 .nav-link {
    padding: 7px 40px 7px 60px;
  }

  /* Two-col stacks to single column */
  .two-col {
    flex-direction: column;
  }

  .heading-xl {
    font-size: 45px;
  }

  .heading-section {
    font-size: 30px;
  }

  .heading-col {
    font-size: 18px;
  }

  .text-body {
    font-size: 14px;
    line-height: 1.2;
  }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 479px)
============================================================ */

@media (max-width: 479px) {
  .site-name {
    font-size: 16px;
  }

  .heading-xl {
    font-size: 40px;
  }

  .heading-section {
    font-size: 30px;
  }

  .text-body {
    font-size: 12px;
    line-height: 1.2;
  }
}


/* ============================================================
   SUB-SITE STYLES (Harrison DNA / Robb DNA pages)
============================================================ */

/* Nav centered across full header width */
.site-nav-full {
  width: 100%;
  justify-content: center;
}

/* Narrower content column for text-heavy sub-pages */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Content section padding */
.section-content {
  padding: 40px 0 60px;
}

/* Orange accent text (e.g. project title headings) */
.text-orange {
  color: #f65f30;
}

/* Accent link (e.g. "Order a DNA test now") */
.link-accent {
  color: #f65f30;
  text-decoration: none;
  font-family: 'Trebuchet MS', Geneva, sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.link-accent:hover {
  color: #eb3f0a;
  text-decoration: underline;
}

/* Body-color link (e.g. CC license) */
.link-body {
  color: #848084;
  text-decoration: underline;
}

.link-body:hover {
  color: #f65f30;
}
