@import url('colors.css');

/*
base.css
--------
Base layout and component styles for the website.
Uses color variables from colors.css.
*/

/* General body style */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100%;
}

/* Navbar */
.navbar {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.4rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

.logo-img {
  height: 56px;          /* controls navbar height */
  width: auto;           /* preserve ratio */
  transform: scale(1.35);
  transform-origin: left center;
  display: block;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.35rem 1.25rem;
  }

  .logo-img {
    height: 48px;
    transform: scale(1.25);
  }
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: 0.3s;
}

/* Footer */
.footer {
  background-color: var(--bg-section);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  padding: 2rem 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

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

/* CHANGED: tighter bottom spacing */
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;    /* was 1rem */
  padding-top: 0.5rem;   /* was 1rem */
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 96px;      /* visually balanced with footer height */
  width: auto;       /* keeps logo ratio */
  display: block;
  opacity: 0.95;
}

/* CHANGED: larger tagline + less gap above footer-bottom */
.footer-info p {
  font-size: 1.1rem;      /* larger */
  margin-top: 0.5rem;     /* tighter under logo */
  margin-bottom: 0.75rem; /* less space before footer-bottom */
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 72px;
  }

  /* CHANGED: mobile tagline sizing/spacing */
  .footer-info p {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
}

/* Responsive menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100; /* keep above menu */
  }

  .hamburger span {
    height: 3px;
    width: 25px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    position: absolute;
    top: 110px; /* CHANGED: account for taller navbar on mobile */
    right: 20px;
    width: 220px;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin-bottom: 1rem;
  }

  .nav-menu li a {
    color: var(--text-primary);
    font-size: 1rem;
  }
}
