/*
Theme Name: Bobby CRE
Theme URI: https://example.com/
Author: Bobby CRE
Description: A focused commercial real estate consultation landing page.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bobby-cre
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Staatliches&display=swap');

:root {
  --cre-bg: #ffffff;
  --cre-surface: #f5f5f3;
  --cre-surface-hover: #eeeeeb;
  --cre-border: #d8d8d3;
  --cre-border-strong: #b8b8b1;
  --cre-text: #171717;
  --cre-muted: #5f5f5f;
  --cre-label: #292929;
  --cre-accent: #d6a51f;
  --cre-accent-hover: #e5b42d;
  --cre-error: #a72626;
  --cre-success: #286b36;
  --cre-display: 'Staatliches', sans-serif;
  --cre-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--cre-bg);
}

body {
  min-width: 320px;
  margin: 0;
  padding: 48px 20px 80px;
  background: var(--cre-bg);
  color: var(--cre-text);
  font-family: var(--cre-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100%, 560px);
  margin: 0 auto;
}

.site-brand {
  margin: 0 0 14px;
  color: var(--cre-accent);
  font-family: var(--cre-display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--cre-display);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .52px;
  text-transform: uppercase;
}

.page-title__accent {
  display: block;
  color: var(--cre-accent);
}

.page-intro {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--cre-muted);
  font-size: 15px;
  line-height: 1.65;
}

.consultation-form {
  margin-top: 38px;
}

.form-section {
  margin: 0;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid var(--cre-border);
}

.form-section:first-child {
  padding-top: 31px;
}

.section-kicker {
  display: block;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  color: #626262;
  font-family: var(--cre-display);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-grid + .field-grid,
.field-grid + .field,
.form-section > .field + .field,
.field + .choice-field,
.choice-field + .choice-field,
.choice-field + .field-grid,
.choice-field + .field {
  margin-top: 14px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.choice-field legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--cre-label);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.required {
  color: var(--cre-accent);
}

input[type='text'],
input[type='email'],
input[type='tel'],
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--cre-border);
  border-radius: 6px;
  outline: 0;
  background: var(--cre-surface);
  color: var(--cre-text);
  font-size: 15px;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

input[type='text'],
input[type='email'],
input[type='tel'],
select {
  height: 44px;
  padding: 10px 14px;
}

select {
  padding-right: 40px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #626262 50%), linear-gradient(135deg, #626262 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

textarea {
  min-height: 98px;
  padding: 12px 14px;
  line-height: 1.35;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #777;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cre-accent);
  background-color: var(--cre-surface-hover);
  box-shadow: 0 0 0 2px rgb(240 192 64 / 12%);
}

.choice-field {
  min-width: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.choice span {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  justify-content: center;
  padding: 6px 13px;
  border: 1px solid var(--cre-border);
  border-radius: 999px;
  background: transparent;
  color: #414141;
  font-size: 12px;
  line-height: 1.4;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.choice:hover span {
  border-color: var(--cre-border-strong);
  color: var(--cre-text);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--cre-accent);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--cre-accent);
  background: var(--cre-accent);
  color: var(--cre-text);
}

.form-actions {
  padding-top: 0;
}

.submit-button {
  width: 100%;
  min-height: 57px;
  padding: 16px 24px;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: var(--cre-accent);
  color: var(--cre-text);
  font-family: var(--cre-display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: background-color 150ms ease, transform 150ms ease;
}

.submit-button:hover {
  background: var(--cre-accent-hover);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:focus-visible {
  outline: 2px solid var(--cre-text);
  outline-offset: 3px;
}

.submit-button[disabled] {
  cursor: wait;
  opacity: .7;
}

.response-note {
  margin: 9px 0 0;
  color: #686868;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.form-notice {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--cre-border);
  border-radius: 6px;
  background: var(--cre-surface);
  font-size: 13px;
}

.form-notice--success {
  border-color: #9ac7a3;
  color: var(--cre-success);
}

.form-notice--error {
  border-color: #d9a5a5;
  color: var(--cre-error);
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 600px) {
  body {
    padding: 28px 20px 56px;
  }

  .site-brand {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .page-title {
    font-size: 36px;
    line-height: 1.05;
  }

  .page-intro {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.55;
  }

  .consultation-form {
    margin-top: 26px;
  }

  .form-section {
    padding: 25px 0;
  }

  .section-kicker {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field-grid + .field-grid,
  .field-grid + .field,
  .form-section > .field + .field,
  .field + .choice-field,
  .choice-field + .choice-field,
  .choice-field + .field-grid,
  .choice-field + .field {
    margin-top: 14px;
  }

  .field label,
  .choice-field legend {
    font-size: 11px;
  }

  input[type='text'],
  input[type='email'],
  input[type='tel'],
  select {
    height: 44px;
    font-size: 13px;
  }

  textarea {
    font-size: 13px;
  }

  .choice span {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
