/* ==========================================================================
   main.css
   Global tokens, resets, and typography defaults for Southern Access Capital.
   ========================================================================== */

:root {
  /* Brand colors */
  --color-brand-green:      #6E8B5C;
  --color-brand-green-dark: #5A7349;
  --color-brand-green-soft: #8CA678;

  --color-brand-teal:       #1A4D63;
  --color-brand-teal-dark:  #123B4D;
  --color-brand-teal-soft:  #2B6A87;

  /* Neutrals */
  --color-cream:            #FAFAF7;
  --color-sand:             #F4F3EE;
  --color-ink:              #1F2937;
  --color-ink-soft:         #4B5563;
  --color-border:           #E5E7EB;
  --color-border-soft:      #EDEAE1;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --font-size-base: 1rem;
  --line-height-base: 1.65;

  /* Radii (kept soft per brand direction) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 14px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.10);

  /* Transitions */
  --transition-base: 180ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Layout */
  --container-max: 1200px;
}

/* ==========================================================================
   Base resets and typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Serif display headings use Fraunces.
   Body still uses Manrope because Tailwind spacing utilities handle layout,
   and we only promote to serif where the eyebrow/hero context asks for it. */
.font-serif,
.heading-serif {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), opacity var(--transition-base);
}

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

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

/* Remove number input spinners for cleaner forms */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================================================
   Focus states (WCAG 2.2)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-brand-teal-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Skip to main content link
   ========================================================================== */

.skip-to-main {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-brand-teal);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--transition-base);
}

.skip-to-main:focus {
  top: 1rem;
}

/* ==========================================================================
   Utility: decorative divider used under section titles
   ========================================================================== */

.rule {
  display: inline-block;
  width: 64px;
  height: 2px;
  background: var(--color-brand-green);
  border-radius: 2px;
}

.rule--teal { background: var(--color-brand-teal); }
.rule--light { background: rgba(255, 255, 255, 0.55); }

/* Hide scroll bars on horizontal scroll containers while keeping scrollability */
.scroll-clean::-webkit-scrollbar { display: none; }
.scroll-clean { scrollbar-width: none; }
