/*
 * Direction 1: TIDE
 * Bright, fresh and friendly. The brand blue and green from the logo, turned up, with the logo's
 * circle as the recurring shape: circular photo masks, drifting orbs, round badges.
 * Type: Outfit (display) + DM Sans (body).
 */

[data-design='tide'] {
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --bg: #f3fafb;
  --bg-2: #e1f3f6;
  --surface: #ffffff;
  --fg: #0b2a36;
  --accent: #00a7d9;
  --accent-fg: #03202b;
  --accent-text: #00779c;
  --accent-2: #5abc68;
  --accent-2-text: #2c7a3a;
  --accent-soft: #d3eef6;
  --green-soft: #dcf2df;
  --sun: #ffd166;
  --inverse-bg: #0b2a36;
  --inverse-fg: #eaf7fa;
  --footer-bg: #082029;
  --footer-fg: #dcecf0;

  --radius-ui: 999px;
  --radius-card: 28px;
  --radius-field: 14px;
  --header-h: 104px;
}

[data-design='tide'][data-theme='dark'] {
  --bg: #06191f;
  --bg-2: #0a242d;
  --surface: #0f2e39;
  --fg: #e6f5f8;
  --accent: #2cc0ee;
  --accent-fg: #03161c;
  --accent-text: #62d2f4;
  --accent-2: #6fd07d;
  --accent-2-text: #8be098;
  --accent-soft: #113746;
  --green-soft: #123a26;
  --sun: #f2c14e;
  --inverse-bg: #0e3644;
  --inverse-fg: #eaf7fa;
  --footer-bg: #041217;
  --footer-fg: #cfe3e8;
}

@media (max-width: 520px) { [data-design='tide'] { --header-h: 84px; } }

[data-design='tide'] h1,
[data-design='tide'] h2,
[data-design='tide'] h3 { font-weight: 600; }

/* ---------- Header: a floating pill ---------- */

[data-design='tide'] .site-header { padding-top: 12px; }
[data-design='tide'] .site-header.is-hidden { transform: translateY(-110%); }
[data-design='tide'] .site-header__inner {
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px clamp(26px, 3.4vw, 52px);
  transition: padding .45s var(--ease), box-shadow .3s, background-color .3s;
  box-shadow: 0 10px 40px -22px color-mix(in oklab, var(--fg) 45%, transparent);
}
[data-design='tide'] .site-header { align-items: flex-start; }
[data-design='tide'] .logo-svg { height: 68px; transition: height .45s var(--ease); }
[data-design='tide'] .site-header.is-scrolled .site-header__inner { padding-block: 6px; }
[data-design='tide'] .site-header.is-scrolled .logo-svg { height: 42px; }
@media (max-width: 520px) {
  [data-design='tide'] .site-header__inner { padding-left: 20px; }
  [data-design='tide'] .logo-svg { height: 52px; }
  [data-design='tide'] .site-header.is-scrolled .logo-svg { height: 38px; }
}
[data-design='tide'] .site-nav a { border-radius: 999px; }
[data-design='tide'] .site-nav .menu > li > a:hover { background: var(--accent-soft); color: var(--fg); }
[data-design='tide'] .site-nav .sub-menu { border-radius: 24px; top: calc(100% + 10px); }
[data-design='tide'] .site-nav .sub-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
[data-design='tide'] .site-nav .sub-menu a { border-radius: 14px; }
[data-design='tide'] .theme-toggle, [data-design='tide'] .menu-toggle { background: var(--surface); }
[data-design='tide'] .btn--primary { box-shadow: 0 10px 24px -12px var(--accent); }
[data-design='tide'] .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }

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

