/* --- Global Styles & Resets (Keep these) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px; /* Base for rem units */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    font-family: sans-serif; /* Fallback */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body); /* Now 'Inter' */
    line-height: 1.6;
    color: var(--text-color); /* Main text color is black */
    background-color: var(--white); /* Dominate with white */
    font-size: 1.6rem; /* 16px based on html font-size: 10px */
}

/* --- CSS Variables (Custom Properties) for Red & White Swiss Branding --- */
:root {
    /* Colors - STRICT Red and White palette */
    --primary-red: #E4002B;    /* Bold Red from Logo - Main Accent */
    --white: #FFFFFF;          /* Dominant White - Backgrounds, Cleanliness */
    --text-color: #1A1A1A;     /* Deep, almost pure Black - Only for essential text */

    /* Fonts - Helvetica-like neutrality */
    --font-heading: 'Montserrat', sans-serif; /* Clean, neutral, versatile */
    --font-body: 'Montserrat', sans-serif;    /* Highly legible, neutral */

    /* Spacing - Based on a grid increment, e.g., 8px or 10px */
    --grid-unit: 1rem; /* 10px */
    --spacing-xs: calc(var(--grid-unit) * 0.5); /* 5px */
    --spacing-sm: var(--grid-unit);            /* 10px */
    --spacing-md: calc(var(--grid-unit) * 2);  /* 20px */
    --spacing-lg: calc(var(--grid-unit) * 4);  /* 40px */
    --spacing-xl: calc(var(--grid-unit) * 8);  /* 80px */
    --section-padding-desktop: calc(var(--grid-unit) * 10); /* 100px */
    --section-padding-mobile: calc(var(--grid-unit) * 6);  /* 60px */

    /* Border Radius - Very subtle, almost imperceptible. Your request for rounded boxes will be the exception. */
    --border-radius-minimal: 0.2rem; /* 2px - barely visible, crisp corners */
    --border-radius-sm: 0.5rem;      /* 5px - for buttons/small elements */
    --border-radius-md: 1.5rem;      /* 15px - for your "rounded boxes" */

    /* Shadows - Ultra minimal, almost none. Swiss design prefers flat, but subtle depth can be achieved. */
    --box-shadow-subtle: 0 1px 3px rgba(0,0,0,0.05); /* Lighter shadow */
    --box-shadow-elevate: 0 5px 10px rgba(0,0,0,0.1);
}

/* --- Base Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color); /* Headings are black */
    margin-bottom: var(--spacing-md);
    line-height: 1.1; /* Tighter line height for headings */
    text-transform: uppercase; /* Classic Swiss: uppercase headlines */
    letter-spacing: 0.04em; /* Subtle letter spacing */
}

h1 { font-size: 6.8rem; font-weight: 900; } /* Extra bold for impact */
h2 { font-size: 4.8rem; font-weight: 800; }
h3 { font-size: 3.2rem; font-weight: 700; }
h4 { font-size: 2.6rem; font-weight: 600; }
h5 { font-size: 2.2rem; font-weight: 500; }
h6 { font-size: 1.8rem; font-weight: 500; }

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.7rem; /* Slightly larger body text for legibility */
    color: var(--text-color); /* Main text color */
    font-weight: 400; /* Standard body text weight */
}

a {
    color: var(--primary-red); /* Links are red */
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600; /* Links are more prominent */
}

a:hover {
    color: var(--text-color); /* Red links, black on hover */
}

/* --- Reusable Components --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--section-padding-desktop) 0;
    background-color: var(--white); /* All sections on white background */
}

/* Buttons - Clean, bold, high contrast */
.btn {
    display: inline-block;
    padding: 1.2rem 3.2rem;
    border-radius: var(--border-radius-sm); /* Subtle rounding */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 2px solid transparent; /* Always define border for smooth transitions */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: var(--box-shadow-subtle);
}

.btn-primary:hover {
    background-color: var(--text-color); /* Red button to black on hover */
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-elevate);
}

.btn-secondary { /* Using for a more subtle CTA if needed, but primary red is strong */
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: var(--box-shadow-subtle);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-elevate);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    padding: var(--spacing-sm) 0; /* Reduced padding for a slimmer bar */
    box-shadow: none; /* Remove box-shadow for a flatter look */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.08); /* Slightly more visible border for separation */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px; /* Increased from default 1200px to provide more space */
}

