/* ==========================================================================
   Vestra Tech - Website Design Platform Styling
   Refined Light Grey & Ivory Theme matching Main Website (--bg-main: #f6f8fb)
   Deep Navy (#0f1b33) headings, High Contrast text, Luxury Gold (#c5a059) accents
   Zero green - 100% brand consistency with Vestra Tech core identity
   ========================================================================== */

:root {
    --wd-bg: #f6f8fb;
    --wd-bg-card: #ffffff;
    --wd-bg-card-hover: #ffffff;
    --wd-bg-soft: #f1f5f9;
    --wd-bg-alt: #ffffff;
    --wd-border: #e1e6ee;
    --wd-border-light: #cbd5e1;
    --wd-gold: #c5a059;
    --wd-gold-light: #d4af37;
    --wd-gold-dark: #9e7d3b;
    --wd-gold-glow: rgba(197, 160, 89, 0.22);
    --wd-text: #0f1b33;
    --wd-text-muted: #5b6678;
    --wd-text-dim: #64748b;
    --wd-radius-lg: 20px;
    --wd-radius-md: 14px;
    --wd-radius-sm: 8px;
    --wd-shadow: 0 4px 18px rgba(15, 27, 51, 0.06);
    --wd-shadow-hover: 0 12px 32px rgba(15, 27, 51, 0.12);
    --wd-shadow-gold: 0 8px 24px rgba(197, 160, 89, 0.28);
}

/* Base Body Styles for Website Design Page */
.wd-page {
    background-color: var(--wd-bg);
    color: var(--wd-text);
    font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sections */
.wd-section {
    padding: 80px 0;
    position: relative;
    background-color: var(--wd-bg);
}

.wd-section-alt {
    background-color: var(--wd-bg-alt);
    border-top: 1px solid var(--wd-border);
    border-bottom: 1px solid var(--wd-border);
}

.wd-header-block {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}

.wd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: #8a6824;
    margin-bottom: 16px;
}

.wd-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.28;
    color: var(--wd-text);
    margin-bottom: 16px;
}

