/*
  The public site, from the design «Sito educatrice cinofila». Colours, fonts and spacing are
  variables with default values (docs: 05-sito.md): making them customisable later means reading them
  from the site settings, not rewriting the rules below. --site-accent and --site-highlight are the
  two levers of the design (orange and yellow by default).

  The fonts are served by the site (OFL licences next to the files): the Content Security Policy allows
  only the site's own fonts, and loading them from Google would send visitors' addresses abroad.
*/

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
}

:root {
    --site-accent: #f57a45;
    --site-highlight: #f7c948;

    --site-ink: #163828;
    --site-ink-soft: #4d5e52;
    --site-brick: #b23e1c;
    --site-green: #2f6b3a;
    --site-ochre: #8a5a00;
    --site-white: #ffffff;

    --site-sand: #f7efe1;
    --site-sand-line: #eadfcb;
    --site-sand-strong: #e0d3bc;
    --site-chip: #f4ecdd;
    --site-header-line: #efe6d6;
    --site-field-line: #9c8d74;
    --site-choice-line: #cdbfa6;

    --site-mint: #e5f0d6;
    --site-mint-soft: #f3f8ec;
    --site-mint-line: #e0ebd3;
    --site-mint-on-dark: #cfe0d2;
    --site-butter: #fff3c7;
    --site-peach: #fde7dc;

    --site-font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --site-font-heading: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;

    --site-content-width: 1240px;
    --site-band-width: 1376px;
    --site-gutter: clamp(20px, 5vw, 48px);
    --site-band-gutter: clamp(12px, 3vw, 32px);
    --site-section-space: clamp(72px, 9vw, 120px);
    --site-section-space-tight: clamp(72px, 9vw, 112px);

    --site-radius-card: 28px;
    --site-radius-band: clamp(28px, 4vw, 48px);
    --site-shadow-lift: 0 10px 24px rgba(22, 56, 40, 0.16);
    --site-shadow-card: 0 16px 40px rgba(22, 56, 40, 0.14);
    --site-focus-ring: 0 0 0 4px rgba(245, 122, 69, 0.35);
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

body {
    margin: 0;
    background: var(--site-white);
    color: var(--site-ink);
    font-family: var(--site-font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
legend {
    font-family: var(--site-font-heading);
}

a {
    color: var(--site-ink);
}

a:hover {
    color: var(--site-brick);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--site-ink);
    outline-offset: 3px;
    border-radius: 8px;
}

code {
    font-size: 0.95em;
}

.site {
    overflow-x: hidden;
}

main:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--site-ink);
    color: var(--site-white);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    color: var(--site-white);
}

.visually-hidden,
.visually-hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Layout ---------- */

.container {
    max-width: var(--site-content-width);
    margin: 0 auto;
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
}

.section {
    padding-top: var(--site-section-space);
    padding-bottom: var(--site-section-space);
}

.section-tight {
    padding-top: var(--site-section-space-tight);
    padding-bottom: var(--site-section-space-tight);
}

.section-top {
    padding-top: var(--site-section-space-tight);
}

.section.section-top {
    padding-bottom: 0;
}

.bg-sand {
    background: var(--site-sand);
}

.page-sand {
    background: var(--site-sand);
}

