/*
Theme Name: Dojo Mass
Description: Tema público para Dojo Mass Chile.
Version: 0.4.0
Requires PHP: 8.0
*/

:root {
    --dm-ink: #201e1b;
    --dm-paper: #faf8f5;
    --dm-accent: #9b2429;
    --dm-line: #dfd8d1;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--dm-ink); background: var(--dm-paper); font: 1rem/1.6 system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--dm-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #396bb4; outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 7vw, 4.7rem); margin: .3em 0; }
.dm-wrap { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.dm-header { background: #211e1c; color: white; }
.dm-header .dm-wrap { display: flex; gap: 1rem 2rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-block: 1rem; }
.dm-brand { font-size: 1.35rem; font-weight: 800; }
.dm-brand img { width: auto; max-height: 4rem; display: block; }
.dm-header a { color: white; text-decoration: none; }
.dm-header a:hover { text-decoration: underline; }
.dm-nav { display: flex; list-style: none; padding: 0; margin: 0; gap: .45rem 1.15rem; flex-wrap: wrap; }
.dm-main { min-height: 65vh; padding-block: clamp(2rem, 5vw, 4rem); }
.dm-main section { margin-block: 2.5rem; }
.dm-main .dm-hero { margin-top: 0; }
.dm-hero img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: .6rem; }
.dm-intro { max-width: 45rem; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.dm-card { border: 1px solid var(--dm-line); background: white; border-radius: .65rem; padding: 1.2rem; }
.dm-card h2, .dm-card h3 { margin-top: .25rem; }
.dm-card img { border-radius: .35rem; }
.dm-button { display: inline-block; background: var(--dm-accent); color: white; border: 0; border-radius: .3rem; padding: .65rem 1rem; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.dm-button:hover { background: #741a1e; }
.dm-trial { max-width: 34rem; }
.dm-trial label, .dm-search label { display: block; font-weight: 650; }
.dm-trial input, .dm-trial select, .dm-search input { display: block; width: 100%; padding: .55rem; border: 1px solid #8a817b; border-radius: .3rem; background: white; color: var(--dm-ink); font: inherit; }
.dm-search { max-width: 34rem; margin-block: 1.5rem; }
.dm-search button { margin-top: .6rem; }
.dm-contact-more { display: inline-block; margin-inline-start: .8rem; }
.dm-footer { border-top: 1px solid var(--dm-line); padding-block: 1.25rem; }
.dm-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { clip-path: none; width: auto; height: auto; z-index: 100; background: white; padding: .5rem; }

.dm-branch-hero, .dm-branch-trial {
    background: #221d1c;
    color: #fff9f5;
    border-radius: .7rem;
}
.dm-branch-hero {
    display: grid;
    overflow: hidden;
    border-top: .3rem solid #bd3639;
}
.dm-branch-hero-photo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.dm-branch-hero-copy, .dm-trial-copy { padding: clamp(1.4rem, 4vw, 3.5rem); }
.dm-branch-hero-copy { align-self: center; }
.dm-branch-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.055em;
    margin: .3em 0 .5em;
    overflow-wrap: anywhere;
}
.dm-kicker {
    margin: 0 0 .5rem;
    color: var(--dm-accent);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.dm-branch-hero .dm-kicker, .dm-branch-trial .dm-kicker { color: #ffaaa5; }
.dm-branch-actions { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; align-items: center; }
.dm-branch-actions a, .dm-contact-links a { color: inherit; }
.dm-branch-hero .dm-button { background: #ae3035; }
.dm-branch-hero .dm-button:hover { background: #8e242a; }
.dm-branch-cover { position: relative; min-height: 20rem; }
.dm-branch-cover img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}
.dm-branch-section, .dm-branch-trial { scroll-margin-top: 3rem; }
.dm-main .dm-branch-section, .dm-main .dm-branch-trial { margin-block: clamp(2.75rem, 6vw, 5rem); }
.dm-branch-section h2, .dm-branch-trial h2 {
    margin: 0 0 1.2rem;
    font-size: clamp(1.8rem, 4vw, 3.25rem);
    letter-spacing: -.04em;
}
.dm-location-list, .dm-branch-instructors { display: grid; gap: 1rem; }
.dm-location {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
    gap: .75rem 2rem;
    padding: clamp(1rem, 3vw, 2rem);
}
.dm-location p { margin: .5rem 0 0; }
.dm-schedule { list-style: none; padding: 0; margin: 0; }
.dm-schedule li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr);
    gap: .25rem 1rem;
    align-items: baseline;
    padding: .6rem 0;
    border-bottom: 1px solid var(--dm-line);
}
.dm-schedule li:first-child { padding-top: 0; }
.dm-schedule li:last-child { border-bottom: 0; }
.dm-schedule-group { color: #655652; }
.dm-branch-instructors .dm-card {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}
.dm-branch-instructors img { width: clamp(5rem, 17vw, 10rem); aspect-ratio: 1; object-fit: cover; }
.dm-instructor-copy p:last-child { margin-bottom: 0; }
.dm-branch-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.dm-branch-gallery img { display: block; width: 100%; max-height: 32rem; object-fit: contain; background: #221d1c; border-radius: .55rem; }
.dm-branch-trial { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); overflow: hidden; }
.dm-trial-copy { overflow-wrap: anywhere; }
.dm-trial-panel { background: #fff; color: var(--dm-ink); padding: clamp(1.25rem, 4vw, 3rem); }
.dm-trial-panel .dm-trial { max-width: none; }
.dm-trial-panel p:first-child { margin-top: 0; }
.dm-contact-links { display: grid; gap: .6rem; list-style: none; padding: 0; margin-block: 1.4rem 0; }

@media (max-width: 700px) {
    .dm-branch-hero-photo, .dm-location, .dm-branch-trial { grid-template-columns: 1fr; }
    .dm-branch-cover { min-height: 0; aspect-ratio: 16 / 10; }
    .dm-schedule li { grid-template-columns: minmax(0, 1fr) auto; }
    .dm-schedule-group { grid-column: 1 / -1; }
}
