/* Salty Finns brand colours */
:root {
  --navy: #132F44;       /* background */
  --navy-deep: #0d2333;
  --text: #C9DCDD;       /* pale teal text */
  --button: #006E7C;     /* teal buttons (website "Book Now") */
  --button-text: #F2FFFF;/* button text, as on the website */
  --aqua: #00A9B3;       /* small highlights */
  --wordmark: #0ABAD2;   /* "SALTY FINNS" + active links, measured from the website */
  --grey: #A0ADB6;       /* "DIVING BALI", measured from the website */
  --logo: #4FC4BB;       /* logo turquoise */
  --line: rgba(201, 220, 221, 0.16);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(79, 196, 187, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  background-color: var(--navy);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.todo {
  width: 100%;
  background: #ffd166;
  color: #3a2c00;
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}

.card {
  width: 100%;
  max-width: 440px;
  padding: calc(32px + env(safe-area-inset-top)) 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top { text-align: center; margin-bottom: 8px; }

.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-deep);
  border: 3px solid var(--logo);
  box-shadow: 0 0 0 6px rgba(79, 196, 187, 0.15), 0 10px 30px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 16px 0 2px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.subtitle { margin: 0; color: var(--wordmark); font-weight: 600; }

.brand-logo { display: block; height: 170px; width: auto; margin: 0 auto 4px; }
.brand-logo.small { height: 120px; }

.wordmark { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wm-1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wordmark);
  line-height: 1.1;
}
.wm-2 {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.wordmark.small { margin-top: 10px; }
.wordmark.small .wm-1 { font-size: 16px; }
.wordmark.small .wm-2 { font-size: 11px; }
.tagline { margin: 10px 0 0; font-style: italic; color: var(--text); font-size: 17px; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn, .wallet-btn, .share, .qr summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.btn {
  background: rgba(201, 220, 221, 0.06);
  color: var(--text);
  border: 1px solid rgba(201, 220, 221, 0.22);
}
.btn .ic { color: var(--wordmark); }
.btn:active, .wallet-btn:active, .share:active { transform: scale(0.98); }
.btn:hover { filter: brightness(1.08); }

.btn-primary {
  background: var(--button);
  color: var(--button-text);
  border-color: var(--button);
  font-size: 17px;
  min-height: 56px;
}
.btn-primary .ic { color: var(--button-text); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.grid .btn { padding: 12px 8px; font-size: 15px; gap: 6px; }
.grid .btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* an odd last button gets the full width */
.grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.socials { display: flex; flex-direction: column; gap: 10px; }

.wallets { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

/* Follows Google's guidance: black button with white text */
.wallet-btn {
  background: #000;
  color: #fff;
  border: 1px solid #5f6368;
  border-radius: 100px;
}

.details {
  list-style: none;
  margin: 8px 0 0;
  padding: 4px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 35, 51, 0.5);
}
.details li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.details li:last-child { border-bottom: 0; }
.details span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--aqua);
}
.details a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }

.qr summary {
  list-style: none;
  border: 1px solid var(--line);
  color: var(--text);
}
.qr summary::-webkit-details-marker { display: none; }
.qr[open] summary { margin-bottom: 12px; }
.qr-box {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 280px;
  margin: 0 auto;
}
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-hint { text-align: center; font-size: 13px; opacity: 0.8; margin: 8px 0 0; }

.share {
  background: transparent;
  border: 0;
  color: var(--aqua);
  min-height: 44px;
}

.foot { width: 100%; margin-top: auto; text-align: center; font-size: 12px; opacity: 0.7; }
.foot p { margin: 0; padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--navy-deep); }
.waves { display: block; width: 100%; height: 28px; fill: var(--navy-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--wordmark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