.stack-xl {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.stack-lg {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stack-md {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-tight {
    gap: 20px;
}

.grid-300 {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-280 {
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-250 {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.grid-240 {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.grid-230 {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.actions form {
    margin: 0;
}

/* ---------- Type ---------- */

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--site-brick);
}

.eyebrow-on-dark {
    color: var(--site-highlight);
}

.display {
    margin: 0;
    font-size: clamp(44px, 6.4vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.display-inner {
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: 1;
}

.display-book {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
}

.title {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.title-small {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
}

.title-band {
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.02;
}

.lead {
    margin: 0;
    max-width: 580px;
    font-size: clamp(18px, 1.6vw, 20px);
    line-height: 1.65;
    color: var(--site-ink-soft);
}

.lead-small {
    font-size: 17px;
    line-height: 1.6;
}

/* The yellow stroke under the end of the big titles. */
.highlight {
    position: relative;
    white-space: nowrap;
}

.highlight::before {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 6px;
    height: 0.32em;
    border-radius: 8px;
    background: var(--site-highlight);
}

.highlight > span {
    position: relative;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
}

.section-head-wide {
    max-width: 760px;
}

.section-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 64px;
}

.section-head-row > .section-head {
    flex: 1 1 480px;
}

.section-head-row > .btn {
    flex: none;
}

.section-head-side {
    flex: 1 1 320px;
    max-width: 440px;
}

/* ---------- Buttons and links ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--site-shadow-lift);
}

.btn-compact {
    min-height: 52px;
    padding: 0 24px;
    font-size: 16px;
}

.btn-accent,
.btn-accent:hover {
    background: var(--site-accent);
    color: var(--site-ink);
}

.btn-highlight,
.btn-highlight:hover {
    background: var(--site-highlight);
    color: var(--site-ink);
}

.btn-dark,
.btn-dark:hover {
    background: var(--site-ink);
    color: var(--site-white);
}

.btn-light,
.btn-light:hover {
    background: var(--site-white);
    color: var(--site-ink);
}

.btn-soft,
.btn-soft:hover {
    background: var(--site-mint);
    color: var(--site-ink);
}

.btn-outline,
.btn-outline:hover {
    border-color: var(--site-ink);
    background: transparent;
    color: var(--site-ink);
}

.btn-outline-light,
.btn-outline-light:hover {
    border-color: var(--site-white);
    background: transparent;
    color: var(--site-white);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 700;
}

.text-link-large {
    align-self: flex-start;
    padding: 8px 0;
    font-size: 17px;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 2;
    background: var(--site-white);
    border-bottom: 1px solid var(--site-header-line);
}

.site-nav {
    max-width: var(--site-content-width);
    margin: 0 auto;
    padding: 18px var(--site-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--site-ink);
    text-decoration: none;
}

.site-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--site-green);
    color: var(--site-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand-name {
    font-family: var(--site-font-heading);
    font-size: 20px;
    font-weight: 800;
}

.site-brand-tagline {
    font-size: 13px;
    color: var(--site-ink-soft);
}

.site-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 26px;
    font-size: 16px;
}

.site-menu a {
    padding: 10px 0 7px;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    text-decoration: none;
}

.site-menu a[aria-current="page"] {
    border-bottom-color: var(--site-accent);
    font-weight: 700;
}

.site-nav-end {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-nav-end .btn {
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.lang-switch {
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: var(--site-chip);
    font-size: 13px;
    font-weight: 700;
}

.lang-option {
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--site-ink-soft);
    text-align: center;
    text-decoration: none;
}

.lang-option.is-current {
    background: var(--site-white);
    color: var(--site-ink);
}

/* ---------- Hero ---------- */

.hero {
    padding-top: clamp(32px, 6vw, 72px);
    padding-bottom: clamp(64px, 8vw, 112px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.hero-inner {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(64px, 8vw, 104px);
    gap: 48px 64px;
}

.hero-reverse {
    flex-wrap: wrap-reverse;
    gap: 48px 72px;
}

.hero-copy {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--site-butter);
    font-size: 14px;
    font-weight: 700;
}

.hero-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--site-accent);
}

.inline-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 15px;
    font-weight: 500;
}

.inline-points li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-points svg {
    color: var(--site-brick);
    flex: none;
}

.hero-media {
    position: relative;
    flex: 1 1 420px;
    min-width: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.blob-highlight {
    background: var(--site-highlight);
}

.blob-peach {
    background: var(--site-peach);
}

/* The place of a photo in the design: shape and position, with the photo or its placeholder inside. */
.site-photo {
    position: absolute;
    overflow: hidden;
}

.site-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Until a photo is chosen in the back-office: an icon and a caption on the colour of the place. */
.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.site-photo.is-arch {
    border-radius: 999px 999px 36px 36px;
}

.site-photo.is-rounded {
    border-radius: 36px;
}

.hero-media-home {
    height: clamp(440px, 46vw, 600px);
}

.hero-media-home .blob-highlight {
    width: 62%;
    right: -4%;
    top: -2%;
}

.hero-media-home .blob-peach {
    width: 22%;
    left: 2%;
    top: 8%;
}

.hero-media-home .site-photo {
    inset: 6% 6% 0 12%;
}

.hero-media-home .hero-availability {
    left: 0;
    bottom: 36px;
}

.hero-pill {
    position: absolute;
    right: 2%;
    top: 58%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--site-ink);
    color: var(--site-white);
    font-size: 14px;
    font-weight: 700;
}

.hero-pill svg {
    color: var(--site-accent);
}

.hero-media-boarding {
    flex-basis: 400px;
    height: clamp(400px, 40vw, 540px);
}

.hero-media-boarding .blob-highlight {
    width: 58%;
    left: -4%;
    top: -4%;
}

.hero-media-boarding .site-photo {
    inset: 6% 0 0 10%;
}

.hero-media-boarding .hero-availability {
    right: 4%;
    bottom: 32px;
}

.hero-media-about {
    flex-basis: 380px;
    height: clamp(420px, 40vw, 560px);
}

.hero-media-about .blob-highlight {
    width: 56%;
    right: -2%;
    top: -4%;
}

.hero-media-about .site-photo {
    inset: 4% 10% 0 0;
}

.hero-media-about .certification-badge {
    right: 0;
    bottom: 40px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 16px 16px;
    border-radius: 20px;
    background: var(--site-white);
    box-shadow: var(--site-shadow-card);
}

.floating-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--site-ink);
    color: var(--site-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.floating-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
}

.floating-card-label {
    font-size: 13px;
    color: var(--site-ink-soft);
}

.certification-badge {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 22px;
    border-radius: 22px;
    background: var(--site-ink);
    color: var(--site-white);
}

.certification-badge span {
    font-size: 13px;
    color: var(--site-mint-on-dark);
}

.certification-badge strong {
    font-family: var(--site-font-heading);
    font-size: 22px;
    font-weight: 800;
}

/* ---------- Tones ---------- */

.tone-peach {
    background: var(--site-peach);
    color: var(--site-brick);
}

.tone-butter {
    background: var(--site-butter);
    color: var(--site-ochre);
}

.tone-mint {
    background: var(--site-mint);
    color: var(--site-green);
}

.tone-sand {
    background: var(--site-sand);
    color: var(--site-ink-soft);
}

/* ---------- Majolica ---------- */

.majolica-strip,
.majolica-disc {
    line-height: 0;
}

.majolica-ground {
    fill: var(--site-ink);
}

.majolica-petal {
    fill: var(--site-highlight);
}

.majolica-heart {
    fill: var(--site-accent);
}

.majolica-corner,
.majolica-corner-light {
    fill: var(--site-white);
}

.majolica-strip.corners-sand .majolica-corner {
    fill: var(--site-sand);
}

.majolica-disc {
    position: absolute;
    width: 360px;
    height: 360px;
    right: -110px;
    top: -130px;
    opacity: 0.2;
    pointer-events: none;
}

/* ---------- Cards ---------- */

.icon-tile {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.icon-tile-small {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.icon-round {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 32px 32px;
    border-radius: var(--site-radius-card);
    background: var(--site-white);
}

.service-card h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.service-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.service-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--site-sand-line);
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.check-list li {
    display: flex;
    gap: 10px;
}

.check-list svg {
    flex: none;
    margin-top: 2px;
}

.check-list-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 14px 24px;
    font-size: 16px;
}

.tick-brick svg {
    color: var(--site-brick);
}

.tick-ochre svg {
    color: var(--site-ochre);
}

.tick-green svg {
    color: var(--site-green);
}

.approach-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px;
    border-radius: var(--site-radius-card);
}

.approach-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.approach-card.is-not-mine {
    background: var(--site-sand);
    color: var(--site-ink-soft);
}

.approach-card.is-mine {
    background: var(--site-mint);
    color: var(--site-ink);
}

.approach-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.approach-card.is-mine .approach-label {
    color: var(--site-green);
}

.approach-card p.approach-quote {
    font-family: var(--site-font-heading);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
}

.white-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 36px 32px;
    border-radius: var(--site-radius-card);
    background: var(--site-white);
}

.white-card-compact {
    gap: 14px;
    padding: 32px 28px;
}

.white-card h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.white-card-compact h3 {
    font-size: 21px;
}

.white-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.white-card-compact p {
    font-size: 15px;
}

.tag {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.outline-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 24px;
    border: 1.5px solid var(--site-sand-line);
}

.outline-card h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.outline-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

/* ---------- Split sections ---------- */

.split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px 72px;
}

.split-top {
    align-items: flex-start;
    gap: 32px 72px;
}

.split-copy {
    flex: 1 1 460px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.split-aside {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.split > ul,
.split > ol,
.split > .story {
    flex: 2 1 520px;
    min-width: 0;
}

.split-wide-copy {
    gap: 40px 80px;
}

.split-wide-copy .split-aside {
    flex-basis: 280px;
    gap: 16px;
}

.split-home-about {
    padding-bottom: var(--site-section-space);
}

.split-media {
    position: relative;
    flex: 1 1 360px;
    min-width: 0;
}

.media-about-home {
    height: clamp(360px, 34vw, 460px);
}

.media-about-home .site-photo {
    inset: 0 10% 0 0;
}

.media-about-home .certification-badge {
    right: 0;
    bottom: 32px;
}

/* ---------- Bands ---------- */

.band-wrap {
    padding-left: var(--site-band-gutter);
    padding-right: var(--site-band-gutter);
}

.band-wrap-spaced {
    padding-top: var(--site-section-space-tight);
}

.band-wrap-last {
    padding-bottom: 0;
}

.band {
    position: relative;
    max-width: var(--site-band-width);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 80px);
    border-radius: var(--site-radius-band);
    overflow: hidden;
}

.band-dark {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
    background: var(--site-ink);
    color: var(--site-white);
}

.band-accent {
    background: var(--site-accent);
    color: var(--site-ink);
}

.band-split,
.band-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px 64px;
}

.band-split {
    gap: 32px 72px;
}

.band-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.band-copy {
    position: relative;
    flex: 1 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.band-split .band-copy {
    gap: 20px;
}

.band-split .actions {
    position: relative;
}

.band-text {
    margin: 0;
    max-width: 560px;
    font-size: 18px;
    line-height: 1.6;
}

.band-dark .band-text {
    max-width: 620px;
    line-height: 1.65;
    color: var(--site-mint-on-dark);
}

.band-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 64px;
    padding-left: clamp(20px, 5vw, 72px);
    padding-right: clamp(20px, 5vw, 72px);
}

.band-contact .band-copy {
    flex: 1 1 400px;
    gap: 24px;
}

.band-contact .band-text {
    max-width: 520px;
}

.band-contact .btn {
    align-self: flex-start;
}

/* ---------- Reviews ---------- */

.review {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border-radius: var(--site-radius-card);
}

.review blockquote {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--site-ink);
}

.review-mark {
    height: 32px;
    font-family: var(--site-font-heading);
    font-size: 72px;
    line-height: 0.6;
}

.review figcaption {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 15px;
    color: var(--site-ink);
}

.review figcaption span {
    color: var(--site-ink-soft);
}

/* ---------- FAQ ---------- */

.faq-links {
    flex: 2 1 520px;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-links li {
    border-top: 1.5px solid var(--site-sand-strong);
}

.faq-links li:nth-last-child(2) {
    border-bottom: 1.5px solid var(--site-sand-strong);
}

.faq-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.faq-links svg {
    flex: none;
}

.faq-links li.faq-links-all {
    padding-top: 20px;
    border: 0;
}

.faq-links li.faq-links-all a {
    display: inline-flex;
    padding: 6px 0;
    font-size: 16px;
    text-decoration: underline;
}

.page-head {
    padding-top: clamp(32px, 5vw, 56px);
    padding-bottom: clamp(48px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-head .lead {
    max-width: 620px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--site-ink-soft);
}

.breadcrumb a {
    color: var(--site-ink-soft);
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.topic-links a {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--site-white);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.faq-layout {
    padding-top: clamp(56px, 7vw, 96px);
    padding-bottom: clamp(56px, 7vw, 96px);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 72px;
}

.faq-groups {
    flex: 999 1 600px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-margin-top: 24px;
}

.faq-group-title {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 800;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: none;
}

.dot-accent {
    background: var(--site-accent);
}

.dot-highlight {
    background: var(--site-highlight);
}

.dot-green {
    background: var(--site-green);
}

.faq-item {
    border-top: 1.5px solid var(--site-sand-strong);
}

.faq-item:last-child {
    border-bottom: 1.5px solid var(--site-sand-strong);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    list-style: none;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

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

.faq-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--site-chip);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 0;
    padding: 0 56px 22px 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--site-ink-soft);
}

.faq-aside {
    flex: 1 1 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dark-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    border-radius: 32px;
    background: var(--site-ink);
    color: var(--site-white);
}

.dark-card h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.dark-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--site-mint-on-dark);
}

