/*
Theme Name: Music for the World
Theme URI: https://www.musicfortheworld.org/
Description: Classic WordPress theme for Music for the World, converted from the static site (based on the "Royale" template layout). Red stitched header, photo banner, white content area, red photo footer.
Author: Music for the World
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mftw
*/

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#151515;font-family:'Raleway',Arial,sans-serif;font-size:11pt;line-height:1.75em;color:#555}
img{max-width:100%;height:auto;border:0}
a{color:#b20002}
h1,h2,h3,h4,h5,h6{font-weight:bold;color:#222;line-height:1.2em;margin:0 0 .6em}
p{margin:0 0 1.5em}
strong,b{color:#000}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 25px}

/* Header */
#header{background:#b20002 url(assets/img/header-bg.jpg) repeat-x left top;position:relative;z-index:10}
#header .container{position:relative;min-height:70px;display:flex;align-items:center;justify-content:space-between}
#logo{margin:0;font-size:1em}
#logo a{display:block;color:#fff;text-decoration:none;font-size:1.3em;font-weight:600;line-height:70px}
#nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
#nav li{margin:0}
#nav a{display:block;margin-left:.6em;padding:.5em 1.1em;letter-spacing:.05em;text-decoration:none;text-transform:uppercase;font-size:.8em;color:#fff;border-radius:25px}
#nav li.current-menu-item>a,#nav li.current_page_item>a,#nav li.current-menu-ancestor>a,#nav li.current_page_ancestor>a{background:#6e090b}
#nav a:hover{background:#6e090b}
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:2em;line-height:1;padding:.2em .4em;cursor:pointer}

/* Banner */
#banner{position:relative;background:#333 url(assets/img/banner.webp) no-repeat center;background-size:cover;padding:6em 0}
.home #banner{padding:16em 0}

/* Main */
#main{position:relative;background:#fff;padding:6em 0}
.entry-title{font-size:2.2em;margin-bottom:1em}
.entry-content::after{content:"";display:block;clear:both}
.entry-content h2{font-size:1.6em}
.entry-content h2:not(:first-child){margin-top:1.4em}
.entry-content img{display:block}
.entry-content figure{margin:0 0 1.5em}
.entry-content figcaption,.entry-content .wp-element-caption{font-size:.9em;color:#555;text-align:left;margin-top:.5em}
.entry-content .wp-block-columns{gap:50px;margin-bottom:0}
.entry-content .wp-block-column>*:last-child{margin-bottom:0}
.entry-content .wp-block-embed{margin:0 0 2em}
iframe{max-width:100%}

/* Card rows (home + projects landing) */
.mftw-cards .wp-block-column h2{font-size:1.6em}
.mftw-cards .wp-block-image{margin-bottom:1.5em}

/* Buttons (core button block + .button) */
.button,.wp-block-button__link,.entry-content .wp-block-button__link{display:inline-block;margin-top:1em;padding:.8em 1.5em;background:#b20002;border-radius:25px;text-decoration:none;text-transform:uppercase;font-size:1em;color:#fff;border:0;transition:color .35s,background-color .35s}
.button:hover,.wp-block-button__link:hover{background:#840002;color:#fff}
.wp-block-buttons{margin-top:0}

/* Footer */
#footer{background:#b20002;padding:6em 0;text-align:center}
#footer .footer-row{display:flex;gap:50px}
#footer .footer-row>div{flex:1}
#footer img{display:block;width:100%}
#copyright{padding:3em 0;color:#fff}
#copyright .container{display:flex;flex-wrap:wrap;gap:1.5em;justify-content:space-between;align-items:center;text-align:center}
#copyright .col{flex:1;min-width:180px}
#copyright a{color:#fff}
#copyright img{width:128px;height:28px;display:inline-block}

/* 404 / blog fallback */
.post-list article{margin-bottom:2.5em}

/* Mobile */
@media (max-width:781px){
  body{font-size:9.5pt}
  .container{padding:0 1em}
  .home #banner{padding:6em 0}
  #banner{padding:3em 0}
  #main{padding:4em 0}
  #footer{padding:3em 0}
  #footer .footer-row{flex-direction:column;gap:1.5em}
  .nav-toggle{display:block}
  #header .container{flex-wrap:wrap}
  #logo a{font-size:1.2em}
  #nav{display:none;width:100%;order:3}
  #nav.open{display:block}
  #nav ul{display:block;padding:0 0 1em}
  #nav a{margin:0;border-radius:0;border-top:1px solid #8e292b;padding:.9em 1em;font-size:.9em}
  .entry-title{font-size:1.8em}
  .entry-content .wp-block-columns{gap:1.5em}
  .entry-content .mftw-sidebar-left{flex-direction:column-reverse}
  #copyright .col{flex-basis:100%}
}
