/* TRUJILLO — MAIN */

:root {
    --color-text: #171717;
    --color-text-soft: #5f5f5f;
    --color-text-light: #777777;
    --color-purple: #5c008a;
    --color-purple-dark: #260033;
    --color-bg: #ffffff;
    --color-bg-soft: #f5f5f7;
    --font-heading: "Manrope", sans-serif;
    --font-body: "Inter", sans-serif;
    --container: 1180px;
}

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

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.container {
    width: min(
    var(--container),
    calc(100% - 48px)
    );
    margin-inline: auto;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text);
}

/* Tipografia comuna dels titulars; h3 i h4 mantenen Manrope. */

h1,
h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 500;
}

h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

p {
    color: var(--color-text-soft);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--color-purple);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button span {
    transition: transform 0.2s ease;
}

.button:hover span {
    transform: translateX(4px);
}

.button--primary {
    background: var(--color-purple);
    color: #fff;
}

.button--primary:hover {
    background: var(--color-purple-dark);
}

.button--secondary {
    background: transparent;
    color: var(--color-purple);
}

.button--secondary:hover {
    background: var(--color-purple);
    color: #fff;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 54px;
}

.section-heading h2 {
    margin-bottom: 12px;
}

.section-heading p {
    max-width: 480px;
    margin: 0;
    font-size: 14px;
    color: var(--color-text-light);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-purple);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-purple);
    text-decoration: none;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    h1 {
        font-size: 42px;
    }
}

/* Plantilla de reserva: continguts sense una plantilla específica. */

.site-content {
    padding-block: 64px;
    overflow-wrap: anywhere;
}

.site-content__entry + .site-content__entry {
    margin-top: 40px;
}
