/* papersGP × NAC Action Plan Portal - Shared Styles */

/* CSS Custom Properties for Brand Colors */
:root {
  --pgp-white: #ffffff;
  --pgp-light: #f8f9fa;
  --pgp-peach: #ffb183; /* grounding */
  --pgp-charcoal: #1e252c; /* primary */
  --pgp-green: #87b8a6; /* trust */
  --pgp-yellow: #fff9a6; /* positive outcomes */

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

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

/* 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-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;
}

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

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

/* Main Content Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Page Headers */
.page-header {
  background: var(--pgp-charcoal);
  color: white;
  padding: 60px 20px 40px;
  text-align: center;
  margin: -80px 0 60px 0; /* Offset the body padding-top */
}

.page-title {
  font-size: 48px;
  font-weight: 300;
  color: white;
  margin-bottom: 15px;
}

.page-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--pgp-green);
}

/* Homepage Specific Styles */
.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 img {
  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;
  color: var(--pgp-green);
}

/* 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;
}

/* Content Sections */
.content-section {
  background: var(--card);
  padding: 50px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  font-size: 32px;
  color: var(--pgp-charcoal);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--pgp-yellow);
  font-weight: 400;
}

.content-section h3 {
  font-size: 22px;
  color: var(--pgp-peach);
  margin-bottom: 20px;
  margin-top: 40px;
  font-weight: 400;
}

.content-section p {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}

.content-section ul {
  margin: 20px 0 20px 30px;
}

.content-section li {
  margin-bottom: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.content-section a {
  color: var(--pgp-green);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Cards and Components */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.version-info {
  background: var(--card);
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
  border-left: 5px solid var(--pgp-green);
  box-shadow: var(--shadow);
}

.version-info h3 {
  color: var(--pgp-charcoal);
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 400;
}

.version-info p {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 300;
}

.important-notice {
  background: var(--pgp-charcoal);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.important-notice h3 {
  color: var(--pgp-yellow);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 400;
}

.important-notice p {
  font-weight: 300;
  line-height: 1.8;
}

/* Buttons */
.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);
}

.btn-outline {
  background: transparent;
  color: var(--pgp-charcoal);
  border: 2px solid var(--pgp-charcoal);
}

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

/* Contact Info */
.contact-info {
  background: var(--pgp-green);
  color: white;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  margin-top: 60px;
}

.contact-info h3 {
  margin-bottom: 30px;
  color: white;
  font-size: 28px;
  font-weight: 400;
}

.contact-info p {
  margin-bottom: 15px;
  font-weight: 300;
  font-size: 16px;
}

.contact-info a {
  color: var(--pgp-yellow);
  text-decoration: none;
  font-weight: 400;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* 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-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pgp-peach);
  transition: width 0.3s ease;
}

.footer-nav a:hover::after {
  width: 100%;
}

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

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

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

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

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

  .logo-mark {
    font-size: 24px;
  }

  .logo-mark::before {
    left: -20px;
    font-size: 28px;
    top: -2px;
  }

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

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

  .header-nav {
    gap: 15px;
  }

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

  .page-header {
    padding: 40px 20px 30px;
  }

  .page-title {
    font-size: 36px;
  }

  .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;
  }

  .content-section {
    padding: 30px;
  }

  .content-section h2 {
    font-size: 28px;
  }

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

  .contact-info {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .header-nav {
    display: none; /* Hide nav on very small screens, could add hamburger menu */
  }

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

/* Focus States for Accessibility */
.portal-button:focus,
.btn:focus,
.nav-link:focus,
.footer-nav a:focus {
  outline: 3px solid var(--pgp-yellow);
  outline-offset: 2px;
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mt-2 {
  margin-top: 2rem;
}
.hidden {
  display: none;
}

/* Print Styles */
@media print {
  .floating-header,
  .footer {
    display: none;
  }

  body {
    padding-top: 0;
  }

  .page-header {
    margin-top: 0;
  }
}
