/* ===================================================================
   RightCommercial – Custom Styles
   =================================================================== */

/* -------  Brand Tokens  ------- */
:root {
    --rc-primary:     #1a3a5c;
    --rc-primary-rgb: 26, 58, 92;
    --rc-secondary:   #2e7d5b;
    --rc-accent:      #38a169;
    --rc-accent-rgb:  56, 161, 105;
    --rc-dark:        #0f1f33;
    --rc-light:       #f0f5f1;
    --rc-muted:       #6c757d;

    /* Override Bootstrap CSS custom properties */
    --bs-primary:     var(--rc-primary);
    --bs-primary-rgb: var(--rc-primary-rgb);
}

/* -------  Typography  ------- */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1f2937;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* -------  Active Nav Link  ------- */
.navbar-nav .nav-link.active {
    color: var(--rc-accent);
    font-weight: 600;
    border-bottom: 2px solid var(--rc-accent);
}

/* -------  Buttons  ------- */
.btn-primary {
    background-color: var(--rc-primary);
    border-color: var(--rc-primary);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #15304d;
    border-color: #15304d;
}
.btn-secondary {
    background-color: var(--rc-secondary);
    border-color: var(--rc-secondary);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #256a4c;
    border-color: #256a4c;
}
.btn-accent {
    background-color: var(--rc-accent);
    border-color: var(--rc-accent);
    color: #fff;
}
.btn-accent:hover,
.btn-accent:focus-visible {
    background-color: #2d8a56;
    border-color: #2d8a56;
    color: #fff;
}
.btn-blue {
    background-color: #3B82F6;
    border-color: #3B82F6;
    color: #fff;
}
.btn-blue:hover,
.btn-blue:focus-visible {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* -------  Utility Classes  ------- */
.text-accent   { color: var(--rc-accent) !important; }
.bg-accent     { background-color: var(--rc-accent) !important; }
.bg-accent-subtle { background-color: var(--rc-light) !important; }
.bg-primary-subtle { background-color: #e8eff5 !important; }

/* -------  Hover Card  ------- */
.hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* -------  Icon Circle  ------- */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.4rem;
}
.icon-circle-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
}

/* -------  Hero Gradient  ------- */
.hero-gradient {
    background: linear-gradient(135deg, var(--rc-primary) 0%, var(--rc-secondary) 100%);
    color: #fff;
}

/* -------  Dashed Border  ------- */
.border-dashed {
    border-style: dashed !important;
}

/* -------  Navbar Tweaks  ------- */
.navbar {
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.navbar-brand img {
    height: 36px;
    width: auto;
}
.nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
}
.nav-link:hover {
    color: var(--rc-accent) !important;
}

/* -------  Footer  ------- */
footer {
    font-size: 0.9rem;
}
footer h6 {
    letter-spacing: 0.04em;
}
footer a:hover {
    color: var(--rc-accent) !important;
}

/* -------  Cards  ------- */
.card {
    border-color: #e5e7eb;
}

/* -------  Form Focus  ------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--rc-accent);
    box-shadow: 0 0 0 0.2rem rgba(var(--rc-accent-rgb), .25);
}

/* -------  Toast / Alert Utility  ------- */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}
#toast-container .alert {
    margin: 0;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(1rem); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: translateY(0); }
}
.success-panel {
    animation: fadeInUp 0.4s ease;
}

/* -------  Honeypot (anti-bot)  ------- */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-size: 0;
}

/* -------  Responsive Utility  ------- */
@media (max-width: 767.98px) {
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.7rem; }
    .display-6 { font-size: 1.4rem; }
}
