:root {
    --primary: #8B4513;
    --primary-dark: #5C2E0A;
    --secondary: #D4A373;
    --accent: #E8B86D;
    --dark: #2C1E0E;
    --light: #FFF8F0;
    --muted: #7A5E3E;
    --white: #FFFFFF;
    --black: #1A0F05;
    --font-primary: 'Georgia', serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-dark);
}

/* Override for headings on dark backgrounds to ensure proper contrast */
.bg-dark h1,
.bg-dark h2.text-white,
.bg-dark h3.text-white,
.bg-dark h4.text-white,
.bg-dark h5.text-white,
.bg-dark h6.text-white,
.text-white h1,
.page-header-section h1 {
    color: #ffffff !important;
}

a {
    color: var(--primary);
    transition: var(--transition);
}
a:hover {
    color: var(--accent);
}

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

.btn-primary {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139,69,19,0.3);
}
.btn-primary:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,184,109,0.4);
}

.btn-outline-primary {
    color: #7A3D10;
    border-color: #7A3D10;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: #7A3D10;
    border-color: #7A3D10;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(122,61,16,0.5);
}
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    color: #fff;
    background-color: #7A3D10;
    border-color: #7A3D10;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: rgba(44,30,14,0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--secondary);
}
.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}
.navbar .nav-link:hover {
    color: var(--accent) !important;
}

/* Hero / Page Header */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2C1E0E;
}
.hero-section .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44,30,14,0.7) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-section .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-section h1,
.hero-section .hero-title {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    color: var(--white);
}

/* Sections */
.section-dark {
    background: var(--dark);
    color: var(--white);
}
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark .process-title {
    color: var(--accent);
}
.section-dark p {
    color: var(--white);
}
.section-light {
    background: var(--light);
}
.section-primary {
    background: var(--primary);
    color: var(--white);
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.bg-cover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: brightness(0.6);
}
.bg-cover > * {
    position: relative;
    z-index: 1;
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
    background: var(--white);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 250px;
    object-fit: cover;
}

/* Service cards */
.service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary);
    transition: var(--transition);
}
.service-card:hover::before {
    height: 100%;
    opacity: 0.1;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.service-card .icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Testimonials / Reviews */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 6px solid var(--accent);
}

/* Gallery grid */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.95) 100%);
    color: #ffffff;
    padding: 24px 20px 16px;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    transition: var(--transition);
}
.gallery-item:hover .overlay {
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.95) 30%, rgba(0,0,0,1) 100%);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--muted);
    padding: 60px 0 20px;
}
footer h5 {
    color: var(--accent);
    margin-bottom: 20px;
}
footer a {
    color: var(--secondary);
}
footer a:hover {
    color: var(--accent);
}
footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(212,163,115,0.2);
    color: var(--secondary);
    margin-right: 10px;
    transition: var(--transition);
}
footer .social-icons a:hover {
    background: var(--accent);
    color: var(--dark);
}

/* Form */
.form-control {
    border: 2px solid #e0d6c8;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,69,19,0.15);
}

/* Statistics muted text */
.text-muted-stats {
    color: #7A5E3E !important;
    font-size: 0.875rem;
}

/* Cookie notice (dynamic class) */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--dark);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-notice p {
    margin: 0;
    flex: 1 1 100%;
    color: var(--white);
}
.cookie-notice .btn {
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Notification toast */
.notification-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 300px;
    padding: 20px 25px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease;
}
.notification-toast.success {
    border-left: 6px solid #28a745;
}
.notification-toast.error {
    border-left: 6px solid #dc3545;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Process circle */
.process-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1,
    .hero-section .hero-title {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding-top: 80px;
        min-height: 70vh;
    }
    .hero-section h1,
    .hero-section .hero-title {
        font-size: 2rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Swiper / Carousel overrides */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* AOS custom */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}