/*
 Theme Name:   Mallouk Family Foundation Child Theme
 Theme URI:    https://malloukfamilyfoundation.org
 Description: GeneratePress child theme for the Mallouk Family Foundation
 Author:       Ann-Marie Harrington
 Template:     generatepress
 Version:      1.0
*/

/* ======================================================
   DESIGN TOKENS
====================================================== */

:root {
  /* Typography */
 
--mff-font-heading: "finalsix", sans-serif;
--mff-font-body: "atten-new", sans-serif;
--mff-font-ui: "atten-new", sans-serif;
  /* Brand colors */
  --mff-color-primary: #3f5f82;
  --mff-color-accent-green: #8ea56a;
  --mff-color-rail: #3f5f82;

  /* Neutrals */
  --mff-color-text: #1a1a1a;
  --mff-color-muted: #6b7280;
  --mff-color-border: #e5e7eb;
  --mff-color-bg-soft: #f6f8fa;

  /* Layout */
  --mff-container-width: 1240px;

  /* Spacing */
  --mff-space-xs: 8px;
  --mff-space-sm: 16px;
  --mff-space-md: 32px;
  --mff-space-lg: 64px;
  --mff-space-xl: 96px;
}

/* ======================================================
   BASE CANVAS
====================================================== */

body,
.site,
.site-content,
.inside-article {
  background: #ffffff;
}

body {
  font-family: var(--mff-font-body);
  color: var(--mff-color-text);
  line-height: 1.6;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */

h1, h2 {
  font-family: var(--mff-font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  margin-bottom: var(--mff-space-md);
}
h3, h4, h5, h6 {
  font-family: var(--mff-font-ui);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h2 { font-size: 2rem; margin-bottom: var(--mff-space-sm); }
h3 { font-size: 1.5rem; margin-bottom: var(--mff-space-sm); }

p { margin-bottom: var(--mff-space-sm); }
small { color: var(--mff-color-muted); }

/* ======================================================
   CONTAINERS
====================================================== */
#hp-news li.fl-post-grid-post {
  margin-bottom: 0px !important;
}
.grid-container,
.fl-row-fixed-width {
  max-width: var(--mff-container-width);
}

.fl-row-content-wrap {
  padding: 0;
}

/* ======================================================
   NAVIGATION / UI TYPOGRAPHY
====================================================== */

.main-navigation,
#mega-menu-wrap-primary,
.navigation-search,
button,
.fl-button {
  font-family: var(--mff-font-ui);
}
/* ======================================================
   LINKS
====================================================== */

a {
  color: var(--mff-color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ======================================================
   BUTTONS (GLOBAL) — CLEAN SINGLE SOURCE
====================================================== */

.button,
button,
input[type="submit"],
.fl-button {
  background-color: var(--mff-color-primary);
  color: #ffffff;
  border: none;
  border-radius: 999px; /* pill style like Mott */
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--mff-font-ui);
  cursor: pointer;
  transition: background-color .2s ease, transform .1s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.fl-button:hover {
  background-color: #334e6b;
  transform: translateY(-1px);
}

/* ======================================================
   SECTIONS
====================================================== */

.mff-section { padding: var(--mff-space-lg) var(--mff-space-md); }
.mff-section--tight { padding: var(--mff-space-md); }
.mff-section--loose { padding: var(--mff-space-xl) var(--mff-space-md); }
.mff-section--soft { background: var(--mff-color-bg-soft); }

/* ======================================================
   CARDS
====================================================== */

.mff-card {
  background: #ffffff;
  border: 1px solid var(--mff-color-border);
  padding: var(--mff-space-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.mff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* ======================================================
   HERO — LEFT COLUMN (BOTTOM-ALIGNED CONTENT)
====================================================== */

/* Ensure column fills row height */
.mff-hero-image {
  height: 100%;
}

/* Bottom-align content inside left column */
.mff-hero-image > .fl-col-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 80vh;
}

/* Hero text */
.mff-hero-overlay {
  position: relative;
  max-width: 620px;
  margin-bottom: 48px;
}

.mff-hero-overlay h1 {
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* ======================================================
   HERO — RIGHT RAIL (TOP-ALIGNED CONTENT)
====================================================== */
.mff-hero-rail {
  background-color: var(--mff-color-rail);
}


/* ======================================================
   MAX MEGA MENU — DROPDOWNS
====================================================== */

#mega-menu-wrap-primary ul.mega-sub-menu {
  background-color: var(--mff-color-primary) !important;
  padding: 24px 32px;
  border: none !important;
  box-shadow: none !important;
}

#mega-menu-wrap-primary ul.mega-sub-menu > li {
  background: transparent !important;
}

#mega-menu-wrap-primary ul.mega-sub-menu > li > a {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
}

#mega-menu-wrap-primary ul.mega-sub-menu > li:hover {
  background-color: rgba(255,255,255,0.08) !important;
}

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

.site-footer,
.site-footer .site-info,
.site-footer .inside-site-info {
  background-color: var(--mff-color-primary) !important;
}

.site-footer .inside-site-info {
  max-width: var(--mff-container-width);
  margin: 0 auto;
  padding: var(--mff-space-md);
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Hide GP default credit */
.copyright-bar {
  display: none;
}

/* ======================================================
   CUSTOM FOOTER CONTENT
====================================================== */

.mff-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 12px;
  line-height: 1.4;
  color: #000000;
  margin-left: 48px;
  margin-right: 48px;

}

.mff-footer-inner a {
  color: inherit;
}

/* ======================================================
   MOBILE NAV — USE MAX MEGA MENU ONLY
====================================================== */

@media (max-width: 1024px) {
  .menu-toggle,
  .mobile-bar-items {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .navigation-branding img,
  .site-logo.mobile-header-logo img {
    height: 100px !important;
    width: auto !important;
    max-height: none !important;
  }

  .mobile-header .inside-navigation,
  .mobile-header .navigation-branding {
    padding: 40px 0 !important;
  }
}
@media (max-width: 768px) {
  /* The actual white header bar */
  .site-header,
  #masthead,
  .inside-header,
  .inside-navigation {
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08) !important;
    position: relative;
    z-index: 9999;
  }
}

  /* FOOTER LINKS */
 .foundation-one-col {
  margin-left: 48px;
	padding-bottom: 48px;
  color: #ffffff;
}

.foundation-one-col h3 {
  font-size: 18px;
  margin-bottom: 18px;
  color: #ffffff;
}

.foundation-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.foundation-links li {
  font-size: 14px;
  display: flex;
  align-items: center;
}

.foundation-links li:not(:last-child)::after {
  content: "|";
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.6);
}

.foundation-links a {
  color: #ffffff;
  text-decoration: none;
}

.foundation-links a:hover {
  text-decoration: underline;
}
