/* ============================================
   IDL Immobilien – Design System
   Premium Real Estate Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --color-primary: #1B2A4A;
    --color-primary-light: #2A3F6B;
    --color-primary-dark: #0F1923;
    --color-accent: #C8A96E;
    --color-accent-light: #D4BC8A;
    --color-accent-dark: #A8894E;
    --color-bg: #F8F6F2;
    --color-bg-alt: #F0EDE6;
    --color-bg-dark: #0F1923;
    --color-text: #2D3748;
    --color-text-light: #6B7280;
    --color-text-on-dark: #E8E4DD;
    --color-white: #FFFFFF;
    --color-success: #059669;
    --color-error: #DC2626;
    --color-border: #D1CCC2;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 250px;

    /* Effects */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- SVG Icons --- */
.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: linear-gradient(135deg, #FFD600 0%, #FFB300 40%, #FF9800 100%);
    border-bottom: 3px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.2);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(255, 152, 0, 0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    flex-wrap: wrap;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 180px;
    width: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(27, 42, 74, 0.9);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.08);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: relative;
    transition: all var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    padding-top: var(--nav-height);
}

/* --- Page Sections --- */
.section {
    padding: var(--space-4xl) 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.accent-bar {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 3px;
    margin: var(--space-md) auto 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 169, 110, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 169, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-lg);
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.5px;
}

.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-xs);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.4);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(27, 42, 74, 0.06), rgba(200, 169, 110, 0.08));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 1.6rem;
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* ============================================
   CONSENT BOX (DSGVO Widget Loader)
   ============================================ */
.consent-box {
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.consent-box .consent-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.consent-box h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.consent-box p {
    max-width: 500px;
    margin: 0 auto var(--space-md);
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
}

.consent-box .btn {
    margin-top: var(--space-md);
}


/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-stars {
    font-size: 1.2rem;
    color: #f5a623;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.testimonial-quote {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-left: var(--space-lg);
    border-left: 3px solid var(--color-accent);
}

.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.testimonial-source {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* ============================================

   CONTACT FORM
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.form-label .required {
    color: var(--color-accent);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
}

.form-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
}

.form-message--success {
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--color-success);
}

.form-message--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--color-error);
}

/* Honeypot */
.form-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    pointer-events: none;
}

/* ============================================
   CONTACT INFO CARD
   ============================================ */
.contact-info-card {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
}

.contact-info-card h3 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-item .icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--color-accent-light);
}

.contact-info-item a:hover {
    color: var(--color-accent);
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.two-col--reverse {
    direction: rtl;
}

.two-col--reverse>* {
    direction: ltr;
}

/* ============================================
   LEGAL / TEXT PAGES
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) 0;
}

.legal-content h1 {
    margin-bottom: var(--space-xl);
}

.legal-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.legal-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.legal-content ul {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

/* ============================================
   SERVICE LIST (About Page)
   ============================================ */
.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    position: relative;
    padding: var(--space-md) 0 var(--space-md) var(--space-2xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ============================================
   IMMOWELT EMBED
   ============================================ */
.embed-container {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 400px;
}

.embed-container iframe {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
    text-align: center;
    padding: var(--space-4xl) 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(27, 42, 74, 0.08);
    line-height: 1;
}

.error-page h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.error-page p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary-dark);
    color: var(--color-text-on-dark);
    padding: var(--space-4xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(1.5);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.footer-contact-line a {
    color: var(--color-accent-light);
}

.footer-contact-line a:hover {
    color: var(--color-accent);
}

.footer-contact-line .icon {
    color: var(--color-accent);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent-light);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: var(--space-3xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-3xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200, 169, 110, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    :root {
        --nav-height: 120px;
    }

    .logo-img {
        height: 90px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(14, 22, 42, 0.98);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
        padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
        transition: right var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: var(--space-md);
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-white);
        background: rgba(255, 255, 255, 0.08);
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .two-col--reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .hero-stats {
        gap: var(--space-xl);
    }

    .hero {
        min-height: 75vh;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: var(--space-4xl) 0 var(--space-3xl);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .cta-banner {
        padding: var(--space-2xl) var(--space-lg);
    }
}

/* ============================================
   VALUATION WIZARD
   ============================================ */

/* Split hero layout */
.hero--valuation {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero--valuation .hero-content {
    max-width: 100%;
}

.hero--valuation .hero-text {
    max-width: 100%;
    font-size: 1.1rem;
}

/* Wizard Card */
.wizard-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* Progress Bar */
.wizard-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step-indicator {
    text-align: center;
    padding: var(--space-md) var(--space-xl) 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Steps */
.wizard-step {
    display: none;
    padding: var(--space-lg) var(--space-xl) var(--space-md);
    animation: wizardFadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-question {
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}

.wizard-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: calc(var(--space-sm) * -1);
    margin-bottom: var(--space-lg);
}

/* Property Type Cards (Step 1) */
.property-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.type-card {
    cursor: pointer;
}

.type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.type-card:hover .type-card-inner {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 169, 110, 0.3);
    transform: translateY(-2px);
}

.type-card.selected .type-card-inner,
.type-card input:checked+.type-card-inner {
    background: rgba(200, 169, 110, 0.15);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.2);
}

.type-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.type-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-white);
}

/* Wizard Form Fields */
.wizard-fields {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.wizard-fields--compact {
    gap: var(--space-sm);
}

.field-row {
    display: flex;
    gap: var(--space-md);
}

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.wizard-step input[type="text"],
.wizard-step input[type="number"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step select,
.wizard-step textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition);
}

.wizard-step input::placeholder,
.wizard-step textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.wizard-step select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A96E' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.wizard-step select option {
    background: var(--color-primary);
    color: var(--color-white);
}