.dark-card-link,
.dark-card-link:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--site-white);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.mint-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 32px;
    border-radius: 32px;
    background: var(--site-mint);
    font-size: 17px;
}

.mint-card a {
    padding: 4px 0;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- Contacts and forms ---------- */

.contact-lines {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
}

.contact-lines li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-lines a {
    text-decoration: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(22, 56, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.form-card {
    flex: 1 1 480px;
    min-width: 0;
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: 32px;
    background: var(--site-white);
    box-shadow: 0 20px 48px rgba(22, 56, 40, 0.14);
}

.form-card-large {
    flex: 999 1 560px;
    padding: clamp(24px, 4vw, 48px);
    box-shadow: none;
}

.site-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-form-spacious {
    gap: 40px;
}

.site-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.site-form legend {
    margin-bottom: 16px;
    padding: 0;
    font-size: 24px;
    font-weight: 700;
}

.form-alert {
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--site-peach);
    color: var(--site-brick);
    font-weight: 700;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px 20px;
}

.form-card:not(.form-card-large) .field-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 16px 18px;
}

.field-grid-narrow {
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}

.field-grid + .field {
    margin-top: 16px;
}

.form-card:not(.form-card-large) .field-grid + .field {
    margin-top: 0;
}

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

.field label {
    font-size: 15px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--site-field-line);
    border-radius: 14px;
    background: var(--site-white);
    color: var(--site-ink);
    font-family: inherit;
    font-size: 16px;
}