.t-hero { position: relative; padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 72px); overflow: hidden; }
.t-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.t-hero__text { min-width: 0; display: grid; gap: 22px; justify-items: start; }
.t-hero__title { margin: 0; }
.t-hero__eyebrow { display: block; font-family: var(--font-body); }
.t-hero__headline { display: block; font-size: clamp(2.9rem, 1.2rem + 6.6vw, 6.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 600; }
.t-hero__lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--fg-muted); max-width: 32rem; margin: 0; }
.t-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.t-hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: end; }
.t-hero__circle {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  background: var(--accent-2); box-shadow: 0 40px 80px -40px color-mix(in oklab, var(--accent-2) 80%, transparent);
}
.t-hero__circle img { width: 100%; height: 100%; object-fit: cover; }
.t-hero__bubble { position: absolute; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); background: var(--accent-soft); }
.t-hero__bubble img { width: 100%; height: 100%; object-fit: cover; }
.t-hero__bubble--1 { width: 30%; aspect-ratio: 1; left: -4%; bottom: 6%; }
.t-hero__bubble--2 { width: 22%; aspect-ratio: 1; right: 0; top: 2%; }
.t-orb { position: absolute; border-radius: 50%; }
.t-orb--green { width: 34%; aspect-ratio: 1; right: -8%; bottom: -4%; background: var(--accent-2); opacity: .9; }
.t-orb--blue { width: 18%; aspect-ratio: 1; left: 8%; top: 0; background: var(--accent); }
.t-orb--sun { width: 9%; aspect-ratio: 1; left: 30%; bottom: -2%; background: var(--sun); }

.t-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 56px); }
.t-chips a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: background-color .25s, color .25s, transform .35s var(--ease), border-color .25s;
}
.t-chips a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); transition: transform .35s var(--ease); }
.t-chips li:nth-child(even) a::before { background: var(--accent); }
.t-chips a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-3px); }
.t-chips a:hover::before { transform: scale(1.5); }

@media (max-width: 900px) {
  .t-hero__grid { grid-template-columns: 1fr; }
  .t-hero__art { justify-self: center; max-width: 440px; order: -1; }
}

/* ---------- Statement ---------- */

.t-statement { padding-block: clamp(48px, 7vw, 104px); }
.t-statement__text {
  font-family: var(--font-display); font-size: clamp(1.7rem, 1rem + 3.2vw, 3.7rem); line-height: 1.14;
  letter-spacing: -.025em; font-weight: 500; max-width: 1100px; margin: 0;
}
.t-statement__text .word { opacity: .18; transition: opacity .3s; }
.t-statement__text .word.is-lit { opacity: 1; }
.no-motion .t-statement__text .word { opacity: 1; }

/* ---------- Services ---------- */

[data-design='tide'] .svc-card__link { border: 0; box-shadow: 0 1px 0 var(--line), 0 20px 40px -34px color-mix(in oklab, var(--fg) 40%, transparent); }
[data-design='tide'] .svc-card__media { margin: 12px 12px 0; border-radius: 20px; }
[data-design='tide'] .svc-card:nth-child(3n + 2) .svc-card__media { background: var(--green-soft); }
[data-design='tide'] .svc-card:nth-child(3n + 2) .svc-card__num { color: var(--accent-2-text); }
[data-design='tide'] .svc-card__media::after {
  content: ''; position: absolute; right: -14%; top: -30%; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 22%, transparent); transition: transform .9s var(--ease);
}
[data-design='tide'] .svc-card.has-image .svc-card__media::after { display: none; }
[data-design='tide'] .svc-card:nth-child(3n + 2) .svc-card__media::after { background: color-mix(in oklab, var(--accent-2) 30%, transparent); }
[data-design='tide'] .svc-card__link:hover .svc-card__media::after { transform: scale(1.5); }
[data-design='tide'] .svc-card__price { background: var(--green-soft); color: var(--accent-2-text); padding: 6px 12px; border-radius: 999px; font-size: .875rem; }

/* ---------- The tide: colour washes in behind the picker ---------- */

.t-tide { overflow: hidden; isolation: isolate; }
.t-tide__wash {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: 150vmax; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-soft); transform: translate(-50%, -50%) scale(var(--wash, 1));
}
[data-design='tide'] .picker { border: 0; box-shadow: var(--shadow); }
[data-design='tide'] .picker__item { border-radius: 999px; padding-inline: 24px; }

/* ---------- Team rail ---------- */

.t-team__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; max-width: none; }
.t-team__rail { overflow-x: auto; scrollbar-width: none; cursor: grab; padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2); -webkit-overflow-scrolling: touch; }
.t-team__rail::-webkit-scrollbar { display: none; }
.t-team__rail.is-dragging { cursor: grabbing; }
.t-team__track { display: flex; gap: clamp(18px, 2.4vw, 36px); width: max-content; padding-block: 8px 12px; }
.t-person { width: clamp(170px, 18vw, 230px); flex: none; }
.t-person a { display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; -webkit-user-drag: none; }
.t-person__photo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--accent-soft); margin-bottom: 12px; border: 5px solid var(--surface); box-shadow: var(--shadow); transition: transform .6s var(--ease), border-color .3s; }
.t-person:nth-child(even) .t-person__photo { background: var(--green-soft); }
.t-person__photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.t-person__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.t-person__role { color: var(--accent-text); font-size: .9rem; font-weight: 500; }
.t-person a:hover .t-person__photo { transform: scale(1.05) rotate(-3deg); border-color: var(--accent-2); }

