html {
    background-color: #fafafa;
}

/* --- Base Resets & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    font-weight: 300;
}

/* --- Header Layout --- */
.site-header {
    background-color: #fbf5f4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.logo-container {
    display: flex;
    align-items: center;
    max-width: 250px;
    /* Limits the massive 1200x200 aspect ratio to a reasonable header height */
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Desktop Nav (Hidden by default, shown via media query) --- */
.desktop-nav {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

/* Pipe | Separator logic */
.nav-links>li:not(:last-child)::after {
    content: "|";
    color: #cccccc;
    margin: 0 10px;
    font-size: 0.8rem;
}

.nav-links a {
    text-decoration: none;
    color: #c00000;
    font-size: 0.85rem;
    /* Small font as requested */
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #000000;
}

.nav-links a:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 4px;
}

.phone-link i {
    margin-right: 5px;
    font-size: 0.8rem;
    color: #c00000;
}

/* --- Dropdown Menu --- */
.dropdown-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fbf5f4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    min-width: 200px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

/* Slide slightly up when hidden for a nice reveal effect */
.dropdown-item .dropdown-menu {
    transform: translateX(-50%) translateY(10px);
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: #f7f9fc;
    color: #c00000;
}

/* --- Mobile Controls --- */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-phone-icon {
    color: #c00000;
    font-size: 1.3rem;
    text-decoration: none;
}

.burger-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #c00000;
    cursor: pointer;
}

.burger-menu-btn:focus-visible,
.close-menu-btn:focus-visible {
    outline: 2px solid #0073e6;
    outline-offset: 4px;
}

/* --- Mobile Drawer Menu --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -75%;
    /* Hidden off-screen right */
    width: 75%;
    /* Covers 75% of screen */
    height: 100%;
    background-color: #fbf5f4;
    z-index: 1002;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 30px;
    transition: right 0.3s ease-in-out;
}

/* Class added via JS to slide in */
.mobile-nav.open {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #c00000;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #c00000;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
}

/* Dimmed background overlay when menu is open */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}


/* --- RESPONSIVE BREAKPOINT (Switch Desktop / Mobile) --- */
/* Adjust 1024px to whatever width fits your content perfectly */
@media screen and (min-width: 1024px) {
    .desktop-nav {
        display: block;
    }

    .mobile-controls,
    .mobile-nav,
    .mobile-overlay {
        display: none !important;
        /* Force hide mobile elements on desktop */
    }
}

/* --- Layout Block-Out Classes --- */

.landing-viewport {
    display: flex;
    flex-direction: column;
    /* Set height to viewport minus approximate header height */
    height: calc(100vh - 70px);
}

.block-hero {
    flex: 1;
    /* Takes up all remaining space in the landing-viewport */
    background-color: #333333;
    /* Fallback background before video loads */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures video fills screen without stretching */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Scales dynamically based on screen width */
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    margin-bottom: 90px;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    /* Allows buttons to wrap on very small mobile screens */
}

.hero-btn {
    display: inline-block;
    width: 165px;
    text-align: center;
    border-radius: 10px;
    padding: 12px 12px;
    background: transparent;
    color: #fbf5f4;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #fbf5f4;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #fbf5f4;
    color: #000000;
    transform: translateY(-2px);
    /* Slight lift effect on hover */
}

.block-awards {
    background-color: #fbf5f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.awards-container {
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 4vw, 50px);
}

.awards-image {
    flex: 0 1 40%;
    max-width: 280px;
}

.awards-image img {
    width: 100%;
    height: auto;
    display: block;
}

.awards-text {
    flex: 1 1 60%;
    font-size: clamp(0.85rem, 3vw, 1.25rem);
    line-height: 1.6;
}

.block-stats {
    background-color: #f9f9f9;
    padding: 20px 20px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-container h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 300;
    color: #333333;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px 0px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    min-width: 160px;
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #c00000;
    margin-bottom: 0px;
    display: flex;
    align-items: baseline;
}

.stat-value .prefix,
.stat-value .suffix {
    font-size: 0.6em;
    /* Scale dynamically with the number text */
    font-weight: 400;
}

.stat-value .stat-number {
    font-size: 0.6em;
    /* Scale dynamically with the number text */
    font-weight: 400;
}

.stat-label {
    font-size: clamp(0.85rem, 3vw, 1.25rem);
    /*font-size: 1rem;
    text-transform: uppercase;*/
    letter-spacing: 1px;
    color: #555555;
    font-weight: 400;
}

.pinned-sequence {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* background-color: #f9f9f9; */
    background-color: #fbf5f4;
}



