/* Salt & Sauna brand tokens + base styles
 * Source of truth: SiteDev/Site/index.html (saltandsauna.ca)
 * Linked from every user-facing surface:
 *   - docs/site/index.html                   (gallery root)
 *   - docs/site/scenes/<sid>/index.html      (per-scene FINAL pages)
 *   - docs/site/iterate/index.html           (iterate index)
 *   - docs/site/iterate/<sid>/index.html     (per-scene round review)
 *   - docs/site/3d_site_viewer/index.html    (Google Maps 3D viewer)
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:wght@300;400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

:root {
  /* Brand colors — verbatim from saltandsauna.ca */
  --blue-bg:    #2B4E8A;
  --blue-dark:  #1C3D6E;
  --blue-light: #2E6DB4;
  --white:      #FFFFFF;
  --white-20:   rgba(255, 255, 255, 0.20);
  --white-25:   rgba(255, 255, 255, 0.25);
  --white-60:   rgba(255, 255, 255, 0.60);

  /* Image-card surface — slightly darker than --blue-bg so renders read */
  --card-surface: rgba(28, 61, 110, 0.55);
  --card-surface-hover: rgba(28, 61, 110, 0.75);
  --img-bg: #0A1A2D;       /* letterbox bars behind variable-aspect images */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-label:   'Montserrat', sans-serif;   /* uppercase + letter-spaced */

  /* Status accents (kept for iterate workflow signals) */
  --ok:      #4ade80;
  --err:     #ef4444;
  --pending: #fbbf24;
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--blue-bg);
  color: var(--white);
  font-family: var(--font-body), sans-serif;
  position: relative;
  min-height: 100vh;
}

/* Atmosphere: same radial gradients as saltandsauna.ca */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 30% 70%, rgba(28, 61, 110, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(46, 109, 180, 0.08) 0%, transparent 60%),
    linear-gradient(175deg, #2B4E8A 0%, #274882 50%, #2B4E8A 100%);
}

/* Film grain — same SVG noise overlay as the root site */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

body > * { position: relative; z-index: 2; }

/* Type defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  margin: 0;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 0.005em; line-height: 1.15; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p, li, span, div, label, input, textarea, button, select {
  font-family: var(--font-body);
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--white); }

/* Brand lockup (top-left site identity) */
.brand-lockup {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-light);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  white-space: nowrap;
}
.brand-lockup .amp {
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  margin: 0 0.05em;
}
.brand-lockup:hover { color: var(--white); }

/* Site label (top-right uppercase) */
.site-label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
}

/* Brand topnav — used by gallery + iterate index pages */
.brand-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--white-20);
  flex-wrap: wrap;
}

/* Buttons — Montserrat uppercase, brand-blue fill */
.btn,
button.btn,
.tabbar button,
header .btn {
  padding: 10px 20px;
  background: var(--blue-light);
  color: var(--white);
  border: 0;
  border-radius: 4px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.15s ease;
}
.btn:hover,
button.btn:hover,
.tabbar button:hover,
header .btn:hover { background: #3a7ec8; }
.btn:disabled,
button.btn:disabled { opacity: 0.45; cursor: not-allowed; background: var(--blue-light); }
.btn.secondary,
button.btn.secondary {
  background: transparent;
  border: 1px solid var(--white-25);
  color: var(--white);
}
.btn.secondary:hover { background: var(--white-20); }

/* Image card surface (renders need a darker slab so they don't wash) */
.card-surface {
  background: var(--card-surface);
  border: 1px solid var(--white-20);
  border-radius: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.card-surface:hover {
  background: var(--card-surface-hover);
  border-color: var(--white-25);
}

/* Form controls (auth-gate input, search, textarea) */
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--white-20);
  border-radius: 4px;
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--white-25);
  box-shadow: 0 0 16px rgba(46, 109, 180, 0.18);
}
input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.30);
  font-style: italic;
}

/* Eyebrow / section labels (uppercase Montserrat) */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-60);
}