.logo img {
    height: 7.5rem; /* Increased from 5.5rem */
    width: auto;
    display: block;
}

.main-nav {
    flex-grow: 1; /* Allow nav to take available space */
    display: flex;
    justify-content: center; /* Center the navigation */
    margin: 0 var(--spacing-lg); /* Add margin on both sides */
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around; /* Changed from space-between for better distribution */
    width: 100%; /* Use full width of the nav container */
    max-width: 800px; /* Limit maximum width to prevent excessive spacing */
    gap: var(--spacing-md); /* Add consistent gap between items */
}

.main-nav ul li {
    margin: 0; /* Remove default margin */
    padding: 0 var(--spacing-sm); /* Reduced padding for better fit */
    position: relative;
}

.main-nav ul li a {
    font-size: 1.6rem; /* Slightly smaller font */
    font-weight: 500; /* Lighter font weight */
    color: var(--text-color);
    padding: 1rem 0; /* Reduced padding */
    display: block;
    text-transform: none; /* No uppercase for a more minimal look */
    letter-spacing: 0.02em; /* Reduced letter spacing */
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping to new lines */
}

.main-nav ul li a:hover {
    color: var(--primary-red); /* Black nav links, red on hover */
}

/* Flag icon styling */
.flag-icon {
    width: 24px; /* Adjust size as needed */
    height: auto;
    vertical-align: middle;
}

.nav-flag-item {
    margin-left: 10px; /* Spacing between flags and other nav items */
}

.nav-flag-item a {
    padding: 10px 5px; /* Adjust padding for better clickability */
    display: inline-block;
}

/* Remove default styling from language links if they are part of the main nav */
.main-nav ul li.nav-flag-item a:hover {
    background-color: transparent; /* Or your desired hover effect */
    color: inherit; /* Or your desired hover text color */
}

/* Ensure flags are vertically centered with nav text if needed */
.main-nav ul li.nav-flag-item {
    display: flex;
    align-items: center;
}

/* Desktop Dropdown - General Styling */
.dropdown {
    position: relative; /* Crucial for positioning dropdown content */
}

.dropdown .dropbtn .arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color);
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block; /* Ensure it's treated as an element */
}

.dropdown:hover .dropbtn .arrow-down,
.dropdown.active .dropbtn .arrow-down {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px; /* Increased width for better readability */
    box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Softer, more modern shadow */
    z-index: 100; /* Ensure dropdown is above other content */
    border-radius: var(--border-radius-sm); /* Consistent rounding */
    overflow: hidden; /* Prevents content from spilling */
    top: 100%; /* Position below the parent item */
    left: 50%; /* Center dropdown under parent item */
    transform: translateX(-50%); /* Center adjustment */
    border: 1px solid #eee; /* Subtle border */
    padding: 0.5rem 0; /* Add some padding around the links */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content {
    display: block; /* Show on hover/active */
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%); /* Keep horizontal centering */
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.8rem 1.5rem; /* Consistent padding */
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 400;
    white-space: nowrap; /* Prevent text wrapping */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--primary-red-light); /* Use a light red for hover */
    color: var(--primary-red);
}

/* Specific for Insurance Services Submenu */
.dropdown-content .wsmenu-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content .wsmenu-submenu li a {
    padding-left: 2rem; /* Indent submenu items slightly */
}

/* Language Dropdown Styles */
.lang-dropdown .dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lang-dropdown .dropbtn .arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-color); /* Arrow color */
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .dropbtn .arrow-down,
.lang-dropdown.active .dropbtn .arrow-down {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px; /* Adjust as needed */
    box-shadow: var(--box-shadow-subtle);
    z-index: 1001; /* Ensure it's above other nav items */
    border-radius: var(--border-radius-minimal);
    overflow: hidden;
    top: calc(100% + 0.5rem);
    left: 0; /* Align with the "Language" text */
    border: 1px solid rgba(0,0,0,0.05);
}