.wizard-step input:focus,
.wizard-step select:focus,
.wizard-step textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.wizard-step textarea {
    resize: vertical;
    min-height: 60px;
}

/* Error state */
.field-error {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2) !important;
}

/* Radio pills */
.radio-row {
    display: flex;
    gap: var(--space-sm);
}

.radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
}

.radio-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.radio-pill input {
    accent-color: var(--color-accent);
    margin: 0;
    width: 14px;
    height: 14px;
}

/* Checkbox grid */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.check-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all var(--transition);
}

.check-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(200, 169, 110, 0.3);
}

.check-pill input {
    accent-color: var(--color-accent);
    margin: 0;
    width: 14px;
    height: 14px;
}

/* Checkbox consent label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

/* Navigation Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.88rem;
}

.wizard-submit {
    gap: var(--space-sm);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-spinner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Honeypot */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    pointer-events: none;
}

/* Success / Error States */
.wizard-success,
.wizard-error {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.wizard-success h3,
.wizard-error h3 {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.wizard-success p,
.wizard-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-hint {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Shake animation for validation errors */
@keyframes wizardShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.wizard-shake {
    animation: wizardShake 0.4s ease;
}

/* ============================================
   VALUATION WIZARD – RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero--valuation {
        padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
    }

    .hero--valuation .hero-content {
        text-align: center;
    }

    .hero--valuation .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero--valuation .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .property-type-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .type-card-inner {
        flex-direction: row;
        padding: var(--space-md) var(--space-lg);
    }

    .field-row {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .wizard-step {
        padding: var(--space-md) var(--space-md) var(--space-sm);
    }

    .wizard-nav {
        padding: var(--space-sm) var(--space-md) var(--space-lg);
    }

    .hero--valuation .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .checkbox-grid {
        gap: 6px;
    }

    .check-pill {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* ============================================
   AWARDS & CERTIFICATES
   ============================================ */

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto var(--space-3xl);
}

.award-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    transition: transform var(--transition);
}

.award-item:hover {
    transform: translateY(-6px);
}

.award-item img {
    width: 100%;
    max-width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.award-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-gold);
    letter-spacing: 0.02em;
}

.certificates-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.certificate-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.certificate-card img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.certificate-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.certificate-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.award-banner {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.award-banner img {
    width: 100%;
    display: block;
}

.press-article {
    text-align: center;
}

.about-portrait {
    text-align: center;
}

@media (max-width: 900px) {
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-row {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .award-item img {
        max-width: 120px;
        height: 120px;
    }
}

/* Overlay for mobile nav */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 998;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}