/* ============================================================
   EQUITY TITLE OF NEVADA — main.css
   Global styles, CSS variables, resets, typography, utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS DESIGN SYSTEM — Custom Properties
   ============================================================ */

:root {
  /* ── Brand Colors ── */
  --color-navy:        #00297A;
  --color-navy-dark:   #001D57;
  --color-navy-light:  #003DA6;
  --color-header:      #122434;
  --color-gold:        #C8963E;
  --color-gold-light:  #E0AE58;
  --color-gold-dark:   #A87A28;

  /* ── Neutrals ── */
  --color-white:       #FFFFFF;
  --color-off-white:   #F8F6F2;
  --color-light-gray:  #F0EDE8;
  --color-mid-gray:    #D4D0CA;
  --color-text-muted:  #8A8A8A;
  --color-dark:        #1A1A1A;
  --color-dark-soft:   #2C2C2C;

  /* ── Overlays ── */
  --overlay-dark:      rgba(0, 0, 0, 0.45);
  --overlay-navy:      rgba(0, 29, 87, 0.65);
  --overlay-light:     rgba(255, 255, 255, 0.92);

  /* ── Typography ── */
  --font-primary:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-thin:        300;
  --font-weight-regular:     400;
  --font-weight-medium:      500;
  --font-weight-semibold:    600;
  --font-weight-bold:        700;

  /* ── Type Scale ── */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-display: clamp(3rem, 7vw, 6rem);

  /* ── Spacing ── */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;
  --space-3xl:  7.5rem;

  /* ── Section Padding ── */
  --section-pad-y: clamp(5rem, 8vw, 7.5rem);
  --section-pad-x: clamp(1.25rem, 5vw, 6rem);

  /* ── Layout ── */
  --max-width:       1280px;
  --max-width-text:  740px;
  --header-height:   72px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.07);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.18);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.18), 0 6px 16px rgba(0,0,0,0.10);

  /* ── Border Radius ── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index Stack ── */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-header:  900;
  --z-top:     999;
}

/* ============================================================
   CSS RESET & BASE STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main#main-content {
  flex: 1;
}

/* ── Text utilities ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-off-white);
}

.font-thin {
  font-weight: var(--font-weight-thin);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* ── Visibility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

/* ── Button Base Styles ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ── Button Variants ── */
.btn-primary {
  background-color: var(--color-header);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-navy-dark);
  box-shadow: var(--shadow-hover);
}

.btn-ghost-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-outline-nav {
  background-color: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  font-size: var(--text-sm);
  padding: 0.5rem var(--space-md);
}

.btn-outline-nav:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.btn-primary-nav {
  background-color: var(--color-header);
  color: var(--color-white);
  font-size: var(--text-sm);
  padding: 0.5rem var(--space-lg);
  border-radius: var(--radius-sm);
}

.btn-primary-nav:hover {
  background-color: var(--color-navy-dark);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* ── Responsive utilities ── */
@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
