/*
Theme Name: Melody Craft
Theme URI: https://melodycraft.ca
Author: Autonix Systems
Author URI: https://autonix.systems
Description: A vibrant, single-page style theme for Melody Craft — musical event hosting across Canada. Includes a full landing page (hero, services, events, process, testimonials, contact form) editable from Appearance → Customize.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: melodycraft
Tags: one-page, music, events, custom-logo, custom-menu, responsive
*/

/* ---------- Tokens (from the logo) ---------- */
:root {
  --navy: #0d2433;
  --navy-2: #133246;
  --navy-3: #1b4259;
  --teal: #2b8c8c;
  --teal-2: #3fb0aa;
  --orange: #e8622c;
  --gold: #f4a83a;
  --cream: #f5e6c8;
  --cream-2: #fbf4e6;
  --ink: #0d2433;
  --muted: #5b6f7c;
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(13, 36, 51, .45);
  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }

.mc-container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mc-section { padding: 110px 0; position: relative; }
.mc-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; font-size: .82rem; color: var(--orange);
  margin-bottom: 14px;
}
.mc-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.mc-title { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.mc-lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.mc-center { text-align: center; }
.mc-center .mc-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.mc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.mc-btn:hover { transform: translateY(-3px); }
.mc-btn--primary { background: var(--orange); color: #fff; box-shadow: 0 12px 30px -10px rgba(232, 98, 44, .7); }
.mc-btn--primary:hover { background: #f07238; box-shadow: 0 18px 36px -12px rgba(232, 98, 44, .85); }
.mc-btn--ghost { border-color: rgba(245, 230, 200, .45); color: var(--cream); }
.mc-btn--ghost:hover { background: var(--cream); color: var(--navy); }

/* ---------- Header ---------- */
.mc-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px 0; transition: background .3s, padding .3s, box-shadow .3s;
}
.admin-bar .mc-header { top: 32px; }
.mc-header.is-scrolled {
  background: rgba(13, 36, 51, .92); backdrop-filter: blur(12px);
  padding: 10px 0; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5);
}
.mc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.mc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); }
.mc-brand img { width: 58px; height: 58px; transition: width .3s, height .3s; }
.is-scrolled .mc-brand img { width: 48px; height: 48px; }
.mc-brand span { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; }
.mc-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.mc-nav a {
  color: var(--cream); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.mc-nav a:hover { background: rgba(245, 230, 200, .12); }
.mc-nav .mc-nav__cta a { background: var(--orange); color: #fff; padding: 10px 20px; }
.mc-nav .mc-nav__cta a:hover { background: #f07238; }
.mc-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mc-burger span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.mc-hero {
  min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(43, 140, 140, .35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(232, 98, 44, .25), transparent 60%),
    var(--navy);
  color: var(--cream); padding: 140px 0 120px; overflow: hidden; position: relative;
}
.mc-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.mc-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); color: var(--cream); }
.mc-hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.mc-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'%3E%3Cpath d='M2 7 Q 50 1 100 6 T 198 4' fill='none' stroke='%23e8622c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}
.mc-hero p { font-size: 1.2rem; color: rgba(245, 230, 200, .8); max-width: 560px; margin-bottom: 34px; }
.mc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mc-hero__badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px; }
.mc-hero__badge strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--gold); line-height: 1; }
.mc-hero__badge span { font-size: .9rem; color: rgba(245, 230, 200, .7); }
.mc-hero__art { position: relative; display: grid; place-items: center; }
.mc-hero__logo {
  width: min(420px, 100%); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
  animation: mc-float 6s ease-in-out infinite;
}
.mc-hero__ring {
  position: absolute; border-radius: 50%; border: 2px dashed rgba(63, 176, 170, .35);
  width: 118%; aspect-ratio: 1; animation: mc-spin 40s linear infinite;
}
.mc-hero__ring--2 { width: 140%; border-color: rgba(244, 168, 58, .18); border-style: dotted; animation-direction: reverse; animation-duration: 60s; }
.mc-note {
  position: absolute; font-size: 2rem; color: var(--teal-2); opacity: .5; z-index: 1;
  animation: mc-rise 9s linear infinite;
}
.mc-eq { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; display: flex; align-items: flex-end; gap: 6px; padding: 0 20px; opacity: .22; z-index: 1; }
.mc-eq i { flex: 1; background: linear-gradient(var(--gold), var(--orange)); border-radius: 4px 4px 0 0; animation: mc-eq 1.4s ease-in-out infinite alternate; }

