/* ============================================================
   DESIGN TOKENS
   Change these to restyle the entire site in one place.
   CSS and HTML made by Claude, thanks!
   ============================================================ */
:root {
  /* Brand colors */
  --color-primary:        #C67B5A;   /* terracotta — main CTA, accents */
  --color-primary-dark:   #A85E3E;   /* hover state for primary */
  --color-secondary:      #7A9E7E;   /* sage — secondary actions */
  --color-accent:         #E8C98A;   /* sand gold — highlights */

  /* Backgrounds */
  --color-bg:             #F5EFE0;   /* warm off-white page background */
  --color-surface:        #FDFAF5;   /* cards, navbar */
  --color-surface-alt:    #EDE7D6;   /* alternate section bg */

  /* Text */
  --color-text:           #1C1917;   /* primary body text */
  --color-text-muted:     #6B6560;   /* secondary / captions */
  --color-text-inverse:   #FDFAF5;   /* text on dark backgrounds */

  /* Borders */
  --color-border:         #E5DDD0;

  /* Typography */
  --font-heading:         'DM Serif Display', Georgia, serif;
  --font-body:            'Outfit', system-ui, sans-serif;
  --font-size-base:       16px;
  --line-height-base:     1.6;

  /* Spacing scale */
  --space-xs:   0.5rem;    /*  8px */
  --space-sm:   1rem;      /* 16px */
  --space-md:   1.5rem;    /* 24px */
  --space-lg:   2.5rem;    /* 40px */
  --space-xl:   4rem;      /* 64px */
  --space-2xl:  6rem;      /* 96px */

  /* Layout */
  --container-max:     1200px;
  --navbar-height:     70px;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);

  /* Transitions */
  --transition:  0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { max-width: 65ch; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--alt {
  background: var(--color-surface-alt);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-height);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar__brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin-right: auto;
}

.navbar__links {
  display: flex;
  gap: var(--space-md);
}

.navbar__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.navbar__links a:hover { color: var(--color-text); }

.navbar__actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.navbar__user {
  font-size: 0.85rem;
  margin-right: var(--space-xs);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.6em 1.4em;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

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

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background: var(--color-primary-dark); }

.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: transparent;
}

.btn--lg {
  padding: 0.85em 2em;
  font-size: 1rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__body { padding: var(--space-md); }

.card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.card__price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.card__price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
  color: var(--color-text-inverse);
  padding-block: var(--space-xl);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.footer__tagline {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: var(--space-xs);
  max-width: none;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__links a:hover { opacity: 1; }

.footer__copy {
  width: 100%;
  font-size: 0.8rem;
  opacity: 0.4;
  max-width: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted   { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-center  { text-align: center; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar__links { display: none; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--color-surface-alt);
}

.hero__sub {
  font-size: 1.15rem;
  margin-top: var(--space-sm);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__img--placeholder {
  background: var(--color-surface-alt);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: 0.4;
}

/* ============================================================
   FORMS
   ============================================================ */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: end;
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.search-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  min-width: 140px;
}

.search-form__field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form__input,
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.form__field {
  margin-bottom: var(--space-md);
}

.form__field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.alert--error {
  background: #FBEAEA;
  color: #8C2929;
  border: 1px solid #F4C6C6;
}

/* Style allauth form inputs that don't get .form__input automatically */
.form__field input[type="text"],
.form__field input[type="email"],
.form__field input[type="password"] {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.text-error {
  color: #C04848;
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  display: block;
}