/* ==========================================================================
   ubook — design system
   Warm editorial — bone canvas · espresso ink · terracotta accent · serif display
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700;800&family=Noto+Sans+Georgian:wght@400;500;600;700;800&family=Noto+Serif+Georgian:wght@500;600;700&display=swap');

:root {
  /* Palette — warm editorial. A bone canvas instead of clinical white, an
     espresso ink instead of pure black, and one terracotta accent that carries
     every call to action. Kept on the legacy --pink-*/--violet-* names so every
     component that was written against them follows automatically. */
  --pink-50:  #FBF7F2;   /* softest wash — tile and panel fills           */
  --pink-100: #F4EDE4;   /* subtle fill                                   */
  --pink-200: #E9DED1;   /* hairlines and borders                         */
  --pink-300: #D8C7B4;   /* stronger border, hover edges                  */
  --pink-400: #A0897A;   /* muted warm grey — placeholders, disabled text  */
  --pink-500: #B4573A;   /* the accent: terracotta (4.8:1 on white)        */
  --pink-600: #93412A;   /* accent hover                                  */
  --pink-700: #74311F;   /* accent pressed                                */
  --plum-800: #2A1D15;
  --plum-900: #1A120C;   /* espresso — headings                           */

  --violet-400: #E9DED1;
  --violet-500: #7A6A5E;
  --violet-600: #5C4E44;

  --ink:        #1A120C;
  --ink-soft:   #7A6A5E;
  --line:       #EAE0D5;

  /* Semantic */
  --bg:          #FDFAF6;
  --bg-2:        #F6EFE6;
  --surface:     rgba(255, 253, 250, 0.88);
  --surface-solid: #FFFFFF;
  --primary:     #B4573A;
  --primary-ink: #93412A;
  --cta:         #B4573A;
  --cta-ink:     #93412A;
  --plum-ink:    #1A120C;
  --text:        #1F160F;
  --text-muted:  #786557;   /* 4.9:1 on --bg */
  --text-invert: #FFFFFF;
  --success:     #3F7D58;
  --success-bg:  #EFF6F1;
  --warning:     #A9691B;
  --danger:      #C0392B;

  /* Accents — used for meaning only: discounts, ratings, trending. Warmed to
     sit next to the terracotta rather than fight it. */
  --acc-coral:  #C0463F;
  --acc-coral-d:#9C2F29;
  --acc-amber:  #C08A4E;
  --acc-amber-d:#9A6A34;
  --acc-berry:  #B4496B;
  --acc-berry-d:#8E3050;
  --acc-sky:    #4E7A8C;
  --acc-sky-d:  #355C6C;
  --acc-plum:   #7D5A8C;
  --acc-plum-d: #5E3F6C;

  /* Card header tones — cycled across the directory. All warm-adjacent so the
     grid reads as one family rather than a paint chart. */
  --tone-1: linear-gradient(140deg, #C4684A 0%, #8A3A22 100%);   /* terracotta */
  --tone-2: linear-gradient(140deg, #D9A86B 0%, #A8722F 100%);   /* honey      */
  --tone-3: linear-gradient(140deg, #7B6553 0%, #3A2C22 100%);   /* espresso   */
  --tone-4: linear-gradient(140deg, #C08398 0%, #8A4A61 100%);   /* dusty rose */
  --tone-5: linear-gradient(140deg, #9B8296 0%, #5E4757 100%);   /* mauve      */
  --tone-6: linear-gradient(140deg, #BE9457 0%, #7C5A22 100%);   /* bronze     */

  /* Fonts — an editorial serif for headings (Playfair for Latin, Noto Serif
     Georgian for ქართული — each script only ever sees its own face), Raleway
     for running text. */
  --font-display: 'Playfair Display', 'Noto Serif Georgian', Georgia, 'Times New Roman', serif;
  --font-body: 'Raleway', 'Noto Sans Georgian', system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — warm-tinted, so depth never looks grey on the bone canvas */
  --shadow-xs: 0 1px 2px rgba(64, 42, 26, 0.05);
  --shadow-sm: 0 1px 2px rgba(64, 42, 26, 0.04), 0 6px 16px rgba(64, 42, 26, 0.07);
  --shadow-md: 0 2px 6px rgba(64, 42, 26, 0.05), 0 16px 36px rgba(64, 42, 26, 0.10);
  --shadow-lg: 0 6px 14px rgba(64, 42, 26, 0.07), 0 30px 64px rgba(64, 42, 26, 0.14);
  --shadow-glow: 0 6px 18px rgba(180, 87, 58, 0.24), 0 14px 30px rgba(180, 87, 58, 0.16);

  /* Focus rings (keyboard a11y) */
  --ring: 0 0 0 3px rgba(180, 87, 58, 0.32);
  --ring-violet: 0 0 0 3px rgba(122, 106, 94, 0.32);

  /* Layout */
  --maxw: 1160px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------- reset-ish ------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Nothing on this site is meant to be read by scrolling sideways. Without
     this a phone lets you drag the page horizontally and rubber-band it, and
     the sticky header slides out of line with the content underneath — which
     reads as the layout breaking. Deliberately NOT overflow-x: hidden: that
     turns <html> into a scroll container and can strand position:sticky
     (the app bar) in Safari. This stops the pull without touching layout. */
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
/* Serif headings want less negative tracking and less weight than a grotesk —
   at 800 Playfair goes muddy, at 700 it stays sharp. */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; }

/* ------- global polish: focus, selection, scrollbar, motion ------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--violet-500);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--pink-200); color: var(--plum-900); }
* { scrollbar-width: thin; scrollbar-color: var(--pink-300) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--pink-300); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--pink-400); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ------- background décor (Clean Editorial: faint accent only) ------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.28;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 { width: 520px; height: 520px; background: var(--pink-300); top: -160px; right: -120px; }
.blob-2 { width: 460px; height: 460px; background: var(--violet-400); top: 420px; left: -160px; opacity: 0.42; }
.blob-3 { width: 420px; height: 420px; background: var(--pink-200); bottom: -160px; right: 8%; opacity: 0.5; }

/* ------- layout ------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------- buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-plum { background: var(--plum-900); color: #fff; box-shadow: var(--shadow-sm); }
.btn-plum:hover { background: var(--plum-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-pink { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-pink:hover { background: var(--primary-ink); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--plum-900); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--cta-ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none; }


/* ------- brand ------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: var(--plum-900); letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #C4684A, #93412A);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 20px; height: 20px; }
/* The wordmark is "book" set solid against the terracotta U-mark, so the mark
   carries the colour on its own. It used to be terracotta, which split the
   lockup into two competing accents. */
.brand span { color: var(--plum-900); }
/* the mark is itself a <span> inside .brand, so it needs to out-specify the
   rule above — otherwise the U is drawn in espresso on terracotta */
.brand span.brand-mark { color: #fff; }

/* language switch */
.lang {
  display: inline-flex; padding: 4px; background: var(--pink-50);
  border: 1px solid var(--pink-200); border-radius: var(--r-pill);
}
.lang button {
  border: 0; background: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill);
  transition: all .2s;
}
.lang button.active { background: #fff; color: var(--primary-ink); box-shadow: var(--shadow-xs); }

/* star rating (business.html hero, my.php reviews) */
.stars { color: var(--acc-amber); letter-spacing: 1px; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
}

/* ------- agreement / legal document ------- */
.agr-doc .intro { color: var(--text); font-size: 16px; line-height: 1.75; margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.agr-doc h2 { font-size: 18px; color: var(--plum-900); margin: 26px 0 10px; display: flex; gap: 9px; }
.agr-doc h2 .n { color: var(--primary); font-weight: 800; }
.agr-doc h3 { font-size: 15.5px; color: var(--plum-900); margin: 16px 0 7px; }
.agr-doc p, .agr-doc li { color: var(--text); font-size: 15px; line-height: 1.72; }
.agr-doc p { margin: 0 0 11px; }
.agr-doc ul, .agr-doc ol { margin: 0 0 13px; padding-left: 20px; }
.agr-doc li { margin-bottom: 6px; }
.agr-doc .ph { color: var(--primary-ink); background: var(--pink-50); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.agr-doc .agr-parties { background: var(--pink-50); border: 1px solid var(--pink-200); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 22px; }
.agr-doc .agr-parties h3 { margin-top: 0; }
.agr-doc .agr-parties p { margin: 0 0 5px; }
.agr-doc .agr-accept { margin-top: 24px; padding: 18px; background: linear-gradient(135deg,#fff,var(--pink-50)); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--plum-900); font-weight: 600; }
.agr-doc .agr-note { background: var(--pink-50); border: 1px dashed var(--pink-300); border-radius: var(--r-md); padding: 15px 18px; color: var(--text-muted); font-size: 13.5px; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
