/* ============================================================
   rax.ae Premium Facelift - Site-Wide Design Enhancement
   Matches data-center-facilities/ quality standard.
   Additive only - enhances existing Bootstrap 5 + style.css.
   ============================================================ */

/* --- Hero Enhancements --- */

/* Stronger overlay gradient for better text contrast */
.page-hero .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(15, 23, 42, 0.70) 50%,
        rgba(15, 23, 42, 0.58) 100%
    );
}

/* Better hero vertical spacing */
.page-hero {
    min-height: 380px;
    padding: 80px 0 70px;
}

/* Enhanced hero typography */
.page-hero h1 {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.page-hero p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
}

/* Hero badge polish */
.hero-badge {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0.45rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 50px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Hero CTA buttons (premium) */
.hero-cta-buttons .btn-hero-outline,
.hero-cta-buttons .btn-primary,
.hero-cta-buttons .btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-cta-buttons .btn-primary:hover,
.hero-cta-buttons .btn-hero-outline:hover {
    transform: translateY(-2px);
}

/* Homepage hero section enhancement */
.hero-section {
    min-height: 520px;
}

.hero-section .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.72) 50%,
        rgba(15, 23, 42, 0.60) 100%
    );
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
        padding: 70px 0 50px;
    }
    .page-hero h1 {
        font-size: 2.1rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
    .hero-section {
        min-height: 400px;
    }
}


/* --- Section Whitespace & Hierarchy --- */

/* More generous section padding */
section,
.content-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

section:first-of-type {
    padding-top: 4rem;
}

/* Section headings */
section h2,
.content-section h2 {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

section h2 + p,
.content-section h2 + p {
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 720px;
    color: var(--muted-foreground);
}


/* --- Card Enhancements --- */

/* Premium card styling - soft shadows, rounded, hover lift */
.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.25);
}

.card .card-content,
.card .card-body {
    padding: 1.75rem;
}

/* Service/feature cards */
.tech-feature-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.25);
}

/* Why-choose cards */
.why-choose-card {
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.25);
}

/* Contact/location cards */
.contact-card,
.location-card {
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover,
.location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}


/* --- Button Enhancements --- */

/* Primary button - premium gradient + hover */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.28);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

/* Outline buttons */
.btn-outline,
.btn-outline-primary,
.btn-outline-blue {
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover,
.btn-outline-primary:hover,
.btn-outline-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

/* Gold accent buttons */
.btn-outline-gold {
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}


/* --- Icon Containers (Bootstrap Icons enhancement) --- */

/* Standardize icon containers across the site */
.icon-container,
.page-hero-icon,
.contact-card .icon,
.location-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(59, 130, 246, 0.04));
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 12px;
    font-size: 1.35rem;
    color: var(--primary);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.card:hover .icon-container,
.tech-feature-card:hover .icon-container,
.why-choose-card:hover .icon-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.25);
}


/* --- Smooth Global Transitions --- */

a {
    transition: color 0.2s ease;
}

img {
    transition: opacity 0.3s ease;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}


/* --- CTA Section Enhancement (bottom of pages) --- */

.cta-section,
section.bg-card-30 {
    border-radius: 20px;
    margin-left: 1rem;
    margin-right: 1rem;
}

@media (min-width: 768px) {
    .cta-section,
    section.bg-card-30 {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}


/* --- Table Enhancement --- */

table {
    border-radius: 12px;
    overflow: hidden;
}

table thead th {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 1rem;
}

table tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    vertical-align: middle;
}

table tbody tr {
    transition: background 0.15s ease;
}

table tbody tr:hover {
    background: rgba(59, 130, 246, 0.04);
}


/* --- FAQ Accordion Polish --- */

.accordion-button {
    border-radius: 10px !important;
    font-weight: 600;
    padding: 1.1rem 1.25rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.06);
    color: var(--primary);
    box-shadow: none;
}

.accordion-item {
    border-radius: 12px !important;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.accordion-body {
    padding: 1.25rem;
    line-height: 1.75;
}


/* --- Footer Enhancement --- */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.85;
}


/* --- Utility Classes --- */

.premium-gradient-bg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(245, 158, 11, 0.04));
}

.premium-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 1rem auto;
}

/* Mobile: pull the logo closer to the left edge (Jason 2026-07-10) */
@media (max-width: 991.98px) {
  .navbar > .container { padding-left: 0.4rem !important; }
  .navbar-brand { margin-left: 0 !important; padding-left: 0 !important; }
}

/* Mobile: push logo further left (Jason 2026-07-10 #2) */
@media (max-width: 991.98px) {
  .navbar, .navbar > .container { padding-left: 0 !important; }
  .navbar-brand { margin-left: -6px !important; padding-left: 0 !important; }
  .navbar-brand img { margin-left: 0 !important; padding-left: 0 !important; object-position: left center; }
}

/* Mobile: comfortable logo padding, nudge right (Jason 2026-07-10 #3) */
@media (max-width: 991.98px) {
  .navbar, .navbar > .container { padding-left: 0.9rem !important; }
  .navbar-brand { margin-left: 0 !important; padding-left: 0 !important; }
  .navbar-brand img { margin-left: 0 !important; padding-left: 0 !important; }
}