.lang-dropdown:hover .lang-dropdown-content,
.lang-dropdown.active .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content a {
    color: var(--text-color);
    padding: 10px 15px;
    text-decoration: none;
    display: flex; /* Use flex to align flag and text */
    align-items: center; /* Vertically align items */
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown-content a:hover {
    background-color: rgba(228, 0, 43, 0.05);
    color: var(--primary-red);
}

.lang-dropdown-content a .flag-icon {
    width: 20px; /* Limit flag icon size */
    height: auto;
    margin-right: 10px; /* Space between flag and text */
    border: 1px solid #eee; /* Optional: slight border around flags */
}

/* Style for the currently selected language in dropdown (optional) */
.lang-dropdown-content a.active-lang-link {
    font-weight: 600; /* Make active language bold */
    background-color: rgba(228, 0, 43, 0.08); /* Slight highlight */
}

.header-quote-btn {
    margin-left: var(--spacing-md); /* Reduced margin to save space */
    padding: 0.8rem 2.5rem; /* Smaller button padding */
    font-size: 1.5rem; /* Smaller button font */
    white-space: nowrap; /* Prevent button from wrapping */
}

/* Mobile Nav Toggle (Hamburger) */
.mobile-nav-toggle {
    display: none;
    font-size: 3rem;
    color: var(--text-color); /* Black hamburger */
    cursor: pointer;
    line-height: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
#hero {
    /* background: url('../images/hero-bg.jpg') no-repeat center center/cover; */ /* Removed background image */
    color: var(--white);
    text-align: center;
    padding: 0; /* Remove padding to allow video to fill */
    position: relative; /* Keep for positioning children */
    overflow: hidden;
    width: 100%; /* Ensure hero takes full width */
    display: flex; /* Keep flex for aligning content if needed, though content is absolute */
    align-items: center;
    justify-content: center;
    height: 70vh; /* Use viewport height for more consistent sizing */
    min-height: 400px; /* Ensure minimum height on small screens */
    max-height: 800px; /* Cap maximum height on large screens */
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Fill the entire hero section */
    z-index: 0;
    overflow: hidden;
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 135%; /* Slightly wider to cover the area better */
    height: 100%;
    transform: translate(-50%, -50%); /* Center the iframe */
    min-height: 100%;
    object-fit: cover; /* Ensure video covers the entire area */
    pointer-events: none; /* Make iframe unclickable */
    z-index: 1; /* Ensure proper stacking */
}

.hero-content {
    position: absolute; /* Ensure content is overlaid on top of the video wrapper */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the content */
    z-index: 2;
    max-width: 90rem;
    width: 90%; /* Make content responsive within the hero */
    padding: var(--spacing-md); /* Add some padding to the content */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
}

.hero-content h1 {
    font-size: 7.6rem; /* Even more massive headline */
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
}

.hero-content p {
    font-size: 2.4rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    color: var(--white);
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.hero-actions .btn {
    font-size: 2rem;
    padding: 1.4rem 3.5rem;
    border-radius: var(--border-radius-sm); /* Subtle rounding */
    /* Button in hero on red background should be white */
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
}

.hero-actions .btn:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* --- Services Section (Custom Rounded Boxes) --- */
#services-overview {
    background-color: var(--white);
    /* overflow: hidden; */ /* Removed: No longer needed for carousel */
}

#services-overview h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 5.2rem; /* Prominent service heading */
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.06em;
}

/* New Detailed Service List Styles */
.service-list-detailed {
    display: flex;
    flex-direction: column; /* Stack service items vertically */
    gap: var(--spacing-xl); /* Gap between each service item block */
    /* Removed animation properties */
}

.service-item-detailed { /* This is the main container for a single service entry */
    display: flex;
    flex-direction: row; /* Text box and image side-by-side */
    gap: var(--spacing-md); /* ADDED GAP HERE between text box and image wrapper */
    align-items: stretch; /* Make children (text box, image wrapper) same height */
    background-color: transparent; /* The item itself is a transparent container */
    padding: 0;
    border-radius: var(--border-radius-md); /* Optional: if you want the whole row to have rounded corners */
    box-shadow: none; /* Shadow will be on the content box or image */
    height: 40rem; /* Set a fixed height for consistent row height */
    opacity: 0; /* Initially hidden for animation */
    transform: translateY(50px); /* Start slightly lower for a subtle rise */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Smooth transition */
}