.field select {
    padding: 0 14px;
}

.field textarea {
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--site-ink);
    box-shadow: var(--site-focus-ring);
}

.field .invalid {
    border-color: var(--site-brick);
}

.field-hint {
    font-size: 13px;
    color: var(--site-ink-soft);
}

.validation-message {
    font-size: 14px;
    font-weight: 700;
    color: var(--site-brick);
}

.required {
    color: var(--site-brick);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--site-ink);
}

.consent label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--site-ink-soft);
}

.form-card-large .consent label {
    font-size: 15px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 4px;
}

.form-note {
    font-size: 13px;
    color: var(--site-ink-soft);
}

.form-card-large .form-note {
    font-size: 14px;
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--site-sand-line);
}

.form-sent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 0;
}

.form-sent h3 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 800;
}

.form-sent p {
    margin: 0;
    max-width: 520px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.form-sent form {
    margin: 0;
}

.form-sent-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--site-highlight);
    color: var(--site-ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-sent-icon-large {
    width: 72px;
    height: 72px;
}

/* ---------- Booking ---------- */

.page-book {
    padding-top: clamp(40px, 6vw, 72px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.book-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 12px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 104px;
    padding: 18px 20px;
    border: 2px solid var(--site-choice-line);
    border-radius: 20px;
    cursor: pointer;
}

/* The colour of the card shows only once chosen: the tone class sets it, white until then. */
.choice-card:not(:has(input:checked)) {
    background: var(--site-white);
}

.choice-card:has(input:checked) {
    border-color: var(--site-ink);
}

.choice-card:has(input:focus-visible) {
    outline: 3px solid var(--site-ink);
    outline-offset: 3px;
}

.choice-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.choice-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--site-ink);
}

