/* =========================================
   PMO Theme — main.css
   ========================================= */

/* ---------- Root / Base ---------- */
:root {
  --brand: #8D1436;      /* UP Maroon Primary */
  --text: #ffffff;
  --max: 100%; /* Change this from 1400px to 100% if you want no white space at all */
  --gutter: clamp(16px, 4vw, 32px);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Palatino Linotype", "Palatino", "Book Antiqua", serif;
  background-color: #f4f4f4; /* Light grey background for the "shell" of the site */
  color: #333;               /* Dark grey text for readability */
  -webkit-font-smoothing: antialiased;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* ---------- Layout helpers ---------- */
.shell {
  width: min(var(--max), 100% - 2*var(--gutter));
  margin-inline: auto;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
  background-color: var(--brand) !important; 
  color: #ffffff;
  padding: 15px 0;
}

/* Flexbox Magic: Pushes Logo to left, Nav to right */
.site-header .shell {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
}

/* Adjust for WP admin bar */
body.admin-bar .site-header { top: 32px; }

/* Branding Section */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo-box img, 
.custom-logo {
  height: 80px; 
  width: auto;
  display: block;
}

.brand-text {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 250px; /* Keeps text from getting too wide */
}

/* Navigation Section */
.primary-nav .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px; 
}

.primary-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.primary-nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* =========================================
   CONTENT AREA
   ========================================= */

.site-content {
  background-color: #ffffff; /* Pure white background for your posts/text */
  padding: 60px 0;
  margin: 0 auto;
  max-width: var(--max);    /* Keeps your text from stretching too wide */
  min-height: 60vh;         /* Ensures the white area stays tall */
  box-shadow: 0 0 20px rgba(0,0,0,0.05); /* Optional: slight shadow to separate from background */
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer, 
.block-editor-footer {
  background-color: var(--brand) !important;
  color: #ffffff;
  padding: 40px 0;
  margin-top: 0; /* Remove gaps */
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .brand-text { font-size: 18px; }
  .primary-nav a { font-size: 1rem; }
}

@media (max-width: 860px) {
  .site-header .shell {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .brand-logo {
    flex-direction: column;
    gap: 10px;
  }

  /* Show mobile menu toggle logic would go here */
}


/* Missing Hero/Button Styles */
.hero {
  padding-block: 5rem;
  background: #fff;
  text-align: center;
}

.hero-title {
  color: var(--brand);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}