/*
Theme Name: MEDAFIO Events
Theme URI: https://medafio.co
Author: MEDAFIO
Description: A contemplative events and learning homepage for MEDAFIO.
Version: 2.0.0
Text Domain: medafio-events
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Space+Mono:wght@400;700&display=swap");

:root {
  --navy: #24233d;
  --cream: #f2efe6;
  --ink: #27263c;
  --muted: #777467;
  --line: #d6d1c2;
  --gold: #c9a34c;
  --gold-soft: #dbc17a;
  --sand: #ded8ca;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", sans-serif;
  --mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { color: inherit; }
button { border: 0; cursor: pointer; }
a { text-decoration: none; }
.site-shell { overflow: hidden; }
.page-width { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.gold { color: #bc963d; }
.brown { color: #8d6c2b; }
.dark-gold { color: #5d4b25; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }

.site-header { position: relative; z-index: 20; height: 76px; background: #e9e5dd; }
.header-inner { width: min(1176px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; background: transparent; text-align: left; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(36,35,61,.5); border-radius: 50%; }
.brand-mark::before, .brand-mark span { content: ""; position: absolute; width: 27px; height: 27px; border: 1px solid var(--gold); border-radius: 45%; transform: rotate(45deg); }
.brand-mark span { width: 5px; height: 5px; border: 0; background: var(--gold); transform: none; }
brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 17px; letter-spacing: -.04em; line-height: 1; }
.brand-copy small { margin-top: 5px; color: #777467; font-family: var(--mono); font-size: 8px; letter-spacing: .24em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 31px; color: #666355; font-size: 13px; font-weight: 500; }
.desktop-nav button:not(.header-cta), .footer-links button, .footer-links a { background: transparent; transition: color .2s ease; }
.desktop-nav button:not(.header-cta):hover, .footer-links button:hover, .footer-links a:hover { color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--navy); color: var(--cream); padding: 12px 19px; font-size: 12px; font-weight: 600; }
.mobile-menu-button { display: none; border: 1px solid rgba(36,35,61,.2); border-radius: 50%; padding: 9px; background: transparent; }
.mobile-menu { display: none; }
.mobile-menu.is-open { display: flex; } 

.hero { position: relative; isolation: isolate; min-height: 774px; overflow: hidden; background: var(--navy); color: var(--cream); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 78% 42%, rgba(194,157,64,.26), transparent 29%), radial-gradient(circle at 55% 0%, rgba(110,69,105,.28), transparent 38%); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 59%; max-width: 760px; mix-blend-mode: screen; opacity: .9; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art-wash { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), rgba(36,35,61,.35) 45%, transparent); }
.hero-orb { position: absolute; top: 25%; right: 15%; width: 8px; height: 8px; border-radius: 50%; background: #d1ad5a; box-shadow: 0 0 32px 8px rgba(209,173,90,.6); }
.hero-content { position: relative; min-height: 774px; display: flex; align-items: flex-end; padding-bottom: 112px; }
.hero-copy { max-width: 700px; }
.hero h1, .section-intro h2, .about h2, .journal h2, .newsletter h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: .84; }
.hero h1 { margin-top: 26px; font-size: clamp(64px, 9.8vw, 144px); }
.hero h1 em, .about h2 em, .journal h2 em, .newsletter h2 em { color: var(--gold); font-style: normal; }
.hero-description { max-width: 410px; margin: 35px 0 0; color: #d8d4cb; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 37px; }
.gold-button { display: flex; align-items: center; gap: 18px; border-radius: 999px; background: var(--gold); padding: 14px 23px; color: var(--navy); font-size: 13px; font-weight: 600; transition: transform .25s ease, background .25s ease; }
.gold-button:hover { transform: translateY(-4px); background: var(--gold-soft); }
.story-link { display: flex; align-items: center; gap: 8px; background: transparent; color: #e0ddd5; font-size: 13px; font-weight: 500; }
.story-link:hover { color: var(--gold); }
.play-ring { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(224,221,213,.4); border-radius: 50%; }
.scroll-cue { position: absolute; right: 0; bottom: 38px; display: flex; align-items: center; gap: 13px; color: #aba8a1; }
.scroll-cue span { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; }
.bounce { color: var(--gold); animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

.principles { border-bottom: 1px solid var(--line); background: var(--cream); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle { display: flex; gap: 16px; padding: 30px 28px; }
.principle + .principle { border-left: 1px solid var(--line); }
.principle-number { padding-top: 2px; font-size: 10px; }
.principle h2 { margin: 0; font-size: 14px; }
.principle p { max-width: 260px; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.experiences { padding-top: 141px; padding-bottom: 111px; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-intro h2 { max-width: 580px; margin-top: 21px; font-size: clamp(48px, 6vw, 92px); }
.section-intro > p { max-width: 280px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) ; gap: 20px; margin-top: 63px; }
.event-card { cursor: pointer; }
.event-visual { position: relative; height:420px; aspect-ratio: auto; overflow: hidden; padding: 25px; color: #f4f0e4; transition: transform .5s ease; }
.event-card:hover .event-visual { transform: translateY(-8px); }
.event-visual-content { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.event-meta, .event-date { display: flex; align-items: center; justify-content: space-between; }
.event-meta { color: #f5dea3; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.event-date { border-top: 1px solid rgba(244,240,228,.3); margin-top: 22px; padding-top: 14px; font-size: 11px; }
.event-visual h3 { margin: 0; white-space: pre-line; font-family: var(--serif); font-size: 50px; font-weight: 400; letter-spacing: -.035em; line-height: .82; }
.event-art { position: absolute; inset: 0; opacity: .8; }
.event-art span { position: absolute; display: block; border: 1px solid rgba(244,236,207,.4); border-radius: 50%; }
.event-art-quantum span:first-child { left: 41%; top: 28%; width: 18%; height: 18%; border: 0; background: rgba(226,199,139,.9); box-shadow: 0 0 55px 18px rgba(226,199,139,.28); }
.event-art-quantum span:nth-child(2) { left: 27%; top: 14%; width: 46%; height: 46%; }
.event-art-quantum span:nth-child(3) { left: 10%; top: -3%; width: 80%; height: 80%; border-color: rgba(244,236,207,.2); }
.event-art-geometry { background: conic-gradient(from 20deg at 50% 45%, transparent, rgba(250,224,159,.5), transparent 22%, rgba(250,224,159,.2), transparent 41%); }
.event-art-geometry span { left: 22%; top: 19%; width: 56%; height: 56%; transform: rotate(45deg); border-color: rgba(250,224,159,.45); }
.event-art-geometry span:nth-child(2) { left: 31%; top: 28%; width: 38%; height: 38%; }
.event-art-geometry span:nth-child(3) { left: 42%; top: 39%; width: 16%; height: 16%; border-color: rgba(250,224,159,.7); }
.event-art-longevity span:first-child { left: 25%; top: 22%; width: 48%; height: 48%; border-color: rgba(229,212,155,.7); }
.event-art-longevity span:nth-child(2) { left: 10%; top: 5%; width: 80%; height: 80%; border-color: rgba(229,212,155,.25); }
.event-art-longevity span:nth-child(3) { left: 39%; top: 36%; width: 15%; height: 15%; border-color: rgba(229,212,155,.8); box-shadow: 0 0 40px rgba(229,212,155,.7); }
.event-art-geo { background: conic-gradient(from 20deg at 50% 45%, transparent, rgba(250,224,159,.5), transparent 22%, rgba(250,224,159,.2), transparent 41%); }
.event-art-geo span { left: 22%; top: 19%; width: 56%; height: 56%; transform: rotate(90deg); border-color: rgba(250,224,159,.45); }
.event-art-geo span:nth-child(2) { left: 31%; top: 28%; width: 38%; height: 38%; }
.event-art-geo span:nth-child(3) { left: 42%; top: 39%; width: 16%; height: 16%; border-color: rgba(250,224,159,.7); }
.event-card-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 0; }
.event-place { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; font-weight: 600; }
.event-place svg { color: #bc963d; }
.event-summary { max-width: 260px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.event-duration { display: flex; align-items: center; gap: 4px; flex-shrink: 0; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.season-note { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: 13px; }
.season-note span { display: flex; align-items: center; gap: 9px; }
.season-note button { display: flex; align-items: center; gap: 4px; margin-left: auto; background: transparent; color: var(--navy); font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.about { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 56px; padding-top: 128px; padding-bottom: 128px; }
.founder-art { position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5; overflow: hidden; margin-inline: auto; background: radial-gradient(circle at 65% 35%, rgba(221,195,126,.45), transparent 19%), linear-gradient(145deg, #52445f, #8c6973 48%, #c6aa70); }
.founder-orbit { position: absolute; border: 1px solid rgba(234,215,162,.7); border-radius: 50%; animation: orbit 11s linear infinite; }
.orbit-one { left: 13%; top: 15%; width: 74%; height: 74%; }
.orbit-two { left: 25%; top: 25%; width: 50%; height: 50%; animation-duration: 8s; animation-direction: reverse; border-color: rgba(234,215,162,.45); }
.founder-star { position: absolute; left: 47%; top: 42%; width: 9%; height: 9%; border-radius: 50%; background: #f0d89d; box-shadow: 0 0 70px 20px rgba(240,216,157,.55); }
@keyframes orbit { to { transform: rotate(360deg); } }
.founder-art-caption { position: absolute; left: 24px; bottom: 24px; color: #f4ead3; font-size: 9px; letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; }
.founder-arrow { position: absolute; right: 24px; bottom: 24px; color: #f4ead3; }
.about h2 { margin-top: 20px; font-size: clamp(48px, 6vw, 88px); line-height: .88; }
.about h2 em { color: var(--ink); }
.about-body { max-width: 535px; margin-top: 34px; color: #5d5a50; font-size: 15px; line-height: 1.85; }
.about-body p { margin: 0 0 18px; }
.founder { display: flex; align-items: center; gap: 14px; margin-top: 31px; }
.founder > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 14px; }
.founder strong, .founder small { display: block; }
.founder strong { font-size: 13px; }
.founder small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }

.journal { background: var(--navy); color: var(--cream); padding: 127px 0 130px; }
.journal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.journal h2 { margin-top: 20px; font-size: clamp(48px, 6vw, 80px); }
.journal h2 em { color: var(--cream); }
.outline-button { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(242,239,230,.3); border-radius: 999px; background: transparent; color: var(--cream); padding: 11px 18px; font-size: 12px; transition: border-color .2s ease, color .2s ease; }
.outline-button:hover { border-color: var(--gold); color: var(--gold); }
.journal-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; margin-top: 62px; border-top: 1px solid rgba(242,239,230,.2); border-bottom: 1px solid rgba(242,239,230,.2); }
.journal-grid article { padding: 32px 32px 34px; }
.journal-grid article + article { border-left: 1px solid rgba(242,239,230,.2); }
.journal-grid article:first-child { padding-left: 0; }
.journal-grid article:last-child { padding-right: 0; }
.journal-label { color: var(--gold); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.journal-grid h3 { margin: 20px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: .95; }
.journal-feature h3 { max-width: 490px; font-size: 39px; }
.journal-grid p { margin: 22px 0 0; color: #aaa9a2; font-size: 13px; line-height: 1.65; }
.journal-grid button { display: flex; align-items: center; gap: 10px; margin-top: 28px; background: transparent; color: var(--cream); font-size: 12px; font-weight: 600; }
.journal-grid button:hover { color: var(--gold); }

.newsletter { position: relative; overflow: hidden; background: var(--gold); padding: 128px 0; }
.newsletter-grid { position: relative; display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 48px; }
.newsletter h2 { max-width: 650px; margin-top: 19px; color: var(--navy); font-size: clamp(51px, 7vw, 106px); }
.newsletter h2 em { color: var(--navy); }
.newsletter-copy > p { max-width: 370px; margin: 0; color: #4f4327; font-size: 14px; line-height: 1.7; }
.newsletter form { max-width: 420px; margin-top: 30px; }
.newsletter-input { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(36,35,61,.55); padding-bottom: 12px; color: #5d4b25; }
.newsletter-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 14px; }
.newsletter-input input::placeholder { color: #6c5a32; }
.newsletter-input button { display: flex; align-items: center; gap: 4px; background: transparent; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-success, .form-error { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 12px; }
.form-success { color: #3d552f; }
.form-error { color: #7a302f; }
.newsletter-orbit { position: absolute; right: -90px; top: -125px; border: 1px solid rgba(36,35,61,.15); border-radius: 50%; }
.orbit-large { width: 580px; height: 580px; }
.orbit-small { right: -5px; top: -65px; width: 420px; height: 420px; }

.site-footer { background: var(--navy); color: var(--cream); padding: 38px 0; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer-brand { padding: 0; background: transparent; color: var(--cream); font-family: var(--serif); font-size: 30px; }
.footer-inner p { margin: 7px 0 0; color: #aaa9a2; font-size: 12px; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; color: #aaa9a2; font-size: 12px; }
.social { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(242,239,230,.2); border-radius: 50%; }
.copyright { color: #777a82 !important; font-size: 9px !important; letter-spacing: .18em; text-transform: uppercase; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; background: rgba(36,35,61,.75); padding: 20px; backdrop-filter: blur(7px); }
.modal-backdrop.is-open { display: flex; }
.registration-modal { position: relative; width: min(520px, 100%); overflow: hidden; background: var(--cream); box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; place-items: center; border-radius: 50%; background: rgba(242,239,230,.8); padding: 9px; }
.modal-banner { height: 112px; }
.modal-body { padding: 30px 36px 36px; }
.modal-body h2 { margin: 12px 0 0; white-space: pre-line; font-family: var(--serif); font-size: 50px; font-weight: 400; letter-spacing: -.04em; line-height: .83; }
.modal-copy { margin: 25px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.modal-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 23px; padding: 16px 0; font-size: 12px; }
.modal-details span { display: flex; align-items: center; gap: 7px; }
.modal-details svg { color: #bc963d; }
.register-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 25px; border-radius: 999px; background: var(--navy); padding: 14px 18px; color: var(--cream); font-size: 13px; font-weight: 600; }
.registered { display: flex; align-items: center; gap: 8px; margin: 25px 0 0; color: #4d6944; font-size: 13px; font-weight: 600; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--navy); padding: 13px 17px; color: var(--cream); box-shadow: 0 15px 40px rgba(36,35,61,.24); font-size: 13px; }
.wp-toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; border-radius: 999px; background: var(--navy); padding: 13px 17px; color: var(--cream); box-shadow: 0 15px 40px rgba(36,35,61,.24); font-size: 13px; }

@media (max-width: 800px) {
  .page-width, .header-inner { width: min(100% - 32px, 600px); }
  .site-header { height: 70px; }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; place-items: center; }
  .mobile-menu { position: fixed; inset: 0; z-index: 50; display: none; flex-direction: column; background: var(--navy); padding: 24px 22px; color: var(--cream); }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu-top { display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu-top button { display: grid; place-items: center; border: 1px solid rgba(242,239,230,.3); border-radius: 50%; background: transparent; padding: 9px; color: var(--cream); }
  .mobile-wordmark { font-family: var(--serif); font-size: 26px; }
  .mobile-links { display: flex; flex-direction: column; gap: 22px; margin-top: 90px; }
  .mobile-links button { display: flex; align-items: baseline; gap: 12px; background: transparent; color: var(--cream); font-family: var(--serif); font-size: 47px; font-style: italic; text-align: left; }
  .mobile-links span { color: var(--gold); font-family: var(--mono); font-size: 10px; font-style: normal; }
  .mobile-tagline { margin-top: auto; color: rgba(242,239,230,.5); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
  .hero { min-height: 735px; }
  .hero-content { min-height: 735px; padding-bottom: 90px; }
  .hero-art { width: 100%; opacity: .72; }
  .hero-art-wash { background: linear-gradient(90deg, var(--navy) 0%, rgba(36,35,61,.7) 58%, rgba(36,35,61,.1)); }
  .hero h1 { font-size: clamp(62px, 17vw, 110px); }
  .hero-description { font-size: 14px; line-height: 1.7; }
  .scroll-cue { right: 0; bottom: 29px; }
  .principles-grid { display: block; }
  .principle { padding: 20px 0; }
  .principle + .principle { border-top: 1px solid var(--line); border-left: 0; }
  .experiences { padding-top: 86px; padding-bottom: 75px; }
  .section-intro { display: block; }
  .section-intro h2 { font-size: 61px; }
  .section-intro > p { margin-top: 26px; }
  .events-grid { display: block; margin-top: 42px; }
  .event-card { margin-bottom: 32px; }
  .event-visual { aspect-ratio: 1.02; }
  .event-visual h3 { font-size: 53px; }
  .season-note { align-items: flex-start; }
  .season-note span { max-width: 215px; }
  .about-grid { display: block; padding-top: 80px; padding-bottom: 83px; }
  .founder-art { margin-bottom: 62px; }
  .about h2 { font-size: 61px; }
  .journal { padding: 82px 0 84px; }
  .journal-heading { display: block; }
  .journal h2 { font-size: 61px; }
  .outline-button { margin-top: 30px; }
  .journal-grid { display: block; margin-top: 47px; }
  .journal-grid article, .journal-grid article:first-child, .journal-grid article:last-child { padding: 27px 0 30px; }
  .journal-grid article + article { border-top: 1px solid rgba(242,239,230,.2); border-left: 0; }
  .journal-feature h3 { font-size: 36px; }
  .newsletter { padding: 84px 0; }
  .newsletter-grid { display: block; }
  .newsletter h2 { font-size: 66px; }
  .newsletter-copy { margin-top: 38px; }
  .footer-inner { display: block; }
  .footer-links { margin-top: 30px; }
  .copyright { margin-top: 30px !important; }
  .modal-body { padding: 27px 24px 30px; }
  .modal-body h2 { font-size: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Elementor compatibility */
.elementor .elementor-widget-html { margin-bottom: 0; }
.elementor .elementor-widget-html .elementor-widget-container { padding: 0; }
.elementor .medafio-elementor-home { width: 100%; }