.wd-title .gold-accent {
    background: linear-gradient(135deg, #0f1b33 20%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.wd-desc {
    font-size: 1.15rem;
    color: var(--wd-text-muted);
    line-height: 1.75;
}

/* ==========================================================================
   Hero Section - Clean Light Grey & Centered Layout
   ========================================================================== */
.wd-hero {
    padding: 70px 0 65px;
    background: linear-gradient(180deg, #f6f8fb 0%, #edf2f7 50%, #f6f8fb 100%);
    border-bottom: 1px solid var(--wd-border);
    position: relative;
    overflow: hidden;
}

.wd-hero::before {
    content: '';
    position: absolute;
    top: 5%;
    inset-inline-start: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.wd-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wd-hero .wd-desc {
    max-width: 820px;
    margin: 0 auto 28px;
}

.wd-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

/* Action Buttons */
.wd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--wd-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

.wd-btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #c5a059 50%, #a8843e 100%);
    color: #0b1220 !important;
    box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
}

.wd-btn-gold:hover {
    background: linear-gradient(135deg, #e5c98d 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(197, 160, 89, 0.45);
    color: #0b1220 !important;
}

.wd-btn-ghost {
    background: #ffffff;
    border: 1.5px solid var(--wd-border-light);
    color: var(--wd-text) !important;
    box-shadow: 0 2px 8px rgba(15, 27, 51, 0.04);
}

.wd-btn-ghost:hover {
    background: #f8fafc;
    border-color: var(--wd-text);
    color: var(--wd-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 27, 51, 0.08);
}

/* ==========================================================================
   Domain Checker Tool (Positioned in Hero)
   ========================================================================== */
.wd-hero-domain-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.wd-domain-card {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-lg);
    padding: 32px 34px;
    box-shadow: 0 6px 24px rgba(15, 27, 51, 0.07);
    text-align: center;
}

.wd-domain-header {
    text-align: center;
    margin-bottom: 20px;
}

.wd-domain-heading {
    color: var(--wd-text);
    font-size: 1.45rem;
    font-weight: 800;
    margin-top: 8px;
    margin-bottom: 6px;
}

.wd-domain-sub {
    color: var(--wd-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.wd-domain-bar {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.wd-domain-input {
    flex: 1;
    min-width: 240px;
    padding: 13px 18px;
    border-radius: var(--wd-radius-md);
    background: #f8fafc;
    border: 1.5px solid var(--wd-border-light);
    color: var(--wd-text);
    font-size: 1.02rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.wd-domain-input:focus {
    background: #ffffff;
    border-color: var(--wd-gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--wd-gold-glow);
}

.wd-domain-ext {
    min-width: 110px;
    padding: 13px 14px;
    border-radius: var(--wd-radius-md);
    background: #f8fafc;
    border: 1.5px solid var(--wd-border-light);
    color: var(--wd-text);
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wd-domain-ext:focus {
    border-color: var(--wd-gold);
    outline: none;
    background: #ffffff;
}

.wd-domain-result {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: var(--wd-radius-md);
    font-size: 0.96rem;
    line-height: 1.6;
    text-align: start;
}

.wd-domain-result.available {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #065f46;
    font-weight: 600;
}

.wd-domain-result.unavailable {
    background: #fff1f2;
    border: 1.5px solid #fca5a5;
    color: #9f1239;
    font-weight: 600;
}

.wd-domain-result.loading {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    color: #92400e;
    font-weight: 600;
}

/* ==========================================================================
   Designs Showcase Cards (White Cards on Soft Grey Background)
   ========================================================================== */
.wd-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.wd-card {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--wd-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wd-card:hover {
    transform: translateY(-6px);
    border-color: var(--wd-gold);
    box-shadow: var(--wd-shadow-hover);
}

.wd-card-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    border-bottom: 1px solid var(--wd-border);
    overflow: hidden;
}

.wd-card-thumb iframe {
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: 0 0;
    border: 0;
    pointer-events: none;
    background: #ffffff;
}

[dir="rtl"] .wd-card-thumb iframe {
    transform-origin: 100% 0;
}

.wd-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.wd-card-tag {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #8a6824;
    border: 1px solid var(--wd-border-light);
}

.wd-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--wd-text);
}

.wd-card-desc {
    color: var(--wd-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.wd-card-features {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    list-style: none;
    padding: 0;
}

.wd-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--wd-text);
    font-weight: 500;
}

.wd-card-features li i {
    color: var(--wd-gold);
    font-size: 0.88rem;
}

.wd-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--wd-border);
}

/* ==========================================================================
   Live Preview Studio
   ========================================================================== */
.wd-studio-card {
    background: #f8fafc;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-lg);
    padding: 26px;
    box-shadow: var(--wd-shadow);
}

.wd-studio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--wd-border);
}

.wd-studio-devices {
    display: flex;
    gap: 6px;
    background: #ffffff;
    padding: 4px;
    border-radius: var(--wd-radius-md);
    border: 1px solid var(--wd-border-light);
}

.wd-studio-btn {
    padding: 8px 14px;
    border-radius: var(--wd-radius-sm);
    background: transparent;
    border: none;
    color: var(--wd-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wd-studio-btn[aria-pressed="true"],
.wd-studio-btn.active {
    background: var(--wd-gold);
    color: #0b1220;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

.wd-studio-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wd-tab-btn {
    padding: 8px 16px;
    border-radius: var(--wd-radius-md);
    background: #ffffff;
    border: 1.5px solid var(--wd-border-light);
    color: var(--wd-text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wd-tab-btn.active {
    background: var(--wd-text);
    border-color: var(--wd-text);
    color: #ffffff;
    font-weight: 700;
}

.wd-studio-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 980px) {
    .wd-studio-layout {
        grid-template-columns: 1fr;
    }
}

.wd-studio-frame-wrap {
    background: #e2e8f0;
    border-radius: var(--wd-radius-md);
    border: 1px solid var(--wd-border-light);
    padding: 16px;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.wd-studio-frame-wrap iframe {
    width: 100%;
    height: 640px;
    border: none;
    border-radius: var(--wd-radius-sm);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 27, 51, 0.15);
    transition: width 0.3s ease;
}

.wd-studio-sidebar {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--wd-shadow);
}

.wd-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wd-text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wd-sidebar-title i {
    color: var(--wd-gold);
}

.wd-field-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.wd-input,
.wd-select,
.wd-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--wd-radius-sm);
    background: #f8fafc;
    border: 1.5px solid var(--wd-border-light);
    color: var(--wd-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wd-input:focus,
.wd-select:focus,
.wd-textarea:focus {
    background: #ffffff;
    border-color: var(--wd-gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--wd-gold-glow);
}

.wd-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wd-color-picker-wrap input[type="color"] {
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--wd-border-light);
    width: 44px;
    height: 44px;
    border-radius: var(--wd-radius-sm);
    cursor: pointer;
    background: #ffffff;
    padding: 2px;
}

/* ==========================================================================
   Order Section (Crisp White Card with Deep Navy Text)
   ========================================================================== */
.wd-order-card {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-lg);
    padding: 40px;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(15, 27, 51, 0.06);
}

.wd-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.wd-design-pick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--wd-radius-md);
    background: #f8fafc;
    border: 1.5px solid var(--wd-border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #1e293b;
}

.wd-design-pick-card:hover,
.wd-design-pick-card.active {
    border-color: var(--wd-gold);
    background: #fffdf8;
    color: var(--wd-text);
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.2);
}

