/* ============================================================
   HDC STAFF GIS PORTAL — ORGANIZED STYLESHEET
   ============================================================
   Sections are grouped by component for easier maintenance.
   Original design values are retained unless noted.
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS & RESET
   Font stacks, light-theme colors, navigation colors and shared palette.
   ============================================================ */

/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - Light Theme */
:root {
  --background-color: #fcf8ed; /* Main website background */
  --default-color: #212529; /* Default text color */
  --heading-color: #2e8b32; /* Green headings */
  --heading-color2: #19191b; /* Dark secondary headings */
  --accent-color: #2e8b32; /* Brand green for buttons and links */
  --surface-color: #f5f7f5; /* Light gray background for cards */
  --contrast-color: #212529; /* Text on accent-colored elements */
}

/* Nav Menu Colors - Light Theme */
:root {
  --nav-color: #444444; /* Default navigation text */
  --nav-hover-color: #2e8b32; /* Navigation hover color */
  --nav-mobile-background-color: #fcf8ed;
  --nav-dropdown-background-color: #fcf8ed;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #5ab448;
}

:root {
  --bg: #101B15;
  --surface: rgba(22, 34, 26, 0.72);
  --surface-hover: rgba(27, 42, 32, 0.85);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #EDE8DC;
  --text-secondary: #C3CFC4;
  --text-muted: #8A9B8B;
  --accent: #7C93AA;
  --accent-dim: #4E6478;
}

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

/* Color Presets - Light Background */
.dark-background {
  --background-color: #f5f7f5;
  --default-color: #212529;
  --heading-color: #2e8b32;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}


/* ============================================================
   02. GLOBAL ELEMENTS
   Page defaults, hyperlinks and heading typography.
   ============================================================ */

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);

  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/* ============================================================
   03. SITE HEADER
   Top header, logo and scrolled background appearance.
   ============================================================ */

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 15px;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--heading-color);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: #fcf8ed;
}


/* ============================================================
   06. NAVIGATION (DESKTOP & MOBILE)
   Shared dropdown styles followed by desktop, mobile and keyboard rules.
   Existing dropdown state uses .dropdown-active (not .open).
   ============================================================ */

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

/* ----------------------------------------------------------
   1. SHARED NAVIGATION STYLES
   ---------------------------------------------------------- */

.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu li {
  position: relative;
}

