/*
 * Shifa Therapie – site styles. Mobile first: base rules target phones,
 * `min-width` media queries add the tablet and desktop layout.
 */

:root {
    --color-text: #000;
    --color-bg: #fff;
    --color-accent: #ad3830;
    --color-muted: #555;
    --color-line: #ddd;
    --font-body: "Open Sans", system-ui, sans-serif;
    --font-ui: "Inter", system-ui, sans-serif;
    --gutter: 1rem;
    --content-width: 46rem;
    --header-height: 4rem;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

a { color: inherit; }
a:hover { color: var(--color-accent); }

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -3rem;
    padding: .5rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-text);
    z-index: 10;
}
.skip-link:focus { top: .5rem; }

/* ---------- Header and navigation ---------- */

.site-header {
    position: relative;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(to right, transparent, #000, transparent) 1;
}

.nav {
    max-width: 85rem;
    margin: 0 auto;
    min-height: var(--header-height);
    padding: .5rem var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-ui);
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
}
.logo img { width: auto; height: 2.5rem; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.75rem;
    height: 2.75rem;
    padding: .7rem .45rem;
    background: none;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: var(--color-text);
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Without JavaScript the menu stays open, so every page remains reachable. */
.nav-menu {
    flex-basis: 100%;
    padding: .5rem 0 1rem;
}
.js .nav-menu:not(.is-open) { display: none; }
html:not(.js) .nav-toggle { display: none; }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.25rem;
}
.nav-links a {
    display: block;
    padding: .6rem 0;
    text-decoration: none;
}
.nav-links a[aria-current="page"] { font-weight: 700; }

.lang-switch {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-top: .5rem;
}
.lang-switch a {
    padding: .25rem .6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
}
.lang-switch a[aria-current="true"] {
    font-weight: 700;
    border-color: var(--color-text);
}
.lang-switch a:hover { border-color: var(--color-accent); }

/* ---------- Main content ---------- */

main {
    flex: 1;
    width: 100%;
    max-width: calc(var(--content-width) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 3rem;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.25;
    margin: 0 0 1rem;
}
h2 {
    font-size: 1.2rem;
    margin: 2rem 0 .5rem;
}
.eyebrow {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}
p { margin: 0 0 1rem; }
.lead { font-size: 1.1rem; }

.button {
    display: inline-block;
    padding: .75rem 1.75rem;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s, color .3s, border-color .3s;
}
.button:hover:not(:disabled) {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}
.button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cta { margin: 2rem 0; }
.cta p { font-weight: 700; margin-bottom: .75rem; }

.atelier-images {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.atelier-images img { width: 100%; object-fit: cover; }

.notice {
    padding: .75rem 1rem;
    border-left: 4px solid var(--color-accent);
    background: #f7f1f0;
    margin-bottom: 1.5rem;
}

/* ---------- Contact form ---------- */

.contact-form { display: grid; gap: 1rem; }
.contact-form label {
    display: block;
    font-family: var(--font-ui);
    font-weight: 600;
    margin-bottom: .25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: .7rem;
    border: 1px solid var(--color-text);
    border-radius: 0;
    font: inherit;
    font-size: 1rem;
    appearance: none;
}
.contact-form textarea { min-height: 12rem; resize: vertical; }
.contact-form .button { width: 100%; }

/* Honeypot: off-screen for people, still present for bots. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: start;
    font-size: .95rem;
}
.contact-form .consent label {
    font-family: var(--font-body);
    font-weight: 400;
    margin: 0;
}
.consent input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .2rem;
    accent-color: var(--color-accent);
}

.form-status:empty { display: none; }
.form-status {
    margin: 0;
    padding: .75rem 1rem;
    border-left: 4px solid var(--color-muted);
    background: #f4f4f4;
}
.form-status.is-success { border-color: #2e7d32; background: #edf7ee; }
.form-status.is-error,
.notice-error { border-color: var(--color-accent); background: #fbeceb; }

.contact-form [aria-invalid="true"] { border-color: var(--color-accent); border-width: 2px; }

.opt-out {
    padding: 1rem;
    border: 1px solid var(--color-line);
    margin-bottom: 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--color-line);
    padding: 1.5rem var(--gutter);
    font-family: var(--font-ui);
    font-size: .9rem;
    color: var(--color-muted);
    text-align: center;
}
.site-footer ul {
    list-style: none;
    margin: 0 0 .5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
}
.site-footer p { margin: 0; }

/* ---------- Tablet ---------- */

@media (min-width: 40em) {
    .atelier-images { grid-template-columns: repeat(3, 1fr); }
    .contact-form .button { width: auto; justify-self: start; }
    h1 { font-size: 2.1rem; }
}

/* ---------- Desktop: inline navigation ---------- */

@media (min-width: 58em) {
    :root { --header-height: 5rem; }

    .logo { font-size: 2rem; }
    .logo img { height: 3.5rem; }

    .nav-toggle { display: none; }
    .nav-menu,
    .js .nav-menu:not(.is-open) {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-basis: auto;
        padding: 0;
    }
    .nav-links {
        display: flex;
        gap: 2rem;
        font-size: 1.2rem;
    }
    .nav-links a { padding: .25rem 0; }
    .lang-switch { margin-top: 0; }

    main { padding-top: 2.5rem; }
    body { font-size: 1.0625rem; }
    h1 { font-size: 2.5rem; }
}
