* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #faf9f7;
    color: #242424;
}

a {
    color: inherit;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e7e3de;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 22px;
}

nav a {
    color: #444444;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

nav a:hover {
    color: #966378;
}

nav a[aria-current="page"] {
    color: #966378;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Hero */

.hero {
    padding: 110px 28px 90px;
    background: linear-gradient(
        135deg,
        #fff8fb 0%,
        #f7eef2 50%,
        #f4f0eb 100%
    );
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow,
.small-heading {
    margin: 0 0 14px;
    color: #966378;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 70px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.hero-text {
    max-width: 680px;
    margin: 26px auto 0;
    color: #555555;
    font-size: 20px;
    line-height: 1.7;
}

.hero-buttons {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* Buttons */

.button {
    display: inline-block;
    padding: 14px 23px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: #966378;
    color: #ffffff;
}

.button.primary:hover {
    background: #7f5265;
}

.button.secondary {
    background: #ffffff;
    border: 1px solid #d8ccd1;
    color: #553d47;
}

.button.secondary:hover {
    background: #fff8fb;
}

/* About and content cards */

.credentials {
    padding: 75px 28px;
}

.credentials-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 48px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(40, 30, 34, 0.07);
}

.credentials-card h2 {
    margin: 0 0 22px;
    font-size: 36px;
}

.credentials-card p {
    color: #555555;
    font-size: 18px;
    line-height: 1.75;
}

.credentials-card p:last-of-type {
    margin-bottom: 24px;
}

/* Services */

.services {
    padding: 70px 28px 90px;
}

.section-heading {
    max-width: 800px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: 40px;
}

.service-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: #ffffff;
    border: 1px solid #eee8e3;
    border-radius: 20px;
}

.service-card h3 {
    margin: 0 0 14px;
    color: #7f5265;
    font-size: 23px;
}

.service-card p {
    margin: 0;
    color: #5c5c5c;
    font-size: 17px;
    line-height: 1.7;
}

/* Two target audiences */

.audiences {
    padding: 75px 28px;
}

.audience-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.audience-card {
    padding: 42px;
    background: #ffffff;
    border: 1px solid #eee8e3;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(40, 30, 34, 0.06);
}

.audience-card h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

.audience-card p,
.audience-card li {
    color: #555555;
    font-size: 17px;
    line-height: 1.7;
}

.audience-card ul {
    margin: 24px 0;
    padding-left: 22px;
}

.audience-card li {
    margin-bottom: 9px;
}

.text-link {
    color: #7f5265;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Specialist focus */

.specialist-focus {
    padding: 70px 28px;
    background: #ffffff;
    text-align: center;
}

.focus-list {
    max-width: 950px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.focus-list span {
    padding: 11px 18px;
    background: #f3e7ec;
    border-radius: 999px;
    color: #684452;
    font-weight: 700;
}

.focus-description {
    max-width: 760px;
    margin: 30px auto 0;
    color: #555555;
    font-size: 18px;
    line-height: 1.75;
}

/* Contact */

.contact-section {
    padding: 30px 28px 90px;
}

.contact-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 48px;
    background: #f3e7ec;
    border-radius: 24px;
    text-align: center;
}

.contact-card h2 {
    margin: 0 0 16px;
    font-size: 36px;
}

.contact-card p {
    margin: 0 auto 26px;
    max-width: 700px;
    color: #555555;
    font-size: 18px;
    line-height: 1.7;
}

.contact-card .hero-buttons {
    margin-top: 28px;
}

/* Disclaimer */

.disclaimer {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 28px 70px;
}

.disclaimer p {
    margin: 0;
    padding: 20px;
    background: #ffffff;
    border-left: 4px solid #966378;
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */

footer {
    padding: 28px;
    background: #ffffff;
    border-top: 1px solid #e7e3de;
    color: #666666;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Tablet and mobile */

@media (max-width: 800px) {
    .site-header {
        position: static;
    }
    
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    nav {
        justify-content: flex-start;
        gap: 14px;
    }

    .hero {
        padding: 75px 22px 65px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 18px;
    }

    .service-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .credentials-card,
    .contact-card,
    .audience-card {
        padding: 32px 24px;
    }

    .credentials-card h2,
    .contact-card h2 {
        font-size: 30px;
    }

    .section-heading h2 {
        font-size: 34px;
    }
}

/* Small mobile screens */

@media (max-width: 520px) {
    .header-inner {
        padding: 18px 20px;
    }

    .brand {
        font-size: 21px;
        white-space: normal;
    }

    nav {
        gap: 10px 14px;
    }

    nav a {
        font-size: 14px;
    }

     .hero h1 {
        font-size: 34px;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .credentials,
    .services,
    .audiences,
    .specialist-focus {
        padding-left: 20px;
        padding-right: 20px;
    }
}
/* Images */

.hero-image {
    max-width: 1050px;
    margin: 45px auto;
    padding: 0 28px;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(40, 30, 34, 0.12);
}

.profile-image {
    max-width: 320px;
    margin: 0 auto 35px;
}

.profile-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 35px rgba(40, 30, 34, 0.12);
}

@media (max-width: 800px) {
    .hero-image img {
        height: 280px;
    }

    .profile-image {
        max-width: 240px;
    }
}
/* Homepage portrait image */

.home-hero-image {
    max-width: 760px;
}

.home-hero-image img {
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    object-position: center;
}
/* Language switch */

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 16px;
    border-left: 1px solid #d8d2ce;
    color: #777777;
}

.language-switch a {
    font-size: 13px;
    font-weight: 700;
}

.language-switch a:hover {
    color: #966378;
}

@media (max-width: 800px) {
    .language-switch {
        padding-left: 0;
        border-left: 0;
    }
}


.brand::after {
    margin-top: 3px;
    color: #666666;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Ingliskeelsed lehed */
html[lang="en"] .brand::after {
    content: "Kerit-Lii Joasoon, MSc";
}

/* Saksakeelsed lehed */
html[lang="de"] .brand::after {
    content: "Kerit-Lii Joasoon, MSc";
}

/* Eestikeelsed lehed */
html[lang="et"] .brand::after {
    content: "Kerit-Lii Joasoon, MSc";
}
.professional-image {
    max-width: 900px;
    margin: 45px auto;
    padding: 0 28px;
}

.professional-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
