/* ============================================
   Out The Mud Work Shops — Brand Palette
   --otm-bark:    #3a2210  (deepest brown — hero gradient)
   --otm-coffee:  #4a2c17  (mid brown — headings, social proof)
   --otm-ember:   #d4722a  (signature orange — accents, CTAs)
   --otm-cream:   #faf7f2  (off-white background)
   --otm-tan:     #f5efe6  (subtle table headers / cards)
   --otm-ink:     #1a1a1a  (body text)
   --otm-muted:   #6b5a4a  (warm muted)
   ============================================ */

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.7;
    background: #faf7f2;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

/* ============================================
   Top Bar
   ============================================ */

.topbar {
    background: rgba(250, 247, 242, 0.92);
    border-bottom: 1px solid #ece4d6;
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #4a2c17;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    background: #d4722a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 14px -4px rgba(212, 114, 42, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.topbar-cta:hover {
    background: #e08334;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px -4px rgba(212, 114, 42, 0.55);
}

.topbar-cta:active {
    transform: translateY(0);
}

.brand-logo {
    width: 44px;
    height: 44px;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    background: linear-gradient(-45deg, #1a1108, #3a2210, #4a2c17, #5e3a1f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #faf7f2;
    padding: 92px 24px 116px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    /* subtle warm radial glow accent */
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle at center, rgba(212,114,42,0.20), transparent 60%);
    pointer-events: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: #d4722a;
    margin-bottom: 14px;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    background: #d4722a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px -8px rgba(212, 114, 42, 0.55);
}

.hero-cta:hover {
    background: #e08334;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(212, 114, 42, 0.65);
}

.hero-cta:active {
    transform: translateY(0);
}

/* Hero Logo */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 320px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.55));
    animation: heroLogoFloat 6s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 100px 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.how-it-works h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #3a2210;
}

.section-subtitle {
    color: #6b5a4a;
    font-size: 16px;
    margin-bottom: 52px;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    flex: 1;
    max-width: 240px;
    padding: 0 16px;
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #d4722a 0%, #4a2c17 100%);
    color: #faf7f2;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 20px -8px rgba(74, 44, 23, 0.45);
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    color: #4a2c17;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #6b5a4a;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #ece4d6;
    margin-top: 26px;
    flex-shrink: 0;
}

/* ============================================
   Social Proof
   ============================================ */

.social-proof {
    background: #3a2210;
    padding: 48px 24px;
}

.proof-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

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

.proof-number {
    font-size: 36px;
    font-weight: 800;
    color: #d4722a;
    letter-spacing: -0.5px;
}

.proof-label {
    font-size: 13px;
    color: rgba(250, 247, 242, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proof-divider {
    width: 1px;
    height: 48px;
    background: rgba(212, 114, 42, 0.25);
}

/* ============================================
   Feature Cards
   ============================================ */

.features {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #3a2210;
}

.features-subtitle {
    text-align: center;
    color: #6b5a4a;
    font-size: 16px;
    margin-bottom: 52px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 8px -2px rgba(58, 34, 16, 0.05), 0 2px 4px -1px rgba(58, 34, 16, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #ece4d6;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 28px -10px rgba(58, 34, 16, 0.18), 0 10px 12px -6px rgba(58, 34, 16, 0.08);
    border-color: #d4722a;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: #fff3e8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #4a2c17;
}

.feature-card p {
    font-size: 15px;
    color: #6b5a4a;
    line-height: 1.7;
}

/* ============================================
   Form
   ============================================ */

.form-section {
    background: #f5efe6;
    padding: 100px 24px;
}

.form-container {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ece4d6;
    border-radius: 14px;
    padding: 44px 40px;
    box-shadow: 0 24px 48px -16px rgba(58, 34, 16, 0.18);
}

.form-section h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #3a2210;
}

.form-section .subtitle {
    text-align: center;
    color: #6b5a4a;
    font-size: 16px;
    margin-bottom: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a2c17;
}

.optional-label {
    color: #b09b88;
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ece4d6;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: #b09b88;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #d4722a;
    box-shadow: 0 0 0 4px rgba(212, 114, 42, 0.18);
}

/* Consent checkbox */
.consent-group {
    background: #faf7f2;
    border: 1px solid #ece4d6;
    border-radius: 10px;
    padding: 14px 16px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4a2c17;
    line-height: 1.55;
    font-weight: 500;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #d4722a;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #d4722a 0%, #4a2c17 100%);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    letter-spacing: 0.2px;
    margin-top: 6px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -8px rgba(74, 44, 23, 0.45);
    filter: brightness(1.05);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(74, 44, 23, 0.25);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.trust-signal {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #b09b88;
}

.trust-signal::before {
    content: "\1F512 ";
}

.form-message {
    text-align: center;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.field-error {
    display: block;
    min-height: 1.2em;
    margin-top: 4px;
    color: #c0392b;
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-group input[aria-invalid="true"] {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-group input[aria-invalid="true"]:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.18);
}

/* Success card (replaces form after submission) */
.success-card {
    text-align: center;
    padding: 16px 8px 8px;
    animation: successFadeIn 0.4s ease-out;
}

.success-icon {
    color: #16a34a;
    margin-bottom: 18px;
    display: inline-flex;
    background: #f0fdf4;
    border-radius: 50%;
    padding: 14px;
}

.success-title {
    font-size: 24px;
    font-weight: 800;
    color: #3a2210;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.success-message {
    font-size: 15px;
    color: #6b5a4a;
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.success-cta {
    margin-top: 0;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #3a2210;
    padding: 36px 24px;
    color: #faf7f2;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.footer-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.footer-text strong {
    font-size: 16px;
    color: #faf7f2;
    font-weight: 700;
}

.footer-text span {
    font-size: 13px;
    color: rgba(250, 247, 242, 0.65);
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .topbar { padding: 12px 18px; }
    .brand-logo { width: 36px; height: 36px; }
    .brand-name { font-size: 14px; }
    .topbar-cta { padding: 8px 14px; font-size: 13px; }

    .hero { padding: 64px 20px 80px; }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 { font-size: 32px; }
    .hero-text p { margin: 0 auto 28px; }
    .hero-logo { width: 200px; }

    .how-it-works { padding: 72px 20px; }
    .steps { flex-direction: column; align-items: center; gap: 32px; }
    .step-connector { width: 2px; height: 32px; margin: 0; }

    .social-proof { padding: 40px 20px; }
    .proof-inner { flex-wrap: wrap; gap: 32px; }
    .proof-divider { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .features { padding: 72px 20px; }
    .form-section { padding: 72px 20px; }
    .form-container { padding: 32px 24px; }

    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
