/* Inner pages and tips. Loads after site.css (tokens, bar, footer, buttons). Same motif: pictures, bullets and tags
   are circles; everything else is square. */
h1 { font-size: var(--step-display); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: var(--step-head); }
p + p, p + ul, ul + p { margin-top: 1em; }
h2 + p, h2 + ul, h2 + .area-list { margin-top: 24px; }

.container { padding: 0 var(--m); }
.section { padding: clamp(72px, 9vw, 136px) 0 0; }
.section--alt, .section--sage { margin-top: clamp(72px, 9vw, 136px); padding: clamp(56px, 7vw, 112px) 0; }
.section--alt { background: var(--ground-2); }
.section--sage { background: var(--sage-deep); color: var(--pale); }
.section--sage h2 { color: var(--pale); }
.section--alt + .section, .section--sage + .section { padding-top: clamp(56px, 7vw, 112px); }
.section__intro { max-width: 40em; margin-bottom: 48px; }
.section__intro h2 + p { margin-top: 24px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* Page header: the title, with the page's picture as a cropped tag on the right */
.page-header { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 96px) 0 clamp(56px, 7vw, 112px); }
.page-header .container { position: relative; }
.page-header h1 { max-width: 11em; }
.page-header p { margin-top: 32px; max-width: 30em; font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.01em; }
.page-header[style*="--pic"] h1, .page-header[style*="--pic"] p { max-width: min(30em, 52vw); }
.page-header[style*="--pic"]::after { content: ""; position: absolute; right: calc(var(--m) * -1 - 6vw); top: 50%; width: min(44vw, 620px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: var(--sage) var(--pic) center / cover; animation: shutter 1s var(--ease) both; }
.breadcrumbs { font-size: var(--step-small); margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 8px; vertical-align: middle; }

/* Two-up grid */
.grid { display: grid; gap: 56px 64px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Pictures: always a circle */
.disc { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sage-4); display: flex; align-items: center; justify-content: center; }
.disc > img, .disc > iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.disc > svg { width: 62%; height: 62%; }
.disc--pale { background: var(--pale); }
.disc--ground { background: var(--ground-2); }
.disc .pair { display: flex; width: 78%; }
.disc .pair svg { width: 55%; }
.disc .pair svg + svg { margin-left: -10%; }
figcaption { margin-top: 16px; font-size: var(--step-small); color: var(--ink-soft); text-align: center; }

/* Service detail blocks */
.service { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; padding: 56px 0; scroll-margin-top: 24px; }
.service__media { grid-column: 1 / 6; }
.service > div:last-child { grid-column: 7 / 13; }
.service:nth-child(even) .service__media { grid-column: 8 / 13; order: 2; }
.service:nth-child(even) > div:last-child { grid-column: 1 / 7; }
.service h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); margin-bottom: 20px; }
.service ul, .article ul { display: grid; gap: 10px; margin: 20px 0; }
.service li, .article li { display: flex; gap: 12px; }
.service li::before, .article li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 50%; background: var(--sage); }
.price { font-weight: 600; color: var(--sage-2); margin-bottom: 20px; }

/* Trust list on deep sage */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 40px 32px; }
.trust li { display: grid; gap: 14px; align-content: start; }
.trust strong { display: block; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; color: #fff; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--sage-3); }

/* Areas list with tag-dot bullets */
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin-top: 40px; }
.area-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.area-list li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sage); }

/* The closing tile */
.cta-band { background: var(--sage-deep); color: var(--pale); padding: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.cta-band h2 { color: var(--pale); }
.cta-band p { margin-top: 12px; }

/* Contact */
.card { background: var(--ground-2); padding: clamp(28px, 3vw, 48px); }
.card h2, .contact h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); margin-bottom: 32px; }
.form { display: grid; gap: 20px; }
.form label { display: block; font-weight: 600; margin-bottom: 8px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid transparent; border-radius: 0; background: var(--ground); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sage-deep); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form small { font-size: var(--step-small); color: var(--ink-soft); }
.form-status { margin: 0; padding: 14px 16px; background: var(--ground); border-left: 4px solid var(--sage-deep); font-weight: 600; }
.contact-list { display: grid; gap: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: .4em; border-radius: 50%; background: var(--sage); }
.contact .disc { width: min(100%, 360px); margin-top: 56px; }

/* Tips: an index of tags, then readable articles */
.tips-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.tips-list a { text-decoration: none; display: block; }
.tips-list h2 { font-size: 1.625rem; margin-top: 24px; letter-spacing: -0.02em; }
.tips-list a:hover h2 { text-decoration: underline; }
.tips-list p { margin-top: 10px; }
.tips-list .disc img { transition: transform .8s var(--ease); }
.tips-list a:hover .disc img { transform: scale(1.04); }
.article { max-width: 42em; }
.article h2 { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); margin: 64px 0 20px; }
.article h2 + p, .article h2 + ul { margin-top: 0; }
.article h3 { margin: 32px 0 8px; font-size: 1.25rem; font-weight: 600; }
.article .byline { font-weight: 600; color: var(--sage-2); }
.article aside { background: var(--ground-2); padding: 28px 32px; margin: 40px 0; }

/* 404 */
.lost { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: center; padding: clamp(40px, 6vw, 96px) 0 0; }
.lost__text { grid-column: 1 / 7; }
.lost__text p { margin-top: 24px; font-size: var(--step-lead); line-height: 1.25; }
.lost__text .actions { margin-top: 40px; }
.lost .disc { grid-column: 8 / 13; }
.lost .disc svg { animation: snooze 4s ease-in-out infinite; }
@keyframes snooze { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-2%); } }

@keyframes shutter { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 860px) {
  .page-header[style*="--pic"] { padding-top: 0; }
  .page-header[style*="--pic"]::after { position: relative; display: block; right: auto; top: auto; transform: none; width: 72vw; margin: 0 0 40px auto; margin-right: calc(var(--m) * -1); order: -1; }
  .page-header[style*="--pic"] { display: flex; flex-direction: column; }
  .page-header[style*="--pic"] h1, .page-header[style*="--pic"] p { max-width: none; }
  h1 { font-size: 11vw; }
  .grid--2, .grid--3, .tips-list, .trust, .cta-band, .form-row { grid-template-columns: minmax(0, 1fr); }
  .service, .lost { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .service__media, .service > div:last-child, .service:nth-child(even) .service__media, .service:nth-child(even) > div:last-child, .lost__text, .lost .disc { grid-column: 1 / -1; order: 0; }
  .service__media { width: 78%; }
  .area-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-header[style*="--pic"]::after, .lost .disc svg { animation: none; }
}

/* Gallery: a grid of photos; tap one to open it in the lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--ground-2); }
.gallery li:nth-child(4n+2) a { border-radius: 50%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery__more { margin-top: 40px; }
.lightbox { border: 0; padding: 0; max-width: min(92vw, 1100px); max-height: 92vh; background: var(--ground); color: var(--ink); }
.lightbox::backdrop { background: rgba(47, 46, 27, .82); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox__cap { padding: 14px 20px; font-size: var(--step-small); }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ground); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }
