/* ============================================================
   PALO ALPHA RESEARCH — Static CSS
   No JavaScript. Pure HTML + CSS.
   ============================================================ */

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

:root {
  --navy: #1e3a5f;
  --navy-dark: #0f1923;
  --blue-logo: #31588b;
  --gold: #c5a55a;
  --ivory: #faf8f5;
  --white: #ffffff;
  --text-dark: #1a2a3a;
  --text-muted: #5a6a7a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  position: relative;
  display: block;
  height: 56px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.logo-color {
  display: none;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

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

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  background-image: url('images/hero-sa.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 25, 35, 0.3) 0%,
    rgba(15, 25, 35, 0.6) 50%,
    rgba(15, 25, 35, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.7);
  margin-bottom: 1.5rem;
}

.hero-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ivory);
  margin-bottom: 1.5rem;
}

.hero-heading .gold {
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(250,248,245,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background-color: #d4b46a;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(250,248,245,0.4);
  color: var(--ivory);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ---------- SECTION UTILITIES ---------- */
.section-label-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-rule {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
}

.section-rule.light {
  background-color: rgba(197,165,90,0.5);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label.light {
  color: var(--gold);
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--navy);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.section-heading.light {
  color: var(--ivory);
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.section-sub.light {
  color: rgba(250,248,245,0.65);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 6rem 0;
  background-color: var(--ivory);
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .about-columns {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.about-col p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(197,165,90,0.2);
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

.badge-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ---------- RESEARCH ---------- */
.research {
  padding: 6rem 0;
  background-color: var(--navy);
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.research-card {
  background: rgba(250,248,245,0.04);
  border: 1px solid rgba(250,248,245,0.1);
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.research-card:hover {
  border-color: rgba(197,165,90,0.4);
}

.research-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.research-card p {
  font-size: 0.9rem;
  color: rgba(250,248,245,0.6);
  line-height: 1.7;
}

.publications-banner {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(197,165,90,0.15);
}

.gold-label {
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.publications-banner h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}

.publications-banner p {
  color: rgba(250,248,245,0.6);
  font-size: 0.95rem;
}

/* ---------- ALTERNATIVES ---------- */
.alternatives {
  padding: 6rem 0;
  background-color: var(--ivory);
}

.alt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .alt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.alt-card {
  padding: 2rem;
  border-left: 3px solid var(--gold);
  background-color: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.alt-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.alt-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 6rem 0;
  background-color: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.contact-heading {
  text-align: left;
}

.contact-desc {
  color: rgba(250,248,245,0.6);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.45);
  margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p {
  font-size: 0.9rem;
  color: rgba(250,248,245,0.7);
  line-height: 1.6;
}

.contact-item a:hover {
  color: var(--gold);
}

/* Contact Form */
.contact-form-wrapper {
  background: rgba(250,248,245,0.03);
  border: 1px solid rgba(250,248,245,0.1);
  padding: 2.5rem;
}

.form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.5);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--ivory);
  background: rgba(250,248,245,0.05);
  border: 1px solid rgba(250,248,245,0.15);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250,248,245,0.3);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23faf8f5' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--navy-dark);
  color: var(--ivory);
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(250,248,245,0.35);
  line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--navy-dark);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 2rem;
  }
}

.footer-logo {
  height: 40px;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(250,248,245,0.6);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-rule {
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social a {
  font-size: 0.8rem;
  color: rgba(250,248,245,0.4);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-divider {
  color: rgba(250,248,245,0.15);
  font-size: 0.75rem;
}

.footer-nav h4,
.footer-contact h4,
.footer-offices h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(250,248,245,0.5);
}

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

.footer-contact a {
  display: block;
  font-size: 0.85rem;
  color: rgba(250,248,245,0.5);
  margin-bottom: 0.5rem;
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-offices .office {
  margin-bottom: 1rem;
}

.footer-offices strong {
  display: block;
  font-size: 0.8rem;
  color: rgba(250,248,245,0.7);
  margin-bottom: 0.25rem;
}

.footer-offices p {
  font-size: 0.8rem;
  color: rgba(250,248,245,0.45);
  line-height: 1.6;
}

/* Footer Disclaimer */
.footer-disclaimer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(197,165,90,0.15);
}

.footer-disclaimer p {
  font-size: 0.72rem;
  color: rgba(250,248,245,0.35);
  line-height: 1.7;
}

.footer-disclaimer strong {
  color: rgba(250,248,245,0.55);
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.3);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.3);
}

.footer-bottom-links a:hover {
  color: var(--white);
}