@keyframes mc-float { 50% { transform: translateY(-16px) rotate(-2deg); } }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@keyframes mc-rise { 0% { transform: translateY(40px) rotate(0); opacity: 0; } 15% { opacity: .55; } 100% { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
@keyframes mc-eq { from { height: 12%; } to { height: 100%; } }

/* ---------- Marquee ---------- */
.mc-marquee { background: var(--orange); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -22px 0 0; position: relative; z-index: 3; }
.mc-marquee__track { display: flex; gap: 48px; width: max-content; animation: mc-marquee 35s linear infinite; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.mc-marquee__track span::after { content: "♪"; margin-left: 48px; color: var(--navy); }
@keyframes mc-marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
.mc-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.mc-card {
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  box-shadow: 0 2px 0 rgba(13, 36, 51, .04), 0 18px 40px -28px rgba(13, 36, 51, .35);
  border: 1px solid rgba(13, 36, 51, .06); transition: transform .35s, box-shadow .35s; position: relative; overflow: hidden;
}
.mc-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--gold), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.mc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.mc-card:hover::after { transform: scaleX(1); }
.mc-card__icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); margin-bottom: 22px;
}
.mc-card__icon svg { width: 30px; height: 30px; }
.mc-card:nth-child(3n+2) .mc-card__icon { background: var(--teal); color: var(--cream); }
.mc-card:nth-child(3n) .mc-card__icon { background: var(--orange); color: #fff; }
.mc-card h3 { font-size: 1.4rem; }
.mc-card p { color: var(--muted); margin: 0; }

/* ---------- Events ---------- */
.mc-events { background: var(--navy); color: var(--cream); }
.mc-events .mc-lead { color: rgba(245, 230, 200, .72); }
.mc-events__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.mc-events__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 20px; margin-top: 56px; }
.mc-tile {
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate; transition: transform .35s;
}
.mc-tile:hover { transform: scale(1.02); }
.mc-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.mc-tile__emoji { position: absolute; top: 20px; right: 22px; font-size: 3rem; transition: transform .4s; }
.mc-tile:hover .mc-tile__emoji { transform: rotate(-12deg) scale(1.15); }
.mc-tile h3 { font-size: 1.45rem; margin: 0 0 4px; color: #fff; }
.mc-tile p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.mc-tile--a { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--orange), #b8401a); }
.mc-tile--a h3 { font-size: 2.1rem; }
.mc-tile--a .mc-tile__emoji { font-size: 5rem; }
.mc-tile--b { background: linear-gradient(150deg, var(--teal), #1c6464); }
.mc-tile--c { background: linear-gradient(150deg, var(--navy-3), var(--navy-2)); border: 1px solid rgba(245, 230, 200, .12); }
.mc-tile--d { background: linear-gradient(150deg, var(--gold), #d9831c); }
.mc-tile--d h3, .mc-tile--d p { color: var(--navy); }
.mc-tile--e { background: linear-gradient(150deg, #2a5670, var(--navy-3)); }

/* ---------- Process ---------- */
.mc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 60px; counter-reset: step; position: relative; }
.mc-steps::before { content: ""; position: absolute; top: 36px; left: 12%; right: 12%; border-top: 2px dashed rgba(43, 140, 140, .4); }
.mc-step { text-align: center; position: relative; }
.mc-step__num {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: var(--cream-2); border: 3px solid var(--teal); font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--teal);
  position: relative; z-index: 1; transition: background .3s, color .3s;
}
.mc-step:hover .mc-step__num { background: var(--teal); color: #fff; }
.mc-step h3 { font-size: 1.25rem; }
.mc-step p { color: var(--muted); font-size: .97rem; }

/* ---------- Stats band ---------- */
.mc-stats { background: linear-gradient(120deg, var(--teal), #1d6d6d); color: #fff; padding: 70px 0; }
.mc-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.mc-stats strong { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; color: var(--cream); }
.mc-stats span { opacity: .85; }

/* ---------- Cities ---------- */
.mc-cities__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mc-cities__list { display: flex; flex-wrap: wrap; gap: 12px; }
.mc-chip {
  padding: 11px 20px; border-radius: 999px; background: #fff; border: 1px solid rgba(13, 36, 51, .1);
  font-weight: 500; transition: .25s; cursor: default;
}
.mc-chip:hover { background: var(--navy); color: var(--cream); transform: translateY(-2px); }
.mc-chip--more { background: var(--orange); color: #fff; border-color: var(--orange); }
.mc-leaf { font-size: 1.1em; color: #d52b1e; }

/* ---------- Testimonials ---------- */
.mc-testi { background: var(--cream); }
.mc-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.mc-quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 34px; position: relative; box-shadow: 0 18px 40px -30px rgba(13, 36, 51, .4); }
.mc-quote::before { content: "“"; position: absolute; top: -8px; right: 24px; font-family: Georgia, serif; font-size: 7rem; color: var(--gold); opacity: .35; line-height: 1; }
.mc-quote__stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; }
.mc-quote p { font-size: 1.04rem; }
.mc-quote__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.mc-quote__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; background: var(--teal); }
.mc-quote:nth-child(2) .mc-quote__avatar { background: var(--orange); }
.mc-quote:nth-child(3) .mc-quote__avatar { background: var(--navy); }
.mc-quote__who strong { display: block; line-height: 1.2; }
.mc-quote__who small { color: var(--muted); }

/* ---------- Contact ---------- */
.mc-contact { background: var(--navy); color: var(--cream); overflow: hidden; }
.mc-contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; position: relative; z-index: 2; }
.mc-contact .mc-lead { color: rgba(245, 230, 200, .72); }
.mc-contact__info { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.mc-contact__info li { display: flex; gap: 16px; align-items: center; }
.mc-contact__info i { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(245, 230, 200, .08); font-style: normal; font-size: 1.3rem; flex: none; }
.mc-contact__info a { color: var(--cream); text-decoration: none; }
.mc-contact__info small { display: block; color: rgba(245, 230, 200, .6); font-size: .82rem; }
.mc-form { background: #fff; color: var(--ink); border-radius: 28px; padding: 40px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.mc-form h3 { font-size: 1.6rem; }
.mc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mc-field { margin-bottom: 16px; }
.mc-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.mc-field input, .mc-field select, .mc-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid #dfe4e8; border-radius: 12px;
  font: inherit; color: var(--ink); background: #fafbfc; transition: border-color .2s, box-shadow .2s;
}
.mc-field input:focus, .mc-field select:focus, .mc-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(43, 140, 140, .15); background: #fff; }
.mc-field textarea { min-height: 120px; resize: vertical; }
.mc-form .mc-btn { width: 100%; justify-content: center; margin-top: 6px; }
.mc-hp { position: absolute; left: -9999px; }
.mc-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.mc-alert--ok { background: #e3f4ef; color: #1c6464; }
.mc-alert--err { background: #fde8df; color: #a63b12; }

/* ---------- Footer ---------- */
.mc-footer { background: #081a25; color: rgba(245, 230, 200, .7); padding: 70px 0 30px; }
.mc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.mc-footer h4 { color: var(--cream); font-size: 1.1rem; }
.mc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mc-footer a { color: rgba(245, 230, 200, .7); text-decoration: none; }
.mc-footer a:hover { color: var(--gold); }
.mc-footer__brand img { width: 84px; margin-bottom: 16px; }
.mc-footer__bottom { border-top: 1px solid rgba(245, 230, 200, .1); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .9rem; }

/* ---------- Generic pages / blog ---------- */
.mc-page-hero { background: var(--navy); color: var(--cream); padding: 170px 0 80px; text-align: center; }
.mc-page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0; }
.mc-content { padding: 80px 0; }
.mc-content .entry { max-width: 780px; margin-inline: auto; font-size: 1.08rem; }
.mc-content .entry h2, .mc-content .entry h3 { margin-top: 1.6em; }
.mc-post { background: #fff; border-radius: var(--radius); padding: 30px; margin-bottom: 26px; box-shadow: 0 18px 40px -30px rgba(13, 36, 51, .4); }
.mc-post h2 a { color: var(--navy); text-decoration: none; }
.mc-post h2 a:hover { color: var(--orange); }
.mc-meta { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.wp-caption-text, .screen-reader-text:focus { font-size: .9rem; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------- Reveal ---------- */
.mc-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.mc-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mc-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .mc-hero__grid, .mc-cities__wrap, .mc-contact__grid { grid-template-columns: 1fr; }
  .mc-hero__art { order: -1; }
  .mc-hero__logo { width: 260px; }
  .mc-services__grid, .mc-testi__grid { grid-template-columns: 1fr 1fr; }
  .mc-events__grid { grid-template-columns: 1fr 1fr; }
  .mc-steps, .mc-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .mc-steps::before { display: none; }
  .mc-footer__grid { grid-template-columns: 1fr 1fr; }
  .mc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .mc-burger { display: block; }
  .mc-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--navy);
    padding: 100px 26px 30px; transform: translateX(100%); transition: transform .35s; box-shadow: -20px 0 50px rgba(0, 0, 0, .4);
  }
  .mc-nav.is-open { transform: none; }
  .mc-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .mc-nav a { display: block; padding: 12px 16px; font-size: 1.05rem; }
  .mc-burger { position: relative; z-index: 60; }
  .mc-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mc-burger.is-open span:nth-child(2) { opacity: 0; }
  .mc-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .mc-section { padding: 80px 0; }
  .mc-container { width: calc(100% - 32px); }
  .mc-services__grid, .mc-testi__grid, .mc-events__grid, .mc-form__row { grid-template-columns: 1fr; }
  .mc-tile--a { grid-column: auto; grid-row: span 1; }
  .mc-tile--a h3 { font-size: 1.6rem; }
  .mc-tile--a .mc-tile__emoji { font-size: 3rem; }
  .mc-form { padding: 28px 22px; }
  .mc-footer__grid { grid-template-columns: 1fr; }
  .mc-brand span { font-size: 1.15rem; }
  .mc-hero { padding-top: 120px; }
  .admin-bar .mc-header { top: 0; }
}
@media (max-width: 782px) { .admin-bar .mc-header { top: 46px; } }