[data-design='tide'] .team-card__media { border-radius: 50%; aspect-ratio: 1; border: 5px solid var(--surface); box-shadow: var(--shadow); }
[data-design='tide'] .team-card__body { text-align: center; }
[data-design='tide'] .team-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(24px, 3vw, 44px); }

/* ---------- Extras ---------- */

.t-extras__grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.t-extra { background: var(--surface); border-radius: var(--radius-card); padding: clamp(22px, 2.6vw, 36px); position: relative; overflow: hidden; }
.t-extra__dot { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); margin-bottom: 22px; }
.t-extra:nth-child(2) .t-extra__dot { background: var(--accent-2); }
.t-extra:nth-child(3) .t-extra__dot { background: var(--sun); }
.t-extra h3 { font-size: 1.5rem; }
.t-extra p { color: var(--fg-muted); margin: 0; }

/* ---------- Prices ---------- */

.t-prices__grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.t-prices__grid .section-head { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .t-prices__grid { grid-template-columns: 1fr; } .t-prices__grid .section-head { position: static; } }
[data-design='tide'] .price-table { border: 0; box-shadow: var(--shadow); }

/* ---------- Inner pages ---------- */

[data-design='tide'] .page-hero { overflow: hidden; }
[data-design='tide'] .page-hero::before {
  content: ''; position: absolute; z-index: -1; right: -12vw; top: -18vw; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-soft);
}
[data-design='tide'] .page-hero::after {
  content: ''; position: absolute; z-index: -1; right: 30vw; top: 6vw; width: 7vw; aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-2);
}
[data-design='tide'] .page-hero__media { border-radius: 50% 50% 28px 50% / 50% 50% 28px 50%; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; }
[data-design='tide'] .page-hero__portrait { border-radius: 50%; aspect-ratio: 1; border: 8px solid var(--surface); box-shadow: var(--shadow); max-width: 400px; }
[data-design='tide'] .aside-card { border: 0; box-shadow: var(--shadow); }
[data-design='tide'] .section--alt { background: var(--bg-2); }
[data-design='tide'] .contact__form { background: var(--surface); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 44px); box-shadow: var(--shadow); }
[data-design='tide'] .field input, [data-design='tide'] .field select, [data-design='tide'] .field textarea { background: var(--bg); }
[data-design='tide'] .product { border: 0; box-shadow: var(--shadow); }

/* ---------- CTA band and footer ---------- */

[data-design='tide'] .cta-band { border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
[data-design='tide'] .cta-band::before {
  content: ''; position: absolute; right: -8%; bottom: -60%; width: min(60vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent-2); opacity: .9;
}
[data-design='tide'] .cta-band::after {
  content: ''; position: absolute; right: 30%; top: 14%; width: clamp(40px, 6vw, 90px); aspect-ratio: 1; border-radius: 50%; background: var(--accent);
}
[data-design='tide'] .cta-band__inner { z-index: 1; }
@media (max-width: 800px) {
  [data-design='tide'] .cta-band::after { display: none; }
  [data-design='tide'] .cta-band::before { bottom: -30%; right: -30%; opacity: .5; }
}
[data-design='tide'] .cta-band__actions .btn--primary { --btn-bg: #ffffff; --btn-fg: #0b2a36; box-shadow: none; }
[data-design='tide'] .cta-band__actions .btn--ghost { background: color-mix(in oklab, var(--inverse-bg) 70%, transparent); }
[data-design='tide'] .site-footer__logo { display: inline-block; background: #fff; border-radius: 20px; padding: 12px 18px; margin-bottom: 18px; }
[data-design='tide'] .site-footer__logo img { margin: 0; height: 56px; }
[data-design='tide'] .site-footer .hours__row.is-today, [data-design='tide'] .site-footer .contact-list .icon { color: var(--accent-2); }
[data-design='tide'] .site-footer .socials a { border-color: color-mix(in oklab, currentColor 25%, transparent); }
