@import './colors.css';

:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --section-pad: 6rem;
  --section-pad-mobile: 4rem;
  --gap-lg: 2rem;
  --gap-md: 1.5rem;
  --gap-sm: 1rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body,
p,
li,
a,
button,
input,
textarea {
  font-family: var(--font-body);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 800px;
}

/* Typography */
h1, h2, h3, h4, .eyebrow, .logo, .home-intro__title {
  font-family: var(--font-heading);
}

h1, h2, h3 { line-height: 1.2; color: var(--primary); }
h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-weight: 600; font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
  line-height: 1.7;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.eyebrow--lg {
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.section {
  padding: var(--section-pad) 0;
}

.section--sm {
  padding: 3rem 0;
}

.section--lg {
  padding: 6rem 0;
}

.section--bg {
  background: var(--bg-off);
}

.section--navy {
  background: var(--bg-navy);
  color: var(--text-on-dark);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy .eyebrow {
  color: var(--white);
}

.section--navy p {
  color: var(--text-on-dark);
}

.nav--scrolled {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(27, 42, 74, 0.12);
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.pricing-card__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card__features li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
}

.pricing-card__features li::before {
  content: '\2022';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pricing-card .btn {
  margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; animation: none; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  text-align: center;
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: var(--primary);
  border-color: transparent;
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--primary) 12%);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(200, 169, 106, 0.22);
}

.btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 0.5rem 1rem;
}

.btn--ghost:hover {
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--full {
  width: 100%;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: var(--section-pad-mobile) 0; }
}
