/* ==============================
   Zahrady Čakovice — styles
   ============================== */

:root {
    --bronze: #a67c3f;
    --bronze-dark: #7d5b2a;
    --bronze-light: #d9b882;
    --cream: #f6f1e8;
    --cream-dark: #ece4d2;
    --ink: #1d1d1b;
    --ink-soft: #3a3a38;
    --muted: #6b6b66;
    --line: #e4dccb;
    --white: #ffffff;
    --green: #4a6b3a;
    --shadow-sm: 0 2px 10px rgba(29, 29, 27, 0.06);
    --shadow-md: 0 10px 40px rgba(29, 29, 27, 0.1);
    --shadow-lg: 0 20px 60px rgba(29, 29, 27, 0.15);
    --radius: 14px;
    --radius-lg: 24px;
    --container: 1200px;
    --transition: 220ms cubic-bezier(0.3, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--ink-soft);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--bronze-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--bronze);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================
   Typography
   ============================== */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.6rem, 6.5vw, 5.2rem);
    font-weight: 200;
    letter-spacing: -0.025em;
}

h1 em {
    font-style: italic;
    color: var(--bronze);
    font-weight: 300;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 300;
    margin-bottom: 1.4rem;
    letter-spacing: -0.02em;
}

h2 em {
    font-style: italic;
    color: var(--bronze);
    font-weight: 300;
}

h3 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.7rem;
}

h4 {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.1rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bronze-dark);
    margin-bottom: 0.9rem;
    padding-left: 32px;
    position: relative;
}

.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--bronze);
}

.eyebrow.light {
    color: var(--bronze-light);
}

.eyebrow.light::before {
    background: var(--bronze-light);
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--ink);
}

strong {
    font-weight: 500;
    color: var(--ink);
}

/* ==============================
   Buttons
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--bronze);
    color: var(--white);
    border-color: var(--bronze);
}

.btn-primary:hover {
    background: var(--bronze-dark);
    border-color: var(--bronze-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
}

.btn-block {
    width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
}

/* ==============================
   Header / Navigation
   ============================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(246, 241, 232, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(228, 220, 203, 0.5);
    transition: background var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    line-height: 1.1;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--bronze-light), var(--bronze) 60%, var(--bronze-dark));
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.logo-text em {
    font-style: italic;
    color: var(--bronze);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 400;
    position: relative;
}

.main-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--bronze);
    transition: width var(--transition);
}

.main-nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.main-nav a.nav-cta {
    background: var(--ink);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 500;
}

.main-nav a.nav-cta:hover {
    background: var(--bronze);
    color: #ffffff;
}

.main-nav a.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: all var(--transition);
}

/* ==============================
   Hero
   ============================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(29, 29, 27, 0.75) 0%,
        rgba(29, 29, 27, 0.45) 50%,
        rgba(125, 91, 42, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero .eyebrow {
    color: var(--bronze-light);
}

.hero .eyebrow::before {
    background: var(--bronze-light);
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.75rem;
    font-weight: 200;
}

.hero h1 em {
    color: var(--bronze-light);
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.65;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 2.75rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 780px;
    padding: 1.75rem 2rem;
    background: rgba(20, 20, 18, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 0.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 1.25rem;
}

.hero-stats div:first-child {
    border-left: none;
    padding-left: 0.25rem;
}

.hero-stats strong {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-stats span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
}

/* ==============================
   Sections
   ============================== */
.section {
    padding: 110px 0;
    position: relative;
}

.section-alt {
    background: var(--cream-dark);
}

.section-dark {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.88);
}

.section-dark h2,
.section-dark h3 {
    color: var(--white);
}

.section-head {
    margin-bottom: 3rem;
    max-width: 720px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 620px;
    margin: 1rem auto 0;
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, 0.75);
}

/* ==============================
   Floated figures (text wrap)
   ============================== */
figure {
    margin: 0;
}

.float-right,
.float-left {
    max-width: 46%;
    margin: 0.4rem 0 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--ink);
    position: relative;
}

.float-right {
    float: right;
    margin-left: 2.5rem;
}

.float-left {
    float: left;
    margin-right: 2.5rem;
}

.float-right img,
.float-left img {
    width: 100%;
    display: block;
}

figcaption {
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
    color: #ffffff;
}

.clearfloat {
    clear: both;
}

.full-width-figure {
    margin-top: 3rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    background: var(--ink);
    position: relative;
}

.full-width-figure img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

/* ==============================
   Feature / service lists
   ============================== */
.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
    clear: both;
}

