/**
 * Emmanuel Miami Theme - Main Stylesheet
 * Version: 1.0.10
 * 
 * Note: Design system variables (colors, fonts, sizes) are in variables.css
 */

/* ==========================================================================
   Reset
   ========================================================================== */

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Font Families */
body,
p,
span,
div,
input,
textarea,
select {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
}

/* Button font family/weight */
button,
.button,
a.button,
input[type="submit"],
.btn {
  font-family: var(--font-ui) !important;
  font-weight: var(--weight-semibold);
}

/* Font Sizes - Global Heading Hierarchy */
body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
}

/* Default heading sizes - used sitewide */
h1 {
  font-size: 54px;
  line-height: 1.2;
  font-weight: 900;
  margin: 0 0 1rem 0;
}
h2 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem 0;
}
h3 {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}
h4 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
h5 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}
h6 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */

.content-container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-content {
  min-height: calc(100vh - 400px);
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-2 {
  flex: 0 0 16.666%;
  max-width: 16.666%;
}
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--color-gray-50);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-branding img {
  max-height: 80px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: var(--font-size-4xl);
}

.site-title a {
  text-decoration: none;
  color: var(--color-text-primary);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu-container ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu-container a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-family: var(--font-ui);
  font-weight: var(--weight-semibold);
  transition: color 0.3s ease;
}

.menu-container a:hover {
  color: var(--color-tertiary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

button,
.button,
a.button,
input[type="submit"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  padding: 12px 25px;
  background: var(--gradient-primary);
  color: var(--color-primary) !important;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover,
.button:hover,
a.button:hover,
input[type="submit"]:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  margin-top: 0;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-mission {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-section {
  margin-bottom: 32px;
}

.footer-section:last-child {
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-tertiary-cyan);
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li a,
.footer-contact li a,
.footer-section > a,
.footer-section p a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links li a:hover,
.footer-contact li a:hover,
.footer-section > a:hover {
  color: var(--color-tertiary-cyan);
}

.service-times {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 12px;
}

.footer-contact {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-button {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.2s ease;
  width: fit-content;
}

.footer-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
}

.footer-button-give {
  background: var(--color-tertiary-cyan);
  border-color: var(--color-tertiary-cyan);
  color: var(--color-primary) !important;
  margin-top: 0;
}

.footer-button-give:hover {
  background: transparent;
  border-color: var(--color-tertiary-cyan);
  color: var(--color-tertiary-cyan) !important;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-tertiary-cyan);
  color: var(--color-primary);
}

.site-footer h3 {
  color: var(--color-tertiary-cyan);
}

.site-info {
  background: var(--color-navy-darker);
  padding: 20px 0;
  text-align: center;
}

.site-info p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.site-info a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-info a:hover {
  color: var(--color-tertiary-cyan);
}

/* ==========================================================================
   Content
   ========================================================================== */

.entry-header {
  margin-bottom: 30px;
}

.entry-title {
  margin: 0 0 15px;
  color: var(--color-gray-900);
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-gray-900);
  margin-bottom: 20px;
}

.entry-meta span {
  margin-right: 15px;
}

.post-thumbnail {
  margin-bottom: 30px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.entry-content {
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

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

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Event Archives
   ========================================================================== */

.events-archive-container {
  margin-top: 40px;
}

.wpem-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.wpem-event-listing-box-view {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wpem-event-listing-box-view:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.wpem-event-banner {
  height: 350px !important;
  position: relative;
  overflow: hidden;
}

.wpem-event-banner-img {
  height: 350px !important;
  background-size: cover !important;
  background-position: center !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .wpem-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-container {
    padding: 0 30px;
  }

  .wpem-event-banner,
  .wpem-event-banner-img {
    height: 280px !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.75rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .menu-container {
    display: none;
    width: 100%;
    order: 3;
  }

  .menu-container.active {
    display: block;
  }

  .menu-container ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .wpem-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    padding: 48px 0 32px;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-column-1 {
    grid-column: 1 / -1;
  }

  .wpem-event-banner,
  .wpem-event-banner-img {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .footer-column-1 {
    grid-column: auto;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.pt-0 {
  padding-top: 0;
}
.pt-1 {
  padding-top: 1rem;
}
.pt-2 {
  padding-top: 2rem;
}
.pt-3 {
  padding-top: 3rem;
}

.pb-0 {
  padding-bottom: 0;
}
.pb-1 {
  padding-bottom: 1rem;
}
.pb-2 {
  padding-bottom: 2rem;
}
.pb-3 {
  padding-bottom: 3rem;
}
