/* -------------------------------------------------------
   SANDY HOOF — FOUNDATION DESIGN SYSTEM
   Global tokens, resets, typography, utilities, primitives
   ------------------------------------------------------- */

/* ---------------------------------------------
   TOKENS — COLOUR PALETTE
   --------------------------------------------- */
:root {
  --color-driftwood: #6d4122;
  --color-burnt-clay: #c0825b;
  --color-olive-moss: #98946f;
  --color-golden-dune: #d7ab6f;
  --color-soft-light: #f2e6cf;
  --color-very-light:#fcf6eb;


  --color-text: var(--color-driftwood);
  --color-bg: var(--color-very-light);
  --color-border: rgba(0,0,0,0.1);

  --color-success: var(--color-olive-moss);
  --color-error: var(--color-burnt-clay);
  --color-info: var(--color-golden-dune);

  /* Typography */
  --font-headline: 'Quicksand', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Calder Script', cursive;

  /* Text colour that should appear on any pop-colour background */
  --text-on-pop: #222222;  

 
  /* Spacing */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* Shape */
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;

  /* Shadows */
  --shadow-soft: 0 2px 6px rgba(0,0,0,0.08);
}

/* -------------------------------------------------------
   GLOBAL RESET
   ------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--color-driftwood);
  margin-bottom: var(--space-m);
}

a {
  color: var(--color-burnt-clay);
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

/* -------------------------------------------------------
   LAYOUT PRIMITIVES
   ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.page-content {
  padding: 0 var(--space-m);
}

.main-container {
  padding-top: var(--space-s);
  padding-bottom: 4rem;
}

.centered {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

/* -------------------------------------------------------
   SPACING UTILITIES
   ------------------------------------------------------- */
.margin-top-xs { margin-top: var(--space-xs); }
.margin-top-s { margin-top: var(--space-s); }
.margin-top-m { margin-top: var(--space-m); }
.margin-top-l { margin-top: var(--space-l); }
.margin-top-xl { margin-top: var(--space-xl); }

.margin-bottom-xs { margin-bottom: var(--space-xs); }
.margin-bottom-s { margin-bottom: var(--space-s); }
.margin-bottom-m { margin-bottom: var(--space-m); }
.margin-bottom-l { margin-bottom: var(--space-l); }
.margin-bottom-xl { margin-bottom: var(--space-xl); }

.padding-l { padding: var(--space-l); }

/* -------------------------------------------------------
   FLEX UTILITIES
   ------------------------------------------------------- */
.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }

.flex-column-s { display: flex; flex-direction: column; gap: var(--space-s); }
.flex-column-m { display: flex; flex-direction: column; gap: var(--space-m); }
.flex-column-l { display: flex; flex-direction: column; gap: var(--space-l); }

.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* -------------------------------------------------------
   BASE OBJECTS — CARD PRIMITIVE
   ------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--color-soft-light);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-m);
  transition: transform 0.2s ease, background 0.2s ease;
  color: var(--color-driftwood);
  font-family: var(--font-body);
}

/* -------------------------------------------------------
   TYPOGRAPHIC PRIMITIVES
   ------------------------------------------------------- */
.section-title {
  font-size: clamp(1.2rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: var(--space-s);
  color: var(--color-driftwood);
  line-height: 1.2;
  font-family: var(--font-headline);
}

/* -------------------------------------------------------
   FORM PRIMITIVES
   ------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-l);
}

.form-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-driftwood);
}

.input,
textarea,
select {
  width: 100%;
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  background: var(--color-very-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-golden-dune);
  box-shadow: 0 0 0 3px rgba(215, 171, 111, 0.25);
  outline: none;
}

.input::placeholder,
textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.input:disabled,
textarea:disabled,
select:disabled {
  background: rgba(0,0,0,0.05);
  color: rgba(0,0,0,0.4);
  cursor: not-allowed;
}

.input.error,
textarea.error,
select.error {
  border-color: var(--color-burnt-clay);
  box-shadow: 0 0 0 3px rgba(192, 130, 91, 0.25);
}

.form-error {
  color: var(--color-burnt-clay);
  font-size: 0.85rem;
  margin-top: -4px;
}

.form-helper {
  color: rgba(0,0,0,0.6);
  font-size: 0.85rem;
}

/* -------------------------------------------------------
   ANIMATION PRIMITIVES
   ------------------------------------------------------- */
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes shimmerMove {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}