/* =========================
   Koya Capital Global Styles
   ========================= */

/* Fonts & Colors */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
}

/* Brand Colors */
:root {
  --indigo: #201751;
  --gold: #c3a11f;
  --light-bg: #f7f7f7;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: var(--indigo);
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav ul li a.active,
header nav ul li a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
}

/* =========================
   Sections
   ========================= */
section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  color: var(--indigo);
  margin-bottom: 20px;
}

section ul li {
  margin-bottom: 10px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pillar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
}
.pillar-card figure { margin: 0; }
.pillar-card img { width: 100%; height: auto; display: block; }
.pillar-card figcaption { padding: 12px 8px; }
.pillar-card h3 { margin: 6px 0 4px; }

/* =========================
   Buttons
   ========================= */
.btn.primary {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn.primary:hover {
  background: #a48515;
}

/* =========================
   Footer
   ========================= */
.site-footer {
  background: var(--indigo);
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 0.9rem;
}

.footer-content {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  margin-top: 30px;
  color: #ccc;
}

.footer-col .btn.primary {
  display: inline-block;
  margin-top: 10px;
}

/* Responsive Footer */
@media(min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   Animations
   ========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Mobile Nav
   ========================= */
@media(max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* =========================
   Contact Form
   ========================= */
form {
  max-width: 500px;
  margin: 30px auto;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: 'Lato', sans-serif;
}

form button {
  cursor: pointer;
}

/* === Mobile Menu Fix (force closed by default) === */
@media (max-width: 768px) {
  body:not(.menu-open) header nav ul#primary-nav:not(.show) {
    display: none !important;
  }
  body.menu-open header nav ul#primary-nav,
  header nav ul#primary-nav.show {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: var(--header-height, 60px);
    right: 0;
    width: min(90vw, 260px);
    background: #fff;
    padding: 12px 16px;
    margin: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    z-index: 1000;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
  }
  .menu-toggle:focus { outline: 2px solid currentColor; outline-offset: 2px; }
  .menu-label { font-size: 0.95rem; }
}
@media (min-width: 769px) {
  header nav ul#primary-nav { display: flex; gap: 20px; position: static; box-shadow: none; width: auto; }
  .menu-toggle, .menu-label { display: none; }
}
