/* ============================================================
   Sturmlechner Lab — Base Stylesheet
   Shared across all pages: index.html, team.html,
   publications.html, resources.html.

   Edit THIS file to change site-wide look & feel (colors,
   fonts, nav, buttons, footer, responsive breakpoints).
   Page-specific styling lives in assets/css/<page>.css
   ============================================================ */

    :root {
      --navy:       #0A1628;
      --slate:      #172A47;
      --teal:       #1565C0;
      --teal-l:     #2D7DD2;
      --amber:      #C8880E;
      --amber-l:    #EDAA30;
      --white:      #FFFFFF;
      --off:        #F3F6FA;
      --card:       #EDF1F7;
      --text:       #0D1421;
      --mid:        #3D4C60;
      --light:      #6B7A8D;
      --border:     #CED8E6;
      --uw-red:     #C5050C;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', -apple-system, sans-serif;
      color: var(--text);
      background: var(--white);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }


    /* ══ NAV ══════════════════════════════════════════ */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.6rem 3rem;
      background: rgba(10, 22, 40, 0.97);
      backdrop-filter: blur(14px);
      box-shadow: 0 1px 0 rgba(255,255,255,0.06);
      transition: box-shadow 0.35s ease;
    }
    nav.scrolled {
      background: rgba(10, 22, 40, 0.97);
      box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    }
    .nav-brand {
      display: flex; align-items: center; gap: 0.85rem;
      text-decoration: none;
    }
    .nav-brand-logo {
      height: 62px; width: auto; display: block;
      filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3));
    }
    .nav-logo {
      font-family: 'Playfair Display', serif;
      font-size: 2.1rem; font-weight: 700;
      color: white; text-decoration: none;
      letter-spacing: 0.01em; line-height: 1;
    }
    .nav-logo span { color: var(--amber-l); }
    .nav-brand .nav-logo { font-size: 2.1rem; }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      font-size: 1.2rem; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: white; }

    .nav-toggle {
      display: none;
      flex-direction: column; justify-content: center; align-items: center; gap: 5px;
      width: 40px; height: 40px; padding: 0;
      background: transparent;
      border: 1.5px solid var(--amber-l); border-radius: 0.4rem;
      cursor: pointer;
      z-index: 210;
    }
    .nav-toggle span {
      display: block; width: 20px; height: 2px;
      background: var(--amber-l); border-radius: 2px;
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


    /* ══ NAV DROPDOWNS ═══════════════════════════════════ */
    .nav-dropdown { position: relative; }
    .nav-drop-toggle { cursor: pointer; font-size: 1.2rem; }
    /* Invisible bridge fills the gap so the mouse doesn't leave the hover zone */
    .nav-drop-menu {
      display: none; position: absolute; top: 100%; left: 50%;
      transform: translateX(-50%);
      padding-top: 10px; /* gap between toggle and menu */
      list-style: none; min-width: 150px; z-index: 500;
    }
    .nav-drop-menu-inner {
      background: white; border: 1px solid var(--border);
      border-radius: 0.6rem; box-shadow: 0 8px 28px rgba(10,22,40,0.18);
      padding: 0.4rem 0; overflow: hidden;
    }
    .nav-dropdown:hover .nav-drop-menu,
    .nav-drop-menu:hover { display: block; }
    .nav-drop-menu li a {
      display: block; padding: 0.55rem 1.2rem;
      font-size: 0.85rem; color: var(--text); text-decoration: none;
      white-space: nowrap;
    }
    .nav-drop-menu li a:hover { background: var(--off); color: var(--teal); }


    /* ══ SHARED SECTION ═══════════════════════════════ */
    section.content { padding: 6rem 3rem; }
    .container { max-width: 1100px; margin: 0 auto; }
    .eyebrow {
      font-size: 0.68rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.16em;
      color: var(--teal); margin-bottom: 0.65rem;
    }
    .section-h {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.9rem, 3.5vw, 2.8rem);
      font-weight: 700; color: var(--text);
      line-height: 1.18; margin-bottom: 1rem;
    }
    .section-lead {
      font-size: 1.05rem; font-weight: 300; color: var(--mid);
      line-height: 1.8; max-width: 680px; margin-bottom: 3.5rem;
    }
    .section-lead em { font-style: italic; color: var(--text); font-weight: 400; }


    /* ══ CONTACT / FOOTER ════════════════════════════ */
    #contact {
      background: var(--slate); padding: 5rem 3rem 4rem;
    }
    .contact-inner {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1.5fr 1fr 1fr;
      gap: 3rem;
    }
    .c-head {
      font-family: 'Playfair Display', serif;
      font-size: 1.2rem; font-weight: 700;
      color: var(--amber-l); margin-bottom: 0.9rem;
    }
    .c-body { font-size: 1.2rem; color: rgba(255,255,255,0.55); line-height: 1.75; }
    .c-body a { color: rgba(255,255,255,0.8); text-decoration: none; }
    .c-body a:hover { text-decoration: underline; }
    .c-body strong { color: rgba(255,255,255,0.9); font-weight: 600; }
    .footer-bar {
      background: var(--navy); color: rgba(255,255,255,0.28);
      text-align: center; padding: 1.25rem;
      font-size: 0.76rem; letter-spacing: 0.03em;
    }


    /* ══ ANIMATIONS ══════════════════════════════════ */
    .fade-up {
      opacity: 0; transform: translateY(26px);
      transition: opacity 0.65s ease, transform 0.65s ease;
    }
    .fade-up.vis { opacity: 1; transform: none; }