.service-item-detailed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-content-wrapper { /* The gray box for text and button */
    background-color: #E0E0E0; /* Your chosen gray color */
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-subtle);
    flex: 1 1 58%; /* Takes up more space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    z-index: 1; /* Ensure text box is above any part of a potentially overlapping image */
    text-align: center; /* Center the text content itself */
    height: 100%; /* Explicitly set height to fill parent */
    transform: translateX(-50px); /* Initial position for animation (from left) */
    transition: transform 0.9s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Added delay and custom easing */
}

.service-item-detailed.is-visible .service-content-wrapper {
    transform: translateX(0);
}

.service-image-wrapper { /* Container for the service image */
    flex: 1 1 42%; /* Takes up less space */
    position: relative; /* For positioning the image inside */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Explicitly set height to fill parent */
    /* min-height: 320px; */ /* Removed as parent has fixed height and align-items: stretch */
    transform: translateX(50px); /* Initial position for animation (from right) */
    transition: transform 0.9s 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Added delay and custom easing */
}

.service-item-detailed.is-visible .service-image-wrapper {
    transform: translateX(0);
}

.service-image-wrapper img {
    width: 90%; /* Make image smaller than its container for a gap */
    max-width: none; /* Override any previous max-width */
    height: 90%; /* Make image smaller than its container for a gap */
    object-fit: cover; /* Cover the area, cropping if necessary */
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-elevate);
    /* Ensure no transform properties are present for overlap */
}

/* Alternating layout for even items */
.service-item-detailed:nth-child(even) .service-content-wrapper {
    order: 2; /* Send content to the right */
    transform: translateX(50px); /* Initial position for animation (from right for even items) */
}

.service-item-detailed.is-visible:nth-child(even) .service-content-wrapper {
    transform: translateX(0);
}

.service-item-detailed:nth-child(even) .service-image-wrapper {
    order: 1; /* Send image to the left */
    transform: translateX(-50px); /* Initial position for animation (from left for even items) */
}

.service-item-detailed.is-visible:nth-child(even) .service-image-wrapper {
    transform: translateX(0);
}

.service-content-wrapper h3 {
    font-size: 3rem; /* Slightly smaller for service item titles */
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-weight: 700;
}

.service-content-wrapper p {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color); /* Ensure paragraph text is dark */
    /* flex-grow: 1; */ /* Removed to allow content to naturally size, aiding centering */
}

.learn-more-btn {
    padding: 0.8rem 2rem; /* Reduced padding */
    font-size: 1.5rem;   /* Reduced font size */
    /* align-self: center; */ /* This is now handled by align-items: center on the parent .service-content-wrapper */
}

/* Old column classes might not be directly used or need adjustment */
/* .service-image-column {
    Styles here might be redundant if .service-image-wrapper is used exclusively
} */

/* .service-text-column {
    Styles here might be redundant if .service-content-wrapper is used exclusively
    Ensure button has some top margin if not using flex space-between in wrapper
} */

.service-text-column h3 { /* Keep this for styling h3 if it's still inside a .service-text-column div */
    font-size: 3.2rem; /* Larger heading for service item */
    color: var (--primary-red);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.service-text-column p {
    font-size: 1.7rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* @keyframes autoSlideServices { ... } */ /* Removed animation keyframes */

/* --- Why Choose Us Section (Example) --- */
#why-choose-us {
    background-color: var(--white); /* Keep on white background */
}

#why-choose-us h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    font-weight: 900;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    background-color: var(--white);
    border-radius: var(--border-radius-md); /* Consistent with service cards */
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--box-shadow-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08); /* Subtle border */
}

.feature-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--box-shadow-elevate);
    border-color: var(--primary-red); /* Highlight border on hover */
}

.feature-item img {
    width: 7rem;
    height: 7rem;
    margin-bottom: var(--spacing-md);
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--primary-red); /* Red background for feature icons */
    border-radius: var(--border-radius-minimal); /* Subtle rounding */
    padding: var(--spacing-sm);
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icon white */
}

.feature-item h3 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.feature-item p {
    font-size: 1.6rem;
    color: var (--text-color);
}

/* --- Call to Action Bottom Section --- */
#cta-bottom {
    background-color: var(--text-color); /* Bold red background for CTA */
    color: var(--white);
    text-align: center;
    padding: var(--section-padding-desktop) 0;
}

