/* Milo's Sanctuary - Main Stylesheet */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #555;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sidebar-logo img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 0 24px;
  flex: 1;
}

.sidebar-nav li {
  border-bottom: 1px solid #f5f5f5;
}

.sidebar-nav a {
  display: block;
  padding: 11px 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  transition: color 0.2s ease, background 0.2s ease;
  line-height: 1.35;
}

.sidebar-nav a:hover {
  color: #c44d6a;
  background: #fafafa;
}

.sidebar-nav a.active {
  color: #c44d6a;
}

.sidebar-nav .has-submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-nav .submenu-arrow {
  font-size: 0.65rem;
  color: #aaa;
  margin-left: 6px;
  flex-shrink: 0;
}

/* Main Content */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: #7a2d8e;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-pattern.png") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
  background: linear-gradient(135deg, #8b35a3 0%, #6e2485 100%);
}

.hero-text h1 {
  color: #fff;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-line {
  display: block;
  font-size: 2.4rem;
}

.hero-line-large {
  font-size: 3.6rem;
  margin-top: 4px;
}

.hero-subtitle {
  margin-top: 18px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Home Intro Section */
.intro-section {
  display: flex;
  gap: 40px;
  padding: 40px 48px 60px;
  align-items: flex-start;
  border-top: 1px solid #e8e8e8;
}

.intro-image {
  flex: 0 0 340px;
}

.intro-image img {
  width: 100%;
  border-radius: 2px;
}

.intro-text {
  flex: 1;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.75;
}

.intro-text p {
  margin-bottom: 1.25em;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text .highlight {
  color: #3d8b40;
  font-weight: 700;
}

.intro-text a {
  color: #3d8b40;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.intro-text a:hover {
  color: #2d6b30;
}

/* Inner Pages */
.page-header {
  padding: 36px 48px 24px;
  border-bottom: 1px solid #e8e8e8;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-body {
  padding: 36px 48px 60px;
  max-width: 900px;
}

.page-body p {
  margin-bottom: 1.25em;
  color: #666;
  line-height: 1.75;
}

.page-body h2 {
  font-size: 1.25rem;
  color: #444;
  margin: 2em 0 0.75em;
  font-weight: 600;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body h3 {
  font-size: 1.05rem;
  color: #555;
  margin: 1.5em 0 0.5em;
  font-weight: 600;
}

.page-body ul {
  margin: 0 0 1.25em 1.5em;
  color: #666;
  line-height: 1.75;
}

.page-body li {
  margin-bottom: 0.35em;
}

.page-body a {
  color: #3d8b40;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: #2d6b30;
}

.page-body .highlight {
  color: #3d8b40;
  font-weight: 700;
}

.price-tag {
  display: inline-block;
  background: #f5f0f7;
  color: #7a2d8e;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  margin-bottom: 1.25em;
}

.info-box {
  background: #f9f9f9;
  border-left: 4px solid #c44d6a;
  padding: 20px 24px;
  margin: 1.5em 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.prize-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.prize-list li {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
}

.donation-address {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  padding: 24px 28px;
  margin: 1.5em 0;
  line-height: 1.8;
}

.donation-address strong {
  display: block;
  color: #c44d6a;
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.board-member {
  display: flex;
  gap: 28px;
  margin: 2.5em 0;
  padding-bottom: 2.5em;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.board-member:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.board-member img {
  width: 140px;
  flex-shrink: 0;
  border-radius: 4px;
}

.board-member-text h3 {
  margin-top: 0;
  color: #444;
}

.doc-links {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.doc-links li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.doc-links a {
  font-size: 1rem;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3d8b40;
}

.cat-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.cat-card {
  text-align: center;
}

.cat-card img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
}

.cat-card span {
  display: block;
  font-size: 0.85rem;
  color: #666;
  font-weight: 600;
  text-transform: capitalize;
}

/* Donate Page */
.donate-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 48px 60px;
  text-align: center;
}

.donate-intro {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #2a2a2a;
  line-height: 1.75;
  max-width: 820px;
  margin: 0 auto 1em;
}

.donate-tax-note {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #2a2a2a;
  margin-bottom: 2.5em;
}

.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 auto 3em;
  max-width: 900px;
}

.donate-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donate-option-image {
  width: 100%;
  max-width: 220px;
  margin-bottom: 20px;
  line-height: 0;
}

.donate-option-image img {
  width: 100%;
  height: auto;
}

.donate-option h3 {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2a2a2a;
  line-height: 1.45;
  margin: 0 0 0.75em;
}

.donate-option-note {
  font-size: 0.78rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.donate-mail {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #2a2a2a;
  margin-top: 2em;
}

.donate-mail-intro {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75em;
}

.donate-mail-address {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 0.5em;
}

.donate-mail-warning {
  color: #c23b3b;
  font-weight: 700;
  font-size: 1rem;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
  padding: 32px 48px 36px;
}

.site-footer-inner {
  max-width: 900px;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.75;
}

.site-footer-inner p {
  margin: 0 0 0.5em;
}

.site-footer-legal {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.75em !important;
}

.site-footer-legal strong {
  font-weight: 700;
}

.site-footer-portal {
  margin-top: 1.25em !important;
  padding-top: 1.25em;
  border-top: 1px solid #eee;
  color: #555;
}

.site-footer-status {
  margin-top: 0.75em !important;
  font-size: 0.8rem;
  color: #999;
}

.site-footer-copyright {
  margin-top: 1em !important;
  padding-top: 1em;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: #999;
}

.site-footer a {
  color: #3d8b40;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: #2d6b30;
}

@media (max-width: 700px) {
  .prize-list {
    columns: 1;
  }

  .board-member {
    flex-direction: column;
  }

  .board-member img {
    width: 120px;
  }

  .donate-options {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 320px;
  }

  .donate-page {
    padding: 30px 24px 48px;
  }
}

.placeholder-notice {
  background: #f9f9f9;
  border: 1px dashed #ddd;
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Scrollbar - Sidebar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
  }

  .intro-section {
    flex-direction: column;
    padding: 30px 24px 48px;
    gap: 28px;
  }

  .intro-image {
    flex: none;
    max-width: 100%;
  }

  .page-header,
  .page-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-footer {
    padding: 28px 24px 32px;
  }

  .hero-banner {
    height: 280px;
  }

  .hero-line {
    font-size: 1.8rem;
  }

  .hero-line-large {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .hero-text {
    width: 62%;
    padding: 30px 28px;
  }

  .hero-image {
    width: 50%;
  }
}

@media (max-width: 640px) {
  .site-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    padding: 8px;
  }

  .sidebar-nav li {
    border: none;
    width: 50%;
  }

  .sidebar-nav a {
    padding: 8px 12px;
    font-size: 0.65rem;
  }

  .main-content {
    margin-left: 0;
  }

  .site-footer {
    padding: 28px 24px 32px;
  }
}