.feature-grid li {
    background: var(--white);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-grid li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-grid strong {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--bronze-dark);
    font-weight: 600;
}

.feature-grid span {
    font-size: 0.9rem;
    color: var(--muted);
}

.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem 2rem;
    margin: 1rem 0 1.5rem;
}

.services-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 14px;
    height: 2px;
    background: var(--bronze);
}

/* ==============================
   Stats
   ============================== */
.stats-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--bronze);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ==============================
   Lokalita
   ============================== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-highlights {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.location-highlights li {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: border-color var(--transition), transform var(--transition);
}

.location-highlights li:hover {
    border-color: var(--bronze);
    transform: translateX(4px);
}

.location-highlights .icon {
    width: 26px;
    height: 26px;
    color: var(--bronze);
    stroke-width: 1.35;
}

.location-highlights li div {
    display: flex;
    flex-direction: column;
}

.location-highlights strong {
    font-size: 1rem;
    color: var(--ink);
}

.location-highlights span {
    font-size: 0.88rem;
    color: var(--muted);
}

.location-map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
    border: 1px solid var(--line);
}

.location-map iframe {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
}

.map-link {
    display: block;
    padding: 12px 18px;
    text-align: center;
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid var(--line);
}

/* ==============================
   Target cards (pro zájemce)
   ============================== */
.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.target-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.target-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bronze);
    transform: translateY(-4px);
}

.target-card-featured {
    background: linear-gradient(160deg, rgba(166, 124, 63, 0.22), rgba(166, 124, 63, 0.08));
    border-color: var(--bronze);
}

.target-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bronze);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.target-icon {
    width: 40px;
    height: 40px;
    color: var(--bronze-light);
    margin-bottom: 1.25rem;
    stroke-width: 1.3;
}

.target-card-featured .target-icon {
    color: var(--bronze-light);
}

.target-card h3 {
    margin-bottom: 0.75rem;
}

.target-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.target-card strong {
    color: var(--bronze-light);
}

.target-link {
    color: var(--bronze-light);
    font-weight: 600;
    font-size: 0.93rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--transition);
}

.target-link:hover {
    color: var(--white);
    gap: 0.7rem;
}

/* ==============================
   Contact
   ============================== */
.contact-section {
    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-list {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-list strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 500;
}

.contact-list a,
.contact-list span {
    font-size: 1.12rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.5;
}

.contact-list a {
    border-bottom: 1px solid rgba(166, 124, 63, 0.4);
    padding-bottom: 2px;
    display: inline-block;
    width: fit-content;
    transition: color var(--transition), border-color var(--transition);
}

.contact-list a:hover {
    color: var(--bronze-dark);
    border-bottom-color: var(--bronze);
}

.contact-figure {
    margin-top: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--ink);
    position: relative;
}

.contact-figure img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* ===== Form ===== */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--ink-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--cream);
    transition: all var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--bronze);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(166, 124, 63, 0.15);
}