.wd-design-pick-card input {
    accent-color: var(--wd-gold);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.wd-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.wd-faq-item {
    background: #ffffff;
    border: 1px solid var(--wd-border);
    border-radius: var(--wd-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wd-faq-item[open] {
    border-color: var(--wd-gold);
    box-shadow: 0 4px 14px rgba(15, 27, 51, 0.05);
}

.wd-faq-item summary {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--wd-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wd-faq-item summary::-webkit-details-marker {
    display: none;
}

.wd-faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--wd-gold);
    transition: transform 0.2s ease;
}

.wd-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.wd-faq-content {
    padding: 0 22px 20px;
    color: var(--wd-text-muted);
    line-height: 1.7;
    font-size: 0.98rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

/* ==========================================================================
   Floating WhatsApp / Action
   ========================================================================== */
.wd-wa-float {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: all 0.25s ease;
}

.wd-wa-float:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    color: #ffffff;
}

/* Language Dropdown in Nav */
.lang-menu {
    background: #ffffff !important;
    border: 1px solid var(--wd-border) !important;
    box-shadow: 0 6px 20px rgba(15, 27, 51, 0.1) !important;
}

.lang-menu button {
    color: var(--wd-text) !important;
}

.lang-menu button:hover {
    background: #f1f5f9 !important;
    color: var(--wd-gold-dark) !important;
}

/* ==========================================================================
   Mobile Responsive Enhancements (Phones & Tablets)
   ========================================================================== */
@media (max-width: 820px) {
    .wd-section {
        padding: 50px 0;
    }
    .wd-hero {
        padding: 42px 0 36px;
    }
    .wd-title {
        font-size: clamp(1.75rem, 5.5vw, 2.3rem);
    }
    .wd-desc {
        font-size: 1rem;
        line-height: 1.65;
    }
    .wd-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .wd-hero-actions .wd-btn {
        width: 100%;
        justify-content: center;
    }
    .wd-domain-card {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .wd-domain-bar {
        flex-direction: column;
        gap: 10px;
    }
    .wd-domain-input,
    .wd-domain-ext,
    #wd-domain-check-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
    .wd-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wd-card-body {
        padding: 20px 16px;
    }
    .wd-card-thumb {
        aspect-ratio: 16 / 11;
    }
    .wd-card-thumb iframe {
        width: 135%;
        height: 135%;
        transform: scale(0.74);
        transform-origin: 0 0;
    }
    [dir="rtl"] .wd-card-thumb iframe {
        transform-origin: 100% 0;
    }
    .wd-studio-card {
        padding: 16px 12px;
        border-radius: 16px;
    }
    .wd-studio-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .wd-studio-tabs {
        width: 100%;
        display: flex;
        gap: 6px;
    }
    .wd-tab-btn {
        flex: 1;
        padding: 8px 6px;
        font-size: 0.82rem;
        text-align: center;
        border-radius: 8px;
    }
    .wd-studio-devices {
        width: 100%;
        display: flex;
        gap: 4px;
    }
    .wd-studio-btn {
        flex: 1;
        justify-content: center;
        padding: 7px 6px;
        font-size: 0.82rem;
    }
    .wd-studio-frame-wrap {
        padding: 8px;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .wd-studio-frame-wrap iframe {
        height: 480px;
        margin: 0 auto;
        display: block;
        transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .wd-design-pick-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .wd-order-card {
        padding: 22px 16px;
    }
    .wd-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .wd-section {
        padding: 38px 0;
    }
    .wd-hero {
        padding: 32px 0 28px;
    }
    .wd-domain-card {
        padding: 18px 12px;
    }
    .wd-card-actions .wd-btn {
        width: 100%;
        justify-content: center;
    }
    .wd-studio-frame-wrap iframe {
        height: 380px !important;
    }
}
