/*
Theme Name: EU×Japan Animation
Theme URI: https://euxjapananime.com
Author: Lucía Ortiz
Description: Custom block theme for EU×Japan Animation: landing page, Workshops & Reports, Films & News (films + news), Education & Training and About. Sections are switched on in Settings → Reading.
Version: 0.5.5
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: euxjp
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:lang(ja), .ja { font-family: var(--wp--preset--font-family--japanese); }
.ja { color: var(--wp--preset--color--muted); word-break: auto-phrase; text-wrap: pretty; }

/* ---------- Pills & chips ---------- */
.euxjp-pill {
	display: inline-block !important;
	width: auto !important;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}
.euxjp-pill.is-light { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.euxjp-pill.is-red { background: var(--wp--preset--color--red); color: #fff; }

/* ---------- Header ---------- */
.euxjp-header { padding-top: 24px; padding-bottom: 24px; padding-left: var(--wp--style--root--padding-left, 20px) !important; padding-right: var(--wp--style--root--padding-right, 20px) !important; }
.euxjp-header .euxjp-header-logo img { height: 54px; width: auto; }
.euxjp-header .wp-block-social-links { gap: 10px; }

/* ---------- Hero ---------- */
.euxjp-hero { padding-top: 40px; padding-bottom: 72px; }
.euxjp-hero .euxjp-hero-logo img { width: 100%; max-width: 620px; height: auto; }
.euxjp-hero .euxjp-hero-text { border-left: 1px solid var(--wp--preset--color--line); padding-left: 56px; }
.euxjp-hero h1 { font-size: clamp(40px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -2px; font-weight: 800; }
.euxjp-hero .is-blue { color: var(--wp--preset--color--blue); }
.euxjp-hero .is-red { color: var(--wp--preset--color--red); }

/* ---------- Sections ---------- */
.euxjp-section { padding-top: 72px; padding-bottom: 72px; }
.euxjp-row-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.euxjp-statement { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.22; letter-spacing: -1px; }

/* ---------- Tiles ---------- */
.euxjp-tile {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 28px !important;
	min-height: 340px;
	color: var(--wp--preset--color--paper);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.euxjp-tile > * { position: relative; z-index: 1; }
.euxjp-tile .euxjp-watermark { position: absolute; right: -40px; bottom: -60px; width: 220px; opacity: .18; z-index: 0; margin: 0; }
.euxjp-tile .euxjp-watermark img { width: 100%; height: auto; }
.euxjp-tile h3 { color: inherit; font-size: 24px; line-height: 1.15; }
.euxjp-tile .ja { color: inherit; opacity: .8; }
.euxjp-tile .euxjp-soon { font-weight: 700; font-size: 14px; }

/* ---------- Blue band ---------- */
.euxjp-band { position: relative; overflow: hidden; color: var(--wp--preset--color--paper); }
.euxjp-band > * { position: relative; z-index: 1; }
.euxjp-band .euxjp-band-mark { position: absolute; right: -80px; top: -120px; width: 520px; opacity: .12; z-index: 0; margin: 0; }
.euxjp-band .euxjp-band-mark img { width: 100%; height: auto; }
.euxjp-card-dark { background: var(--wp--preset--color--ink); border-radius: 32px; padding: 44px !important; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.euxjp-card-dark .ja { color: #A9ACB4; }
.euxjp-band .euxjp-big { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -2px; line-height: 1; }

/* ---------- Notify card & form (Contact Form 7) ---------- */
.euxjp-notify { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 32px; padding: 56px 64px !important; }
.euxjp-notify .wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.euxjp-notify .wpcf7 label { font-weight: 700; font-size: 15px; display: block; }
.euxjp-notify .wpcf7 input[type="email"] {
	width: 100%; box-sizing: border-box; margin-top: 8px;
	background: var(--wp--preset--color--paper); border: 1.5px solid var(--wp--preset--color--line);
	border-radius: 999px; padding: 15px 22px; font: inherit; font-size: 16px;
}
.euxjp-notify .wpcf7 input[type="email"]:focus { outline: 2px solid var(--wp--preset--color--blue); outline-offset: 2px; }
.euxjp-notify .wpcf7 .wpcf7-acceptance { font-size: 14px; color: var(--wp--preset--color--muted); }
.euxjp-notify .wpcf7 input[type="submit"] {
	align-self: flex-start; cursor: pointer; border: 0;
	background: var(--wp--preset--color--blue); color: #fff;
	border-radius: 999px; padding: 15px 28px; font: inherit; font-size: 15px; font-weight: 700;
}
.euxjp-notify .wpcf7 input[type="submit"]:hover { background: #1E3A8C; }
.euxjp-notify .wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Footer ---------- */
.euxjp-footer { background: var(--wp--preset--color--ink); color: #C9CBD3; border-radius: 32px; margin: 0 24px 24px !important; padding: 56px 64px 36px !important; }
.euxjp-footer a { color: var(--wp--preset--color--paper); }
.euxjp-footer .euxjp-footer-logo img { width: 110px; height: auto; }
.euxjp-footer .euxjp-small { font-size: 13px; line-height: 1.6; }
.euxjp-footer .ja { color: #A9ACB4; }
.euxjp-footer .euxjp-flag img { height: 70px; width: auto; max-width: 100%; }
.euxjp-footer hr { border-color: #3A3D4B !important; opacity: 1; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.euxjp-hero .euxjp-hero-text { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding-top: 32px; }
	.euxjp-hero { padding-top: 16px; }
	.euxjp-section { padding-top: 48px; padding-bottom: 48px; }
	.euxjp-tile { min-height: 260px; }
	.euxjp-card-dark { padding: 28px !important; }
	.euxjp-notify { padding: 32px 24px !important; }
	.euxjp-footer { margin: 0 12px 12px !important; padding: 36px 24px 28px !important; }
	.euxjp-header .euxjp-header-logo img { height: 42px; }
}
.nobr { display: inline-block; }

.euxjp-card-dark .euxjp-event-meta { font-size: 15px; line-height: 1.5; margin-top: 18px; }
.euxjp-card-dark .euxjp-event-link .wp-block-button__link { padding: 10px 20px; font-size: 14px; }
.euxjp-footer a { color: inherit; }

/* =================================================================== */
/* Full site (v0.5)                                                     */
/* =================================================================== */
.is-blue { color: var(--wp--preset--color--blue); }
.is-red { color: var(--wp--preset--color--red); }
.is-salmon { color: #F2A497; }
.euxjp-pill.is-blue { background: var(--wp--preset--color--blue); color: #fff; }

/* Header navigation */
.euxjp-header > .wp-block-group { gap: 24px; }
.euxjp-nav { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; font-size: 15px; font-weight: 600; }
.euxjp-nav a { color: var(--wp--preset--color--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.euxjp-nav a:hover { color: var(--wp--preset--color--blue); }
.euxjp-nav a.is-current { color: var(--wp--preset--color--blue); border-bottom-color: var(--wp--preset--color--blue); }
.euxjp-nav a.is-hidden-section { opacity: .45; border-bottom: 2px dashed var(--wp--preset--color--line); }

/* Page head */
.euxjp-page-head { padding-top: 56px; padding-bottom: 56px; }
.euxjp-page-head .wp-block-columns { gap: 64px; align-items: flex-start; }
.euxjp-page-head .euxjp-pill { margin-bottom: 18px; }
.euxjp-page-title { font-size: clamp(44px, 6vw, 84px) !important; letter-spacing: -2.5px !important; line-height: 1 !important; margin-top: 18px; }
.euxjp-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.euxjp-page-head .ja, .euxjp-section .ja { line-height: 1.85; }

/* Workshops */
.euxjp-osaka { gap: 64px; align-items: flex-start; }
.euxjp-photo-col { position: relative; }
.euxjp-ph { background: repeating-linear-gradient(135deg, #DCDDD6 0 14px, #E4E5DE 14px 28px); border-radius: 32px; min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--wp--preset--color--muted); font-size: 14px; }
.euxjp-ph p { background: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 10px; }
.euxjp-stat { position: absolute; background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: 0 16px 40px rgba(31,34,48,.14); }
.euxjp-stat p { margin: 0; color: var(--wp--preset--color--muted); }
.euxjp-stat .euxjp-stat-n { font-size: 40px; font-weight: 800; line-height: 1; color: var(--wp--preset--color--blue); }
.euxjp-stat .euxjp-stat-n.is-red { color: var(--wp--preset--color--red); }
.euxjp-stat.is-a { right: -20px; top: 40px; }
.euxjp-stat.is-b { left: -20px; bottom: 60px; }
.euxjp-ja-list p { margin: 4px 0; }
.euxjp-recs { gap: 16px; }
.euxjp-rec { border-radius: 24px; padding: 24px !important; color: #fff; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.euxjp-rec .ja { color: inherit; opacity: .82; font-size: 13px; }
.euxjp-num { font-size: 14px; font-weight: 700; opacity: .75; }
.euxjp-rec-en { font-size: 19px; font-weight: 800; line-height: 1.25; }
.euxjp-band { padding-top: 88px; padding-bottom: 88px; }
.euxjp-band-title { color: var(--wp--preset--color--paper) !important; font-size: clamp(40px, 5vw, 64px); letter-spacing: -2px; line-height: 1.02; margin-top: 22px; }
.euxjp-road-cols, .euxjp-towards { gap: 64px; }
.euxjp-step { display: grid !important; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(247,247,243,.22); }
.euxjp-step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin: 0; }
.euxjp-step-en { font-size: 19px; color: var(--wp--preset--color--paper); margin: 0; }
.euxjp-step-en strong { color: #F2A497; }
.euxjp-band .euxjp-step-ja { color: #DCE3F5; font-size: 14px; margin: 4px 0 0; }
.euxjp-partners { gap: 56px; align-items: center; }
.euxjp-logos { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.euxjp-logos > * { margin: 0 !important; }
.euxjp-logos .wp-block-image, .euxjp-logo-box { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 20px; height: 110px; display: flex; align-items: center; justify-content: center; padding: 14px; color: var(--wp--preset--color--muted); }
.euxjp-logos .wp-block-image img { max-height: 70px; width: auto; max-width: 100%; }

/* Chips (collections, news categories) */
.euxjp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.euxjp-chip { border: 1.5px solid var(--wp--preset--color--ink); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--ink); text-decoration: none; background: transparent; }
.euxjp-chip span { font-weight: 400; color: var(--wp--preset--color--muted); margin-left: 4px; }
.euxjp-chip:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.euxjp-chip.is-current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.euxjp-chip.is-current span { color: #C9CBD3; }

/* Film cards & news cards */
.euxjp-films .wp-block-post-template, .euxjp-news .wp-block-post-template { gap: 28px 20px; }
.euxjp-poster img { border-radius: 18px; box-shadow: 0 14px 30px rgba(31,34,48,.16); }
.euxjp-poster { margin-bottom: 12px; }
.euxjp-card-title { font-size: 19px !important; letter-spacing: -.3px !important; margin: 0 0 4px !important; }
.euxjp-card-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.euxjp-card-title a:hover { color: var(--wp--preset--color--blue); }
.euxjp-film-mini { font-size: 13px; color: var(--wp--preset--color--muted); margin: 0; }
.euxjp-news .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 16px 16px 22px; }
.euxjp-news-img img { border-radius: 14px; }
.euxjp-news-cat { font-size: 12px; font-weight: 700; margin: 10px 0 6px; }
.euxjp-news-cat a { background: var(--wp--preset--color--red); color: #fff; border-radius: 999px; padding: 4px 10px; text-decoration: none; display: inline-block; margin: 0 4px 4px 0; }
.euxjp-news-cat .wp-block-post-terms__separator { display: none; }
.euxjp-news-date { color: var(--wp--preset--color--muted); margin: 0 0 8px; }
.euxjp-empty { color: var(--wp--preset--color--muted); }
.wp-block-query-pagination { margin-top: 36px; font-weight: 700; }

/* Single film */
.euxjp-back { margin-bottom: 28px; }
.euxjp-back .wp-block-button__link { padding: 8px 18px !important; font-size: 14px !important; }
.euxjp-film-cols { gap: 56px; }
.euxjp-poster-big img { border-radius: 24px; box-shadow: 0 24px 50px rgba(31,34,48,.2); }
.euxjp-film-terms a { background: var(--wp--preset--color--blue); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.euxjp-film-terms .wp-block-post-terms__separator { display: none; }
.euxjp-sheet { margin: 24px 0; border-top: 1px solid var(--wp--preset--color--line); }
.euxjp-sheet-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.euxjp-sheet dt { font-weight: 700; font-size: 14px; }
.euxjp-sheet dt span { font-weight: 400; color: var(--wp--preset--color--muted); margin-left: 6px; }
.euxjp-sheet dd { margin: 0; }
.euxjp-film-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.euxjp-film-btn { border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1.5px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); }
.euxjp-film-btn.is-red { background: var(--wp--preset--color--red); border-color: var(--wp--preset--color--red); color: #fff; }
.euxjp-film-btn span { font-weight: 400; }

/* Articles: English first, Japanese below */
.euxjp-article { font-size: 18px; line-height: 1.7; }
.euxjp-article-img img { border-radius: 24px; }
.euxjp-lang-sep { margin: 40px auto !important; }
.euxjp-ja-block { font-family: var(--wp--preset--font-family--japanese); line-height: 1.9; }

/* Education */
.euxjp-lines { gap: 24px; }
.euxjp-line { border-radius: 28px; padding: 36px !important; color: #fff; min-height: 300px; }
.euxjp-line h3 { color: #fff; font-size: 30px; margin: 22px 0 4px; }
.euxjp-line .ja { color: inherit; opacity: .85; }
.euxjp-card-white { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 32px; padding: 56px 64px; }
.euxjp-form-cols { gap: 56px; }
.euxjp-card-white .wpcf7 form > p, .euxjp-card-white .wpcf7 label { font-weight: 700; font-size: 15px; display: block; margin: 0 0 16px; }
.euxjp-card-white .wpcf7 label span[lang], .euxjp-card-white .wpcf7 form > p span[lang] { font-weight: 400; color: var(--wp--preset--color--muted); font-size: 13px; margin-left: 4px; }
.euxjp-card-white .wpcf7 input[type="text"], .euxjp-card-white .wpcf7 input[type="email"], .euxjp-card-white .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin-top: 8px; background: var(--wp--preset--color--paper);
	border: 1.5px solid var(--wp--preset--color--line); border-radius: 16px; padding: 13px 18px; font: inherit; font-size: 16px; font-weight: 400;
}
.euxjp-card-white .wpcf7 textarea { height: 130px; }
.euxjp-card-white .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.euxjp-card-white .wpcf7-list-item { margin: 0; }
.euxjp-card-white .wpcf7-radio label { font-weight: 400; font-size: 14px; border: 1.5px solid var(--wp--preset--color--line); border-radius: 999px; padding: 7px 14px; margin: 0; cursor: pointer; }
.euxjp-card-white .wpcf7-radio label:has(input:checked) { border-color: var(--wp--preset--color--blue); background: var(--wp--preset--color--blue-tint); }
.euxjp-card-white .wpcf7-acceptance label { font-weight: 400; font-size: 14px; color: var(--wp--preset--color--muted); }
.euxjp-card-white .wpcf7 input[type="submit"] { cursor: pointer; border: 0; background: var(--wp--preset--color--red); color: #fff; border-radius: 999px; padding: 15px 28px; font: inherit; font-size: 15px; font-weight: 700; }
.euxjp-card-white .wpcf7 input[type="submit"]:disabled { opacity: .5; }

/* About */
.euxjp-symbol { gap: 64px; align-items: center; }
.euxjp-about-iso img { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.euxjp-kakeru-cols { gap: 16px; margin: 28px 0; }
.euxjp-kakeru { border-radius: 26px; padding: 30px !important; color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.euxjp-kakeru .euxjp-kanji { font-size: clamp(48px, 5vw, 72px); font-weight: 700; line-height: 1; color: #fff; white-space: nowrap; margin: 0; }
.euxjp-kakeru-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; opacity: .75; margin: 0; }
.euxjp-kakeru-en { font-size: 24px; font-weight: 800; line-height: 1.15; margin: 4px 0 0; }
.euxjp-ja-poem p { margin: 0 0 14px; }
.euxjp-card-paper { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); border-radius: 28px; padding: 40px; }
.euxjp-card-paper .ja { color: var(--wp--preset--color--muted) !important; }
.euxjp-contact-row { justify-content: space-between; align-items: center; gap: 24px; }
.euxjp-contact { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; margin: 16px 0 4px; }
.euxjp-contact a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* Landing tile becomes a link once its section is public */
.euxjp-tile-link { color: inherit; text-decoration: none; }
.euxjp-tile-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.euxjp-tile:has(.euxjp-tile-link):hover { transform: translateY(-4px); transition: transform .2s; }

@media (max-width: 1100px) {
	.euxjp-nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 900px) {
	.euxjp-header > .wp-block-group { flex-wrap: wrap !important; }
	.euxjp-nav { order: 3; width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 781px) {
	.euxjp-page-head { padding-top: 24px; padding-bottom: 24px; }
	.euxjp-page-head .wp-block-columns, .euxjp-osaka, .euxjp-symbol, .euxjp-road-cols, .euxjp-towards, .euxjp-partners, .euxjp-form-cols, .euxjp-film-cols { gap: 28px; }
	.euxjp-ph { min-height: 300px; }
	.euxjp-stat.is-a { right: 10px; top: 14px; }
	.euxjp-stat.is-b { left: 10px; bottom: 14px; }
	.euxjp-rec, .euxjp-line, .euxjp-kakeru { min-height: 0; }
	.euxjp-logos { grid-template-columns: repeat(2, 1fr); }
	.euxjp-card-white { padding: 28px 22px; }
	.euxjp-sheet-row { grid-template-columns: 1fr; gap: 2px; }
	.euxjp-about-iso img { max-width: 200px; }
	.euxjp-band-mark { width: 320px !important; }
}

/* v0.5 fixes */
.euxjp-photo-wrap { position: relative; }
.euxjp-photo-col .euxjp-stat.is-a { right: -20px; top: 40px; }
.wp-block-button.is-red > .wp-block-button__link { background: var(--wp--preset--color--red); color: #fff; }
.wp-block-button.is-red > .wp-block-button__link:hover { background: #B8381F; }
.euxjp-kakeru { gap: 18px; }
.euxjp-kakeru .euxjp-kanji { font-size: clamp(34px, 3.4vw, 52px); }
@media (max-width: 781px) {
	.euxjp-films .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.euxjp-photo-col .euxjp-stat.is-a { right: 10px; top: 14px; }
	.euxjp-kakeru .euxjp-kanji { font-size: 44px; }
}

/* v0.5.4: breathing room on phones */
@media (max-width: 781px) {
	.euxjp-header { padding-top: 16px; padding-bottom: 16px; }
	.euxjp-header .wp-block-social-links { gap: 14px; }
}
