/* Aurelle design tokens — the CMS Colours and Fonts tabs map onto these custom properties.
   An off-white page with a large white rounded canvas, terracotta + peach accents,
   Cormorant Garamond headlines and DM Sans text. */
:root {
  --color-primary: #d9875b;          /* terracotta — accent words, knobs, links */
  --color-primary-dark: #bf6c40;
  --color-primary-soft: #f1c6ab;     /* the thin peach curves */
  --color-blush: #f9e7dc;            /* soft peach tint (cards, chips) */
  --color-blush-soft: #fdf4ee;       /* palest peach (section washes) */
  --color-secondary: #221c1a;        /* ink — headlines, dark pill buttons */
  --color-secondary-light: #3a312d;
  --color-default: #5a504b;          /* body text */
  --color-muted: #978b84;
  --color-line: #f0e4dc;
  --color-canvas: #f1edea;           /* the page behind the canvas */
  --color-paper: #fdfcfb;            /* the canvas itself */
  --color-white: #ffffff;
  --font-default: 'DM Sans', system-ui, sans-serif;
  --font-primary: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --radius: 26px;
  --radius-sm: 16px;
  --radius-canvas: 40px;
  --section-max-width: 78rem;
  --header-h: 92px;
  --section-pad-y: 104px;
  --base-size: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* html sets its own overflow so body's "overflow: clip" (below, for the rounded
   canvas) stays on body — otherwise browsers hand body's overflow to the
   viewport and the page can't scroll at all */
html { font-size: var(--base-size); scroll-behavior: smooth; background: var(--color-canvas); overflow-x: hidden; overflow-y: auto; }
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--color-primary); color: #fff; }

/* the white rounded canvas every page sits on (as in the design) — drawn on
   <body> itself, so it holds however the CMS assembles the page's blocks */
body { margin: 18px; min-height: calc(100vh - 36px); border-radius: var(--radius-canvas); background: var(--color-paper); overflow: clip; position: relative;
  box-shadow: 0 30px 80px -60px color-mix(in srgb, var(--color-secondary) 45%, transparent); }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 40px; }
