/* About Us Page Specific Styles */

.about-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--ivory-bg);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(6, 70, 53, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(212, 173, 96, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.about-hero .subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-muted);
    margin-bottom: 2rem;
    display: block;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-intro {
    padding: 100px 0;
    background: white;
}

/* The theme's sitewide rule stretches both columns to equal height (good for
   card grids elsewhere); here the text is much shorter than the photo, which
   left a large dead gap below it. Center it against the photo instead. */
.about-intro .wp-block-columns {
    align-items: center;
    gap: 60px;
}

.about-intro-text {
    max-width: 34em;
}

.about-intro-eyebrow {
    display: block;
    font-family: var(--sans-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: 14px;
}

.about-intro-text h2 {
    font-size: 2.6rem !important;
    line-height: 1.12;
    margin-bottom: 0;
}

.about-intro-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.about-intro-text p:last-child {
    margin-bottom: 0;
}

/* Opening paragraph carries the weight — slightly larger, darker, so the
   block has a clear entry point instead of two identical grey slabs. */
.about-intro-text .about-intro-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--emerald-deep);
    font-weight: 500;
}

@media (max-width: 991px) {
    .about-intro .wp-block-columns {
        gap: 40px;
    }
    .about-intro-text {
        max-width: 100%;
    }
    .about-intro-text h2 {
        font-size: 2.1rem !important;
    }
}

/* Stack the intro columns on phones. Must come after the 991px block above —
   both match at phone widths, and the later rule wins on equal specificity.
   WP core normally stacks columns below 782px, but the theme's blanket
   ".wp-block-columns { display: flex !important }" lands without flex-wrap,
   so the columns kept their inline 60%/40% basis side by side: 100% of the
   row plus the gap, which pushed the whole page 19px wider than the viewport.
   flex-basis needs !important — those percentages are inline attributes. */
@media (max-width: 781px) {
    .about-intro .wp-block-columns {
        flex-wrap: wrap;
        gap: 32px;
    }
    .about-intro .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100%;
    }
}

.team-section {
    padding: 120px 0;
    background: var(--ivory-bg);
}

.team-section .ast-container {
    display: block;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.team-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    transition: transform 0.4s ease;
}

.team-card:hover {
    transform: translateY(-15px);
}

.team-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.premium-card__photo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
}

.team-info {
    padding: 40px;
}

.team-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.team-role {
    color: var(--gold-ink, #8c6a22);
    font-family: var(--sans-body, Inter, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.ethical-code-section {
    padding: 120px 0;
    background: white;
}

.ethical-code-section .ast-container {
    display: block;
}

.ethical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ethical-item {
    padding: 40px;
    background: var(--ivory-bg);
    border-radius: 20px;
    border-left: 4px solid var(--gold-muted);
    transition: all 0.3s ease;
}

.ethical-item:hover {
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.ethical-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ethical-number {
    font-family: var(--serif-header);
    font-size: 2.5rem;
    color: var(--gold-muted);
    opacity: 0.5;
    display: block;
    line-height: 1;
}

/* Variant 2 uses the line-art icons as quiet watermarks. They add identity
   without competing with the principle number or the copy. Variant 1 never
   had an icon slot here, so it remains unchanged. */
.ethical-icon {
    display: none;
}

html[data-design="2"] .ethical-item {
    position: relative;
    isolation: isolate;
    min-height: 320px;
    overflow: hidden;
    border-left-color: var(--gold-muted);
    box-shadow: inset 0 0 0 1px rgba(197, 158, 75, 0.08);
}

html[data-design="2"] .ethical-item::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    top: -82px;
    right: -76px;
    border-radius: 50%;
    background: rgba(17, 92, 70, 0.032);
    transition: transform 0.35s ease, background-color 0.35s ease;
}

html[data-design="2"] .ethical-item-header {
    position: static;
}

html[data-design="2"] .ethical-number,
html[data-design="2"] .ethical-text {
    position: relative;
    z-index: 2;
}

html[data-design="2"] .ethical-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
    top: -90px;
    right: -48px;
    width: 192px;
    height: 192px;
    overflow: hidden;
    border-radius: 50%;
    opacity: 0.28;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(7deg);
    transform-origin: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

html[data-design="2"] .ethical-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
}

html[data-design="2"] .ethical-item:nth-child(even) .ethical-icon {
    top: -82px;
    right: -54px;
    transform: rotate(-6deg);
}

html[data-design="2"] .ethical-item:hover::after {
    background: rgba(17, 92, 70, 0.055);
    transform: scale(1.08);
}

html[data-design="2"] .ethical-item:hover .ethical-icon {
    opacity: 0.4;
    transform: rotate(2deg) scale(1.04);
}

.ethical-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Three-up gallery, all photos forced to the same height regardless of
   their native aspect ratio (landscape vs portrait) — crop, don't stretch. */
.atmosphere-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.atmosphere-gallery figure {
    margin: 0;
}

.atmosphere-gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Keep the practitioner and child in frame when the supplied portrait photo
   is cropped into the landscape gallery card. */
.atmosphere-gallery__portrait img {
    object-position: 50% 12%;
}

@media (max-width: 991px) {
    .atmosphere-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    html[data-design="2"] .ethical-grid {
        gap: 20px;
    }

    html[data-design="2"] .ethical-item {
        min-height: 0;
        padding: 32px 28px 34px;
    }

    html[data-design="2"] .ethical-icon {
        top: -66px;
        right: -28px;
        width: 132px;
        height: 132px;
        opacity: 0.24;
    }

    html[data-design="2"] .ethical-item:nth-child(even) .ethical-icon {
        top: -60px;
        right: -32px;
    }

    .atmosphere-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .atmosphere-gallery img {
        height: 280px;
    }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .about-hero h1 {
        font-size: 3.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-design="2"] .ethical-item::after,
    html[data-design="2"] .ethical-icon {
        transition: none;
    }
}

/* Entrance animations on the page hero — same reduced-motion reasoning as the
   home hero in style.css. This hero is reused by the contacts page and by
   page-vydy-vplyvu.php, so the guard covers all three. */
@media (prefers-reduced-motion: reduce) {
    .about-hero h1,
    .about-hero .subtitle {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
