/* ---------- Theme variables ---------- */

:root {
  --bg: #0a0a0a;
  --card: #1c1c1c;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ff6a00; /* exact orange sampled from stan.store/camgreenwood */
  --accent-text: #0a0a0a;
  --accent-hover: #ff7d1f;
  --card-shadow: none;
  --focus-ring: #ffffff;
  --error: #ff6b6b;
  --accent-ink: #ff6a00; /* accent used as text — passes AA on dark cards */
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --card: #ffffff;
  --border: #e6e6e6;
  --text: #141414;
  --text-muted: #6b6b6b;
  --accent-text: #141414;
  --accent-hover: #ec6200;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --focus-ring: #141414;
  --error: #b3261e;
  --accent-ink: #c24a00; /* darkened accent for text on white — passes AA */
}

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
  border-color: var(--text-muted);
}

.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- Profile ---------- */

.profile {
  text-align: center;
}

.profile__photo {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 20px;
}

.profile__name {
  margin: 24px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.profile__tagline {
  margin: 18px auto 0;
  max-width: 300px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.profile__socials {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.social-btn:hover {
  border-color: var(--text-muted);
}

/* ---------- Offer card ---------- */

.offers {
  margin-top: 56px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.card__body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.card__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.card__text {
  min-width: 0;
}

.card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.card__desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.card__cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.card__cta:hover {
  background: var(--accent-hover);
}

.card__cta:active {
  transform: scale(0.99);
}

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  padding-top: 72px;
  text-align: center;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--border);
}

.modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.modal__close:hover {
  border-color: var(--text-muted);
}

.modal__content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 28px;
}

/* ---------- Enquiry form ---------- */

.form-intro {
  margin-bottom: 28px;
}

.form-intro p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-intro__heading {
  margin: 20px 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}

.form-intro .form-intro__talk-title {
  font-weight: 700;
  color: var(--accent-ink);
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field__req {
  color: var(--accent-ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.field textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__submit {
  margin-top: 8px;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--error);
}

.form-error a {
  color: inherit;
  font-weight: 600;
}

.form-success {
  padding: 12px 0;
  text-align: center;
}

.form-success__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.form-success p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .page {
    padding-top: 64px;
  }

  .profile__photo {
    width: 150px;
    height: 150px;
  }

  .modal {
    padding: 12px;
  }

  .modal__panel {
    height: 90vh;
  }
}
