/* Base reset + design tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--brand-dark);
}

p {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Design tokens */
:root {
  /* Brand palette (derived from Heritage Builders) */
  --brand-dark: #1f1a17; /* deep chocolate */
  --brand-dark-2: #2a2320;
  --brand-dark-3: #3b291f;
  --brand-accent: #c8a46a; /* golden amber */
  --brand-accent-hover: #b8935a;
  --brand-accent-deep: #a67f4a;
  --brand-cream: #f5f1e8;
  --brand-cream-2: #f2efe6;
  --brand-cream-3: #ede6d4;

  --bg: #ffffff;
  --bg-alt: var(--brand-cream-2);
  --text: #2a2a2a;
  --text-muted: #7c7c7c;
  --border: rgba(31, 26, 23, 0.08);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(31, 26, 23, 0.05),
    0 2px 4px rgba(31, 26, 23, 0.04);
  --shadow-md: 0 4px 8px rgba(31, 26, 23, 0.06),
    0 12px 24px rgba(31, 26, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(31, 26, 23, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container-max: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
