/*
Theme Name: Akademia Waltorniowa
Theme URI: https://example.com/
Author: Akademia Waltorniowa
Description: Motyw dla Akademii Waltorniowej, treści strony głównej edytowalne blokami Gutenberg. Wspiera standardowe Strony i Wpisy WordPressa.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: akademia-waltorniowa
*/

.aw-site {
  --bg: #080807; --panel: #11110f; --gold: #c6b477; --gold-light: #e1d09a;
  --text: #f7f5ef; --muted: #b7b3a8; --line: rgba(198,180,119,.34);
  --serif: Georgia, "Times New Roman", serif;
}
.aw-site * { box-sizing: border-box; }
.aw-site { scroll-behavior: smooth; }
.aw-site { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", Arial, sans-serif; line-height: 1.5; overflow-x: hidden; }
.aw-site a { color: inherit; text-decoration: none; }
.aw-site .site-header { max-width: 1440px; margin: auto; padding: 28px 6.5%; display: flex; align-items: center; gap: 28px; position: relative; z-index: 5; }
.aw-site .brand { display: flex; align-items: center; gap: 12px; min-width: 165px; }
.aw-site .brand-mark { color: var(--gold); font-size: 47px; line-height: .9; font-family: var(--serif); }
.aw-site .brand-copy { font-size: 15px; line-height: 1.02; letter-spacing: -.3px; }
.aw-site .header-note { color: var(--gold); font-size: 12px; line-height: 1.6; }
.aw-site .header-note strong { letter-spacing: 1.1px; font-size: 13px; }
.aw-site .header-note span { color: #a7a18d; }
.aw-site .header-cta { margin-left: auto; border: 1px solid var(--line); padding: 10px 15px; border-radius: 99px; font-size: 12px; transition: .2s; }
.aw-site .header-cta:hover { background: var(--gold); color: #111; }
.aw-site .header-cta span { margin-left: 12px; color: var(--gold); }
.aw-site .header-cta:hover span { color: #111; }
.aw-site .hero { min-height: 680px; max-width: 1440px; margin: auto; padding: 54px 6.5% 38px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.aw-site .hero-copy { position: relative; z-index: 2; padding: 0 0 65px; }
.aw-site .eyebrow { text-transform: uppercase; color: var(--gold); letter-spacing: 2.2px; font-size: 11px; font-weight: 700; margin: 0 0 14px; }
.aw-site .intro { font-size: clamp(20px, 2.1vw, 29px); font-weight: 700; color: var(--gold); margin: 0 0 26px; }
.aw-site h1 { font-family: Manrope, sans-serif; font-size: clamp(47px, 6.1vw, 82px); line-height: .99; letter-spacing: -4px; text-transform: uppercase; margin: 0; font-weight: 800; }
.aw-site h1 span { color: var(--gold-light); }
.aw-site .hero-description { max-width: 400px; color: var(--muted); font-size: 15px; line-height: 1.8; margin: 25px 0 24px; }
.aw-site .hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.aw-site .button { display: inline-flex; gap: 22px; align-items: center; padding: 14px 19px; font-size: 12px; font-weight: 700; border-radius: 3px; transition: transform .2s, background .2s; }
.aw-site .button:hover { transform: translateY(-2px); }
.aw-site .button-gold { background: var(--gold); color: #10100e; }
.aw-site .button-gold:hover { background: var(--gold-light); }
.aw-site .text-link { color: var(--gold-light); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.aw-site .text-link span { margin-left: 9px; }
.aw-site .date-line { display: flex; gap: 13px; align-items: center; margin-top: 44px; }
.aw-site .date-icon { color: var(--gold); font-size: 26px; }
.aw-site .date-line small, .aw-site .contact-details small { display: block; font-size: 9px; letter-spacing: 1.6px; color: #a6a08e; margin-bottom: 3px; }
.aw-site .date-line strong { font-size: 16px; }
.aw-site .hero-visual { position: relative; min-height: 550px; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.aw-site .hero-image { position: absolute; width: min(100%, 570px); height: 520px; right: -8%; top: 0; border-radius: 48% 48% 44% 44% / 40% 40% 60% 60%; background: linear-gradient(180deg, rgba(8,8,7,.02), rgba(8,8,7,.1)), url("assets/plakat-akademii.webp") 63% center / cover; filter: saturate(.82); clip-path: ellipse(48% 49% at 55% 50%); }
.aw-site .visual-ring { position: absolute; z-index: 1; border: 1px solid rgba(198,180,119,.75); border-radius: 48% 48% 44% 44%; pointer-events: none; }
.aw-site .ring-a { width: 95%; height: 94%; right: -6%; top: -4%; }
.aw-site .ring-b { width: 68%; height: 76%; right: 3%; top: 10%; }
.aw-site .seal { position: absolute; z-index: 2; width: 205px; height: 205px; right: 4%; top: 11%; background: #080807; border: 1px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-light); box-shadow: 0 0 0 8px rgba(8,8,7,.15); }
.aw-site .seal-letter { font-family: var(--serif); font-size: 145px; line-height: 1; font-weight: 700; }
.aw-site .seal-small { position: absolute; left: 23px; top: 68px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: 2px; font-weight: 700; }
.aw-site .seal-wave { position: absolute; bottom: 26px; right: 25px; font-size: 30px; }
.aw-site .image-caption { position: absolute; z-index: 2; bottom: 17px; right: 4%; font-size: 10px; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 8px #000; }
.aw-site .caption-dot { display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 8px; }
.aw-site .hero-bottom { position: absolute; bottom: 15px; left: 6.5%; color: #8f8978; font-size: 9px; letter-spacing: 2px; }
.aw-site .hero-bottom span { color: var(--gold); padding: 0 8px; }
.aw-site .ornament { position: fixed; z-index: 0; border: 1px solid rgba(198,180,119,.08); border-radius: 50%; pointer-events: none; }
.aw-site .ornament-one { width: 500px; height: 500px; right: -390px; top: 120px; }
.aw-site .ornament-two { width: 360px; height: 360px; left: -310px; bottom: 80px; }
.aw-site .section { padding: 105px 8%; position: relative; }
.aw-site .lecturers { background: #10100e; }
.aw-site .section-heading { max-width: 650px; margin: 0 auto 48px; text-align: center; }
.aw-site h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -2px; margin: 0 0 18px; }
.aw-site h2 em { color: var(--gold-light); font-family: var(--serif); font-weight: 400; }
.aw-site .section-heading > p:last-child { color: var(--muted); max-width: 500px; margin: 0 auto; font-size: 14px; }
.aw-site .lecturer-grid { max-width: 1050px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aw-site .lecturer-card { border: 1px solid rgba(198,180,119,.23); padding: 28px 27px 32px; min-height: 230px; position: relative; background: linear-gradient(135deg, rgba(198,180,119,.045), transparent 60%); }
.aw-site .card-number { position: absolute; top: 23px; right: 25px; font-size: 11px; color: #81795f; }
.aw-site .card-line { height: 2px; width: 38px; background: var(--gold); margin: 7px 0 28px; }
.aw-site .lecturer-card h3 { font-size: 20px; margin: 0 0 5px; text-transform: uppercase; letter-spacing: -.4px; }
.aw-site .lecturer-card p { color: var(--muted); font-size: 13px; margin: 0; }
.aw-site .lecturer-card .role { color: var(--gold); margin-bottom: 11px; }
.aw-site .place-section { min-height: 530px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding: 90px 8%; max-width: 1440px; margin: auto; }
.aw-site .place-photo { min-height: 400px; background: linear-gradient(0deg, rgba(0,0,0,.15), transparent), url("assets/plakat-akademii.webp") 70% 70% / cover; clip-path: ellipse(48% 49% at 50% 50%); }
.aw-site .place-copy { max-width: 470px; }
.aw-site .place-copy p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 0 24px; }
.aw-site .contact-section { background: #c6b477; color: #11110e; padding: 75px 8%; display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; align-items: center; }
.aw-site .contact-section .eyebrow { color: #4d452d; }
.aw-site .contact-heading h2 em { color: #fff9e7; }
.aw-site .contact-details { border-left: 1px solid rgba(0,0,0,.2); padding-left: 40px; }
.aw-site .contact-date { display: flex; flex-direction: column; margin-bottom: 24px; }
.aw-site .contact-date span:first-child { font-size: 9px; letter-spacing: 2px; color: #5c5339; margin-bottom: 3px; }
.aw-site .contact-date strong { font-size: 21px; }
.aw-site .contact-date span:last-child { font-size: 12px; color: #4f4937; }
.aw-site .contact-email, .aw-site .contact-phone { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(0,0,0,.18); padding: 15px 0; }
.aw-site .contact-icon { font-size: 20px; width: 26px; }
.aw-site .contact-details small { color: #5b5239; }
.aw-site .contact-email strong, .aw-site .contact-phone strong { font-size: 13px; overflow-wrap: anywhere; }
.aw-site .arrow { margin-left: auto; font-size: 18px; }
.aw-site .site-footer { max-width: 1440px; margin: auto; padding: 28px 6.5%; display: flex; align-items: center; gap: 30px; color: #b9b5aa; }
.aw-site .footer-brand { display: flex; align-items: center; gap: 10px; font-size: 10px; line-height: 1.15; text-transform: lowercase; }
.aw-site .footer-brand .brand-mark { font-size: 34px; }
.aw-site .site-footer > p { font-size: 11px; margin: 0; line-height: 1.6; }
.aw-site .site-footer > p span { color: #7f7b70; }
.aw-site .back-top { margin-left: auto; font-size: 11px; color: var(--gold); }
.aw-site .copyright { font-size: 10px; color: #777367; }
@media (min-width: 1500px){
.aw-site .hero { min-height: 760px; }
 }
@media (max-width: 850px){
.aw-site .site-header { padding: 22px 5%; gap: 15px; }
.aw-site .header-note { font-size: 10px; }
.aw-site .header-note strong { font-size: 11px; }
.aw-site .header-cta { padding: 9px 11px; }
.aw-site .hero { padding: 35px 5% 60px; grid-template-columns: 1fr .8fr; min-height: 610px; }
.aw-site h1 { font-size: clamp(43px, 7vw, 62px); letter-spacing: -2.5px; }
.aw-site .hero-visual { min-height: 470px; }
.aw-site .hero-image { height: 440px; right: -15%; }
.aw-site .seal { width: 145px; height: 145px; right: -1%; top: 13%; }
.aw-site .seal-letter { font-size: 105px; }
.aw-site .seal-small { top: 48px; left: 16px; font-size: 7px; }
.aw-site .seal-wave { bottom: 18px; right: 17px; font-size: 22px; }
.aw-site .hero-description { font-size: 13px; }
.aw-site .section { padding: 80px 5%; }
.aw-site .place-section { padding: 70px 5%; gap: 5%; }
.aw-site .contact-section { padding: 65px 5%; gap: 5%; }

}
@media (max-width: 620px){
.aw-site .site-header { flex-wrap: wrap; padding: 19px 6%; }
.aw-site .brand { min-width: 145px; }
.aw-site .brand-mark { font-size: 39px; }
.aw-site .brand-copy { font-size: 13px; }
.aw-site .header-note { order: 3; width: 100%; padding-left: 4px; }
.aw-site .header-cta { font-size: 11px; }
.aw-site .hero { display: flex; flex-direction: column; align-items: stretch; padding: 40px 6% 50px; }
.aw-site .hero-copy { padding: 0; }
.aw-site .intro { margin-bottom: 20px; }
.aw-site h1 { font-size: clamp(44px, 12vw, 68px); }
.aw-site .hero-description { max-width: 470px; margin-top: 20px; }
.aw-site .hero-visual { min-height: 380px; margin-top: 22px; }
.aw-site .hero-image { height: 370px; width: 100%; right: 0; top: 0; }
.aw-site .ring-a { width: 90%; height: 94%; right: 0; top: -2%; }
.aw-site .ring-b { width: 67%; height: 76%; right: 12%; top: 8%; }
.aw-site .seal { width: 126px; height: 126px; right: 4%; top: 3%; }
.aw-site .seal-letter { font-size: 91px; }
.aw-site .seal-small { top: 41px; left: 13px; font-size: 6px; }
.aw-site .seal-wave { bottom: 15px; right: 14px; font-size: 20px; }
.aw-site .image-caption { bottom: 10px; right: 8%; }
.aw-site .hero-bottom { left: 6%; bottom: 15px; font-size: 7px; letter-spacing: 1px; }
.aw-site .section { padding: 68px 6%; }
.aw-site .section-heading { text-align: left; margin-bottom: 30px; }
.aw-site .section-heading > p:last-child { margin: 0; }
.aw-site .lecturer-grid { grid-template-columns: 1fr; gap: 10px; }
.aw-site .lecturer-card { min-height: 0; padding: 23px; }
.aw-site .card-line { margin-bottom: 18px; }
.aw-site .place-section { grid-template-columns: 1fr; padding: 60px 6%; gap: 25px; }
.aw-site .place-photo { min-height: 300px; grid-row: 2; }
.aw-site .place-copy { grid-row: 1; }
.aw-site .contact-section { grid-template-columns: 1fr; padding: 60px 6%; gap: 28px; }
.aw-site .contact-details { padding-left: 0; border-left: 0; }
.aw-site .contact-date strong { font-size: 19px; }
.aw-site .site-footer { padding: 24px 6%; flex-wrap: wrap; gap: 16px 25px; }
.aw-site .back-top { margin-left: auto; }
.aw-site .copyright { width: 100%; }

}
@media (prefers-reduced-motion: reduce){
.aw-site { scroll-behavior: auto; }
.aw-site *, .aw-site *::before, .aw-site *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
 }


/* Edytowalny nagłówek Gutenberg */
.site-header .aw-header-editable { width:100%; min-width:0; }
.site-header .aw-header-blocks { display:flex; align-items:center; justify-content:space-between; gap:32px; width:100%; margin:0; }
.site-header .aw-header-brand { display:flex; align-items:center; gap:18px; margin:0; flex-shrink:0; }
.site-header .aw-header-flower { color:#d5c17b; font-size:53px; line-height:1; margin:0; }
.site-header .aw-header-logo-text { color:#fff; font-weight:800; font-size:17px; line-height:1.05; margin:0; }
.site-header .aw-header-description { color:#cdbd84; font-size:15px; line-height:1.65; margin:0 auto 0 35px; }
.site-header .aw-header-description strong { color:#d5c17b; letter-spacing:.04em; }
.site-header .aw-header-buttons { margin:0; flex-shrink:0; }
.site-header .aw-header-contact .wp-block-button__link { display:inline-block; border:1px solid #51482b; background:transparent; color:#fff; border-radius:40px; font-size:14px; padding:13px 20px; text-decoration:none; }
.site-header .aw-header-contact .wp-block-button__link:hover { background:#d5c17b; color:#111; }
@media(max-width:800px) {
 .site-header .aw-header-blocks { flex-wrap:wrap; gap:15px; }
 .site-header .aw-header-description { margin:0; }
}

/* Korekta wyglądu nagłówka na stronie publicznej */
.site-header .aw-header-editable > .aw-header-blocks { display:flex!important; width:100%; max-width:none!important; flex-wrap:nowrap!important; align-items:center!important; justify-content:space-between!important; gap:32px!important; }
.site-header .aw-header-brand { display:flex!important; flex-wrap:nowrap!important; gap:17px!important; align-items:center!important; min-width:205px; }
.site-header .aw-header-flower { font-size:56px!important; line-height:1!important; color:#d4c17f!important; margin:0!important; }
.site-header .aw-header-logo-text { color:#fff!important; font-size:17px!important; line-height:1.06!important; margin:0!important; }
.site-header .aw-header-description { color:#cbbb86!important; font-size:15px!important; line-height:1.6!important; margin:0 auto 0 0!important; flex:1; }
.site-header .aw-header-buttons { margin-left:auto!important; }
.site-header .aw-header-contact .wp-block-button__link { background:transparent!important; color:#fff!important; border:1px solid #51482b!important; border-radius:999px!important; padding:15px 20px!important; font-size:14px!important; white-space:nowrap; }
@media(max-width:780px) { .site-header .aw-header-editable > .aw-header-blocks { flex-wrap:wrap!important; gap:16px!important; } .site-header .aw-header-description { flex-basis:100%; order:3; } }

/* Płynne przewijanie do sekcji kontaktowej. */
html { scroll-behavior: smooth; }
#kontakt { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Klikalny profesor w nagłówku */
.site-header .aw-header-description a,
.site-header .header-note a {
 color:inherit!important; text-decoration:none!important;
 border-bottom:1px solid transparent;
 transition:color .2s ease,border-color .2s ease;
}
.site-header .aw-header-description a:hover,
.site-header .aw-header-description a:focus-visible,
.site-header .header-note a:hover,
.site-header .header-note a:focus-visible {
 color:#f3db92!important; border-bottom-color:#f3db92;
}
.site-header .aw-header-description a { cursor:pointer; }

.site-header .aw-igor-profile-link {
 display:inline !important; position:relative !important; z-index:20 !important;
 pointer-events:auto !important; cursor:pointer !important;
 color:inherit !important; text-decoration:none !important;
 border-bottom:1px solid transparent;
}
.site-header .aw-igor-profile-link:hover,
.site-header .aw-igor-profile-link:focus-visible {
 color:#f1d990 !important; border-bottom-color:#f1d990 !important;
}

/* Nowe logo Fundacji Pałac Jedlinka w nagłówku. */
body .aw-site > header.site-header .aw-fundacja-logo {display:block!important;width:150px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;flex:none!important;}
body .aw-site > header.site-header .aw-header-brand {min-width:150px!important;}
@media(max-width:430px){body .aw-site > header.site-header .aw-fundacja-logo{width:135px!important;}}


/* Edytowalna stopka: układ publiczny */
.aw-site .site-footer.aw-editable-footer {display:block;max-width:none;padding:0;background:#0b0b0a}
.aw-site .aw-footer-content {box-sizing:border-box;max-width:1440px;margin:0 auto;padding:28px 6.5%;display:flex;align-items:center;justify-content:space-between;gap:20px 30px;width:100%}
.aw-site .aw-footer-brand-area {display:flex;align-items:center;gap:26px;min-width:0}
.aw-site .aw-footer-logo {margin:0;flex-shrink:0}
.aw-site .aw-footer-logo img {display:block;width:150px!important;height:auto;max-width:100%}
.aw-site .aw-footer-caption {margin:0;color:#c9c4b5;font-size:12px;line-height:1.65}
.aw-site .aw-footer-back {margin:0 0 0 auto;font-size:13px}
.aw-site .aw-footer-back a {color:#d7ba68;text-decoration:none}
.aw-site .aw-footer-back a:hover {text-decoration:underline}
.aw-site .aw-footer-copyright {margin:0;color:#777166;font-size:11px}
@media(max-width:700px) {
 .aw-site .aw-footer-content {padding:25px 6%;justify-content:flex-start}
 .aw-site .aw-footer-brand-area {flex-wrap:wrap;gap:12px}
 .aw-site .aw-footer-back {margin-left:0}
}

/* Kotwica start i płynne przewijanie */
#start{position:absolute;top:0;left:0;width:1px;height:1px;pointer-events:none}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Logo Pałacu Jedlinka w edytowalnej stopce */
.aw-site .aw-footer-palace-logo {margin:0!important;flex:0 1 180px}
.aw-site .aw-footer-palace-logo img {display:block;width:180px!important;max-width:100%;height:auto;object-fit:contain}
.aw-site .aw-footer-palace-fallback {width:180px;height:auto;object-fit:contain}
@media(max-width:700px){.aw-site .aw-footer-palace-logo{flex-basis:145px}.aw-site .aw-footer-palace-logo img{width:145px!important}}


/* Pałac Jedlinka — nowa fotografia i logo Fundacji */
.aw-site .place-section .place-photo {
 position:relative;min-height:420px;
 background-image:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.24)),url("assets/palac-jedlinka-sekcja.webp");
 background-size:cover;background-position:center center;
 clip-path:none;border-radius:16px;overflow:hidden;
 box-shadow:0 18px 48px rgba(0,0,0,.22);
}
.aw-site .place-section .place-photo::after {
 content:"";position:absolute;right:18px;bottom:18px;width:155px;height:80px;
 background:url("assets/logo-fundacja-sekcja.png") center / contain no-repeat;
 filter:drop-shadow(0 2px 9px rgba(0,0,0,.85));
}
@media(max-width:700px){
 .aw-site .place-section .place-photo{min-height:300px}
 .aw-site .place-section .place-photo::after{width:120px;height:64px;right:12px;bottom:12px}
}

/* Dwa logotypy w nagłówku – również na małych ekranach */
body .aw-site > header.site-header .aw-header-brand {display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;min-width:0!important;flex-shrink:0!important}
body .aw-site > header.site-header .aw-akademia-logo {display:block!important;width:78px!important;height:78px!important;max-width:none!important;object-fit:contain!important;flex:0 0 auto!important;border-radius:7px}
body .aw-site > header.site-header a.brand {display:flex;align-items:center;gap:12px}
@media(max-width:600px){
 body .aw-site > header.site-header .aw-fundacja-logo {width:112px!important}
 body .aw-site > header.site-header .aw-akademia-logo {width:58px!important;height:58px!important}
 body .aw-site > header.site-header .aw-header-brand {gap:8px!important}
}
