/*
Theme Name: SSRC Research
Author: SSRC
Description: Custom theme for SSRC – Navy #003366, Teal #008080, Gray #A9A9A9, White #FFFFFF.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ssrc
*/

/* --------------------------------------------------
   TOKENS
-------------------------------------------------- */
:root {
  --navy:       #003366;
  --navy-dark:  #002244;
  --navy-mid:   #004080;
  --teal:       #008080;
  --teal-hover: #009999;
  --teal-pale:  #e6f3f3;
  --gray:       #A9A9A9;
  --gray-light: #f0f2f5;
  --white:      #ffffff;
  --text:       #3d4f63;
  --muted:      #6b7a8d;
  --border:     #dde2ea;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', Arial, sans-serif;
}

/* --------------------------------------------------
   RESET
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-hover); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0; }

/* --------------------------------------------------
   SKIP LINK
-------------------------------------------------- */
.skip-link {
  position: absolute; top: -999px; left: 0;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; z-index: 9999; font-size: .875rem;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute;
  height: 1px; width: 1px; overflow: hidden;
}

/* --------------------------------------------------
   NAVBAR
-------------------------------------------------- */
#masthead {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 66px;
  display: flex;
  align-items: center;
  flex-direction: row;
}

/* Logo on the left */
.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;    /* pushes nav + CTA to the far right */
}
.site-branding a {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}
.site-branding a span { color: var(--teal); }
.site-branding img { max-height: 44px; width: auto; display: block; }

/* Nav links */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.primary-nav a {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--teal);
  background: rgba(0,128,128,.12);
}

/* CTA button */
.nav-cta {
  flex-shrink: 0;
  margin-left: 20px;
}
.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white) !important;
  font-size: .875rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 7px;
  border: 2px solid var(--teal);
  transition: all .2s;
  white-space: nowrap;
}
.nav-cta a:hover {
  background: transparent;
  color: var(--teal) !important;
}

/* Hamburger (hidden desktop) */
.menu-toggle {
  display: none;
  flex-shrink: 0;
  margin-left: 12px;
  background: none;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 6px;
  color: var(--white);
  padding: 6px 9px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-wrap { flex-wrap: wrap; height: auto; padding: 10px 20px; gap: 0; }
  .site-branding { margin-right: auto; }
  .menu-toggle { display: flex; align-items: center; }
  .nav-cta { order: 2; margin-left: 10px; }
  .primary-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 10px 14px; border-radius: 0; width: 100%; }
}

/* --------------------------------------------------
   PAGE CANVAS
-------------------------------------------------- */
.site-content { width: 100%; }
.site-main { width: 100%; padding: 0; margin: 0; }

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
#colophon {
  background: var(--navy-dark);
  border-top: 3px solid var(--teal);
  font-family: var(--font-body);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.f-col-title {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}

.f-col ul { display: flex; flex-direction: column; gap: 9px; }
.f-col ul a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  transition: color .2s, padding-left .15s;
  display: block;
}
.f-col ul a:hover {
  color: rgba(255,255,255,.9);
  padding-left: 6px;
}

.f-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.f-contact-icon {
  width: 28px; height: 28px;
  background: rgba(0,128,128,.2);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f-contact-icon svg { width: 13px; height: 13px; color: var(--teal); }
.f-contact-row span,
.f-contact-row a {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  line-height: 1.5;
}
.f-contact-row a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.35); }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; padding: 40px 20px 32px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; text-align: center; }
}