#cta-bottom h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-weight: 900;
}

#cta-bottom p {
    color: var(--white); /* White text on red background */
    font-size: 1.8rem;
    margin-bottom: var(--spacing-lg);
}

#cta-bottom .btn { /* Buttons on red background will be white with red text */
    background-color: var(--white);
    color: var(--primary-red);
    border-color: var(--white);
}

#cta-bottom .btn:hover {
    background-color: var(--text-color); /* White button to black on hover */
    color: var (--white);
    border-color: var(--text-color);
}

/* Centering the CTA button at the bottom of index.html */
#cta-bottom .open-quote-modal-page {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-red); /* Footer is now black */
    color: var(--white);
    padding: var(--section-padding-desktop) 0 var(--spacing-md) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-col h3 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p,
.footer-col ul li {
    font-size: 1.5rem;
    color: var(--white); /* Changed to pure white for better visibility */
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8); /* Lighter white links */
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--text-color);
}

/* Make phone and email links pure white */
.footer-col p a[href^="tel:"],
.footer-col p a[href^="mailto:"] {
    color: var(--white); /* Pure white for phone and email links */
    font-weight: 500;
}

.footer-col p a[href^="tel:"]:hover,
.footer-col p a[href^="mailto:"]:hover {
    color: var(--white); /* Keep white on hover for better visibility */
    text-decoration: underline;
}

.footer-logo {
    filter: brightness(0) invert(1); /* Makes your logo white */
    height: 6rem;
    margin-bottom: var(--spacing-md);
}

.social-links a {
    display: inline-block;
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a img {
    width: 3.8rem;
    height: 3.8rem;
    filter: brightness(0) invert(1); /* Makes social icons white */
}

.social-links a:hover {
    transform: translateY(-0.3rem);
}

.copyright-info {
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.6); /* Even lighter text */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.copyright-info a {
    color: rgba(255,255,255,0.6);
}

copyright-info a:hover {
    color: var(--primary-red);
}

/* --- Partner Logo Slider --- */
#partners {
    background-color: var(--white); /* Or a very light grey if needed for contrast */
    padding: var(--spacing-lg) 0;
    overflow: hidden; /* Crucial for the fade effect and hiding excess */
}

#partners h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

.logo-slider {
    width: 100%;
    overflow: hidden; /* Hides the parts of the track that are outside */
    position: relative; /* For pseudo-elements */
}

.logo-slider-track {
    display: flex;
    width: calc(20 * (15rem + 4rem) * 2); /* 20 logos, duplicated for seamless loop */
    animation: scroll 60s linear infinite; /* Slower for more logos */
    will-change: transform;
}

.slide {
    height: 10rem; /* Adjust as needed */
    width: 15rem;   /* Adjust as needed */
    margin-right: 4rem; /* Space between logos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Ensures logo aspect ratio is maintained */
    filter: grayscale(100%); /* Optional: make logos grayscale */
    opacity: 0.7; /* Optional: slightly transparent */
    transition: filter 0.3s ease, opacity 0.3s ease;
    max-width: 90%; /* Ensure images don't overflow on small devices */
}

.slide:hover img {
    filter: grayscale(0%); /* Optional: color on hover */
    opacity: 1; /* Optional: full opacity on hover */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-20 * (15rem + 4rem)));
    }
}

/* Fade effect on the sides */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%; /* Adjust width of the fade */
    z-index: 2;
    pointer-events: none; /* Allows interaction with logos underneath */
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255,255,255,0) 100%);
}

/* --- Responsive Adjustments (Mobile-First for Swiss Grid) --- */
/* Tablets and medium-sized devices */
@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 9px;
    }
    
    #hero {
        height: 65vh;
        min-height: 380px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-content p {
        font-size: 2rem;
    }
    
    .hero-video-wrapper iframe {
        width: 150%; /* Slightly wider for tablets */
    }
}

/* Small mobile devices */
/* Extra small mobile devices */
@media (max-width: 360px) {
    #hero {
        height: 45vh;
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .hero-video-wrapper iframe {
        width: 250%; /* Make video even wider for tiny screens */
    }
}

