/*
 * Riyadh Equipment — Global Visual Identity
 * Palette: #AD8B73 / #CEAB93 / #E3CAA5 / #FFFBE9
 * The darker neutrals are accessibility anchors derived for readable text.
 */
:root {
    --brand-primary: #AD8B73;
    --brand-secondary: #CEAB93;
    --brand-tertiary: #E3CAA5;
    --brand-surface: #FFFBE9;
    --brand-ink: #2D211B;
    --brand-ink-deep: #1E1511;
    --brand-ink-soft: #5A4032;
    --brand-white: #FFFBE9;
    --brand-primary-rgb: 173, 139, 115;
    --brand-secondary-rgb: 206, 171, 147;
    --brand-tertiary-rgb: 227, 202, 165;
    --brand-surface-rgb: 255, 251, 233;

    /* Legacy aliases kept intentionally so existing components inherit the new identity. */
    --wine: var(--brand-primary);
    --steel: var(--brand-secondary);
    --sand: var(--brand-tertiary);
    --ivory: var(--brand-surface);
    --gold: var(--brand-primary);
    --gold-light: var(--brand-secondary);
    --accent-light: var(--brand-tertiary);
    --accent-cream: var(--brand-surface);
    --bg-secondary: var(--brand-secondary);
    --footer-accent: var(--brand-primary);
    --footer-primary: var(--brand-ink-deep);
    --footer-dark: var(--brand-ink-deep);
    --cf-primary: var(--brand-primary);
    --cf-secondary: var(--brand-secondary);
    --cf-accent1: var(--brand-tertiary);
    --cf-accent2: var(--brand-surface);
    --cf-gold: var(--brand-primary);
    --cf-gold-light: var(--brand-secondary);
    --cf-dark: var(--brand-ink-deep);
    --hx-bg: var(--brand-ink-deep);
    --hx-gold: var(--brand-primary);
    --hx-gold-light: var(--brand-secondary);
    --hx-accent1: var(--brand-tertiary);
    --hx-accent2: var(--brand-surface);
}

html {
    background: var(--brand-surface);
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-surface);
    color: var(--brand-ink);
    accent-color: var(--brand-primary);
}

::selection {
    background: var(--brand-primary);
    color: var(--brand-surface);
}

:focus-visible {
    outline: 3px solid var(--brand-secondary) !important;
    outline-offset: 3px;
}

/* Header and navigation: deep espresso creates a stable, high-contrast anchor. */
.luxury-header {
    background: linear-gradient(135deg, rgba(30, 21, 17, .97), rgba(45, 33, 27, .94)) !important;
    border-color: rgba(var(--brand-secondary-rgb), .42) !important;
    box-shadow: 0 16px 42px rgba(30, 21, 17, .22), inset 0 -1px 0 rgba(var(--brand-tertiary-rgb), .16) !important;
}
.luxury-header .nav-link,
.luxury-header .logo-text,
.luxury-header .action-btn,
.luxury-header .modern-menu-btn,
.luxury-header .brand-title,
.luxury-header .logo-brand {
    color: var(--brand-surface) !important;
}
.luxury-header .nav-link:hover,
.luxury-header .nav-link.active,
.luxury-header .action-btn:hover,
.luxury-header .modern-menu-btn:hover {
    color: var(--brand-tertiary) !important;
}
.luxury-header .cta-btn,
.mobile-cta-btn {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
    color: var(--brand-ink-deep) !important;
    box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), .28) !important;
}
.luxury-header .cta-btn:hover,
.mobile-cta-btn:hover {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-tertiary)) !important;
    color: var(--brand-ink-deep) !important;
}
.search-dropdown {
    background: rgba(30, 21, 17, .98) !important;
    border-color: rgba(var(--brand-secondary-rgb), .34) !important;
}
.search-dropdown input {
    color: var(--brand-surface) !important;
    border-color: rgba(var(--brand-secondary-rgb), .34) !important;
}
.search-dropdown input::placeholder { color: rgba(var(--brand-surface-rgb), .64) !important; }