section { padding: var(--section-pad-y) 0; position: relative; }
section, footer { overflow-x: clip; }
section.soft { background: var(--color-blush-soft); }
section.dark { background: var(--color-secondary); color: color-mix(in srgb, #fff 78%, transparent); }
section.dark h2, section.dark h3 { color: #fff; }

/* the accent words in a headline — terracotta serif */
.hl { color: var(--color-primary); font-style: italic; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; }

/* ── Buttons: a dark pill, with its round arrow button set just beside it ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-secondary); color: #fff; font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--color-secondary) 70%, transparent); }
/* pill + separate circle: the link is a transparent wrapper, .lbl the pill, .knob the circle */
.btn:has(> .knob) { padding: 0; gap: 4px; background: transparent; color: #fff; }
.btn:has(> .knob):hover { box-shadow: none; }
.btn > .lbl { display: inline-flex; align-items: center; height: 46px; padding: 0 1.55rem; border-radius: 999px; background: var(--color-secondary); transition: background .3s ease; }
.btn .knob { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-secondary); color: #fff;
  transition: transform .35s var(--ease), background .3s ease; }
.btn .knob svg { width: 18px; height: 18px; }
.btn:hover .knob { transform: rotate(45deg); background: var(--color-primary); }
.btn.light > .lbl, .btn.light .knob { background: #fff; color: var(--color-secondary); }
.btn.light:not(:has(> .knob)) { background: #fff; color: var(--color-secondary); }
.btn.light:hover .knob { background: var(--color-primary); color: #fff; }
.btn.accent { background: var(--color-primary); color: #fff; }
.btn.accent:hover { background: var(--color-primary-dark); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--color-primary) 80%, transparent); }
.btn.accent > .lbl, .btn.accent .knob { background: var(--color-primary); }
.btn.plain { padding: .95rem 1.7rem; }
.btn.ghost { background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1.5px var(--color-line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--color-secondary); }
.btn[disabled] { opacity: .6; pointer-events: none; }
/* the small round arrow badge on cards */
.arrow-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--color-secondary);
  box-shadow: inset 0 0 0 1.5px var(--color-secondary); transition: transform .35s var(--ease), background .25s ease, color .25s ease; }
.arrow-badge svg { width: 16px; height: 16px; }
a:hover .arrow-badge { transform: rotate(45deg); background: var(--color-primary); color: #fff; box-shadow: none; }
/* text link with a long arrow */
.arrow-link { display: inline-flex; align-items: center; gap: .7rem; font-weight: 500; color: var(--color-secondary); }
.arrow-link svg { width: 30px; height: 18px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }
.arrow-link:hover { color: var(--color-primary); }

/* ── Section heads: small terracotta chip, serif headline with italic accent ── */
.chip { display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary); }
.chip::before { content: ''; width: 28px; height: 1px; background: currentColor; }
section.dark .chip { color: var(--color-primary-soft); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin-top: .7rem; }
.section-head p { margin-top: 1rem; font-size: 1.04rem; max-width: 58ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .chip::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.section-head.split p { margin-top: 0; }

/* rounded photo tiles */
.tile { border-radius: var(--radius); overflow: hidden; background: var(--color-blush); }
.tile img { width: 100%; height: 100%; object-fit: cover; }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 500; font-size: .82rem; color: var(--color-secondary); margin-bottom: .35rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--color-line); border-radius: 14px; padding: .8rem 1rem; color: var(--color-secondary);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.form-grid ::placeholder { color: color-mix(in srgb, var(--color-muted) 75%, #fff); }
.field-err { color: #c0362c; font-size: .82rem; margin-top: .35rem; }
.form-note { font-size: .82rem; color: var(--color-muted); }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, #2e9e62 12%, #fff); color: #1d6b41; }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #a12e24; font-size: .9rem; }

/* a tick list, the tick drawn in CSS so it follows the theme colours */
.tick-list { list-style: none; display: grid; gap: .65rem; }
.tick-list li { position: relative; padding-left: 1.9rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-blush); }
.tick-list li::after { content: ''; position: absolute; left: .42rem; top: .45em; width: .32rem; height: .56rem; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* rating stars */
.stars { display: inline-flex; gap: 2px; color: var(--color-primary); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Logo: serif wordmark, the first letter in terracotta ── */
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.9rem/1 var(--font-heading); color: var(--color-secondary); letter-spacing: -.01em; }
.logo img { max-height: 46px; width: auto; }
.logo .wordmark { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1; min-width: 0; }
.logo .wl { display: block; }
.logo .wl:first-child::first-letter { color: var(--color-primary); font-style: italic; }
.logo .sub { display: block; margin-top: .35em; font: 500 .36em var(--font-primary); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.logo { min-width: 0; }
.logo img { max-width: min(46vw, 240px); object-fit: contain; }

/* ══ Motion: section-enter animations (plugins/motion.client.ts) ══
   Hidden states apply only while html.hg-motion is set and the section has not
   entered the frame yet; --i staggers siblings, --d adds a fixed delay. */
.hg-motion [data-anim] {
  transition:
    opacity .8s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    transform 1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    filter .9s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    clip-path 1.1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.hg-motion section:not(.hg-inview) [data-anim], .hg-motion footer:not(.hg-inview) [data-anim] { opacity: 0; }
.hg-motion section:not(.hg-inview) [data-anim="up"], .hg-motion footer:not(.hg-inview) [data-anim="up"] { transform: translateY(42px); }
.hg-motion section:not(.hg-inview) [data-anim="down"] { transform: translateY(-34px); }
.hg-motion section:not(.hg-inview) [data-anim="left"] { transform: translateX(60px); }
.hg-motion section:not(.hg-inview) [data-anim="right"] { transform: translateX(-60px); }
.hg-motion section:not(.hg-inview) [data-anim="zoom"] { transform: scale(.88); }
.hg-motion section:not(.hg-inview) [data-anim="blur"] { filter: blur(14px); transform: scale(1.04); }
.hg-motion section:not(.hg-inview) [data-anim="pop"] { transform: translateY(18px) scale(.8); }
/* headings rise out of a mask */
.hg-motion section:not(.hg-inview) [data-anim="rise"] { clip-path: inset(0 0 100% 0); transform: translateY(40%); }
.hg-motion section.hg-inview [data-anim="rise"] { clip-path: inset(-10% -5% -20% -5%); }
/* photos unveil with a wipe while settling from a slight zoom */
.hg-motion section:not(.hg-inview) [data-anim="clip"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius)); }
.hg-motion section.hg-inview [data-anim="clip"] { clip-path: inset(0 0 0 0 round var(--radius)); }
.hg-motion [data-anim="clip"] img { transition: transform 1.6s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.hg-motion section:not(.hg-inview) [data-anim="clip"] img { transform: scale(1.18); }
/* lines draw from left to right */
.hg-motion section:not(.hg-inview) [data-anim="draw"] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.hg-motion [data-anim="draw"] { transition-duration: 1.4s; }
/* the peach curves trace themselves in */
.curves path { stroke-dasharray: 4200; stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) .2s; }
.hg-motion section:not(.hg-inview) .curves path { stroke-dashoffset: 4200; }

/* gentle idle float */
@keyframes au-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: au-float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -2s; }
.float.late { animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .curves path { transition: none; }
}
@media (max-width: 900px) {
  .section-head.split { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  :root { --radius-canvas: 26px; }
  body { margin: 8px; min-height: calc(100vh - 16px); }
  .container { padding: 0 20px; }
}
@media (max-width: 640px) {
  :root { --section-pad-y: 72px; --radius: 22px; --header-h: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
}