.choice-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--site-field-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.choice-card-check svg {
    visibility: hidden;
}

.choice-card:has(input:checked) .choice-card-check {
    border-color: var(--site-ink);
    background: var(--site-ink);
    color: var(--site-white);
}

.choice-card:has(input:checked) .choice-card-check svg {
    visibility: visible;
}

.choice-card-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--site-ink-soft);
}

/*
  The dates matter for dog sitting and boarding only, and their words change with the service. CSS
  shows the right ones from the chosen radio button; a browser without :has shows both sets of dates.
*/
.site-form:has(input[type="radio"][value="Education"]:checked) .book-dates,
.site-form:has(input[type="radio"][value="Boarding"]:checked) .when-sitting,
.site-form:has(input[type="radio"][value="DogSitting"]:checked) .when-boarding {
    display: none;
}

.book-aside {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.book-aside .dark-card {
    gap: 24px;
    padding: 36px 32px;
}

.next-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.next-steps li {
    display: flex;
    gap: 16px;
}

.next-step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 17px;
}

.next-step-text span {
    font-size: 15px;
    line-height: 1.55;
    color: var(--site-mint-on-dark);
}

.direct-contacts {
    gap: 16px;
    padding: 32px;
    border-radius: 32px;
}

.direct-contacts h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.direct-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- How I work ---------- */

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips li {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--site-ink);
}