/* Hero: keep the photography dominant while the overlay carries the new brand tone. */
.hero-backdrop-overlay {
    background: linear-gradient(180deg, rgba(30, 21, 17, .36) 0%, rgba(30, 21, 17, .78) 100%) !important;
}
.hero-light-glow {
    background: radial-gradient(circle, rgba(var(--brand-primary-rgb), .32), transparent 68%) !important;
}
.hero-badge,
.badge-dot,
.hero-feature-item .feat-dot {
    color: var(--brand-tertiary) !important;
}
.hero-badge { border-color: rgba(var(--brand-tertiary-rgb), .48) !important; background: rgba(30, 21, 17, .56) !important; }
.hero-highlight,
.text-gold,
.title-word.highlight,
.fc-value,
.stat-number,
.eyebrow-text,
.section-eyebrow,
.intro-badge,
.overlay-tag {
    color: var(--brand-primary) !important;
}
.hero-btn-primary,
.cta-primary,
.quote-submit,
.submit-btn,
.primary-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-ink-deep) !important;
    box-shadow: 0 12px 28px rgba(var(--brand-primary-rgb), .24) !important;
}
.hero-btn-primary:hover,
.cta-primary:hover,
.quote-submit:hover,
.submit-btn:hover,
.primary-btn:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-tertiary)) !important;
    color: var(--brand-ink-deep) !important;
}
.hero-btn-whatsapp {
    background: rgba(var(--brand-surface-rgb), .12) !important;
    border-color: rgba(var(--brand-surface-rgb), .56) !important;
    color: var(--brand-surface) !important;
}
.hero-btn-whatsapp:hover {
    background: var(--brand-surface) !important;
    color: var(--brand-ink-deep) !important;
}

/* Warm content surfaces and panels. */
.about-premium,
.services-section,
.services-premium,
.quote-section,
.location-section,
.faq-section,
.blog-section,
.catalog-page,
.catalog-section {
    background-color: var(--brand-surface) !important;
    color: var(--brand-ink) !important;
}
.value-card,
.service-card,
.quote-block,
.info-card,
.blog-card,
.catalog-card,
.project-card,
.atlas-card,
.cf-info-panel {
    background: rgba(var(--brand-surface-rgb), .92) !important;
    border-color: rgba(var(--brand-primary-rgb), .28) !important;
    color: var(--brand-ink) !important;
    box-shadow: 0 16px 36px rgba(45, 33, 27, .09) !important;
}
.value-card:hover,
.service-card:hover,
.blog-card:hover,
.catalog-card:hover,
.project-card:hover,
.atlas-card:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 20px 44px rgba(var(--brand-primary-rgb), .18) !important;
}
.value-card h3,
.value-card h4,
.service-card h3,
.service-card h4,
.blog-card h3,
.blog-card h4,
.catalog-card h3,
.catalog-card h4,
.intro-heading,
.header-title,
.section-title {
    color: var(--brand-ink-deep) !important;
}
.value-card p,
.service-card p,
.blog-card p,
.catalog-card p,
.story-para,
.header-subtitle,
.section-subtitle {
    color: var(--brand-ink-soft) !important;
}

/* Decorative system: use the four requested colors in measured opacity steps. */
.eyebrow-line,
.ornament-line,
.quote-line,
.menu-divider,
.menu-divider-bottom {
    background-color: var(--brand-primary) !important;
}
.ornament-dot,
.ornament-diamond,
.decor-ring,
.decor-dots,
.layer-frame {
    border-color: rgba(var(--brand-primary-rgb), .58) !important;
}
.quote-block,
.intro-badge,
.overlay-tag,
.float-badge,
.fc-icon,
.vc-icon {
    border-color: rgba(var(--brand-primary-rgb), .32) !important;
}

