:root {
    --bg: #f7f8fb;
    --text: #0e1428;
    --paragraph: #1f2435;
    --muted: #1f2435;
    --accent: #356276;
    --accent-soft: #cad4de;
    --header-main: #cad4de;
    /* Header artwork hooks: replace these URLs with your own SVGs */
    --header-texture: none;
    --header-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='400' viewBox='0 0 1440 360' preserveAspectRatio='none' %3E%3Cpath d='M0,290 C290,250 540,280 860,275 C1180,275 1320,310 1440,270 L1440,350 L0,350 Z' fill='%23356276'/%3E%3Cpath d='M0,300 C290,260 540,300 860,290 C1180,290 1320,320 1440,270 L1440,360 L0,360 Z' fill='%23cad4de'/%3E%3C/svg%3E");
    
    --highlight: #9e3053;
    --card: #ffffff;
    --border: #d7dde6;
    --shadow: 0 14px 40px rgba(27, 31, 59, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}



p {
    color: var(--paragraph);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: none;
    color: var(--accent);
    padding: 28px 0 80px;
    /* box-shadow: 0 12px 30px rgba(27, 31, 59, 0.08); */
    overflow: visible;
    z-index: 1000;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: -1;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0px;
    height: 600px;
    background: var(--header-wave) no-repeat center top;
    background-size: cover;
    z-index: -1;

    transform: scaleY(-1);        /* flips around the X axis */
    transform-origin: center;     /* optional */
}

.site-header::before,
.site-header::after {
    pointer-events: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px 0;
    gap: 16px;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    height: 48px;
    text-decoration: none;
}

.brand img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1200;
}

.nav-links a {
    color: var(--accent);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    background: rgba(53, 98, 118, 0.15);
    color: var(--accent);
}

.nav-links a.active {
    background: var(--accent);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    cursor: pointer;
    padding: 10px;
    transition: background 0.2s ease;
}

.nav-toggle:hover {
    filter: brightness(0.9);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    max-width: 1100px;
    margin: -40px auto 80px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.page-banner {
    width: 100%;
    height: 230px;
    border-radius: 0 0 18px 18px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.page-title {
    margin: 12px 0 4px;
    font-size: 2rem;
}

.content-block {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--paragraph);
    font-size: 1.05rem;
}

.privacy-policy h2,
.privacy-policy h3 {
    color: var(--text);
    margin-top: 12px;
    margin-bottom: 8px;
}

.privacy-policy p {
    margin: 0 0 12px;
    color: var(--paragraph);
}

.privacy-policy ul {
    padding-left: 20px;
    margin: 0 0 16px;
    color: var(--paragraph);
}

.privacy-policy li {
    margin-bottom: 6px;
}

.home-layout,
.about-layout,
.contact-layout {
    display: grid;
    gap: 18px;
    align-items: start;
}

.home-layout {
    grid-template-columns: 1.3fr 0.7fr;
}

.about-layout,
.contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

.portrait-frame,
.profile-card {
    background: var(--card);
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.portrait-image,
.profile-photo {
    width: 100%;
    height: auto;
    max-width: 340px;
    border-radius: 14px;
    object-fit: cover;
}

.profile-photo {
    aspect-ratio: 1 / 1;
}

.image-placeholder {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 2px dashed var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    padding: 14px;
}

.contact-info {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--text);
    font-weight: 600;
    display: grid;
    gap: 6px;
}

.intro-block {
    margin-top: 4px;
}

.services-list {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.trainings-list {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
}

.form-feedback {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.form-feedback.success {
    background: #e8f7ed;
    color: #1b6a3a;
    border: 1px solid #c8e8d2;
}

.form-feedback.error {
    background: #fff1f0;
    color: #9b2c2c;
    border: 1px solid #f3c7c5;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0;
    color: var(--text);
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--paragraph);
}

.section-subtitle {
    margin: 6px 0 0;
    color: var(--paragraph);
    font-size: 1rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin: 0 0 6px;
}

.lead-text {
    color: var(--paragraph);
    margin: 6px 0 12px;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.training-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    display: grid;
    gap: 12px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(27, 31, 59, 0.05);
}

.training-card__body h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.training-card__body p {
    margin: 0;
    color: var(--paragraph);
}

.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 0 32px;
    min-height: calc(80vh - 80px);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.65fr);
    gap: 20px;
    align-items: start;
    width: 100%;
}

.contact-form-wrapper {
    display: flex;
    justify-content: center;
}

