/* ==========================================================================
   Adelaide Mobile Gold Buyers — Brand tokens
   Imported by every per-page CSS file. Do not redeclare these elsewhere.
   Source: handover-claude-design/06-brand-tokens.md
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  /* Colour */
  --amgb-gold: #D69A2B;
  --amgb-gold-warm: #D99B2B;
  --amgb-gold-deep: #CC8F2E;
  --amgb-gold-soft: #C1A76F;
  --amgb-linen: #FCF7F1;
  --amgb-white: #FFFFFF;
  --amgb-text: #000000;
  --amgb-text-muted: #3A3A3A;
  --amgb-border: #E8E0D2;
  --amgb-border-light: #F0E9DC;

  /* Spacing (8pt base) */
  --amgb-space-1: 4px;
  --amgb-space-2: 8px;
  --amgb-space-3: 12px;
  --amgb-space-4: 16px;
  --amgb-space-5: 24px;
  --amgb-space-6: 32px;
  --amgb-space-8: 48px;
  --amgb-space-10: 64px;
  --amgb-space-12: 80px;
  --amgb-space-16: 128px;

  /* Radius */
  --amgb-radius-sm: 4px;
  --amgb-radius-md: 8px;
  --amgb-radius-lg: 12px;
  --amgb-radius-xl: 16px;
  --amgb-radius-2xl: 24px;
  --amgb-radius-full: 9999px;

  /* Shadow (derived from gold-deep) */
  --amgb-shadow-sm: 0 1px 2px 0 rgba(204, 143, 46, 0.08);
  --amgb-shadow-md: 0 4px 6px -1px rgba(204, 143, 46, 0.12), 0 2px 4px -1px rgba(204, 143, 46, 0.06);
  --amgb-shadow-lg: 0 10px 15px -3px rgba(204, 143, 46, 0.14), 0 4px 6px -2px rgba(204, 143, 46, 0.06);
  --amgb-shadow-xl: 0 20px 25px -5px rgba(204, 143, 46, 0.14), 0 10px 10px -5px rgba(204, 143, 46, 0.04);
}

/* ==========================================================================
   Premium texture: linen paper grain for warm sections.
   Apply by adding .amgb-linen-grain to a section. The grain is a tiled
   SVG noise pattern at 3% opacity, mixed under the linen colour.
   Reads as "stationery paper" rather than flat fill.
   ========================================================================== */
.amgb-linen-grain {
  position: relative;
  isolation: isolate;
}
.amgb-linen-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.84  0 0 0 0 0.60  0 0 0 0 0.17  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 160px 160px;
  opacity: 0.035;
  pointer-events: none;
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  /* Grain is static, keep it. */
}

/* Buttons */
.amgb-btn-primary,
.amgb-btn-secondary,
.amgb-btn-tertiary {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--amgb-space-2);
  line-height: 1;
  white-space: nowrap;
}

.amgb-btn-primary {
  background: var(--amgb-gold);
  color: var(--amgb-white);
  padding: 14px 28px;
  border-radius: var(--amgb-radius-md);
  border: 2px solid var(--amgb-gold);
  min-height: 48px;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.amgb-btn-primary:hover {
  background: var(--amgb-gold-deep);
  border-color: var(--amgb-gold-deep);
  box-shadow: var(--amgb-shadow-md);
}
.amgb-btn-primary:focus-visible {
  outline: 3px solid rgba(204, 143, 46, 0.4);
  outline-offset: 2px;
}
.amgb-btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amgb-btn-secondary {
  background: transparent;
  color: var(--amgb-gold-deep);
  padding: 14px 28px;
  border-radius: var(--amgb-radius-md);
  border: 2px solid var(--amgb-gold);
  min-height: 48px;
  transition: background 200ms ease, color 200ms ease;
}
.amgb-btn-secondary:hover {
  background: var(--amgb-gold);
  color: var(--amgb-white);
}
.amgb-btn-secondary:focus-visible {
  outline: 3px solid rgba(204, 143, 46, 0.4);
  outline-offset: 2px;
}

.amgb-btn-tertiary {
  background: transparent;
  color: var(--amgb-gold-deep);
  padding: 8px 0;
  border: none;
  border-bottom: 2px solid var(--amgb-gold);
  border-radius: 0;
  text-decoration: none;
  min-height: 0;
}
.amgb-btn-tertiary:hover {
  color: var(--amgb-text);
  border-bottom-color: var(--amgb-text);
}

/* Cards */
.amgb-card {
  background: var(--amgb-white);
  border: 1px solid var(--amgb-border-light);
  border-radius: var(--amgb-radius-lg);
  padding: var(--amgb-space-5);
  box-shadow: var(--amgb-shadow-md);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.amgb-card:hover {
  box-shadow: var(--amgb-shadow-lg);
  transform: translateY(-2px);
}
.amgb-card-linen {
  background: var(--amgb-linen);
  border-color: var(--amgb-border);
}

@media (prefers-reduced-motion: reduce) {
  .amgb-card,
  .amgb-card:hover,
  .amgb-btn-primary,
  .amgb-btn-secondary {
    transition: none;
    transform: none;
  }
}

/* Forms */
.amgb-label {
  display: block;
  margin-bottom: var(--amgb-space-2);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--amgb-text);
}
.amgb-input,
.amgb-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--amgb-border);
  border-radius: var(--amgb-radius-md);
  background: var(--amgb-white);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--amgb-text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.amgb-input:focus-visible,
.amgb-textarea:focus-visible {
  outline: none;
  border-color: var(--amgb-gold);
  box-shadow: 0 0 0 3px rgba(214, 154, 43, 0.2);
}
.amgb-input::placeholder,
.amgb-textarea::placeholder {
  color: var(--amgb-text-muted);
  opacity: 0.7;
}
.amgb-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
