:root {
  --pgp-white: #ffffff;
  --pgp-light: #f8f9fa;
  --pgp-peach: #ffb183;
  --pgp-charcoal: #1e252c;
  --pgp-green: #87b8a6;
  --pgp-yellow: #fff9a6;

  --bg: var(--pgp-light);
  --text: #1e252c;
  --muted: #666;
  --card: var(--pgp-white);
  --border: #e9ecef;
  --shadow: 0 4px 20px rgba(30, 37, 44, 0.08);
}

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

body {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-top: 80px;
}

/* Floating Header */
.floating-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pgp-charcoal);
  color: white;
  z-index: 1000;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.floating-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  height: 40px;
  width: auto;
}

.logo-mark {
  height: 40px;
  width: auto;
}

.logo {
  display: flex;
  gap: 10px;
}

.nac-title {
  text-decoration: none;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-primary {
  font-size: 18px;
  font-weight: 400;
  color: white;
}

.logo-secondary {
  font-size: 12px;
  font-weight: 300;
  color: var(--pgp-green);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--pgp-green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--pgp-green);
  color: white;
}

.collab {
  color: white;
  text-decoration: none;
}

.nav-link.primary {
  background: var(--pgp-yellow);
  color: var(--pgp-charcoal);
  font-weight: 500;
}

.nav-link.primary:hover {
  background: white;
}

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

/* Homepage Header */
.homepage-header {
  background: var(--pgp-charcoal);
  color: white;
  padding: 120px 20px 80px;
  text-align: center;
  margin: -80px 0 0 0;
}

.homepage-logo {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
}

.homepage-logo svg {
  height: 80px;
  width: auto;
}

.portal-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--pgp-peach);
  margin-bottom: 20px;
}

.nac-support {
  font-size: 18px;
  font-weight: 300;
}

.nac-aus {
  color: var(--pgp-green);
  text-decoration: none;
}

/* Main Navigation Section */
.main-nav {
  background: var(--pgp-green);
  padding: 100px 20px 120px;
  text-align: center;
}

.nav-title {
  font-size: 42px;
  font-weight: 300;
  color: white;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.nav-subtitle {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.portal-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.portal-button {
  background: white;
  color: var(--pgp-charcoal);
  padding: 50px 35px;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow);
  border-left: 5px solid transparent;
}

.portal-button:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.portal-button.practitioner:hover {
  border-left-color: var(--pgp-peach);
}
.portal-button.patient:hover {
  border-left-color: var(--pgp-yellow);
}
.portal-button.organisation:hover {
  border-left-color: var(--pgp-green);
}

.portal-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--pgp-charcoal);
  color: white;
}

.btn-primary:hover {
  background: var(--pgp-green);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--pgp-green);
  color: white;
}

.btn-secondary:hover {
  background: var(--pgp-charcoal);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--pgp-charcoal);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  margin-top: 80px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--pgp-green);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.footer-nav a:hover {
  color: var(--pgp-yellow);
}

.footer-text {
  color: var(--pgp-green);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-collab {
  color: var(--pgp-green);
  text-decoration: none;
}

.nac-partnership {
  color: var(--pgp-yellow);
  font-size: 14px;
  font-weight: 400;
}

.nac-partnership-footer {
  color: var(--pgp-yellow);
  text-decoration: none;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .floating-header {
    padding: 10px 15px;
  }

  .header-content {
    flex-wrap: wrap;
    gap: 15px;
  }

  .logo-primary {
    font-size: 16px;
  }

  .logo-secondary {
    font-size: 11px;
  }

  .header-nav {
    gap: 15px;
  }

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

  .homepage-header {
    padding: 100px 20px 60px;
  }

  .portal-title {
    font-size: 28px;
  }

  .nav-title {
    font-size: 32px;
  }

  .portal-buttons {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 400px;
  }

  .portal-button {
    padding: 40px 30px;
    font-size: 20px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .header-nav {
    display: none;
  }

  .floating-header {
    padding: 8px 15px;
  }
}