.navmenu a {
  display: flex;
  align-items: center;
  gap: 8px;

  font-family: var(--nav-font);
  text-decoration: none;

  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

/* ----------------------------------------------------------
   2. DROPDOWN TOGGLE
   ---------------------------------------------------------- */

.navmenu .dropdown > .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Prevent Bootstrap-generated duplicate arrows */
.navmenu .dropdown > .nav-dropdown-toggle::after,
.navmenu .dropdown > .dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

/* Chevron icon */
.navmenu .dropdown > .nav-dropdown-toggle > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  margin: 0 0 0 6px;
  padding: 0;

  font-size: 12px;
  line-height: 1;

  color: inherit;
  background: transparent !important;
  border: 0;
  border-radius: 0;

  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Active dropdown arrow */
.navmenu .dropdown.dropdown-active
  > .nav-dropdown-toggle > i {
  transform: rotate(180deg);
}

/* ----------------------------------------------------------
   3. DROPDOWN SHARED STYLES
   ---------------------------------------------------------- */

.navmenu .dropdown > .dropdown-menu {
  min-width: 260px;
  padding: 6px;

  background: var(--nav-mobile-background-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  z-index: 9999;
}

/* Dropdown section heading */
.navmenu .dropdown-menu > .dropdown-label {
  display: block;
  margin: 0;
  padding: 8px 12px 6px;

  color: #87988d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;

  cursor: default;
}

/* Dropdown list item */
.navmenu .dropdown-menu > li:not(.dropdown-label) {
  margin: 4px 6px;
}

/* Dropdown links */
.navmenu .dropdown-menu > li:not(.dropdown-label) > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 11px 12px;

  color: var(--nav-dropdown-color);
  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

/* Dropdown link text */
.navmenu .dropdown-menu a > span:first-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

/* Link type: FORM, PDF, DOC, etc. */
.navmenu .dropdown-menu .dropdown-type {
  flex-shrink: 0;

  color: #87988d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Dropdown link hover */
.navmenu .dropdown-menu
  > li:not(.dropdown-label) > a:hover {
  color: var(--nav-dropdown-hover-color);

  background: color-mix(
    in srgb,
    var(--accent-color),
    transparent 92%
  );

  border-color: color-mix(
    in srgb,
    var(--accent-color),
    transparent 65%
  );
}

/* ==========================================================
   4. DESKTOP NAVIGATION
   ========================================================== */

@media (min-width: 1200px) {

  /* Main navigation list */
  .navmenu > ul {
    display: flex;
    align-items: center;
    gap: 0;
  }

  /* Main navigation links */
  .navmenu > ul > li > a {
    padding: 18px 17px;

    color: var(--nav-color);
    font-size: 16px;
    font-weight: 400;

    white-space: nowrap;
  }

  /* Main navigation hover */
  .navmenu > ul > li:hover > a,
  .navmenu > ul > li > a.active,
  .navmenu > ul > li > a:focus-visible {
    color: var(--nav-hover-color);
  }

  /* Last navigation item */
  .navmenu > ul > li:last-child > a {
    padding-right: 0;
  }

  /* ---------- Desktop Dropdown ---------- */

  .navmenu .dropdown > .dropdown-menu {
    display: block;
    position: absolute;

    top: 100%;
    left: 0;
    right: auto;

    width: max-content;
    max-width: min(320px, 90vw);

    margin: 0;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  /* Show dropdown on hover, focus or click */
  .navmenu .dropdown:hover > .dropdown-menu,
  .navmenu .dropdown:focus-within > .dropdown-menu,
  .navmenu .dropdown.dropdown-active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }

  /* Rotate chevron */
  .navmenu .dropdown:hover
    > .nav-dropdown-toggle > i,
  .navmenu .dropdown:focus-within
    > .nav-dropdown-toggle > i,
  .navmenu .dropdown.dropdown-active
    > .nav-dropdown-toggle > i {
    transform: rotate(180deg);
  }

  /* Hide mobile hamburger */
  .mobile-nav-toggle {
    display: none;
  }

}


/* ==========================================================
   5. MOBILE NAVIGATION
   ========================================================== */

@media (max-width: 1199px) {

  /* ---------- Mobile Toggle ---------- */

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--nav-color);
    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    transition: color 0.3s ease;
  }

  /* ---------- Mobile Navigation Container ---------- */

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  /* ---------- Main Mobile Menu ---------- */

  .navmenu > ul {
    display: none;
    position: absolute;

    inset: 60px 20px 20px;

    margin: 0;
    padding: 10px 0;

    background: var(--nav-mobile-background-color);
    border-radius: 8px;

    overflow-x: hidden;
    overflow-y: auto;

    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    z-index: 9998;
  }

  /* ---------- Main Mobile Links ---------- */

  .navmenu > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 20px;

    color: var(--nav-dropdown-color);
    font-size: 17px;
    font-weight: 500;

    white-space: normal;
  }

  /* Mobile link hover */
  .navmenu > ul > li > a:hover,
  .navmenu > ul > li > a.active,
  .navmenu > ul > li > a:focus-visible {
    color: var(--nav-dropdown-hover-color);
  }

  /* ---------- Mobile Dropdown Toggle ---------- */

  .navmenu .dropdown > .nav-dropdown-toggle {
    width: 100%;
    box-sizing: border-box;
  }

  /* Remove circular arrow styling */
  .navmenu .dropdown
    > .nav-dropdown-toggle > i {
    width: auto;
    height: auto;

    margin-left: auto;
    padding: 0;

    font-size: 12px;
    line-height: 1;

    background: transparent !important;
    border-radius: 0;
  }

  /* ---------- Mobile Dropdown Container ---------- */

  .navmenu .dropdown > .dropdown-menu {
    display: none;
    position: static;

    inset: auto;

    width: auto;
    min-width: 0;
    max-width: none;

    margin: 0 15px 8px;
    padding: 8px;

    background: color-mix(
      in srgb,
      var(--accent-color),
      transparent 95%
    );

    border: none;
    border-radius: 6px;
    box-shadow: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  /* Show dropdown on tap */
  .navmenu .dropdown.dropdown-active
    > .dropdown-menu {
    display: block;
  }

  /* Rotate active chevron */
  .navmenu .dropdown.dropdown-active
    > .nav-dropdown-toggle > i {
    transform: rotate(180deg);
  }

  /* ---------- Mobile Dropdown Links ---------- */

  .navmenu .dropdown-menu
    > li:not(.dropdown-label) > a {
    padding: 12px;
    font-size: 14px;
    white-space: normal;
  }

  /* ---------- Mobile Menu Active State ---------- */

  .mobile-nav-active {
    overflow: hidden;
  }

  /* Mobile close button */
  .mobile-nav-active .mobile-nav-toggle {
    position: absolute;

    top: 15px;
    right: 15px;

    margin: 0;

    color: #fff;
    font-size: 32px;

    z-index: 9999;
  }

  /* Mobile overlay */
  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;

    overflow: hidden;

    background: rgba(33, 37, 41, 0.8);
    z-index: 9997;
  }

  /* Show main menu */
  .mobile-nav-active .navmenu > ul {
    display: block;
  }

}