.cards-track {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cards-container {
    position: relative;
    width: 90vw;
    height: 80vh;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 40px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    /*box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);*/
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-1 {
    background: linear-gradient(135deg, #fbf5f4, #dddddd);
}

.card-2 {
    background: linear-gradient(135deg, #fbf5f4, #dddddd);
}

.card-3 {
    background: linear-gradient(135deg, #fbf5f4, #dddddd);
}

.card-4 {
    background: linear-gradient(135deg, #fbf5f4, #dddddd);
}

.card-5 {
    background: linear-gradient(135deg, #fbf5f4, #dddddd);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    align-self: start;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /*justify-content: space-between;*/
    /*color: #cccccc;*/
}

.card-content h2 {
    font-size: 2.2rem;
    color: #c00000;
    margin-bottom: 15px;
    font-weight: 300;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: 500;
}

.card-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-content ul {
    margin-bottom: 15px;
}

.card-content li {
    font-size: 1.05rem;
    line-height: 1.5;
}

.card-link {
    color: #c00000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    align-self: flex-start;
}

.card-link:hover {
    border-color: #c00000;
}



.block-contact {
    height: 100vh;
    background-color: #f9f9f9;
    /* Honeydew */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* --- Contact Form Styling --- */
.contact-container {
    background-color: #fbf5f4;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: #c00000;
    text-align: center;
}

.contact-container>p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
    text-align: center;
}

.contact-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.contact-message.success-msg {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c00000;
}

.form-note {
    font-size: 0.85rem !important;
    color: #777777 !important;
    margin: 5px 0 10px !important;
    text-align: left !important;
}

.submit-btn {
    background-color: #c00000;
    color: #fbf5f4;
    border: none;
    padding: 15px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: #a00000;
    transform: translateY(-2px);
}

iframe {
    display: none;
}

/* --- Inner Pages Styling --- */
.page-header {
    background-color: #eeeeee;
    color: #c00000;
    padding: 40px 20px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #333333;
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

.page-content {
    padding: 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50vh;
    /*text-align: center;*/
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-content h4 {
    font-size: 1.2rem;
    line-height: 1.6;
}

.page-content ul {
    margin-bottom: 15px;
}

.page-content li {
    font-size: 1.05rem;
    line-height: 1.5;
}

/* --- Responsive Breakpoint for Cards --- */
.mobile-text {
    display: none;
}

@media screen and (max-width: 768px) {
    .card {
        grid-template-columns: 1fr;
        /* Switches grid from 2 columns to 1 */
        grid-template-rows: auto 1fr;
        /* Image takes its height, content takes the rest */
        padding: 20px;
        /* Reduce padding to preserve space on small screens */
        gap: 20px;
        /* Decrease the gap between image and content */
    }

    .card-image {
        height: 180px;
        /* Optionally slightly reduce image height on mobile to make room for text */
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }

}

/* --- Testimonial Section --- */
.test-sequence {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.testimonial-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    background: #c00000;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: #ec4141;
    transform: scale(1.05);
}

.testimonial-track-container {
    flex: 1;
    overflow: hidden;
    margin: 0 30px;
    position: relative;
}

.testimonial-track {
    display: flex;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.client-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c00000;
    flex-shrink: 0;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C00000;
    letter-spacing: 1px;
}

.client-role {
    font-size: 0.9rem;
    font-weight: 300;
    color: #555;
    font-style: italic;
    letter-spacing: 1px;
}

.client-info .review-meta {
    font-size: 0.9rem;
    font-weight: 300;
    color: #555;
    font-style: italic;
    letter-spacing: 1px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .slider-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }

    .testimonial-track-container {
        margin: 0;
    }
}

/* --- Carousel Dots --- */
.slider-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* Hide dots on desktop, since desktop has chevron arrows */
@media (min-width: 769px) {
    .slider-dots {
        display: none;
    }
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.dot.active {
    background-color: #111;
    transform: scale(1.3);
}

/* --- Testimonial Truncation & Modal --- */
.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.read-more-btn {
    background: none;
    border: none;
    color: #c00000;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.read-more-btn:hover {
    color: #000;
}

/* Modal Overlay */
.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.review-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 15px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.review-modal-overlay.active .review-modal {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #888;
}

.close-modal-btn:hover {
    color: #000;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.modal-client-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c00000;
}

.modal-client-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #C00000;
    margin-bottom: 5px;
}

.modal-client-role,
.modal-review-meta {
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 1px;
}

.modal-body {
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 15px;
}

/* --- Reviews Page --- */
.page-hero-viewport {
    height: 40vh;
    min-height: 300px;
}

.page-hero {
    background-color: #333333;
    background-image: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(68, 68, 68, 0.9)), url('asset/vh.mp4');
}

.reviews-page-section {
    padding: 60px 20px;
    background-color: #f5f5f5;
}

.reviews-page-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.review-list-item {
    background: #fbf5f4;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.list-client-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #c00000;
    flex-shrink: 0;
}

.list-testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-client-info {
    display: flex;
    flex-direction: column;
}

.list-client-name {
    font-size: 1.2rem;
    color: #C00000;
    font-weight: 600;
    margin-bottom: 5px;
}

.list-client-role {
    font-size: 0.9rem;
    font-weight: 300;
    color: #555;
    font-style: italic;
    letter-spacing: 1px;
}

.list-client-info .review-meta {
    font-size: 0.9rem;
    font-weight: 300;
    color: #555;
    font-style: italic;
    letter-spacing: 1px;
}

.list-testimonial-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media screen and (max-width: 768px) {
    .review-list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}

/* --- Final Read More Reviews Card --- */
.testimonial-card.read-more-card {
    background: #c00000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial-card.read-more-card:hover {
    background: #a00000;
    transform: translateY(-5px);
}

.read-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
}

.read-more-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.read-more-content i {
    font-size: 2rem;
}