@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,1,0'); /* Filled icons */

@font-face {
  font-family: 'Chapaza';
  src: url('Chapaza.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  /* Colors */
  --surface: #f7f9fb;
  --surface-dim: #d8dadc;
  --surface-bright: #f7f9fb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --on-surface: #191c1e;
  --on-surface-variant: #45464d;
  --inverse-surface: #2d3133;
  --inverse-on-surface: #eff1f3;
  --outline: #76777d;
  --outline-variant: #c6c6cd;
  --surface-tint: #565e74;
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #131b2e;
  --on-primary-container: #7c839b;
  --inverse-primary: #bec6e0;
  --secondary: #006c49;
  --on-secondary: #ffffff;
  --secondary-container: #6cf8bb;
  --on-secondary-container: #00714d;
  --tertiary: #000000;
  --on-tertiary: #ffffff;
  --tertiary-container: #0b1c30;
  --on-tertiary-container: #75859d;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --primary-fixed: #dae2fd;
  --primary-fixed-dim: #bec6e0;
  --on-primary-fixed: #131b2e;
  --on-primary-fixed-variant: #3f465c;
  --secondary-fixed: #6ffbbe;
  --secondary-fixed-dim: #4edea3;
  --on-secondary-fixed: #002113;
  --on-secondary-fixed-variant: #005236;
  --tertiary-fixed: #d3e4fe;
  --tertiary-fixed-dim: #b7c8e1;
  --on-tertiary-fixed: #0b1c30;
  --on-tertiary-fixed-variant: #38485d;
  --background: #f7f9fb;
  --on-background: #191c1e;
  --surface-variant: #e0e3e5;

  /* Elevation & Depth */
  --shadow-level-2: 0px 4px 20px rgba(15, 23, 42, 0.05);

  /* Spacing */
  --base: 4px;
  --container-max: 1280px;
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 40px;
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 32px;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-default: 0.5rem; /* 8px */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem; /* 24px */
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Typography */
.display-lg {
  font-family: 'Chapaza', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: 'Chapaza', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.headline-sm {
  font-family: 'Chapaza', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.body-lg {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}

.body-md {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.body-sm {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.label-bold {
  font-family: 'Chapaza', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--margin-desktop);
  width: 100%;
}

main {
  flex-grow: 1;
}

/* Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-on-primary-fixed-variant { color: var(--on-primary-fixed-variant); }

.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container { background-color: var(--surface-container); }

.mb-stack-sm { margin-bottom: var(--stack-sm); }
.mb-stack-md { margin-bottom: var(--stack-md); }
.mb-stack-lg { margin-bottom: var(--stack-lg); }
.mb-base { margin-bottom: var(--base); }
.mr-stack-md { margin-right: var(--stack-md); }
.mt-stack-md { margin-top: var(--stack-md); }
.mt-stack-lg { margin-top: var(--stack-lg); }

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-default);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  box-shadow: var(--shadow-level-2);
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--on-secondary);
}

/* Forms */
.form-group {
  margin-bottom: var(--stack-md);
}

.form-label {
  display: block;
  margin-bottom: var(--base);
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(198, 198, 205, 0.5); /* outline-variant */
  border-radius: var(--radius-sm);
  background-color: var(--surface-bright);
  font-family: 'Chapaza', sans-serif;
  font-size: 16px;
  line-height: 24px;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--secondary);
}

textarea.form-control {
  resize: vertical;
}

/* Cards */
.card {
  background-color: var(--surface-container-lowest);
  border: 1px solid rgba(198, 198, 205, 0.3);
  border-radius: var(--radius-default);
  padding: var(--stack-md);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-level-2);
}

/* Header */
.header {
  background-color: rgba(247, 249, 251, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(198, 198, 205, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  max-width: 1600px; /* Wider container for the header to push logo left */
  position: relative;
}

.header-logo img {
  height: 75px;
  width: auto;
}

.header-tagline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Chapaza', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--secondary);
  text-align: center;
  width: max-content;
}

.footer-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

/* Dropdown Menu */
.header-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: var(--surface-container-lowest);
  border: 1px solid rgba(198, 198, 205, 0.3);
  border-radius: var(--radius-default);
  box-shadow: var(--shadow-level-2);
  display: none;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}

.dropdown-menu.show {
  display: flex;
}

.dropdown-item {
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
  transition: background-color 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--surface-container-low);
  color: var(--secondary);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: #ffffff;
  padding-top: var(--stack-sm);
  padding-bottom: var(--stack-sm);
  border-top: 1px solid rgba(198, 198, 205, 0.1);
}

.footer, .footer * {
  font-family: 'Montserrat', sans-serif;
}

.footer p, .footer div {
  color: #ffffff;
}

.footer a {
  color: #ffffff;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--secondary-fixed-dim);
  text-decoration: underline;
}

.footer-grid {
  display: flex;
  justify-content: flex-start;
  gap: 100px;
  margin-bottom: var(--stack-md);
}

.footer-copy {
  margin-top: var(--stack-sm);
  font-size: 14px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 4px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
  padding-bottom: 4px;
}

/* Material Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1;
}

/* Responsive */
@media (max-width: 768px) {
  .display-lg {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.01em;
  }
  
  .container {
    padding: 0 var(--margin-mobile);
  }

  /* Mobile Header */
  .header .container {
    height: 70px;
  }

  .header-logo img {
    height: 50px;
  }

  .header-tagline {
    display: none;
  }

  /* Mobile Hamburger - larger touch target */
  .hamburger-btn {
    padding: 12px;
  }

  .hamburger-line {
    width: 26px;
    height: 3px;
  }

  /* Mobile Dropdown */
  .dropdown-menu {
    min-width: 180px;
  }

  .dropdown-item {
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Mobile Footer */
  .footer {
    padding-top: var(--stack-md);
    padding-bottom: var(--stack-md);
  }

  .footer-grid {
    flex-direction: column;
    gap: 20px;
  }

  .footer-logo img {
    height: 32px;
  }

  .footer-copy {
    font-size: 12px;
  }

  .footer-info {
    font-size: 13px;
  }

  .footer-links {
    gap: 8px;
  }
}