/* ==========================================================
   6. ACCESSIBILITY
   ========================================================== */

/* Keyboard focus */
.navmenu a:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .navmenu *,
  .navmenu *::before,
  .navmenu *::after {
    transition: none !important;
  }

}


/* ============================================================
   07. ENTERPRISE SIGN-IN GATE
   Fullscreen authentication overlay shown before ArcGIS Enterprise login.
   ============================================================ */

/* Hide portal content until authentication succeeds. */
#portalContent[hidden] {
  display: none !important;
}

/* ---------- Sign-in gate ---------- */
.signin-gate {
  position: fixed;
  inset: 0;
  z-index: 10000; /* Above the header and mobile navigation */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--background-color); /* Prevent underlying content showing */
}

.signin-box {
  text-align: center;
  max-width: 380px;
}

.signin-logo {
  height: 40px;
  margin: 0 auto 28px;
}

.signin-title {
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 12px;
}

.signin-lede {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.signin-btn {
  font-size: 14px;
  font-weight: 600;
  color: #101B15;
  background: var(--text);
  border: none;
  border-radius: 7px;
  padding: 13px 22px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.signin-btn:hover { opacity: 0.9; }

.signin-domain {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-muted);
}


/* ============================================================
   08. GLOBAL SECTIONS
   Spacing and scroll offsets shared by page sections.
   ============================================================ */

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}


/* ============================================================
   09. STAFF INTRODUCTION
   Staff landing-page heading and introductory text.
   ============================================================ */

.staff-intro {
    padding:175px 0 105px;
    background:#fcf8ed;
    text-align:center;
}

.staff-intro .container {
    max-width:820px;
}


.staff-intro h1 {
    font:800 clamp(44px,5vw,70px)/1.12 Raleway,sans-serif;
    color:#212529;
    margin:22px 0 20px;
}

.staff-intro p {
    font-size:17px;
    line-height:1.8;
    color:#626b64;
    max-width:620px;
    margin:auto;
}

