/*
 * Groundwork Microsite Overrides
 * Vanilla CSS — no build step required
 * Mirrors the Galvanize concept (Webflow) design direction
 */

/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  /* Colors */
  --gw-sage: #ACC3BA;
  --gw-dark: #051318;
  --gw-dark-muted: #1a2e35;
  --gw-body-bg: #EFF5F6;
  --gw-text: #051318;
  --gw-text-muted: #4a5c63;
  --gw-white: #ffffff;

  /* Typography */
  --gw-font-sans: "Instrument Sans", sans-serif;
  --gw-font-serif: "Instrument Serif", serif;

  /* Spacing */
  --gw-header-height: 80px;
  --gw-container-max: 1200px;
  --gw-container-padding: 24px;
}

/* ========================================
   Base / Body
   ======================================== */
body {
  font-family: var(--gw-font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gw-text);
  background-color: var(--gw-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4 {
  font-family: var(--gw-font-serif);
  font-weight: 400;
  color: var(--gw-text);
}

h1 {
  font-size: 48px;
  line-height: 1.15;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
}

p {
  font-family: var(--gw-font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gw-text);
}

a {
  color: var(--gw-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--gw-text-muted);
}

strong, b {
  font-weight: 600;
}

/* ========================================
   Header
   ======================================== */
.main-header {
  background-color: #285d64;
  background-image:
    linear-gradient(135deg, rgba(40, 93, 100, 0.51) 24%, rgba(230, 230, 230, 0.14)),
    url('./assets/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
}

.main-header .container {
  width: 100%;
  max-width: var(--gw-container-max);
  margin: 0 auto;
  padding: 0 var(--gw-container-padding);
}

/* Nav row — logo */
.main-header .header-nav {
  padding: 20px 0;
}

.main-header .logo {
  display: inline-block;
  width: auto;
  max-width: 200px;
  height: auto;
}

.main-header .logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Title row — page heading + subhead */
.main-header .header-title {
  padding: 32px 0 40px;
}

.main-header .header-title h1 {
  font-family: var(--gw-font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--gw-white);
  margin: 0;
}

.main-header .header-subtitle {
  font-family: var(--gw-font-sans);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 8px 0 0;
}

/* ========================================
   Footer
   ======================================== */
.main-footer {
  background-color: var(--gw-dark);
  color: var(--gw-white);
  padding: 48px 0 32px;
}

.main-footer .footer-inner {
  max-width: var(--gw-container-max);
  margin: 0 auto;
  padding: 0 var(--gw-container-padding);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.main-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.main-footer .footer-logo {
  display: inline-block;
  max-width: 180px;
}

.main-footer .footer-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.main-footer .footer-social a {
  color: var(--gw-white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.main-footer .footer-social a:hover {
  opacity: 1;
}

.main-footer .footer-social a + a {
  margin-left: 16px;
}

.main-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.main-footer .footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.main-footer .footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.main-footer .footer-legal a:hover {
  color: var(--gw-white);
}

/* ========================================
   Content area overrides
   ======================================== */
.main {
  padding-top: 0;
}

/* Hide redundant page-header — main-header already shows the site title */
.page-header {
  display: none;
}

/* Password form styling */
.highlight-password-form {
  text-align: center;
  padding: 80px var(--gw-container-padding);
}

.highlight-password-form h2 {
  font-family: var(--gw-font-serif);
}

.highlight-password-form input[type="password"] {
  font-family: var(--gw-font-sans);
  border: 1px solid #ccd5d7;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 15px;
  background: var(--gw-white);
}

.highlight-password-form button,
.highlight-password-form input[type="submit"] {
  font-family: var(--gw-font-sans);
  background-color: var(--gw-dark);
  color: var(--gw-white);
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.highlight-password-form button:hover,
.highlight-password-form input[type="submit"]:hover {
  background-color: var(--gw-dark-muted);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  :root {
    --gw-header-height: 64px;
    --gw-container-padding: 16px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .main-footer .footer-top {
    flex-direction: column;
  }

  .main-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