.form-row textarea {
    resize: vertical;
    font-family: inherit;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-split > div {
    margin: 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-check input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
    margin: 0;
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
    border-color: #c94b4b;
    background: #fff6f6;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

.form-success {
    margin-top: 1.25rem;
    padding: 14px 18px;
    background: #e8f4e1;
    color: #2d5a1a;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
}

/* ==============================
   Footer
   ============================== */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer h4 {
    color: var(--white);
}

.site-footer p {
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 400px;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.site-footer a {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color var(--transition), border-color var(--transition);
}

.site-footer a:hover {
    color: var(--bronze-light);
    border-bottom-color: var(--bronze-light);
}

.logo-footer {
    color: var(--white);
}

.logo-footer:hover {
    color: var(--white);
}

.logo-footer .logo-text em {
    color: var(--bronze-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==============================
   Icon system
   ============================== */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ==============================
   Project sections (Viladomy / Senior / Škola)
   ============================== */
.project-section {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.project-section .container {
    position: relative;
    z-index: 1;
}

.project-viladomy {
    background: #f2ead6;
}

.project-senior {
    background: #fbf6ea;
}

.project-skola {
    background: #1b1b1a;
    color: rgba(255, 255, 255, 0.82);
}

.project-skola h2,
.project-skola h3,
.project-skola .benefits-title,
.project-skola strong {
    color: #ffffff;
}

.project-skola .lead,
.project-skola p {
    color: rgba(255, 255, 255, 0.85);
}

.project-skola .eyebrow {
    color: var(--bronze-light);
}

.project-skola .eyebrow::before {
    background: var(--bronze-light);
}

/* ----- Decorative backgrounds ----- */
.deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-dots {
    top: 120px;
    right: -120px;
    width: 520px;
    height: 520px;
    background-image: radial-gradient(var(--bronze) 1.6px, transparent 2px);
    background-size: 26px 26px;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
            mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
}

.deco-blob {
    top: -260px;
    right: -260px;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(166, 124, 63, 0.22), rgba(166, 124, 63, 0) 62%);
}

.deco-blob::after {
    content: '';
    position: absolute;
    left: -200px;
    bottom: -420px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle at 70% 30%, rgba(74, 107, 58, 0.16), rgba(74, 107, 58, 0) 60%);
}

.deco-stripes {
    inset: 0;
    opacity: 0.055;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent 0,
        transparent 80px,
        #d9b882 80px,
        #d9b882 82px
    );
}

/* ----- Header with big number ----- */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 2.8rem;
    margin-bottom: 4rem;
    max-width: 820px;
}

.project-number {
    font-family: 'Fraunces', serif;
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 200;
    line-height: 0.85;
    color: var(--bronze);
    opacity: 0.55;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.project-skola .project-number {
    color: var(--bronze-light);
    opacity: 0.35;
}

.project-header h2 {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* ----- Big media figures ----- */
.project-hero-figure,
.project-wide-figure,
.project-tall-figure {
    overflow: hidden;
    background: var(--ink);
    position: relative;
}

/* Full-bleed figures: break out of container to viewport edges */
.project-hero-figure,
.project-wide-figure {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    box-shadow: none;
}

.project-hero-figure {
    margin-bottom: 4rem;
}

.project-hero-figure img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    display: block;
}

.project-wide-figure {
    margin-bottom: 4.5rem;
}

.project-wide-figure img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

/* In-column tall figure */
.project-tall-figure {
    box-shadow: var(--shadow-lg);
}

.project-tall-figure img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    display: block;
}

/* ----- Intro text block (narrow, centered) ----- */
.project-intro {
    max-width: 780px;
    margin: 0 auto 4.5rem;
}

.project-intro p {
    font-size: 1.05rem;
}

/* ----- Two column split layout ----- */
.project-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.project-split.reverse {
    grid-template-columns: 1.1fr 1fr;
}

.project-text p {
    font-size: 1.02rem;
}

/* ----- Benefits boxes ----- */
.benefits {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 1px solid rgba(166, 124, 63, 0.22);
}

.project-skola .benefits {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.benefits-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.project-skola .benefits-title {
    color: rgba(255, 255, 255, 0.6);
}

.benefits-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.benefits-grid li {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    border: 1px solid rgba(166, 124, 63, 0.12);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.benefits-grid li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(166, 124, 63, 0.35);
}

.benefits-grid .icon {
    width: 34px;
    height: 34px;
    color: var(--bronze);
    margin-bottom: 1rem;
    stroke-width: 1.3;
}

.benefits-grid strong {
    font-family: 'Fraunces', serif;
    font-size: 1.18rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.benefits-grid span {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.55;
}

.project-skola .benefits-grid li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-skola .benefits-grid li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--bronze-light);
}

.project-skola .benefits-grid .icon {
    color: var(--bronze-light);
}

.project-skola .benefits-grid strong {
    color: #ffffff;
}

.project-skola .benefits-grid span {
    color: rgba(255, 255, 255, 0.6);
}

.benefits-soft li {
    background: rgba(255, 255, 255, 0.95);
}

/* ==============================
   Figure caption overlays
   ============================== */

/* Caption over in-column figures (tall, contact, floats) */
.project-tall-figure figcaption,
.contact-figure figcaption,
.float-left figcaption,
.float-right figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3rem 1.75rem 1.4rem;
    background: linear-gradient(
        to top,
        rgba(10, 10, 8, 0.82) 0%,
        rgba(10, 10, 8, 0.55) 55%,
        rgba(10, 10, 8, 0) 100%
    );
    color: #ffffff;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
    border: none;
    transition: opacity 350ms ease;
}

/* Caption as transparent box on full-bleed figures,
   aligned with container's content edge */
.project-hero-figure figcaption,
.project-wide-figure figcaption,
.full-width-figure figcaption {
    position: absolute;
    left: max(24px, calc(50vw - 576px));
    bottom: 32px;
    max-width: min(440px, calc(100vw - 48px));
    padding: 1.35rem 1.6rem;
    background: rgba(20, 20, 18, 0.58);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
    transition: opacity 400ms ease;
}

/* Small darkening filter over full-bleed images so any caption works,
   and feels consistent across the page */
.project-hero-figure::after,
.project-wide-figure::after,
.full-width-figure::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0) 70%
    );
    pointer-events: none;
    transition: opacity 400ms ease;
}