.why-visual {
    position: relative;
    flex: 1 1 400px;
    min-width: 0;
    height: clamp(340px, 32vw, 440px);
    border-radius: 40px;
    background: var(--site-mint);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-visual .blob-highlight {
    width: 260px;
    right: -60px;
    top: -70px;
}

.why-visual .blob-peach {
    width: 120px;
    left: 40px;
    bottom: -30px;
}

.why-visual-word {
    position: relative;
    font-family: var(--site-font-heading);
    font-size: clamp(88px, 10vw, 150px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.why-visual-tag {
    position: absolute;
    left: 32px;
    top: 28px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--site-white);
    font-size: 14px;
    font-weight: 700;
}

.table-box {
    overflow-x: auto;
    border-radius: var(--site-radius-card);
    background: var(--site-white);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

.compare-table thead th {
    padding: 22px 28px;
    border-bottom: 1.5px solid var(--site-sand-line);
    font-family: var(--site-font-body);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-ink-soft);
}

.compare-table thead th:first-child {
    width: 24%;
}

.compare-table thead th:nth-child(2) {
    width: 36%;
}

.compare-table thead th.is-mine {
    background: var(--site-mint);
    color: var(--site-green);
}

.compare-table tbody th,
.compare-table tbody td {
    padding: 24px 28px;
    vertical-align: top;
    border-bottom: 1px solid var(--site-header-line);
}

.compare-table tbody tr:last-child > * {
    border-bottom: 0;
}

.compare-table tbody th {
    font-family: var(--site-font-heading);
    font-size: 19px;
    font-weight: 700;
}

.compare-table tbody td {
    color: var(--site-ink-soft);
}

.compare-table tbody td.is-mine {
    background: var(--site-mint-soft);
    border-bottom-color: var(--site-mint-line);
    color: var(--site-ink);
}

.numbered-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px 32px;
}

.numbered-steps > * {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 2px solid var(--site-ink);
}

.numbered-steps h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.numbered-steps p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.numbered-step-number {
    font-family: var(--site-font-heading);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--site-brick);
}