.contact-card {
    width: 100%;
    background: var(--card);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.contact-card h2 {
    margin: 0 0 6px;
}

.contact-card .lead-text {
    margin: 0 0 8px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.input-field {
    display: grid;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
}

.input-field input,
.input-field textarea,
.input-field select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.contact-form .input-field textarea {
    resize: vertical;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.primary-button {
    justify-self: start;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 25px rgba(53, 98, 118, 0.2);
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(53, 98, 118, 0.28);
}

.primary-button:active {
    transform: translateY(0);
}

.contact-footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.contact-aside {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.contact-media {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 18px;
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-side-image {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 14px;
    object-fit: cover;
    min-height: 220px;
    background: #fff;
    display: block;
}

.contact-image-placeholder {
    min-height: 240px;
    max-width: 340px;
    margin: 0 auto;
}

.contact-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: #0a66c2;
    text-decoration: none;
    margin-top: 10px;
    align-self: flex-start;
}

.linkedin-icon svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
}

.certificate-strip {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 8px 4px 0;
}

.certificate-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.certificate-logo {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    justify-items: start;
}

.certificate-logo img {
    max-width: 160px;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.certificate-logo figcaption {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.muted-text {
    margin: 0;
    color: var(--muted);
}

.newsletter-container {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.newsletter-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.newsletter-title {
    margin: 0;
    color: #000;
    font-size: 2rem;
}

.newsletter-divider {
    width: 100%;
    height: 3px;
    background: var(--highlight);
}

.newsletter-intro {
    margin: 4px 0 12px;
    color: var(--text);
}

.newsletter-list {
    display: grid;
    gap: 18px;
}

.newsletter-item {
    display: grid;
    gap: 6px;
}

.newsletter-date {
    margin: 0;
    font-weight: 400;
    color: var(--text);
    font-size: 0.85rem;
    white-space: nowrap;
}

.newsletter-item-title {
    margin: 0;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.newsletter-item-title-text {
    font-weight: 700;
}

.newsletter-body {
    margin: 0;
    color: var(--muted);
    white-space: pre-wrap;
}

.empty-state {
    margin: 0;
    color: var(--muted);
}

.reviews-section {
    padding: 0 4px 10px;
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}

.review-card {
    position: relative;
    border-radius: 18px;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, rgba(53, 98, 118, 0.1), rgba(53, 98, 118, 0.05)), #fff;
    box-shadow: 0 12px 26px rgba(27, 31, 59, 0.08);
    display: grid;
    gap: 10px;
    min-width: 260px;
    max-width: 320px;
}

.review-card::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 26px;
    width: 0;
    height: 0;
    border: 14px solid transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 4px 6px rgba(27, 31, 59, 0.08));
}

.review-quote {
    margin: 0;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.5;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
}

.review-author {
    color: var(--highlight);
}

.review-read-more {
    border: none;
    background: none;
    color: #1d4ed8;
    padding: 0;
    margin-left: 6px;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.review-read-more:hover {
    color: #1e40af;
}

.review-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1200;
}

.review-overlay[hidden] {
    display: none;
}

.review-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 45, 0.45);
    backdrop-filter: blur(4px);
}

.review-overlay-card {
    position: relative;
    max-width: min(720px, 92vw);
    width: 100%;
    padding: 36px 32px 32px;
    border-radius: 20px;
    border: 1px solid transparent;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.22);
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: opacity 180ms ease-out, transform 180ms ease-out;
    max-height: 80vh;
    overflow: auto;
}

.review-overlay.open .review-overlay-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.overlay-quote {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #14182d;
}

.overlay-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-weight: 700;
    color: #9e3053;
}

.overlay-author span {
    color: #14182d;
    font-weight: 600;
}


.overlay-quote-mark {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 32px;
}

.close-review-overlay {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: #9e3053;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px rgba(158, 48, 83, 0.25);
}

.close-review-overlay:hover {
    transform: translateY(-1px);
}

.service-accordion {
    display: grid;
    gap: 12px;
}

.service-item {
    border: 1px solid #c7d3dd;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3f7;
}

.service-item summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    color: var(--text);
}

.service-item summary::-webkit-details-marker {
    display: none;
}

.service-item summary::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--highlight);
}

.service-item[open] summary::after {
    content: '–';
}

.service-body {
    padding: 12px 16px 16px;
    color: var(--paragraph);
    background: #fff;
}

.training-accordion .service-item summary {
    background: #f8fafc;
}

.training-body {
    display: grid;
    gap: 12px;
}

.training-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.training-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.95rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--text);
}

.training-description {
    margin: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 12000;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    width: min(720px, 100%);
    box-shadow: var(--shadow);
    position: relative;
    display: grid;
    gap: 10px;
}

.modal-panel .eyebrow {
    margin-bottom: 2px;
}

.modal-panel h3 {
    margin: 0 0 6px;
}

.modal-description {
    margin: 0 0 6px;
    color: var(--paragraph);
}

.modal-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--paragraph);
    font-size: 0.95rem;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #eef2f7;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.close-modal:hover {
    background: var(--accent-soft);
}

body.no-scroll {
    overflow: hidden;
}

footer {
    text-align: center;
    padding: 28px 16px 36px;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 820px) {
    .home-layout,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .portrait-image,
    .profile-photo,
    .image-placeholder {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        flex-direction: column;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 8px;
        box-shadow: var(--shadow);
        display: none;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 14px;
    }

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

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

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 2000;
    font-size: 0.9rem;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    z-index: 2000;
    font-size: 0.9rem;
}

.fixed-footer .footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fixed-footer .footer-left,
.fixed-footer .footer-right {
    display: flex;
    gap: 18px;
    align-items: center;
}

.fixed-footer a {
    color: #fff;
    text-decoration: underline;
}
