/* ============================================================
   Uncle Ricky — rickytan.com
   Design system: warm Singaporean, not tech.
   Cream base, teal-ink text, pastel HDB/shophouse blocks,
   coral action, gold reserved for scam protection only.
   ============================================================ */

:root {
  --cream: #FBF6EF;
  --ink: #123330;
  --ink-2: #3D5C58;
  --muted: #5C7A76;
  --apricot: #F6E2D3;
  --sage: #DCE9DF;
  --mustard: #F3D99B;
  --coral: #E8734A;
  --coral-deep: #D45F36;
  --gold: #E3A82B;          /* scam-protection accent ONLY */
  --gold-deep: #C9901D;
  --paper: #FFFDF6;
  --field-line: rgba(18, 51, 48, 0.22);
  --error: #A33B1F;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { font-size: 100%; } /* 16px base; text-size control scales this */
html.ts-large { font-size: 112.5%; }   /* A+  */
html.ts-xlarge { font-size: 125%; }    /* A++ */

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

body {
  margin: 0;
  font-family: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem; /* 17.6px — minimum body size is 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
figure { margin: 0; }

h1, h2, h3, h4 {
  line-height: 1.12;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem); /* 28-36px */
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.375rem; /* 22px */
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }

.lede {
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 42rem;
}

.small-note {
  font-size: 0.95rem; /* 15.2px — floor for anything on the page */
  color: var(--muted);
}

a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink-2); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }

/* Full-bleed pastel bands — colour in big confident areas */
.band-apricot { background: var(--apricot); }
.band-sage { background: var(--sage); }
.band-mustard { background: var(--mustard); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: var(--cream); }
.band-ink a { color: var(--cream); }
.band-gold { background: var(--gold); } /* used only on scam content */

/* ---------- Focus: thick and visible ---------- */

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}
.band-ink :focus-visible,
.site-footer :focus-visible { outline-color: var(--cream); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-dot {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  background: var(--coral);
  flex: none;
}
.brand:hover { color: var(--ink); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.main-nav a:hover { background: var(--sage); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--sage); font-weight: 700; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Text-size control — a real setting, not a gimmick */
.text-size {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--sage);
  border-radius: 999px;
  padding: 0.2rem;
}
.text-size button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  min-width: 2.4rem;
  min-height: 2.4rem;
}
.text-size button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
}

.lang-toggle {
  appearance: none;
  border: 0;
  background: var(--mustard);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  min-height: 2.75rem;
}
.lang-toggle:hover { background: #EAC87F; }

.nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  min-height: 2.75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 19px 34px; /* brief: 19px vertical padding, 17px text */
  font-size: 1.06rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color 200ms ease, color 200ms ease;
  text-align: center;
}

.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-deep); color: var(--ink); }

.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-2); color: var(--cream); }

.btn-soft { background: var(--mustard); color: var(--ink); }
.btn-soft:hover { background: #EAC87F; color: var(--ink); }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink); }

.btn-small { padding: 12px 22px; font-size: 1rem; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5.5rem;
}

.hero-circles { position: absolute; inset: 0; pointer-events: none; }
.circle {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.circle-apricot { background: var(--apricot); }
.circle-sage { background: var(--sage); }
.circle-mustard { background: var(--mustard); }
.circle-gold { background: var(--gold); } /* scam page hero only */

@keyframes drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(34px, 26px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-28px, 30px); }
}
@keyframes drift-c {
  from { transform: translate(0, 0); }
  to   { transform: translate(22px, -26px); }
}

.drift-a { animation: drift-a 58s ease-in-out infinite alternate; }
.drift-b { animation: drift-b 70s ease-in-out infinite alternate; }
.drift-c { animation: drift-c 50s ease-in-out infinite alternate; }

.hero-inner { position: relative; z-index: 1; max-width: 60rem; }

.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 1.75rem;
}
.badge-gold { background: var(--gold); color: var(--ink); } /* scam page only */

.hero h1 {
  font-size: clamp(3.25rem, 2.2rem + 4.2vw, 4.25rem); /* 52-68px */
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 1.5rem;
  max-width: 18ch;
}
.hero h1 .line { display: block; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

/* Rise-once entrance: 12px, 140ms stagger, end state always visible */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 700ms var(--ease) both; }
.rise.d1 { animation-delay: 0ms; }
.rise.d2 { animation-delay: 140ms; }
.rise.d3 { animation-delay: 280ms; }
.rise.d4 { animation-delay: 420ms; }
.rise.d5 { animation-delay: 560ms; }
.rise.d6 { animation-delay: 700ms; }

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

.card {
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: transform 300ms var(--ease), filter 300ms var(--ease);
}
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); filter: brightness(0.975); }