/* No hover effects on visualizations — caption and filter stay. */

/* ==============================
   Scroll-triggered animations
   ============================== */

/* Base reveal: fade up. Používáme :not(.in-view), aby jakmile přijde
   `.in-view` z JS observeru, hidden-state rule prostě přestal matchovat
   (žádné souboje specificity). */
html.js .reveal:not(.in-view) {
    opacity: 0;
    transform: translate3d(0, 100px, 0);
}

html.js .reveal {
    transition: opacity 1100ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

/* Variants — použijí se jen dokud není .in-view */
html.js .reveal-left:not(.in-view) {
    transform: translate3d(-120px, 0, 0);
}

html.js .reveal-right:not(.in-view) {
    transform: translate3d(120px, 0, 0);
}

html.js .reveal-scale:not(.in-view) {
    transform: scale(0.92);
}

/* Staggered children in grids — opět přes :not(.in-view) na rodiči */
html.js .benefits-grid.reveal-group:not(.in-view) li,
html.js .target-grid.reveal-group:not(.in-view) .target-card,
html.js .stats-grid.reveal-group:not(.in-view) .stat-card,
html.js .location-highlights.reveal-group:not(.in-view) li {
    opacity: 0;
    transform: translate3d(0, 90px, 0);
}

html.js .benefits-grid.reveal-group li,
html.js .target-grid.reveal-group .target-card,
html.js .stats-grid.reveal-group .stat-card,
html.js .location-highlights.reveal-group li {
    transition: opacity 1000ms cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1000ms cubic-bezier(0.22, 0.61, 0.36, 1);
}


.reveal-group > *:nth-child(1) { transition-delay: 0ms; }
.reveal-group > *:nth-child(2) { transition-delay: 160ms; }
.reveal-group > *:nth-child(3) { transition-delay: 320ms; }
.reveal-group > *:nth-child(4) { transition-delay: 480ms; }
.reveal-group > *:nth-child(5) { transition-delay: 640ms; }
.reveal-group > *:nth-child(6) { transition-delay: 800ms; }

/* Scroll progress bar at the top */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--bronze), var(--bronze-light));
    z-index: 200;
    pointer-events: none;
    transition: transform 120ms linear;
}

/* Parallax holder — JS sets --p (progress -1..1) */
.project-hero-figure img,
.project-wide-figure img,
.full-width-figure img {
    transform: translate3d(0, calc(var(--p, 0) * -40px), 0) scale(1.15);
    transform-origin: center;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal:not(.in-view),
    html.js .reveal-left:not(.in-view),
    html.js .reveal-right:not(.in-view),
    html.js .reveal-scale:not(.in-view),
    html.js .benefits-grid.reveal-group:not(.in-view) li,
    html.js .target-grid.reveal-group:not(.in-view) .target-card,
    html.js .stats-grid.reveal-group:not(.in-view) .stat-card,
    html.js .location-highlights.reveal-group:not(.in-view) li {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-hero-figure img,
    .project-wide-figure img,
    .full-width-figure img {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1020px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-split,
    .project-split.reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-split.reverse .project-text { order: 2; }
    .project-split.reverse .project-tall-figure { order: 1; }

    .project-section {
        padding: 100px 0;
    }

    .project-header {
        gap: 1.75rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .main-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 1.5rem;
        padding: 1.5rem 1.5rem;
    }

    .hero-stats div,
    .hero-stats div:first-child {
        border-left: none;
        padding-left: 0.25rem;
    }

    .hero-stats strong {
        font-size: 1.9rem;
    }

    .location-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .location-map iframe {
        height: 360px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 80px 0;
    }

    .project-section {
        padding: 80px 0;
    }

    .project-hero-figure figcaption,
    .project-wide-figure figcaption,
    .full-width-figure figcaption {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 1rem 1.1rem;
        font-size: 0.82rem;
    }

    .project-tall-figure figcaption,
    .contact-figure figcaption,
    .float-left figcaption,
    .float-right figcaption {
        padding: 2rem 1.25rem 1rem;
        font-size: 0.82rem;
    }

    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-number {
        font-size: 3.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .float-right,
    .float-left {
        float: none;
        max-width: 100%;
        margin: 1.5rem 0;
    }

    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }

    .hero-actions {
        margin-bottom: 3rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.25rem 1.25rem;
    }

    .contact-form {
        padding: 1.75rem 1.5rem;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
    }
}
