@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ── Doxa Productions — Site Stylesheet ────────────────────────────────────
   ─────────────────────────────────────────────────────────────────────── */

/* ── Tokens ── */
:root {
  --doxa-blue:       #4d6eaa;
  --doxa-blue-dark:  #3a5480;
  --doxa-amber:      #f4a01c;
  --doxa-amber2:     #f7b84b;
  --doxa-dark:       #0a0a0a;
  --doxa-surface:    #1a1a1f;
  --doxa-text:       #f2f0ec;
  --doxa-muted:      rgba(255,255,255,0.5);
  --doxa-header-h:   70px;
  --doxa-nav-max:    1400px;
  --doxa-content-max: 1200px;
}

/* ════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════ */

#doxa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--doxa-header-h);
  background: var(--doxa-blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--doxa-nav-max)) / 2));
  box-sizing: border-box;
}

/* ── Logo ── */
.doxa-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

/* Kill inherited ul/ol margins inside header and mobile menu */
#doxa-header ul,
#doxa-header ol,
.doxa-mobile-menu ul,
.doxa-mobile-menu ol {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.doxa-logo img {
  height: 50px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════════
   DESKTOP NAV
   ════════════════════════════════════════════════════════════════════════ */

.doxa-nav {
  display: flex;
  align-items: center;
}

.doxa-nav-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--doxa-header-h);
}

.doxa-nav-list li {
  position: relative;
}

.doxa-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  height: var(--doxa-header-h);
  padding: 0 14px;
  color: var(--doxa-text);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  box-sizing: border-box;
}

.doxa-nav-list > li > a:hover {
  color: var(--doxa-amber);
  background: rgba(0,0,0,0.15);
}

/* Active page highlight — colour only, no border */
.doxa-nav-list > li > a.doxa-active {
  color: var(--doxa-amber);
}

/* ── Dropdowns ── */
.doxa-has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.7;
}

/* li must be full header height so top:100% lands at header bottom */
.doxa-nav-list > li {
  display: flex;
  align-items: stretch;
  height: var(--doxa-header-h);
  position: relative;
}

.doxa-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  background: var(--doxa-blue-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  border-top: 2px solid var(--doxa-amber);
  z-index: 1001;
}

.doxa-has-dropdown:hover .doxa-dropdown,
.doxa-has-dropdown:focus-within .doxa-dropdown {
  display: block;
}

.doxa-dropdown li a {
  display: block;
  padding: 9px 24px 9px 16px;
  color: var(--doxa-text);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.doxa-dropdown li a:hover {
  color: var(--doxa-amber);
  background: rgba(0,0,0,0.2);
}

/* ── Hamburger: hidden on desktop ── */
.doxa-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.doxa-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--doxa-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.doxa-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.doxa-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.doxa-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE MENU
   ════════════════════════════════════════════════════════════════════════ */

.doxa-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.doxa-mobile-menu.open {
  display: block;
}

.doxa-mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.doxa-mobile-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--doxa-surface);
  padding: 20px 0;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}

.doxa-mobile-close {
  display: block;
  margin: 0 20px 20px auto;
  background: none;
  border: none;
  color: var(--doxa-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.15s;
}

.doxa-mobile-close:hover {
  color: var(--doxa-text);
}

.doxa-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.doxa-mobile-nav > ul > li > a {
  display: block;
  padding: 14px 24px;
  color: var(--doxa-text);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.15s, background 0.15s;
}

.doxa-mobile-nav > ul > li > a:hover {
  color: var(--doxa-amber);
  background: rgba(255,255,255,0.04);
}

/* Mobile sub-items */
.doxa-mobile-nav .doxa-has-dropdown > ul {
  background: rgba(0,0,0,0.2);
}

.doxa-mobile-nav .doxa-has-dropdown > ul li a {
  display: block;
  padding: 10px 36px;
  color: var(--doxa-muted);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.15s;
}

.doxa-mobile-nav .doxa-has-dropdown > ul li a:hover {
  color: var(--doxa-amber);
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .doxa-nav-list > li > a {
    padding: 0 10px;
    font-size: 0.95rem;
  }
  .doxa-logo img {
    max-width: 180px;
  }
}

@media (max-width: 760px) {
  :root {
    --doxa-header-h: 60px;
  }

  .doxa-nav {
    display: none;
  }

  .doxa-hamburger {
    display: flex;
  }

  .doxa-logo img {
    height: 40px;
    max-width: 160px;
  }

  #doxa-header {
    padding: 0 16px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════ */

#footer {
  background: #7A3018;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px max(24px, calc((100vw - var(--doxa-nav-max)) / 2));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--doxa-text);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

#footer .footer-left {
  flex: 1;
  white-space: nowrap;
  font-weight: 600;
}

#footer .footer-centre {
  flex: 2;
  text-align: center;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  letter-spacing: 0.02em;
}

#footer .footer-right {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

#footer a {
  color: var(--doxa-text);
  text-decoration: none;
}

#footer a:hover {
  color: var(--doxa-amber);
}

@media (max-width: 760px) {
  #footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  #footer .footer-left,
  #footer .footer-right {
    text-align: center;
    white-space: normal;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   BODY LAYOUT — full height flex column, footer pinned to bottom
   ════════════════════════════════════════════════════════════════════════ */

body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--doxa-content-max);
  margin: 0 auto;
  box-sizing: border-box;
}
