/* Theme Name: Szkoła Rodzinna 
Theme URI: https://szkola.cool24.vot.pl 
Author: Coolbrand 
Author URI: https://coolbrand.pl 
Description: Motyw dla strony statek
Version: 1.0 
License: GNU General Public License v2 or later 
License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Text Domain: my-custom-theme 
Tags: responsive, custom-colors*/

:root {
    --font-primary: "Poppins", sans-serif;
    --color-heading: #063180;
    --color-paragraph: #222222;
    --color-link: #CCCCCC;
    --color-button: #FFED86;
    --color-hover: #A8851F;
    --font-size-base: 16px;
    --font-size-lg: 30px;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --border-radius: 5px;
    --transition-ease: 0.3s ease;
    --max-width: 1440px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-paragraph);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
}

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

a {
    text-decoration: none;
    transition: var(--transition-ease);
}

.header {
    position: relative;
    padding: 0;
}

.header__bg {
    position: absolute;
    top: 0;
    left: 55px;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F0F5F0 0%, #E8F0E8 50%, #F5F8F5 100%);
    border-radius: 0 0 0 30px;
    z-index: 1;
}

.header__container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.header__grid {
    display: flex;
    align-items: stretch;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header__logo img {
    width: 110px;
    height: auto;
    display: block;
}

.header__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0 10px 20px;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.header__title h1 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
    margin: 0;
    line-height: 1.2;
}

.header__title h1 span {
    display: block;
    font-size: 14px;
    font-weight: var(--font-weight-normal);
}

/* Contact bar */
.header__contacts-wrapper {
    position: relative;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #001E55;
    padding: 16px 40px 16px 40px;
    border-radius: 50px 0 0 50px;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    white-space: nowrap;
}

.header__contact:hover {
    color: var(--color-button);
}

.header__contact svg {
    width: 24px;
    height: 24px;
    color: #FFD900;
    flex-shrink: 0;
}

.header__contact--email svg {
    width: 24px;
    height: 24px;
    color: #FFD900;
}

/* Header Bottom - Menu */
.header__bottom {
    display: flex;
    align-items: center;
}

.header__menu-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__menu-list > li {
    position: relative;
}

.header__menu-list > li > a {
    display: block;
    padding: 8px 15px;
    color: #000000;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    transition: var(--transition-ease);
}

.header__menu-list > li:first-child > a {
    padding-left: 0;
}

.header__menu-list > li > a:hover,
.header__menu-list > li.current-menu-item > a {
    color: var(--color-hover);
}

/* Submenu */
.header__menu-list > li > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-ease);
    z-index: 100;
}

.header__menu-list > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__menu-list > li > .sub-menu > li > a {
    display: block;
    padding: 10px 20px;
    color: var(--color-paragraph);
    font-size: 13px;
    transition: var(--transition-ease);
}

.header__menu-list > li > .sub-menu > li > a:hover {
    background: #F5F5F5;
    color: var(--color-heading);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
    margin-left: auto;
}

.header__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-heading);
    transition: var(--transition-ease);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.header__mobile-menu {
    display: none;
    padding: 15px 0;
}

.header__mobile-menu.active {
    display: block;
}

