/* ═══════════════════════════════════════════════════════════════
   Rolek Interior — UX Polish
   Site-wide small fixes layered on top of style.min.css
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. Dark colour-scheme site-wide (affects native controls) ── */
:root, html, body { color-scheme: dark; }

/* ── 1. Smooth scroll for anchor links ── */
html { scroll-behavior: smooth; }

/* ── 2. Gold focus rings on form inputs ── */
input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.18) !important;
    outline: none !important;
}

/* ── 3. Consistent placeholder text colour ── */
.form-control::placeholder { color: #888; opacity: 1; }
.form-control:-ms-input-placeholder { color: #888; }

/* ── 4. Dark-friendly native input controls ── */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="number"],
select.form-control {
    color-scheme: dark !important;
}

/* Custom gold calendar icon — guaranteed visible on every browser */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

/* Custom gold clock icon for time inputs */
input[type="time"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'><path d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

/* Hide the native picker indicator but keep it clickable (full-width click target) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0; top: 0;
    width: 44px; height: 100%;
    cursor: pointer;
    background: transparent;
}

/* Make the date/time input positioning context for the indicator */
input[type="date"], input[type="time"],
input[type="datetime-local"], input[type="month"], input[type="week"] {
    position: relative;
}

/* Number input spinner — make arrows visible on dark */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.85 !important;
    filter: invert(1) !important;
    cursor: pointer !important;
}

/* ── 5. (Scroll-to-top button removed — site already has one via jquery.scrollUp) ── */

/* ── 6. Submit button spinner ── */
.btn-spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: -2px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── 7. Image fade-in on load (project + furniture cards only) ── */
.proj-img img,
.furniture-card-img img {
    opacity: 0;
    transition: opacity 0.55s ease;
}
.proj-img img.is-loaded,
.furniture-card-img img.is-loaded {
    opacity: 1;
}

/* ── Respect reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn-spinner,
    .proj-img img,
    .furniture-card-img img { transition: none !important; animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TYPOGRAPHY FIXES
   Force headings to scale down on phones so they don't break layouts.
   ═══════════════════════════════════════════════════════════════ */

/* Fluid scaling on phones — uses clamp() so size adapts to the viewport
   regardless of which exact media-query breakpoint matches. This is
   resilient against caching of older media-query rules. */
@media (max-width: 991px) {
    html body .slider-area h2,
    html body .s-slider-content h2,
    html body .slider-content h2 {
        font-size: clamp(1.4rem, 5.2vw, 2.2rem) !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
        margin-bottom: 20px !important;
        word-break: normal;
        hyphens: none;
    }
    html body .slider-area p,
    html body .s-slider-content p,
    html body .slider-content p {
        font-size: clamp(0.85rem, 3.6vw, 1rem) !important;
        line-height: 1.6 !important;
    }
    html body .breadcrumb-area .breadcrumb-title h2 {
        font-size: clamp(1.4rem, 5vw, 2rem) !important;
        line-height: 1.22 !important;
    }
    html body .about-area .about-title h2,
    html body .about-area .second-title h2,
    html body .second-title h2,
    html body .section-title h2 {
        font-size: clamp(1.25rem, 4.4vw, 1.8rem) !important;
        line-height: 1.25 !important;
    }
    html body .about-statement h1 {
        font-size: clamp(1.3rem, 4.8vw, 1.9rem) !important;
        line-height: 1.25 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PAYMENT BANK BOX (consultation + preorder success pages)
   ═══════════════════════════════════════════════════════════════ */
.pay-box {
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 6px;
    padding: 22px 24px;
    margin: 24px auto;
    max-width: 520px;
    text-align: left;
}
.pay-box .pay-eyebrow {
    display: block;
    color: #D4AF37;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 1.6px; text-transform: uppercase;
    margin-bottom: 14px; text-align: center;
}
.pay-box .pay-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(212,175,55,0.12);
    gap: 12px; flex-wrap: wrap;
}
.pay-box .pay-row:last-child { border-bottom: none; }
.pay-box .pay-label {
    color: #888; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
    flex: 0 0 auto;
}
.pay-box .pay-value {
    color: #fff; font-size: 1rem; font-weight: 600;
    text-align: right; flex: 1; min-width: 0;
    word-break: break-word;
}
.pay-box .pay-acct {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem; font-weight: 700;
    color: #D4AF37; letter-spacing: 1.5px;
}
.pay-copy-btn {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.5);
    color: #D4AF37;
    font-size: 0.72rem; font-weight: 600;
    padding: 4px 10px; border-radius: 3px;
    cursor: pointer; margin-left: 10px;
    letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.25s;
    vertical-align: middle;
}
.pay-copy-btn:hover { background: #D4AF37; color: #111; }
.pay-copy-btn.copied { background: #25D366; color: #fff; border-color: #25D366; }
.pay-note {
    color: #aaa; font-size: 0.87rem; line-height: 1.6;
    text-align: center; margin: 14px 0 0;
}
.pay-fee-strip {
    background: rgba(212,175,55,0.08);
    border-left: 3px solid #D4AF37;
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: 0 3px 3px 0;
}
.pay-fee-strip h4 {
    color: #fff; font-size: 1rem; font-weight: 700;
    margin: 0 0 6px;
}
.pay-fee-strip p { color: #ccc; font-size: 0.92rem; margin: 0; line-height: 1.65; }
.pay-fee-strip .price-big {
    color: #D4AF37; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px;
}

/* ── Premium 3-step flow indicator ── */
.flow-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin: 30px auto 36px;
    max-width: 520px; padding: 0 8px;
}
.flow-step {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    flex: 0 0 auto;
}
.flow-step .step-circle {
    width: 38px; height: 38px; border-radius: 50%;
    background: #1a1a1a; border: 1.5px solid rgba(212,175,55,0.4);
    color: #888; font-size: 0.9rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s;
}
.flow-step.done .step-circle {
    background: #D4AF37; border-color: #D4AF37; color: #111;
}
.flow-step.active .step-circle {
    background: rgba(212,175,55,0.15);
    border-color: #D4AF37; color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
    animation: step-pulse 2s ease-in-out infinite;
}
@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
    50%      { box-shadow: 0 0 0 8px rgba(212,175,55,0.08); }
}
.flow-step .step-label {
    color: #888; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    white-space: nowrap;
}
.flow-step.done .step-label,
.flow-step.active .step-label { color: #D4AF37; }
.flow-line {
    flex: 1; height: 1px;
    background: rgba(212,175,55,0.2);
    margin: 0 8px;
    align-self: flex-start; margin-top: 19px;
}
.flow-line.done { background: #D4AF37; }
@media (max-width: 480px) {
    .flow-step .step-circle { width: 32px; height: 32px; font-size: 0.78rem; }
    .flow-step .step-label  { font-size: 0.6rem; letter-spacing: 0.5px; }
}

/* ── Premium success wrap ── */
.pay-success-wrap {
    max-width: 600px; margin: 0 auto;
}
.pay-success-wrap .success-icon {
    font-size: 3.4rem; color: #D4AF37; margin-bottom: 10px;
}
.pay-success-wrap h3 {
    color: #fff; font-size: 1.5rem; font-weight: 700;
    margin: 0 0 8px;
}
.pay-success-wrap .lead {
    color: #aaa; font-size: 0.97rem; line-height: 1.7;
    margin: 0 0 6px;
}
.pay-wa-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff !important;
    padding: 14px 32px; border-radius: 4px;
    font-size: 0.95rem; font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(37,211,102,0.25);
}
.pay-wa-btn:hover {
    background: #1ebe5d; color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,211,102,0.4);
}
.pay-wa-btn i { font-size: 1.15rem; }
.pay-trust {
    margin-top: 22px;
    color: #666; font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.pay-trust i { color: #D4AF37; margin-right: 5px; }

/* ═══════════════════════════════════════════════════════════════
   MOBILE SPACING — when columns stack, add breathing room
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    /* About area on homepage — image stacks above content, needs gap */
    .about-area .s-about-content,
    .about-area .about-content {
        margin-top: 50px !important;
    }
    /* "Who We Are" carousel on about page — same stacking issue */
    .about-slide .asl-text {
        margin-top: 40px;
    }
    /* Founder area when image stacks above bio */
    .founder-area .col-lg-7 {
        margin-top: 50px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile UX Polish — site-wide
   Fixes from 2026-05-25 audit
   ═══════════════════════════════════════════════════════════════ */

/* ── A. iOS focus-zoom fix: form inputs must be ≥ 16px ── */
@media (max-width: 767px) {
    .form-control,
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px !important;
    }
}

/* ── B. Floating WhatsApp button: move from left to right so it doesn't
       sit on the natural content edge / overlap badges & forms ── */
.wa-float {
    left: auto !important;
    right: 24px !important;
}
.wa-popup {
    left: auto !important;
    right: 24px !important;
}

/* Safety: keep page content clear of the floating button on mobile */
@media (max-width: 767px) {
    body {
        padding-bottom: 32px;
    }
}

/* ── C. Touch-target minimums (Apple HIG 44×44px) ── */
@media (max-width: 767px) {
    .footer-social a,
    .contact-sidebar .social-links a,
    .social-link {
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 0.95rem !important;
    }
}

/* ── D. About page — "Who We Are" carousel image too tall on mobile ── */
@media (max-width: 767px) {
    .about-slide .asl-img img,
    .asl-img img {
        max-height: 300px !important;
        object-fit: cover !important;
    }
}

/* ── E. Trophy shelf — fade affordance hint so users know to swipe → ── */
@media (max-width: 767px) {
    .trophy-shelf {
        position: relative;
    }
    .trophy-shelf::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 32px;
        pointer-events: none;
        background: linear-gradient(to right, transparent, #0f0f0f 85%);
        z-index: 2;
    }
}

/* ── F. Service sub-cards — always show description on mobile (no hover) ── */
@media (max-width: 991px) {
    .sub-svc-desc {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 6px !important;
    }
}

/* ── G. Contact map — too tall on mobile ── */
@media (max-width: 767px) {
    .contact-map iframe,
    .map-area iframe,
    iframe[src*="google.com/maps"] {
        height: 240px !important;
    }
}

/* ── H. Consultation bank-account row — stack vertically so 10-digit
       number doesn't get pushed off-screen by copy button ── */
@media (max-width: 575px) {
    .pay-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .pay-acct {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
        word-break: break-all;
    }
    .pay-row .btn,
    .pay-copy-btn {
        width: 100% !important;
    }
}

/* ── I. Hamburger menu — visual divider between items for thumb scan ── */
@media (max-width: 991px) {
    .mean-nav li {
        border-bottom: 1px solid rgba(212,175,55,0.08);
    }
    .mean-nav li:last-child {
        border-bottom: none;
    }
}

