/*
Theme Name: PsychoSwiadomosc Theme
Theme URI: https://psychoswiadomosc.pl
Author: Marcin
Description: Motyw WordPress oparty na makiecie projektu PsychoSwiadomosc.
Version: 0.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.2
Text Domain: psychoswiadomosc-theme
*/

:root {
    --offwhite: #f9f8f6;
    --beige: #f2efe9;
    --sage: #c3d0c2;
    --rose: #ddbfb8;
    --taupe: #b8afa6;
    --gray: #8a8d8f;
    --dark: #2c3e50;
    --white: #ffffff;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Inter", sans-serif;
    --radius-sm: 0.75rem;
    --radius-lg: 2rem;
    --radius-xl: 3rem;
    --shadow-soft: 0 10px 40px rgba(184, 175, 166, 0.12);
    --shadow-card: 0 4px 20px rgba(184, 175, 166, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--offwhite);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden {
    display: none !important;
}

.items-center {
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
}

.btn-outline-dark {
    border: 1px solid var(--dark);
    color: var(--dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--taupe);
}

.btn-full {
    width: 100%;
    padding: 1rem 2rem;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(249, 248, 246, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--taupe);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    background: var(--offwhite);
    border-top: 1px solid var(--beige);
    padding: 0.5rem 1rem 1.5rem;
    text-align: center;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(249, 248, 246, 0.84) 0%, rgba(249, 248, 246, 0.58) 30%, rgba(249, 248, 246, 0) 62%),
        linear-gradient(135deg, rgba(255, 251, 245, 0.36), rgba(181, 234, 215, 0.14), rgba(199, 206, 234, 0.14));
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.22) contrast(1.08) brightness(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 6rem);
    font-weight: 300;
    color: #23313f;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-subtitle-italic {
    font-style: italic;
    color: #7a675c;
}

.hero-description {
    color: #43494d;
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 38rem;
    margin: 0 auto 3rem;
    line-height: 1.8;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.section {
    padding: 6rem 0;
}

.section-beige {
    background: var(--beige);
}

.section-offwhite {
    background: var(--offwhite);
}

.section-sage-light {
    background: rgba(195, 208, 194, 0.1);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--taupe);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--gray);
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.button-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

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

.philosophy-image {
    order: 2;
}

.rounded-image {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.shadow-image {
    box-shadow: 0 25px 50px rgba(184, 175, 166, 0.2);
}

.philosophy-text {
    order: 1;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.text-content p {
    color: var(--gray);
    font-weight: 300;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.card-icon-beige {
    background: var(--beige);
    color: var(--taupe);
}

.card-icon-rose {
    background: rgba(221, 191, 184, 0.3);
    color: var(--rose);
}

.card-icon-sage {
    background: rgba(195, 208, 194, 0.3);
    color: var(--sage);
}

.card-title {
    font-size: 1.375rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray);
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7;
}

.about-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.about-role {
    color: var(--taupe);
    font-size: 0.9375rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.credentials-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credentials-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--dark);
}

.credentials-list li i {
    color: var(--sage);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.credentials-list li span {
    font-weight: 300;
    font-size: 0.9375rem;
}

.about-cta {
    margin-top: 2rem;
}

.contact-booking {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 175, 166, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.contact-booking-text {
    color: var(--gray);
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.contact-booking .btn {
    align-self: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-bg {
    position: absolute;
    inset: 0;
    background: rgba(195, 208, 194, 0.2);
    border-radius: var(--radius-xl);
    transform: translate(1rem, 1rem);
}

.about-image {
    position: relative;
    z-index: 1;
    height: 450px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

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

.contact-grid {
    gap: 2.5rem;
}

.contact-info {
    background: var(--beige);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.contact-info-title {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--taupe);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray);
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.5;
}

.contact-item a {
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--taupe);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-form,
.contact-form-wrapper .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form-notice {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.6;
}

.contact-form-notice-success {
    background: rgba(195, 208, 194, 0.22);
    color: #385145;
    border: 1px solid rgba(138, 160, 132, 0.35);
}

.contact-form-notice-error,
.contact-form-notice-validation {
    background: rgba(221, 191, 184, 0.2);
    color: #7d4c46;
    border: 1px solid rgba(190, 122, 111, 0.28);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.contact-form-wrapper .wpcf7 p,
.contact-form-wrapper .wpcf7-form-control-wrap {
    margin: 0;
}

.contact-form-wrapper .wpcf7 label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea,
.contact-form-wrapper .wpcf7 input[type="text"],
.contact-form-wrapper .wpcf7 input[type="email"],
.contact-form-wrapper .wpcf7 input[type="tel"],
.contact-form-wrapper .wpcf7 textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--beige);
    background: rgba(249, 248, 246, 0.5);
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--dark);
    transition: border-color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.contact-form-wrapper .wpcf7 input::placeholder,
.contact-form-wrapper .wpcf7 textarea::placeholder {
    color: var(--taupe);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form-wrapper .wpcf7 input:focus,
.contact-form-wrapper .wpcf7 textarea:focus {
    border-color: var(--taupe);
    box-shadow: 0 0 0 2px rgba(184, 175, 166, 0.15);
}

.form-group textarea {
    resize: none;
}

.contact-form-wrapper .wpcf7 textarea {
    resize: none;
    min-height: 9rem;
}

.contact-form-wrapper .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.contact-form-wrapper .wpcf7-acceptance label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray);
}

.contact-form-wrapper .wpcf7-acceptance input {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.contact-form-wrapper .wpcf7-acceptance a {
    text-decoration: underline;
}

.contact-form-wrapper .wpcf7-acceptance a:hover {
    color: var(--dark);
}

.contact-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: none;
    background: var(--dark);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form-wrapper .wpcf7-submit:hover {
    background: var(--taupe);
}

.contact-form-wrapper .wpcf7-spinner {
    margin: 0.75rem auto 0;
}

.contact-form-wrapper .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form .wpcf7-response-output {
    margin: 0;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.6;
}

.contact-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(195, 208, 194, 0.22);
    color: #385145;
    border: 1px solid rgba(138, 160, 132, 0.35);
}

.contact-form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.failed .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.aborted .wpcf7-response-output,
.contact-form-wrapper .wpcf7 form.spam .wpcf7-response-output {
    background: rgba(221, 191, 184, 0.2);
    color: #7d4c46;
    border: 1px solid rgba(190, 122, 111, 0.28);
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #b85d54;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 300;
    margin-top: 0.5rem;
}

.form-disclaimer a {
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: var(--dark);
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-description {
    color: rgba(242, 239, 233, 0.7);
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--taupe);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: rgba(242, 239, 233, 0.7);
    font-weight: 300;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(242, 239, 233, 0.5);
    font-weight: 300;
}

.page-shell {
    padding: 9rem 0 4rem;
}

.default-page-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.default-page-header {
    margin-bottom: 1.5rem;
}

.default-page-content {
    color: var(--gray);
    font-weight: 300;
    line-height: 1.9;
}

.default-page-content > * + * {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .section {
        padding: 8rem 0;
    }

    .hero-content {
        padding: 4rem 2rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 3.5rem;
    }

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

    .rounded-image {
        height: 500px;
    }

    .default-page-card {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .philosophy-image {
        order: 1;
    }

    .philosophy-text {
        order: 2;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-image,
    .rounded-image {
        height: 550px;
    }

    .about-image-bg {
        transform: translate(1.5rem, 1.5rem);
    }
}