@media (max-width: 480px) {
    html {
        font-size: 7px; /* Even smaller base font size for very small devices */
    }
    
    h1 { font-size: 3.4rem; }
    h2 { font-size: 2.8rem; }
    h3 { font-size: 2.2rem; }
    
    .hero-content h1 {
        font-size: 3.6rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 1.6rem;
        text-align: center;
    }
    
    #hero {
        height: 50vh; /* Even shorter height for small devices */
        min-height: 300px;
    }
    
    .hero-video-wrapper {
        height: 100%; /* Ensure video wrapper fills the hero container */
        overflow: hidden;
    }
    
    .hero-video-wrapper iframe {
        height: 100%; /* Make iframe fill the wrapper */
        width: 220%; /* Make video even wider for smaller screens */
        object-fit: cover; /* Cover the area maintaining aspect ratio */
    }
    
    .slide {
        height: 5rem;
        width: 8rem;
        margin-right: 1.5rem;
    }
    
    .logo-slider-track {
        width: calc(20 * (8rem + 1.5rem) * 2);
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-20 * (8rem + 1.5rem)));
        }
    }
    
    /* Further reduce the padding for small mobile screens */
    .section-padding {
        padding: calc(var(--section-padding-mobile) * 0.7) 0;
    }
    
    /* Ensure services look good on small screens */
    .service-item-detailed {
        flex-direction: column-reverse;
        height: auto; /* Auto height for mobile */
        margin-bottom: var(--spacing-lg); /* Add space between services */
    }
    
    .service-content-wrapper,
    .service-image-wrapper {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    /* Reset the order and transforms for alternating layout on mobile */
    .service-item-detailed:nth-child(even) .service-content-wrapper,
    .service-item-detailed:nth-child(even) .service-image-wrapper {
        order: unset;
    }
    
    .service-content-wrapper {
        padding: var(--spacing-md);
    }
    
    .service-image-wrapper img {
        height: 20rem; /* Fixed height for images on small devices */
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 8px; /* Reduced base font size for mobile */
    }
    
    #hero {
        height: 60vh; /* Reduced height for mobile */
        min-height: 350px;
    }
    
    .hero-video-wrapper iframe {
        width: 180%; /* Make video wider to better fill vertical space */
    }

    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }

    h1 { font-size: 3.8rem; } /* Reduced heading sizes for mobile */
    h2 { font-size: 3.2rem; }
    h3 { font-size: 2.6rem; }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.6rem;
    }

    .hero-content h1 {
        font-size: 5.6rem;
    }

    .hero-content p {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }

    /* Mobile Nav specific display */
    /* Commenting out these .main-nav styles as navigation-fixes.css will handle the slide-in menu */
    /*
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-color); 
        box-shadow: var(--box-shadow-elevate);
        padding: var(--spacing-md) 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
        opacity: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav.active {
        display: flex;
        max-height: 400px; 
        opacity: 1;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        color: var(--white); 
        padding: 1.5rem 0;
        font-size: 1.6rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav ul li a:hover {
        background-color: rgba(228, 0, 43, 0.15); 
        color: var(--primary-red);
    }
    */
    
    /* Better mobile dropdown handling */
    /* Commenting out these dropdown styles as navigation-fixes.css will handle them for the mobile nav panel */
    /*
    .dropdown .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0;
    }
    
    .dropdown .dropdown-content a {
        padding-left: 2rem;
        font-size: 1.5rem;
    }
    
    .lang-dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
    }
    */
    
    .mobile-nav-toggle {
        display: block;
        margin-left: 1rem;
    }

    .header-quote-btn {
        display: none;
    }

    /* Add overlay for mobile menu */
    /* Commenting out as navigation-fixes.css uses .body-overlay div
    header.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        pointer-events: all;
    }
    */
    
    /* Enhance mobile navigation animation */
    /* Commenting out as navigation-fixes.css handles this differently
    .main-nav {
        z-index: 1000;
        transition: all 0.3s ease-in-out;
    }
    
    .main-nav.active {
        animation: slideDown 0.3s forwards;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    */
    
    /* Adjust spacing and sizing for form elements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 1.6rem;
        padding: 1rem;
    }
}

/* Callback Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 1rem;
}

.modal-content p {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

#callbackForm .form-group {
    margin-bottom: 1rem;
}

#callbackForm label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}

#callbackForm input[type="text"],
#callbackForm input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

#callbackForm .btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Style for the new callback button in the nav */
.nav-callback-btn {
    margin-left: 10px; /* Add some space next to the 'Get a Quote' button */
    background-color: var(--secondary-color, #007bff); /* Using a secondary color, adjust as needed */
    color: white;
}

.nav-callback-btn:hover {
    background-color: var(--secondary-color-dark, #0056b3); /* Darker shade on hover */
}

/* --- Useful Information Page Styles --- */
#useful-info-hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c4001f 100%);
    color: var(--white);
    text-align: center;
    padding: var(--section-padding-desktop) 0;
}

#useful-info-hero h1 {
    color: var(--white);
    font-size: 4.8rem;
    margin-bottom: var(--spacing-md);
    font-weight: 900;
}

