/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

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

/* ===== UTILITY CLASSES ===== */
.content-width {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ===== SITE HEADER ===== */
.site-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1f5f9;
  text-decoration: none;
}

.site-logo a:hover {
  color: #fff;
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0.5rem 1rem;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
  color: #60a5fa;
}

/* Dropdown indicator */
.nav-menu > li.menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

/* Dropdown menus */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #283548;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-radius: 6px;
  border: 1px solid #334155;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 200;
}

.nav-menu > li:hover > .sub-menu {
  display: block;
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-menu .sub-menu li a:hover {
  background: #334155;
  color: #60a5fa;
}

/* Header CTA */
.header-cta .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Mobile menu toggle - hidden on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  position: relative;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  left: 0;
  transition: transform 0.2s;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Mobile open state */
.mobile-menu-toggle.active .hamburger {
  background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 900px) {
  .header-inner {
    position: relative;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    width: 320px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 200;
  }

  @media (max-width: 400px) {
    .header-nav {
      left: 5%;
      right: 5%;
      width: auto;
    }
  }

  .header-nav.nav-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #334155;
    text-align: left;
    font-size: 1rem;
    color: #cbd5e1;
  }

  .nav-menu > li:last-child > a {
    border-bottom: none;
  }

  .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    display: block;
    background: #162032;
    min-width: 0;
    width: 100%;
    padding: 0;
  }

  .nav-menu .sub-menu li a {
    padding: 0.7rem 1.5rem 0.7rem 2.5rem;
    text-align: left;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
  }

  .nav-menu .sub-menu li a:hover {
    color: #60a5fa;
    background: #1e293b;
  }

  .nav-menu .sub-menu li:last-child a {
    border-bottom: none;
  }

  .header-cta {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid #334155;
  }

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

  .mobile-menu-toggle {
    display: block;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .content-width {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ===== SITE MAIN ===== */
.site-main {
  min-height: 60vh;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.9);
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.8);
}

/* Footer menus */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: #60a5fa;
}

/* Footer connect links */
.footer-connect-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-connect-links li {
  margin-bottom: 0.5rem;
}

.footer-connect-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-connect-links a:hover {
  color: #60a5fa;
}

/* Footer social */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: #60a5fa;
}

/* Footer copyright */
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 2rem;
  text-align: center;
}

.footer-copyright-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.9);
}

/* Footer responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copyright-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-social {
    justify-content: center;
  }
}