.card-apricot { background: var(--apricot); }
.card-sage { background: var(--sage); }
.card-mustard { background: var(--mustard); }
.card-cream { background: var(--cream); }
.card-gold { background: var(--gold); } /* scam contexts only */

.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

a.card { text-decoration: none; }
.card-link { text-decoration: none; color: var(--ink); display: block; height: 100%; }
.card-link:hover { color: var(--ink); }

.card .more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Numbered step cards */
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ---------- Grids ---------- */

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-2-uneven {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

/* ---------- Photo placeholder frames ---------- */
/* Deliberate, elegant stand-ins for commissioned photography —
   pastel-filled frames with a centred descriptive caption. */

.photo {
  border-radius: var(--radius);
  min-height: 17rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
}
.photo-tall { min-height: 24rem; }

.photo-filled { padding: 0; display: block; }
.photo-filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.photo figcaption {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
  max-width: 24rem;
}
.photo figcaption::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(18, 51, 48, 0.14);
}

/* ---------- Paper note device ---------- */
/* What the service actually leaves behind: a hand-written,
   large-print note on paper. Neat-print system font stack —
   allowed as a photographed-artefact device, not body text. */

.paper-note {
  background: var(--paper);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  transform: rotate(-1.1deg);
  max-width: 30rem;
}
.paper-note-tilt-r { transform: rotate(1deg); }

.paper-note .hand {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 1.5rem;
  line-height: 1.75;
  color: #22403C;
  margin: 0 0 1rem;
}
.paper-note .hand:last-of-type { margin-bottom: 0; }

.paper-note .paper-caption {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

/* ---------- Testimonials ---------- */

.quote blockquote {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption {
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- Lists ---------- */

.tick-list, .cross-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tick-list li, .cross-list li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.85rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--ink);
}
.cross-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--coral);
}
/* tick / cross glyphs so meaning is never carried by colour alone */
.tick-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: calc(0.42em + 0.32rem);
  width: 0.55rem;
  height: 0.3rem;
  border-left: 3px solid var(--cream);
  border-bottom: 3px solid var(--cream);
  transform: rotate(-45deg);
}
.cross-list li::after {
  content: "\00D7";
  position: absolute;
  left: 0.28rem;
  top: calc(0.42em - 0.14rem);
  color: var(--cream);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.4;
}

/* ---------- Forms ---------- */

.booking-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
}
.form-grid .full { grid-column: 1 / -1; }

.field label, .field legend {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.06rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--field-line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(18, 51, 48, 0.35);
  outline-offset: 1px;
}

.field fieldset { border: 0; margin: 0; padding: 0; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  font-weight: 400;
}
.check-row input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.15rem;
  accent-color: var(--ink);
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

/* Honeypot: hidden by CSS positioning, never by display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: var(--error);
  font-weight: 500;
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

/* Domain-typo suggestion chip */
.suggest-chip {
  display: none;
  margin-top: 0.6rem;
  appearance: none;
  border: 0;
  background: var(--mustard);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.suggest-chip strong { font-weight: 700; }
.suggest-chip:hover { background: #EAC87F; }
.suggest-chip.show { display: inline-block; }

/* PDPA / data-protection notice block */
.notice {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  font-size: 1rem;
}
.notice h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.notice p { font-size: 1rem; }

.form-success {
  display: none;
  background: var(--sage);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-top: 1.5rem;
}
.form-success.show { display: block; }

/* ---------- WhatsApp floating button ---------- */

.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 200ms ease;
}
.wa-fab:hover { background: var(--ink-2); color: var(--cream); }
.wa-fab svg { width: 1.35rem; height: 1.35rem; flex: none; }
.wa-fab:focus-visible { outline-color: var(--coral); }

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

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 4rem 0 2.5rem;
  margin-top: 2rem;
}
.site-footer h2, .site-footer h3 { color: var(--cream); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--mustard); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-bottom {
  font-size: 0.95rem;
  color: #B9CCC8;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.6rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    flex-basis: 100%;
    order: 5;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.35rem; padding-top: 0.75rem; }
  .main-nav a { font-size: 1.15rem; padding: 0.8rem 1.1rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .grid-2-uneven { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 0 3.5rem; }
}

@media (max-width: 640px) {
  .form-grid, .checks-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .booking-form { padding: 1.75rem 1.4rem; }
  .card { padding: 1.75rem; }
  .section { padding: 3.25rem 0; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Reduced motion: everything off, including drift ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise { opacity: 1; transform: none; }
}

/* Long-form legal / policy pages */
.prose { max-width: 46rem; }
.prose h2 { margin: 2.2rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
