/* Offer page for schools. Light only, the colours of the ZŠ Měnín web. */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f7f4ef;
    --surface-3: #ece7e0;
    --ink: #1c1917;
    --ink-2: #5b554e;
    --ink-3: #847c73;
    --line: #e9e4dd;
    --accent: #c2410c;
    --accent-hover: #9a3412;
    --accent-soft: #ffefe3;
    --accent-tint: #fff7f0;
    --shadow-sm: 0 1px 2px rgba(28, 25, 23, .06), 0 1px 3px rgba(28, 25, 23, .05);
    --shadow: 0 6px 20px rgba(28, 25, 23, .09);
    --shadow-lg: 0 24px 60px rgba(28, 25, 23, .16);
    --radius: 1rem;
    --radius-sm: .625rem;
    --radius-lg: 1.5rem;
    --gutter: clamp(16px, 4vw, 40px);
    color-scheme: light;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Top bar */
.topbar {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -.01em;
    text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: #fff; }

.topnav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: .975rem;
}

.topnav a { color: var(--ink); text-decoration: none; }
.topnav a:hover { color: var(--accent); }

.topnav .topnav-cta {
    padding: .45rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
}

.topnav .topnav-cta:hover { border-color: var(--accent); }

@media (max-width: 640px) {
    .topnav a:not(.topnav-cta) { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 48px;
    padding: .7rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero */
.hero {
    padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
    background:
        radial-gradient(60% 80% at 100% 0%, var(--accent-tint), transparent 70%),
        var(--bg);
}

.hero-grid {
    display: grid;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1fr 1.15fr; }
}

.eyebrow {
    color: var(--accent);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.lead {
    color: var(--ink-2);
    font-size: clamp(1.05rem, 1.6vw, 1.175rem);
    margin-top: 1.25rem;
    max-width: 38em;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.hero-shot { margin: 0; }

.browser {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transition: transform .2s ease, box-shadow .2s ease;
}

.browser:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
    .browser:hover { transform: none; }
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.browser-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-3);
}

.browser-url {
    margin-left: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 600;
}

.hero-shot figcaption {
    margin-top: .9rem;
    color: var(--ink-3);
    font-size: .925rem;
    text-align: center;
}

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }

.section-tint {
    background: var(--surface-2);
    border-block: 1px solid var(--line);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

.section-lead {
    color: var(--ink-2);
    margin-top: .9rem;
    max-width: 46em;
}

.features {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 620px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
    .features { grid-template-columns: repeat(4, 1fr); }
}

.feature {
    padding: 1.4rem 1.4rem 1.5rem;
    border-top: 3px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.feature p {
    color: var(--ink-2);
    font-size: .975rem;
}

/* Tabs by the kind of school */
.tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 2rem;
    padding: 4px;
    border-radius: calc(var(--radius) + 4px);
    background: var(--surface-3);
}

.tabs[hidden], .tab-panel[hidden] { display: none; }

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 64px;
    padding: .6rem .9rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.tab:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }

.tab[aria-selected="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.tab-label { font-weight: 800; font-size: 1.025rem; line-height: 1.25; }
.tab-count { font-size: .85rem; font-weight: 600; color: var(--ink-3); }
.tab[aria-selected="true"] .tab-count { color: var(--accent); }

@media (max-width: 640px) {
    .tabs { grid-template-columns: 1fr; }
    .tab { flex-direction: row; justify-content: space-between; min-height: 52px; text-align: left; }
}

.tab-panel { margin-top: 2.5rem; }
.tabs:not([hidden]) ~ .tab-panel { margin-top: 1.75rem; }

.panel-intro {
    color: var(--ink-2);
    max-width: 52em;
}

.panel-intro strong { color: var(--ink); }

/* Design mockups */
.designs {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

@media (min-width: 1000px) {
    .designs.designs-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 700px) and (max-width: 999px) {
    .designs.designs-3 { grid-template-columns: 1fr; }
    .designs-3 .design { grid-template-columns: 1.1fr 1fr; }
    .designs-3 .design-shot { border-bottom: 0; border-right: 1px solid var(--line); height: 100%; aspect-ratio: auto; }
    .designs-3 .design-shot img { object-position: left top; }
    .designs-3 .design-body { align-self: center; }
}

@media (min-width: 780px) {
    .designs { grid-template-columns: repeat(2, 1fr); }
    .design-wide { grid-column: 1 / -1; grid-template-columns: 1.1fr 1fr; }
    .design-wide .design-body { align-self: center; padding: 2rem 2.25rem; }
}

.design {
    display: grid;
    align-content: start;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 1.5rem;
}

.design:target {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent), var(--shadow);
    animation: focus-pulse 1.6s ease-out 1;
}

@keyframes focus-pulse {
    0% { box-shadow: 0 0 0 14px rgba(194, 65, 12, .25), var(--shadow); }
    100% { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
    .design:target { animation: none; }
}

.design-shot {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-3);
    border-bottom: 1px solid var(--line);
}

.design-wide .design-shot { border-bottom: 0; }

@media (min-width: 780px) {
    .design-wide .design-shot { border-right: 1px solid var(--line); height: 100%; aspect-ratio: auto; }
}

.design-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .35s ease;
}

.design-shot:hover img { transform: scale(1.025); }

@media (prefers-reduced-motion: reduce) {
    .design-shot:hover img { transform: none; }
}

.design-body { padding: 1.5rem 1.6rem 1.7rem; }

.design-kind {
    color: var(--accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.design h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: .35rem 0 .6rem;
}

.design-body > p:not(.design-kind) { color: var(--ink-2); }

.design-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.design-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .4rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.design-links li:first-child a {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.design-links a:hover { border-color: var(--accent); color: var(--accent); }
.design-links li:first-child a:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* PDF and contact */
.closing {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 780px) {
    .closing { grid-template-columns: 1fr 1fr; }
}

.panel {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    scroll-margin-top: 1.5rem;
}

.panel h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }

.panel > p { color: var(--ink-2); margin: .75rem 0 1.4rem; }

.panel:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }

.panel-accent {
    background: var(--accent-tint);
    border-color: var(--accent-soft);
}

.file-meta {
    margin-top: .75rem;
    color: var(--ink-3);
    font-size: .875rem;
}

.contact p { margin: .15rem 0; font-size: 1.1rem; font-weight: 600; }
.contact .contact-name { font-weight: 800; font-size: 1.2rem; margin-bottom: .35rem; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2rem;
    color: var(--ink-3);
    font-size: .875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1.5rem;
}
