/* ============================================================
   DESIGN SYSTEM — Vietnam Luxury Property
   Emerald + Gold palette, utm-avo font
   ============================================================ */

@font-face {
  font-family: 'utm-avo';
  src: url('../fonts/utm-avo.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'utm-avo';
  src: url('../fonts/utm-avo-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'utm-avo';
  src: url('../fonts/utm-avo-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'utm-avo';
  src: url('../fonts/utm-avo-bold-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  /* Colors */
  --emerald-primary: #059669;
  --emerald-dark:    #047857;
  --emerald-light:   #10b981;
  --emerald-muted:   #0f2319;

  --gold-primary:    #d4af37;
  --gold-accent:     #ffd700;
  --gold-dark:       #b8960c;
  --gold-muted:      #1e1800;

  --white:           #ffffff;
  --off-white:       #fafafa;
  --charcoal:        #363636;
  --dark:            #1a1a1a;
  --light-gray:      #f5f5f5;
  --mid-gray:        #9ca3af;
  --border-color:    #e5e7eb;

  --error:           #ef4444;
  --error-muted:     #fee2e2;
  --success:         #22c55e;
  --warning:         #f59e0b;

  /* Shadows */
  --shadow-sm:  0 1px 2px  rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px  rgba(0,0,0,.10);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.10);
  --shadow-xl:  0 20px 40px rgba(0,0,0,.15);

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Spacing (8 px grid) */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  32px;
  --sp-xl:  48px;
  --sp-2xl: 64px;
  --sp-3xl: 96px;

  /* Typography */
  --font-base:  'utm-avo', 'Montserrat', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: var(--line-height-base);
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--emerald-dark); }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* ---- Typography Scale ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  line-height: 1.2;
  color: var(--dark);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem);   line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem;     font-weight: 600; }

p { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

small { font-size: .875rem; line-height: 1.5; }

strong { font-weight: 700; }
em     { font-style: italic; }

/* ---- Focus (accessibility) ---- */
:focus-visible {
  outline: 3px solid var(--gold-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
