/* ======================================================
   CSS RESET (lightweight, non-destructive)
====================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ======================================================
   ROOT VARIABLES
====================================================== */

:root {
  /* Brand */
  --fox-orange: #B45628;
  --fox-orange-hover: #AF7551;

  /* Neutrals */
  --ink: #000000;
  --white: #FFFFFF;
  --cloud: #E6E7E8;
  --gray: #6D6E70;

  /* Backgrounds */
  --bg-primary: #EFDBBB;
  --bg-secondary: #FFFFFF;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #5E4E41;
  --text-secondary: #3C4242;
  --text-muted: #6D6E70;

  /* Links */
  --link: #B45628;
  --link-hover: #3C4242;

  /* Buttons */
  --button-bg: #B45628;
  --button-bg-hover: #3C4242;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.12);
  --border-default: rgba(0, 0, 0, 0.18);

  /* Shadows */
  --shadow-soft: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.08);

  /* Inputs */
  --input-bg: rgba(0, 0, 0, 0.05);
  --input-bg-hover: #E6E6E6;
  --input-text: #000000;
  --input-border: transparent;
  --input-border-focus: rgba(0, 0, 0, 0.18);
}

/* ======================================================
   TYPOGRAPHY
====================================================== */

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.75em;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
}

h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

small,
.text-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ======================================================
   LINKS
====================================================== */

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* ======================================================
   BUTTONS (base only)
====================================================== */

button,
.btn,
.btn-primary {
  appearance: none;
  border: none;
  border-radius: 10px;
  background: var(--button-bg);
  color: var(--white);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.1s ease;
}

button:hover,
.btn:hover,
.btn-primary:hover {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--cloud);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--gray);
  color: var(--white);
}

.btn-danger {
  background: #dc3545;
  color: var(--white);
}

.btn-danger:hover {
  background: #c82333;
}

.btn-icon {
  background: transparent;
  color: var(--text-primary);
  padding: 0.5rem;
  font-size: 1.5rem;
  border-radius: 8px;
}

.btn-icon:hover {
  background: var(--cloud);
  transform: none;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ======================================================
   FORMS (neutral baseline)
====================================================== */

input,
textarea,
select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--input-text);
  transition: background 0.2s ease, border 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--input-border-focus);
  background: var(--bg-secondary);
}

/* Checkbox option styles used by intake forms */
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--button-bg);
}

fieldset legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ======================================================
   LAYOUT HELPERS
====================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.card {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow-soft);
  padding: 1.5rem;
}

/* ======================================================
   SPLIT LAYOUT (for splash / access pages only)
====================================================== */

.split-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.visual {
  flex: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  flex: 0.5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(
    90deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
  padding-left: clamp(2rem, 4vw, 5rem);
}

.content-inner {
  max-width: 560px;
}

/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }

  .visual {
    height: 40vh;
  }

  .content {
    padding: 2rem 1.5rem;
    align-items: flex-start;
  }

  .content-inner {
    max-width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.95rem;
  }

  button,
  .btn,
  .btn-primary {
    width: 100%;
  }
}
