/*
styles.css — Corporate Clean navy + orange theme for Quarto
Place this file in your project root (next to _quarto.yml) or in a `styles/` folder.
Enable it by adding under `format: html:` in `_quarto.yml`: `css: styles.css` (or `styles/styles.css`).
*/


/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* CHR&R-inspired palette */
  --brand-blue: #003C69;          /* primary headings, footer */
  --blue: #1B70B6;          /* links, buttons */ 
  --light-blue: #A8CFEF ;    /* soft backgrounds */
  --brand-orange: #CD441B;           /* emphasis / alerts */
  --brand-orange-dark: #701A00;
  --bg: #F6F6F6;            /* page background */
  --surface: #FFFFFF;      /* cards */
  --text: #1F2933;         /* body text */
  --muted: #6B7280;        /* secondary text */
  --border: #E5E7EB;
  --radius: 6px;
}

/* Base */
html, body {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Lato", Arial, Helvetica, sans-serif; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--brand-blue);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;  /* higher than menu */
}


/* Buttons */
.btn, .button, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  padding: 1rem 1rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-blue),  #F8931F);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(0.98); }
.btn-outline {
  background: transparent; border: 1px solid var(--light-blue); color: var(--brand-orange);
}

/* Cards and surfaces */
.card, .card-block, .quarto-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px var(--bg);
  padding: 1.25rem;
}

/* Hero */
.site-hero, .hero {
  background: linear-gradient(90deg, var(--bg), transparent);
  border-left: 4px solid var(--brand-blue);
  padding: 2rem;
  border-radius: 12px;
}

a:focus,
button:focus,
.home-link:focus {
  outline: 2px dashed var(--brand-orange); /* subtle instead of big blue box */
  outline-offset: 2px;
}



/* =========================================================
   GLOBAL FULL-WIDTH HEADER + NAV LAYOUT
   ========================================================= */

/* Ensure header + navbar span full width */
.site-header,
.navbar,
.navbar-container,
.page-columns {
  max-width: 100% !important;
}

/* Remove unwanted body spacing above header */
body {
  margin: 0;
  padding-top: 0;
}

/* Top blue header */
.site-header {
  z-index: 1000;
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: left;
}

/* Orange sticky navbar below blue header */
.navbar {
  z-index: 999;
  background-color: var(--brand-orange);
  display: flex;
  justify-content: center;
  align-items: center;      /* vertical centering of links */
  gap: 1rem;
  flex-wrap: nowrap;         /* default: horizontal layout */
  padding: 0 1rem;
  height: 60px;
}

/* Navbar links */
.navbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.1rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: background-color 160ms ease, color 160ms ease;
}

.navbar a:hover {
  background-color: var(--brand-orange-dark);
  color: #ffffff;
}

/* Inner container for navbar links */
.navbar-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;           /* allow wrapping if needed */
}

/* Links with badges stack vertically */
.navbar a.has-badge {
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

/* Badge styling */
.navbar .badge-dev {
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
  opacity: 0.8;
}

/* Make the header content align with navbar */
.site-header {
  background-color: var(--brand-blue);
  padding: 0.75rem 0;  /* vertical padding only */
}

.header-inner {
  max-width: 1200px;           /* same max width as navbar */
  margin: 0 auto;              /* center the container horizontally */
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo sizing */
.site-logo {
  height: 90px;
  width: auto;
  flex-shrink: 0;
}


/* In-text hyperlinks */
main a {
  color: var(--blue);
  text-decoration: underline;
  transition: color 160ms ease;
}

main a:hover {
  color: var(--brand-orange);
}


/* Default: horizontal navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-orange);
  padding: 0 1rem;
  height: 60px;
}

.navbar-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

/* Hover effect */
.navbar a:hover {
  background-color: var(--brand-orange-dark);
}

/* Hamburger button - hidden on desktop */
.navbar-toggle {
  display: none;
  font-size: 1.75rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Mobile dropdown */
@media (max-width: 768px) {
  /* Mobile header behavior */
  /* Hide only the logo image */
  .site-logo {
    display: none;
  }

   /* Header layout */
  .header-inner {
    justify-content: flex-start;
    gap: 0.75rem;
    padding-left: 0.75rem;
  }

  /* Hamburger visible */
  .navbar-toggle {
    display: block;
    font-size: 1.8rem;
    margin-right: 0.5rem;
  }
  
   /* Keep navbar itself visible but hide its horizontal links */
  .navbar {
    background: none; /* remove old orange bar */
    height: auto;
    padding: 0;       /* remove extra spacing */
    justify-content: flex-start; /* keep hamburger left */
  }

  /* Mobile menu container */
  .navbar-inner {
    display: none;
    position: absolute;
    top: 100%;                /* just below header */
    left: 0;
    width: 100%;
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    flex-direction: column;
    background-color: var(--brand-orange);
    padding: 0.5rem 0;
    z-index: 1500;
  }

  /* Show when toggled */
  .navbar.show .navbar-inner {
    display: flex;
  }

  /* Links */
  .navbar a {
    width: 100%;
    padding: 0.9rem 1.25rem;
    text-align: left;
    justify-content: flex-start;
  }

  .navbar a.has-badge {
    flex-direction: column;
    align-items: flex-start;
  }
  

}

/* Show menu when toggled */
.navbar.show .navbar-inner {
  display: flex;
}




/* Remove ALL underline behavior in header link */
.site-header a,
.home-link,
.home-link:hover,
.home-link:focus,
.home-link:active {
  text-decoration: none !important;
  color: inherit !important;
}

/* Header layout */
.home-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Title container */
.site-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Top line */
.title-line-1 {
  font-size: 1.8rem;
  font-weight: 530;
}

/* Bottom line */
.title-line-2 {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
}


/* Hide page titles */
.quarto-title-block {
  display: none;
}

main .coming-soon {
  color: var(--brand-orange);
  font-size: 2rem;      /* much larger */
  font-style: italic;   /* italicize */
  text-align: center;   /* center text */
  font-weight: 600;
  text-transform: uppercase;
}

main .welcome {
  display: block;               /* makes it behave like a paragraph */
  max-width: 100%;              /* allows it to span nearly full width */
  width: 90%;                   /* adjust as desired */
  margin: 0 auto;               /* center it horizontally */
  color: var(--blue);
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
}

/* End of styles */
