/* ================================================================
   Out of Office — stylesheet (by oovavoo)
   ================================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --bg:           #f7f6f2;
  --surface:      #ffffff;
  --surface-alt:  #f0ede8;
  --text:         #1c1b18;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --accent:       #d4500a;
  --accent-hover: #b84409;
  --green:        #2d5a45;
  --green-dark:   #1e3d2f;
  --border:       #e4e0d8;
  --shadow-sm:    0 1px 3px rgba(0, 0, 0, .07);
  --shadow-md:    0 4px 18px rgba(0, 0, 0, .08);
  --r-sm:         6px;
  --r-md:         12px;
  --r-lg:         20px;
  --r-pill:       100px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1140px;
  --t:            0.2s ease;
}

/* ── Base ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-hover); }

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

/* Scroll offset for sticky nav */
section[id],
[id="register"] {
  scroll-margin-top: 80px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

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

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--r-sm);
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--t),
    color var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-sm  { font-size: 0.875rem; padding: 0.45rem 0.875rem; }
.btn-lg  { font-size: 1.1rem;   padding: 0.875rem 1.75rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 80, 10, .35);
}

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

.btn-community {
  background: #fff;
  color: var(--green);
  border-color: #fff;
  margin-top: 0.5rem;
}
.btn-community:hover {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .88);
  color: var(--green-dark);
  transform: translateY(-1px);
}

/* ── Navigation ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.5rem;
  border-radius: var(--r-sm);
}
.logo-text {
  font-weight: 700;
  font-size: 1rem;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(212, 80, 10, .07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at -10% 80%, rgba(45, 90, 69, .06) 0%, transparent 70%),
    linear-gradient(165deg, var(--bg) 0%, #ece8df 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  background: rgba(212, 80, 10, .08);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(212, 80, 10, .15);
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  margin-bottom: 1.5rem;
  max-width: 15ch;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
}

/* ── Benefits ───────────────────────────────────────────── */
.benefits {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(212, 80, 10, .2);
}
.benefit-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── Who it's for ───────────────────────────────────────── */
.who-section {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.who-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--t), box-shadow var(--t);
}
.who-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.who-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.who-item strong {
  font-size: 1rem;
  font-weight: 600;
}
.who-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Community ──────────────────────────────────────────── */
.community {
  padding: 5.5rem 0;
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.community-text .section-eyebrow {
  color: rgba(255, 255, 255, .6);
}
.community-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1.5rem;
}
.community-text p {
  color: rgba(255, 255, 255, .8);
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.pull-quote {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-lg);
  padding: 2.5rem 2.5rem 2.5rem 3.5rem;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(255, 255, 255, .2);
  font-family: Georgia, serif;
}
.pull-quote p {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  line-height: 1.45;
  margin: 0;
}

/* ── Form ───────────────────────────────────────────────── */
.form-section {
  padding: 5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.form-header {
  text-align: center;
  margin-bottom: 2.75rem;
}
.form-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.form-header p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto;
}
.required-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem !important;
}

.interest-form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.375rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--accent); }
.optional  { font-weight: 400; color: var(--text-muted); font-size: 0.83rem; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 80, 10, .12);
}
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group input.invalid,
.form-group select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.field-error {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1.1em;
  font-weight: 500;
}

/* Submit button */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.375rem;
}
.form-privacy {
  font-size: 0.8rem;
  color: var(--text-light);
}
.btn-submit {
  position: relative;
  min-width: 185px;
}
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-text   { opacity: 0; position: absolute; }
.btn-submit.loading .btn-spinner { display: block; }
.btn-submit:disabled { opacity: 0.72; cursor: not-allowed; pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

/* Success & Error messages */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
}
.success-icon {
  width: 54px;
  height: 54px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}
.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.form-success p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 0.75rem;
  line-height: 1.7;
}

.form-error-msg {
  padding: 1.25rem 1.5rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r-sm);
  margin-top: 1rem;
}
.form-error-msg p {
  color: #991b1b;
  font-size: 0.95rem;
  margin: 0;
}
.form-error-msg a { color: #991b1b; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] {
  border-color: rgba(212, 80, 10, .25);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  user-select: none;
  transition: background var(--t);
  gap: 1rem;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker               { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  transition: color var(--t);
}
.faq-item[open] .faq-question        { background: var(--surface-alt); }
.faq-item[open] .faq-question::after { content: '−'; color: var(--accent); }
.faq-question:hover                  { background: var(--surface-alt); }
.faq-answer {
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.95rem;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, .65);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.125rem;
}
.footer-brand .logo-mark {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 0.68rem;
}
.footer-tagline {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}
.footer-by      { font-size: 0.75rem; color: rgba(255, 255, 255, .4); letter-spacing: 0.04em; margin-top: -0.25rem; }
.footer-copy    { font-size: 0.875rem; max-width: 50ch; }
.footer-contact { font-size: 0.875rem; }
.footer-contact a { color: rgba(255, 255, 255, .85); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .community-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .community-aside {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3.5rem; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav .btn-sm {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .btn-spinner { animation: none; }
  .benefit-card,
  .who-item,
  .btn { transition: none; }
}
