/*
Theme Name: Sebastian Andreasen
Description: A modern, conversion-focused landing page for Sebastian Andreasen's freelance web design business. Features a 9-step booking wizard for free 24-hour website drafts, Danish language support, and WordPress-compatible functionality.
Version: 1.0.0
Author: Sebastian Andreasen
Author URI: https://sebastianandreasen.dk
Text Domain: sebastian-andreasen
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, portfolio, landing-page, booking, danish, conversion-focused
*/

/* CSS Custom Properties (Variables) */
:root {
    --font-size: 16px;
    --background: #ffffff;
    --foreground: oklch(0.145 0 0);
    --card: #ffffff;
    --card-foreground: oklch(0.145 0 0);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.145 0 0);
    --primary: #030213;
    --primary-foreground: oklch(1 0 0);
    --secondary: oklch(0.95 0.0058 264.53);
    --secondary-foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --accent-foreground: #030213;
    --destructive: #d4183d;
    --destructive-foreground: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --input: transparent;
    --input-background: #f3f3f5;
    --switch-background: #cbced4;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
    --ring: oklch(0.708 0 0);
    --radius: 0.625rem;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size);
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    font-weight: var(--font-weight-normal);
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

p {
    font-size: 1rem;
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-background {
    background-color: var(--background);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

/* Hero Section */
.hero-section {
    padding: 2rem 0 4rem;
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: var(--font-weight-medium);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 32rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.trust-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Booking Wizard */
.booking-wizard-container {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.booking-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.booking-header {
    padding: 1rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.booking-trust-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.booking-trust-badge .clock-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.trust-text {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
}

.step-counter {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--muted);
    border-radius: 0.25rem;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    width: 11.11%; /* 1/9 steps */
}

.step-info {
    margin-top: 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.25rem;
}

.step-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.booking-content {
    padding: 1.5rem;
}

/* Form Styles */
.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--foreground);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--input-background);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 2, 19, 0.1);
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--primary);
    background-color: var(--accent);
}

.radio-option input,
.checkbox-option input {
    width: auto;
    margin: 0;
}

.radio-option label,
.checkbox-option label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.radio-option label strong,
.checkbox-option label strong {
    display: block;
    margin-bottom: 0.25rem;
}

.radio-option label span,
.checkbox-option label span {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Navigation Buttons */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.nav-button.primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.nav-button.primary:hover {
    background-color: rgba(3, 2, 19, 0.9);
}

.nav-button.secondary {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.nav-button.secondary:hover {
    background-color: var(--accent);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button svg {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.booking-footer {
    text-align: center;
    padding-top: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.link-button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.link-button:hover {
    text-decoration: none;
}

/* Success Message */
.booking-success {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    max-width: 32rem;
    margin: 0 auto;
}

.success-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.success-icon svg {
    width: 2rem;
    height: 2rem;
    color: #16a34a;
}

.success-text h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

.success-text p {
    color: var(--muted-foreground);
}

.success-cta {
    padding: 1rem;
    background-color: var(--muted);
    border-radius: calc(var(--radius) - 2px);
}

.success-cta p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.success-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.success-button:hover {
    background-color: var(--accent);
}

/* Section Styles */
.section {
    padding: 4rem 0 6rem;
}

.section.bg-muted {
    background-color: rgba(236, 236, 240, 0.3);
}

.section-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.875rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Card Components */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.card-icon {
    padding: 0.5rem;
    background-color: rgba(3, 2, 19, 0.1);
    border-radius: 0.5rem;
}

.card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.card-text h4 {
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.card-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Footer Styles */
.footer-section {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: white;
}

.footer-cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-cta-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-foreground);
    color: var(--primary);
    border: none;
    border-radius: calc(var(--radius) - 2px);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.footer-cta-button:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding: 2rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.25rem;
    }
    
    .section {
        padding: 6rem 0 6rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 0 6rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Image Placeholder */
.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-radius: calc(var(--radius) - 2px);
    min-height: 200px;
}

/* Booking Wizard Extended Styles */

/* Mood Tiles */
.mood-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mood-tile input {
    display: none;
}

.mood-tile label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mood-tile input:checked + label {
    border-color: var(--primary);
    background-color: var(--accent);
}

.mood-preview {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.mood-preview.modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

.mood-preview.professional {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.mood-preview.creative {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.mood-preview.warm {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Color Palettes */
.color-palettes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.color-palette input {
    display: none;
}

.color-palette label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.color-palette input:checked + label {
    border-color: var(--primary);
    background-color: var(--accent);
}

.palette-preview {
    display: flex;
    gap: 2px;
}

.color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Budget Slider */
.budget-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-slider-container {
    position: relative;
}

#budget-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--muted);
    outline: none;
    -webkit-appearance: none;
}

#budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

#budget-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

.budget-display {
    text-align: center;
    margin-top: 0.5rem;
}

#budget-display {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
}

.budget-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-input-container label {
    font-size: 0.875rem;
    margin: 0;
}

#budget-input {
    width: 120px;
    margin: 0;
}

.currency {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.budget-enterprise {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: var(--accent);
    border-radius: calc(var(--radius) - 2px);
}

.budget-enterprise input {
    width: auto;
    margin: 0;
}

.budget-enterprise label {
    margin: 0;
    cursor: pointer;
}

/* Review Summary */
.review-summary {
    background-color: var(--accent);
    border-radius: calc(var(--radius) - 2px);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-summary h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section strong {
    color: var(--foreground);
}

.summary-section span {
    color: var(--muted-foreground);
}

/* Final CTA Box */
.final-cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(3, 2, 19, 0.8) 100%);
    color: var(--primary-foreground);
    padding: 2rem;
    border-radius: calc(var(--radius) - 2px);
    text-align: center;
    margin-top: 1.5rem;
}

.cta-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cta-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fbbf24;
}

.final-cta-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.final-cta-box p {
    opacity: 0.9;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* File Input Styling */
input[type="file"] {
    padding: 0.5rem;
    background-color: var(--input-background);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(3, 2, 19, 0.1);
}

/* Small text styling */
small {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    display: block;
}

/* Responsive adjustments for booking wizard */
@media (min-width: 640px) {
    .mood-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-palettes {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .mood-tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Focus states for accessibility */
.radio-option:focus-within,
.checkbox-option:focus-within,
.mood-tile:focus-within,
.color-palette:focus-within {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Gør navigation sticky/bunden af viewport - så Next altid er synlig */
.booking-navigation {
  position: sticky;
  bottom: 0;
  background: #fff;            /* eller dit kort-baggrundsfarve */
  padding: 12px 16px;
  box-shadow: 0 -6px 18px rgba(2,10,30,0.06);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Hvis du foretrækker fixed (altid i bunden uanset container højde): */
/*
.booking-navigation {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 980px;   <- valgfrit: sæt efter layout
  margin: 0 auto;
}
*/

.booking-navigation {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 12px 16px;
  box-shadow: 0 -6px 18px rgba(2,10,30,0.06);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
