:root {
    --primary: #1a1a2e;
    --secondary: #e94560;
    --accent: #16213e;
    --light: #f8f9fa;
    --dark: #0a0a0a;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease-in-out;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-light {
    border-color: #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}

.bg-dark-custom {
    background: var(--dark);
}

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

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

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-img-top {
    position: relative;
}

.card-img-top img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img-top img {
    transform: scale(1.05);
}

.card-body {
    background: #fff;
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card-text {
    color: var(--gray);
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.section-subtitle {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Background sections with overlay */
.background-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
}

.background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}

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

/* Forms */
.form-control {
    border-radius: 25px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(233,69,96,0.25);
    background: #fff;
}

.form-label {
    font-weight: 500;
    color: var(--dark);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-light);
}

.footer a {
    color: var(--text-light);
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer h5 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

/* Testimonial Slider */
.testimonial-slider .carousel-item {
    text-align: center;
}

.testimonial-slider .carousel-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px auto;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 9999;
    transition: var(--transition);
}

.cookie-consent .btn {
    margin: 5px;
}

.cookie-consent h4 {
    margin-bottom: 10px;
}

.cookie-consent p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Success Toast */
.success-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
}

.success-notification.show {
    opacity: 1;
    top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .navbar-collapse {
        background: var(--primary);
        padding: 20px;
        border-radius: 10px;
    }
}
/* ===== Accessibility contrast fixes ===== */
.badge.bg-secondary {
    background-color: #545b62 !important;
}
.btn-primary {
    background-color: #b02a37 !important;
    border-color: #b02a37 !important;
}
.card.bg-dark .card-body {
    background: #1a1a2e;
}

/* ===== Static cookie banner ===== */
.site-cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1120px;
    margin: auto;
    padding: 16px 18px;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,.4);
    font: 15px/1.5 Arial, sans-serif;
}
.site-cookie-banner p {
    margin: 0;
    color: #fff;
}
.site-cookie-banner a {
    color: #fff;
    text-decoration: underline;
}
.site-cookie-banner div {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.site-cookie-banner button {
    border: 1px solid #fff;
    border-radius: 7px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
#site-cookie-decline {
    background: transparent;
    color: #fff;
}
#site-cookie-accept {
    background: #fff;
    color: #171717;
}
@media (max-width: 640px) {
    .site-cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        align-items: stretch;
        flex-direction: column;
    }
    .site-cookie-banner div {
        width: 100%;
    }
    .site-cookie-banner button {
        flex: 1;
    }
}

/* ===== Thank-you page accessibility overrides ===== */
.btn-outline-primary {
    color: #0a58ca !important;
    border-color: #0a58ca !important;
}
.btn-outline-primary:hover {
    background: #0a58ca !important;
    color: #fff !important;
}