/* Dark visual modules intentionally retain depth but now use espresso + the new accents. */
.hx-section,
.helix-section,
.cf-section,
.parallax-section,
.footer-main,
.footer-bottom,
.mobile-menu-overlay {
    background-color: var(--brand-ink-deep) !important;
    color: var(--brand-surface) !important;
}
.footer-heading,
.footer-logo,
.footer-col h3,
.footer-col h4,
.mobile-menu-overlay .menu-title,
.mobile-menu-overlay .menu-subtitle,
.mobile-nav-link,
.mobile-menu-overlay .contact-item {
    color: var(--brand-surface) !important;
}
.footer-links a:hover,
.footer-contact a:hover,
.mobile-nav-link:hover,
.mobile-menu-overlay .contact-item:hover {
    color: var(--brand-tertiary) !important;
}
.cf-btn,
.hx-control,
.hx-btn,
.carousel-control,
.filter-btn,
.filter-button {
    border-color: rgba(var(--brand-secondary-rgb), .48) !important;
    color: var(--brand-surface) !important;
    background: rgba(var(--brand-primary-rgb), .16) !important;
}
.cf-btn:hover,
.hx-control:hover,
.hx-btn:hover,
.carousel-control:hover,
.filter-btn:hover,
.filter-button:hover,
.filter-btn.active,
.filter-button.active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-ink-deep) !important;
}

/* Form controls and status elements. */
input,
textarea,
select {
    background-color: var(--brand-surface) !important;
    color: var(--brand-ink) !important;
    border-color: rgba(var(--brand-primary-rgb), .38) !important;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), .14) !important;
}

/* Scrollbar and reduced-motion consistency. */
::-webkit-scrollbar-track { background: var(--brand-surface) !important; }
::-webkit-scrollbar-thumb { background: var(--brand-primary) !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


/* Semantic icon system: consistent sizing keeps the new official language quiet and premium. */
.logo-icon img,
.footer-logo .logo-icon img {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain;
}
.card-icon img {
    width: 31px;
    height: 31px;
    object-fit: contain;
    display: block;
}
.card-content .card-icon img {
    width: 24px;
    height: 24px;
}
.featured .card-icon img {
    width: 34px;
    height: 34px;
}
.fc-icon img,
.vc-icon img,
.crane-icon-overlay img,
.payment-methods img {
    object-fit: contain;
}
.fc-icon img { width: 42px; height: 42px; }
.vc-icon img { width: 22px; height: 22px; }
.crane-icon-overlay img { width: 16px; height: 16px; }
.payment-methods img { width: 42px; height: 42px; }

.insight-icon,
.filter-mark img {
    display: block;
    object-fit: contain;
}
.insight-icon { width: 30px; height: 30px; }
.filter-mark img { width: 20px; height: 20px; }

.kicker-icon img,
.snapshot-icon img,
.console-icon img,
.answers-mark img,
.footer-seal img,
.local-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.kicker-icon img { width: 24px; height: 24px; }
.snapshot-icon img { width: 26px; height: 26px; }
.console-icon img { width: 25px; height: 25px; }
.answers-mark img { width: 28px; height: 28px; }
.footer-seal img { width: 25px; height: 25px; }
.local-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: .65rem;
    padding: .3rem;
    border: 1px solid rgba(var(--brand-primary-rgb), .28);
    border-radius: 10px;
    background: rgba(var(--brand-tertiary-rgb), .28);
}
.local-icon img { width: 24px; height: 24px; }

@media (max-width: 640px) {
    .fc-icon img { width: 36px; height: 36px; }
    .payment-methods img { width: 36px; height: 36px; }
}

.heading-mark img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.footer-heading {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}
.footer-heading img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* SEO content modules: useful evidence blocks, not keyword lists. */
.operational-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}
.operational-proof article {
    padding: .9rem;
    border: 1px solid rgba(var(--brand-primary-rgb), .22);
    border-radius: 12px;
    background: rgba(var(--brand-surface-rgb), .04);
}
.operational-proof article > strong {
    color: var(--brand-tertiary);
    font-size: .72rem;
    letter-spacing: .12em;
}
.operational-proof h4 {
    margin: .45rem 0 .25rem;
    color: var(--brand-surface);
    font-size: .9rem;
}
.operational-proof p {
    margin: 0;
    color: rgba(var(--brand-surface-rgb), .72);
    font-size: .78rem;
    line-height: 1.75;
}
.band-copy {
    max-width: 38rem;
    margin: .8rem 0 0;
    color: rgba(var(--brand-surface-rgb), .7);
    line-height: 1.8;
    font-size: .88rem;
}
@media (max-width: 760px) {
    .operational-proof { grid-template-columns: 1fr; }
}