.numbered-step-note {
    font-size: 14px;
    font-weight: 700;
    color: var(--site-green);
}

.place-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    border: 1.5px solid var(--site-sand-line);
}

.place-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.place-card-text strong {
    font-size: 18px;
}

.place-card-text span {
    font-size: 15px;
    line-height: 1.55;
    color: var(--site-ink-soft);
}

/* ---------- Boarding ---------- */

.round-steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.round-steps li {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.round-steps h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.round-steps p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--site-mint-on-dark);
}

.round-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--site-highlight);
    color: var(--site-ink);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.round-step-number-small {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

.day-cards {
    list-style: none;
    margin: 0;
    padding: 0;
}

.day-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 24px;
}

.day-card h3 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--site-ink);
}

.day-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.day-card-time {
    font-size: 14px;
    font-weight: 700;
}

.requirements {
    flex: 1 1 340px;
    min-width: 0;
    gap: 14px;
    padding: 32px;
}

.requirements h3 {
    font-size: 22px;
}

.requirements p {
    font-size: 15px;
}

.requirements ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.5;
}

/* ---------- About ---------- */

.story {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--site-ink-soft);
}

.story p {
    margin: 0;
}

.story blockquote {
    margin: 8px 0;
    padding: 28px 32px;
    border-radius: var(--site-radius-card);
    background: var(--site-white);
    font-family: var(--site-font-heading);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--site-ink);
}

.name-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px 64px;
    padding: clamp(36px, 5vw, 64px);
    border-radius: 40px;
    background: var(--site-mint);
    overflow: hidden;
}

.name-card h2 {
    position: relative;
    flex: 1 1 280px;
    font-size: clamp(32px, 3.6vw, 46px);
}

.name-card p {
    position: relative;
    flex: 2 1 460px;
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
}

.name-card-blob {
    position: absolute;
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -80px;
    border-radius: 50%;
    background: var(--site-highlight);
    opacity: 0.8;
}

.training-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.training-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 24px 28px;
    border-radius: 24px;
    background: var(--site-white);
}

.training-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.training-text strong {
    font-size: 19px;
}

.training-text span {
    font-size: 15px;
    color: var(--site-ink-soft);
}

.training-year {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

/* ---------- Legal and messages ---------- */

.legal {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-left: auto;
    margin-right: auto;
}

.legal section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-margin-top: 24px;
}

.legal h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.1;
}

.legal p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--site-ink-soft);
}

.legal p.legal-updated {
    font-size: 14px;
}

.page-message {
    padding-top: clamp(64px, 10vw, 128px);
    padding-bottom: clamp(64px, 10vw, 128px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.page-message p {
    margin: 0;
}

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

.site-footer-wrap {
    background: var(--site-white);
}

.site-footer {
    max-width: var(--site-content-width);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 88px) var(--site-gutter) 40px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.site-footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 64px;
}

.site-footer-about {
    flex: 1 1 280px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer-about p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--site-ink-soft);
}

.site-brand-footer .site-brand-mark {
    width: 40px;
    height: 40px;
}

/* The logo chosen in the back-office, in place of the paw: as high as the circle, as wide as it needs. */
.site-brand-logo {
    display: block;
    flex-shrink: 0;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-brand-footer .site-brand-logo {
    height: 40px;
}

.site-brand-footer .site-brand-name {
    font-size: 24px;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}

.site-footer-links a {
    text-decoration: none;
}

.site-footer-title {
    margin-bottom: 4px;
    font-weight: 700;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 24px;
    border-top: 1px solid var(--site-sand-line);
    font-size: 14px;
    color: var(--site-ink-soft);
}

.site-footer-legal-links {
    display: flex;
    gap: 20px;
}

.site-footer-legal-links a {
    color: var(--site-ink-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
    .site-menu {
        order: 3;
        width: 100%;
        gap: 4px 20px;
    }

    .site-nav-end {
        gap: 10px;
    }

    .hero-pill {
        right: 0;
    }

    .faq-item p {
        padding-right: 0;
    }
}