.eyebrow,.section-kicker {
    font:600 11px Poppins,sans-serif;
    letter-spacing:2.6px;
    color:#2e8b32;}

.eyebrow {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
}


/* ============================================================
   10. STORY / APPLICATION TILES
   Application cards, hover effects and responsive card sizing.
   ============================================================ */

.story-tile {
    display:flex;
    flex-direction:column;
    min-height:100px;
    height:100%;
    background:#dce4d4;
    border:1px solid #e2e9df;
    border-radius:12px;
    padding:27px 30px;
    color:#212529;
    transition:transform .25s,border-color .25s,box-shadow .25s;
}

.story-tile:hover {
    transform:translateY(-4px);
    border-color:#2e8b32;
    box-shadow:0 14px 36px rgba(31,75,35,.08);
}

.story-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.story-category {
    color:#2e8b32;
    background:#eef6ed;
    padding:8px 11px;
    border-radius:5px;
    font:600 11px Poppins,sans-serif;
}

.story-category i {
    font-size: 14px;
    margin-right: 6px;
}

.staff-arrow {
    font-size:16px;
    color:#2e8b32;
}

.story-tile-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
}

.story-tile-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.story-tile-content p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.story-symbol {
    margin:28px 0 16px;
    color:#2e8b32;
    font-size:25px;
}

.story-tile h3 {
    color:#212529;
    font-size:20px;
    font-weight:700;
}

.story-tile p {
    font-size:14px;
    line-height:1.75;
    color:#687169;
    margin:10px 0 20px;
    max-width:460px;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 20px;

    font-size: 12px;
    font-weight: 600;
}

.story-link i {
    margin-left:8px;
    transition:margin .2s;
}

.story-tile:hover .story-link i {
    margin-left:13px;
}

.staff-page .footer {
    border-top:1px solid #e0e6dc;
}


@media(max-width:767px){
    .staff-intro{
        padding:135px 18px 70px
    }

    .staff-intro p{
        font-size:15px
    }

    .staff-collection{
        padding:55px 18px 80px
    }

    .collection-heading h2{
        font-size:27px
    }

    .staff-collection .story-tile {
        min-height: 55px;
        padding: 20px;
    }

    .story-tile-top {
        margin-bottom: 18px;
    }
}

.dashboards-card {
  width: 100%;
  height: 100%;
  padding: 30px;

  background: #dce4d4;
  border: 1px solid #e2e9df;
  border-radius: 12px;
}

.dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 16px;

  color: #212529;
  background: #fcf8ed;

  border: 1px solid #cbd8c7;
  border-radius: 7px;

  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;

  margin-bottom: 7.5px;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.dashboard-btn:hover {
  color: #ffffff;
  background: #2e8b32;
  border-color: #2e8b32;
  transform: translateY(-2px);
}

.dashboard-btn:hover i {
  transform: translate(2px, -2px);
}

.dashboard-btn:focus-visible {
  outline: 2px solid #2e8b32;
  outline-offset: 3px;
}

.dashboards-buttons{
  margin-top: 10px;
}

@media (max-width: 767px) {

    .dashboards-card {
    padding: 22px;
    }

    .dashboards-buttons {
    flex-direction: column;
    }

    .dashboard-btn {
    width: 100%;
    }

}


/* ============================================================
   11. FOOTER
   Footer branding, contact links and mobile layout.
   ============================================================ */

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer {
  padding: 40px 0;
  background: var(--background-color);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-name h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--default-color);
}


/* Contact */

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer-contact p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--default-color);
}

.footer-contact a {
  font-size: 12px;
  color: color-mix(
    in srgb,
    var(--default-color),
    transparent 35%
  );
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-color);
}


/* Mobile */

@media (max-width: 767px) {

  .footer {
    padding: 35px 0;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-contact {
    align-items: center;
    text-align: center;
  }
}


/* ============================================================
   04. SCROLL TO TOP
   Fixed scroll-to-top control and active state.
   ============================================================ */

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--background-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, #87bcc6, transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}


/* ============================================================
   05. ACCESSIBILITY & ANIMATION
   Reduced animation delay on smaller screens.
   ============================================================ */

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