#useful-info-hero p {
    color: var(--white);
    font-size: 2rem;
    max-width: 80rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Document Categories */
.document-category {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-subtle);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c70025 100%);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center; /* Center the title */
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    min-height: 70px; /* Consistent header height */
    text-align: center;
}

.category-header h3 {
    color: var(--black);
    font-size: 1.8rem; /* Smaller font for grid layout */
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

/* Remove dropdown arrow */
.category-dropdown-arrow {
    display: none;
}

/* Document list styles - always visible */
.document-list {
    padding: var(--spacing-md);
    max-height: none; /* No height restriction */
    opacity: 1;
    overflow: visible;
    flex: 1; /* Allow content area to expand */
    transition: none;
}

.document-item {
    margin-bottom: var(--spacing-md);
}

.document-item h4 {
    color: var(--primary-red);
    font-size: 1.6rem; /* Smaller headings */
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

.document-item ul li {
    background-color: #f8f9fa;
    margin-bottom: var(--spacing-xs);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-red);
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.document-item ul li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

/* Document Categories Grid Layout - Compact 3x3 Grid */
#required-documents .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.document-category {
    background-color: var(--black);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.document-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Compact header */
.category-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c70025 100%);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: relative;
    min-height: 50px;
    text-align: center;
}

.category-header h3 {
    color: var(--black);
    font-size: 1.4rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

/* Remove dropdown arrow */
.category-dropdown-arrow {
    display: none;
}

/* Document list styles - compact with scrolling */
.document-list {
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) #f1f1f1;
}

/* Scrollbar styling */
.document-list::-webkit-scrollbar {
    width: 5px;
}

.document-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.document-list::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

/* Compact document items */
.document-item {
    margin-bottom: 10px;
}

.document-item h4 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 5px;
    display: inline-block;
}

.document-item ul li {
    background-color: #f8f9fa;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-red);
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.document-item ul li:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

/* Section title */
#required-documents .section-title {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2.4rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #required-documents .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #required-documents .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    #required-documents .container {
        grid-template-columns: 1fr;
    }
}

/* --- New Styles for Logo Slider --- */
.logo-slider .slide {
    min-width: 200px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1px;
}
/* WhatsApp Float Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    animation: whatsappPulse 2s infinite; /* Add pulsing animation by default */
}

/* WhatsApp icon styling */
.whatsapp-float img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    display: block;
}

/* Create a pulse animation for the WhatsApp button */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Vibration animation for extra attention */
@keyframes whatsappVibrate {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-3deg); }
    20% { transform: rotate(3deg); }
    30% { transform: rotate(-2deg); }
    40% { transform: rotate(2deg); }
    50% { transform: rotate(-1deg); }
    60% { transform: rotate(1deg); }
    70% { transform: rotate(-1deg); }
    80% { transform: rotate(1deg); }
    90% { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

/* Apply vibration animation when this class is added */
.whatsapp-float.vibrating {
    animation: whatsappVibrate 0.6s ease-in-out, whatsappPulse 2s infinite;
}

/* Enhanced hover effect */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px 5px rgba(37, 211, 102, 0.5);
    background-color: #1da851; /* Slightly darker green on hover */
}

.whatsapp-float.hidden {
    opacity: 0;
    visibility: hidden;
}

.whatsapp-float.scrolled-down {
    bottom: 20px;
}

@media screen and (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 22px;
        height: 22px;
        filter: invert(1);
    }
}