.header__mobile-menu .header__menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.header__mobile-menu .header__menu-list > li > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header Responsive */
@media (max-width: 1100px) {
    .header__menu-list > li > a {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .header__title h1 {
        font-size: 16px;
    }
    
    .header__title h1 span {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .header__menu {
        display: none;
    }
    
    .header__hamburger {
        display: flex;
    }
    
    .header__contacts {
        padding: 6px 15px 6px 25px;
        gap: 15px;
    }
    
    .header__contact {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .header__bg {
        left: 40px;
    }
    
    .header__logo img {
        width: 80px;
    }
    
    .header__title h1 {
        font-size: 13px;
    }
    
    .header__title h1 span {
        font-size: 11px;
    }
    
    .header__contact span {
        display: none;
    }
    
    .header__contacts {
        padding: 8px 15px 8px 20px;
        gap: 10px;
    }
    
    .header__container {
        padding: 0 15px;
    }
    
    .header__contacts {
        margin-right: -15px;
    }
}

.footer {
    background-color: #002261;
}

.footer__main {
    position: relative;
    padding: 50px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer__left {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.footer__logo {
    flex-shrink: 0;
}

.footer__logo img {
    width: 160px;
    height: auto;
    border-radius: 8px;
}

.footer__info {
    flex-grow: 1;
}

.footer__title {
    color: #fff;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 15px;
    line-height: 1.3;
}

.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #E6E6E6;
    font-size: 14px;
    line-height: 1.4;
}

.footer__contact li:last-child {
    margin-bottom: 0;
}

.footer__contact svg {
    flex-shrink: 0;
    color: var(--color-button);
}

.footer__contact a {
    color: #fff;
}

.footer__contact a:hover {
    color: #FFD900;
}

/* Prawa część stopki */
.footer__right {
    padding-left: 60px;
}

.footer__schools-list {
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
}

.footer__schools-list p {
    margin: 0;
}

.footer__schools-list a {
    color: #E6E6E6;
    text-decoration: none;
    transition: var(--transition-ease);
}

.footer__schools-list a:hover {
    color: var(--color-hover);
}

/* Menu stopki */
.footer__nav {
    margin-top: 5px;
}

.footer__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li {
    margin-bottom: 6px;
}

.footer__menu li:last-child {
    margin-bottom: 0;
}

.footer__menu a {
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    transition: var(--transition-ease);
}

.footer__menu a:hover {
    color: var(--color-button);
}

/* Dolny pasek */
.footer__bottom {
    background-color: #002261;
    padding: 15px 0;
}

.footer__bottom .container {
    border-top: 1px solid #FFFFFF26;
    padding-top: 15px;
}

.footer__bottom-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__copyright {
    color: #CCCCCC;
    font-size: 12px;
    margin: 0;
}

.footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #CCCCCC;
    font-size: 12px;
}

.footer__bottom-right a {
    color: #CCCCCC;
}

.footer__bottom-right a:hover {
    color: var(--color-hover);
}

.footer__separator {
    color: rgba(255, 255, 255, 0.5);
}

.footer__link {
    color: #CCCCCC;
}

/* Back to top - fixed */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #063180;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-ease);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-hover);
}

/* Footer responsive */
@media (max-width: 992px) {
    .footer__grid {
        gap: 40px;
    }
    
    .footer__right {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .footer__main {
        padding: 40px 0 30px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__right {
        padding-left: 0;
        padding-top: 25px;
    }
    
    .footer__bottom-grid {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .footer__copyright {
        width: 100%;
        order: 2;
        margin-top: 10px;
    }
    
    .footer__bottom-right {
        order: 1;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .footer__left {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer__contact li {
        justify-content: center;
    }
    
    .footer__bottom-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.privacy-page {
    padding: 60px 0;
    background: #fff;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-title {
    color: var(--color-heading);
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin: 0 0 30px;
    line-height: 1.3;
}

.privacy-text {
    color: var(--color-paragraph);
    font-size: 15px;
    line-height: 1.8;
}

.privacy-text h2 {
    color: var(--color-heading);
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin: 35px 0 15px;
}

.privacy-text h3 {
    color: var(--color-heading);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    margin: 25px 0 12px;
}

.privacy-text p {
    margin: 0 0 15px;
}

.privacy-text ul,
.privacy-text ol {
    margin: 0 0 20px;
    padding-left: 25px;
}

.privacy-text li {
    margin-bottom: 8px;
}

.privacy-text a {
    color: var(--color-heading);
    text-decoration: underline;
}

.privacy-text a:hover {
    color: var(--color-hover);
}

@media (max-width: 768px) {
    .privacy-page {
        padding: 40px 0;
    }
    
    .privacy-title {
        font-size: 26px;
    }
    
    .privacy-text {
        font-size: 14px;
    }
    
    .privacy-text h2 {
        font-size: 20px;
    }
    
    .privacy-text h3 {
        font-size: 16px;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    padding: 0;
    display: flex;
    align-items: flex-start;
}

.hero__logo-wrapper {
    position: absolute;
    left: 0;
    top: 10px;
    z-index: 10;
    width: 160px;
}

.hero__logo {
    width: 160px;
    height: auto;
    display: block;
}

.hero__box {
    position: relative;
    margin-left: 80px;
    width: calc(100% - 80px);
    height: 694px;
    background-image: url('/wp-content/uploads/2026/01/0c2aae4686004143377a6d5e95eb5044962c4591-scaled.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 0 30px;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #002261CC;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 25px 0 35px 60px;
}

.hero__header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-left: 30px;
}

.hero__title h1 {
    color: #fff;
    font-size: 64px;
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1;
}

.hero__title h1 span {
    color: #FFD900;
    font-weight: var(--font-weight-bold);
}

.hero__subtitle {
    color: #fff;
    font-size: 20px;
    letter-spacing: 1.5px;
    margin: 5px 0 0;
    text-transform: uppercase;
    font-weight: var(--font-weight-normal);
}

/* ==================== SCHOOLS GRID ==================== */
.schools-grid {
    max-width: 1100px;
    margin-left: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.schools-grid:last-child {
    margin-bottom: 0;
}

.school-tile {
    border: 5px solid white;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 257px;
    height: 233px;
    box-shadow: 0px 4px 15px 0px #00000040;
}

.school-tile--has-image {
    background-size: cover;
    background-position: center;
}

.school-tile--has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.school-tile--has-image .school-tile__content {
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.school-tile--has-image .school-tile__content h3 {
    color: #fff;
}

.school-tile__content {
    padding: 10px 8px 12px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.school-tile__content h3 {
    color: var(--color-heading);
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.3;
}

.btn-tile {
    display: inline-block;
    background: var(--color-button);
    color: var(--color-paragraph);
    padding: 7px 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-ease);
    width: max-content;
}

.btn-tile:hover {
    background: var(--color-hover);
}

/* Kafel kontaktowy */
.school-tile--contact {
    background: var(--color-button);
}

.school-tile--contact .school-tile__content {
    justify-content: center;
    padding: 15px 12px;
    gap: 3px;
}

.school-tile--contact h3 {
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: #000000;
    margin-bottom: 5px;
}

.contact-phone {
    display: block;
    color: #000000;
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

.contact-phone:hover {
    color: var(--color-hover);
}

.contact-email {
    display: block;
    color: #000000;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

.contact-email:hover {
    color: var(--color-hover);
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 70px 0;
    background: #fff;
}

.about-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 70px;
}

.about-row--reverse {
    grid-template-columns: 1fr 1fr;
}

.about-row:last-child {
    margin-bottom: 0;
}

.about-badge {
    display: inline-block;
    background: var(--color-button);
    color: var(--color-heading);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.about-heading {
    color: var(--color-heading);
    font-size: 30px;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin: 0 0 20px;
}

.about-text {
    color: var(--color-paragraph);
    font-size: 16px;
    line-height: 1.8;
}

.about-text p {
    margin: 0 0 15px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
}

.about-content--right {
    display: flex;
    align-items: center;
}

/* About Images - nachodzące zdjęcia */
.about-images {
    position: relative;
    min-height: 380px;
}

.about-images__main {
    position: relative;
    width: 400px;
    height: 514px;
    margin-left: auto;
    z-index: 1;
}

.about-images__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.about-images__secondary {
    position: absolute;
    bottom: -250px;
    left: -55px;
    width: 489px;
    height: 336px;
    z-index: 2;
}

.about-images__secondary img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Lewa strona - odwrócony układ */
.about-images--left .about-images__main {
    margin-left: 0;
    margin-right: auto;
    width: 437px;
    height: 562px;
}

.about-images--left .about-images__secondary {
    left: 155px;
    bottom: -180px;
    width: 399px;
    height: 274px;
}


/* ==================== COOPERATION SECTION ==================== */
.cooperation-section {
    max-width: 1198px;
    margin: 80px auto 0;
    background: #F2F2F2;
    border-radius: 20px;
    padding: 35px 0;
    margin-bottom: 50px;
}

.cooperation-text {
    text-align: center;
    max-width: 998px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-paragraph);
}

.cooperation-text p {
    margin: 0;
}

.cooperation-text strong {
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
}

/* ==================== MAP SECTION ==================== */
.map-section {
    width: 100%;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 400px;
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero__content {
        padding: 25px 30px 30px 50px;
    }
}

@media (max-width: 1024px) {
    .schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero__box {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    .hero__logo-wrapper {
        left: 20px;
        width: 70px;
    }
    
    .about-row {
        gap: 40px;
    }
    
    .about-heading {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 20px 0;
    }
    
    .hero__box {
        margin-left: 40px;
        width: calc(100% - 40px);
        border-radius: 0 0 0 25px;
    }
    
    .hero__logo-wrapper {
        left: 10px;
        top: 20px;
        width: 55px;
    }
    
    .hero__content {
        padding: 20px 20px 25px 35px;
    }
    
    .hero__header {
        padding-left: 20px;
        margin-bottom: 20px;
    }
    
    .hero__title h1 {
        font-size: 26px;
    }
    
    .hero__subtitle {
        font-size: 9px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .about-section {
        padding: 50px 0;
    }
    
    .about-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .about-row--reverse {
        direction: ltr;
    }
    
    .about-images {
        order: -1;
        min-height: 300px;
    }
    
    .about-heading {
        font-size: 22px;
    }
    
    .about-text {
        font-size: 13px;
    }
    
    .contact-phone {
        font-size: 16px;
    }
    
    .map-section iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero__box {
        margin-left: 30px;
        width: calc(100% - 30px);
    }
    
    .hero__logo-wrapper {
        width: 45px;
        left: 8px;
    }
    
    .hero__title h1 {
        font-size: 22px;
    }
    
    .hero__content {
        padding: 15px 15px 20px 25px;
    }
    
    .schools-grid {
        grid-template-columns: 1fr;
    }
    
    .school-tile__image {
        height: 120px;
    }
    
    .about-images {
        min-height: 250px;
    }
    
    .about-images__main {
        width: 80%;
    }
    
    .about-images__secondary {
        width: 60%;
    }
}