/* --- 
Design System for UK Dissertation Expert
Primary: #E84D26
Background: #FFFFFF, #F4F4F4
Text: #1A1A1A
--- */

:root {
    --primary-color: #E84D26;
    --primary-hover: #D1411D;
    --text-color: #0f172a;
    /* Slate Navy for professional look */
    --text-muted: #64748b;
    /* Medium slate for better hierarchy */
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

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

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* --- Typography --- */
/* Default Headings Color */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Bolder headings for premium feel */
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: var(--text-color);
}

/* Force White Text in Dark Sections */
.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6 {
    color: #ffffff !important;
}

.text-white .text-muted,
.text-white .lead {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Ensure contents of cards (e.g. Hero form cards) remain dark */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.card p,
.card span,
.card label {
    color: var(--text-color) !important;
}

.card .text-muted {
    color: var(--text-muted) !important;
}

.display-3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: #fff !important;
}

.display-5 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.lead {
    font-weight: 500;
    line-height: 1.7;
}

.text-white .lead {
    color: rgba(255, 255, 255, 0.9) !important;
}

:not(.text-white)>.lead {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 14px 34px;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-fast);
    text-transform: capitalize;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* --- Layout --- */
.section-padding {
    padding: 100px 0;
}

.bg-grey {
    background-color: #f9f9f9;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-color: #1a1a1a;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

@media (min-width: 992px) {
    .hero-section {
        background-attachment: fixed !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* --- Navbar --- */
.navbar {
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    background: #ffffff !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 55px;
    transition: var(--transition-fast);
}

.navbar .navbar-brand img {
    height: 55px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color) !important;
    /* Dark text for white background */
    margin: 0 10px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    filter: none;
    /* Dark icon for white navbar */
}



.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.dropdown-item {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--text-color) !important;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 5px !important;
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Card refinements --- */
.transition-card {
    transition: all 0.4s ease;
    border-radius: 20px;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-service-white {
    background: #fff;
    border: 1px solid #f0f0f0;
}

.card-service-orange {
    background: var(--primary-color);
    color: #fff !important;
    border: none;
}

.card-service-orange .icon-box {
    background: #fff !important;
}

.card-service-orange h4 {
    color: #fff !important;
}

.card-service-orange p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* --- Step Cards --- */
.step-card {
    position: relative;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(232, 77, 38, 0.3);
}

/* --- Footer --- */
footer {
    background-color: #fdfdfd;
    padding: 80px 0 20px;
    border-top: 1px solid #f0f0f0;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 25px;
}

.footer-links h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 12px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

/* --- Utility --- */
.object-fit-cover {
    object-fit: cover;
}

.opacity-90 {
    opacity: 0.9;
}

@media (max-width: 991.98px) {
    .display-3 {
        font-size: 2.5rem;
        color: #fff !important;
    }

    .hero-section {
        text-align: center;
        padding-top: 80px !important;
    }

    .section-padding {
        padding: 60px 0;
    }
}