/* IAA 2025 Landing Page Styles */
:root {
  --vw_blue: #001E50;
  --dark_blue: #001E50;
  --darker_blue: #000E26;
  --light_blue: #00B0F0; /* AVA-1073: VW light blue accent (theme injects this dynamically; defined here so the header past-hero/hover states resolve) */
}

/* Override WordPress content area constraints for full-width rendering */
.entry-content,
.wp-block-post-content,
.page-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

/* Ensure full page width for IAA sections without horizontal scroll */
.iaa-hero-section,
.iaa-event-selection,
.iaa-services-section,
.iaa-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on body and html */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative;
}

body {
    font-family: 'VW Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #FFFFFF;
    overflow-x: hidden !important;
}

/* Container */
.iaa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
    overflow-x: hidden;
    position: relative;
}

/* Hero Section */
.iaa-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../iaa_hero_background_xl.jpg') center center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

.iaa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Header with Logo */
.iaa-header {
    position: relative;
    z-index: 3;
    padding: 60px 0 0;
    width: 100%;
}

.iaa-logo-container {
    position: relative;
    width: 100%;
    height: 2px;
    display: flex;
    align-items: center;
}

/* Left line segment */
.iaa-logo-line-left {
    position: absolute;
    left: 0;
    width: calc(70% - 40px); /* 70% minus half the logo width for desktop */
    height: 2px;
    background: #FFFFFF;
}

/* Right line segment */
.iaa-logo-line-right {
    position: absolute;
    right: 0;
    width: calc(30% - 40px); /* 30% minus half the logo width for desktop */
    height: 2px;
    background: #FFFFFF;
}

.iaa-logo {
    position: absolute;
    right: 30%; /* Position logo at 30% from right edge for desktop */
    transform: translateX(50%); /* Center the logo on this position */
    z-index: 3;
    filter: none; /* Remove filter to show original logo colors */
    background: transparent; /* Transparent background */
    padding: 15px;
    border-radius: 8px;
    width: 80px; /* Make logo bigger */
    height: 80px; /* Make logo bigger */
}

/* Language Toggle */
.iaa-language-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

/* Toggle switch container */
.iaa-toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    border-radius: 18px;
    border: 1px solid #ffffff;
    padding: 3px;
    cursor: pointer;
}

/* Sliding circle indicator */
.iaa-toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Move circle to right when German is active */
.iaa-toggle-switch[data-active-lang="en"]::before {
    transform: translateX(25px);
}

/* Language labels */
.iaa-language-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'VW Head', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
}

.iaa-language-label:hover, .iaa-language-label.active {
    color: white;
}
/* Hero Content */
.iaa-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px 120px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.iaa-hero-title {
    font-family: 'VW Head', sans-serif;
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.iaa-hero-subtitle {
    font-family: 'VW Head', sans-serif;
    font-size: 50px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Event Selection Section */
.iaa-event-selection {
    background: #FFFFFF;
    padding: 80px 0;
}

.iaa-intro-section {
	text-align: left;
	margin-bottom: 40px;
}

.iaa-intro-title {
	font-family: 'VW Head', sans-serif;
	font-size: 48px;
	color: var(--darker_blue);
	margin-bottom: 24px;
	font-weight: 300;
    line-height:1.2;
}

.iaa-intro-text {
    font-family: 'VW Text', sans-serif;
    font-size: 16px;
	color: var(--darker_blue);
    max-width: 800px;
    margin: 0;
    line-height: 1.6;
}

.iaa-choice-title {
	font-family: 'VW Head', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: var(--darker_blue);
	margin-bottom: 32px;
	text-align: left;
}

.iaa-separator {
	width: 100%;
	height: 1px;
	background: #DFE4E8;
	margin-bottom: 40px;
}

/* Events Grid */
.iaa-events-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 54px;
	margin-top: 32px;
}

.iaa-event-card {
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.iaa-event-card:hover {
    transform: translateY(-2px);
}

.iaa-event-image {
    width: 100%;
    height: 225px;
    overflow: hidden;
}

.iaa-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iaa-event-caption {
	padding-top: 20px;
	background: #FFFFFF;
	font-family: 'VW Text', sans-serif;
	font-size: 17px;
	color: #000000;
	text-align: left;
	padding-bottom: 5px;
}


/* Services Section */
.sb-services-section {
    background: radial-gradient(90.99% 90.99% at -39.09% -36.67%, #00437A 0%, #001E50 100%) ;
    padding: 100px 0 120px;
    color: #FFFFFF;
}

.iaa-services-title {
	font-family: 'VW Head', sans-serif;
	font-size: 36px;
	text-align: center;
	margin-bottom: 72px;
	font-weight: 300;
}

.iaa-services-grid {
	display: flex;
	margin: 0 auto;
	justify-content: center;
	column-gap: 130px;
}

.iaa-service-card {
	text-align: center;
	max-width: 290px;
}
.iaa-service-icon {
    width: 90px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.iaa-service-name {
	font-family: 'VW Head', sans-serif;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 16px;
}

.iaa-service-description {
	font-family: 'VW Text', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	opacity: 0.9;
	max-width: 400px;
	margin: 0 auto;
}

/* Footer */
.sb-footer {
	padding: 100px 0 0;
}

.sb-footer-content {
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--vw_blue);
	padding: 60px 30px 0;
}

.sb-footer-section {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 40px;
}

.sb-social-links {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sb-social-links-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sb-social-links-title {
	font-family: 'VW Head', sans-serif;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 25px;
	color: var(--vw_blue);
}

.sb-social-links a {
	color: var(--vw_blue);
	text-decoration: none;
	font-family: 'VW Head', sans-serif;
	font-size: 14px;
	transition: color 0.3s ease;
}

.sb-social-links a:hover {
    color: #002D62;
    text-decoration: underline;
}

.sb-legal-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 30px;
	font-size: 14px;
	row-gap: 10px;
}

.sb-legal-links a {
	color: var(--vw_blue);
	text-decoration: none;
	font-family: 'VW Head', sans-serif;
	transition: color 0.3s ease;
}

.sb-legal-links a:hover {
    color: #002D62;
    text-decoration: underline;
}

.sb-legal-links span {
    color: var(--vw_blue);
}

.sb-copyright {
    text-align: left;
    color: #000;
    font-family: 'VW Head', sans-serif;
    font-size:14px;
}

.sb-footer-separator {
	max-width: 500px;
	height: 1px;
	background: rgba(0, 30, 80, 0.25);
	margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .iaa-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .iaa-services-grid {
        gap: 40px;
    }
    
    /* Tablet adjustments */
    .iaa-hero-section {
        background-size: cover; /* Keep cover for tablets */
    }
    
    .iaa-logo {
        right: 30%; /* Keep desktop logo position on tablets */
    }
}

@media (max-width: 768px) {
    .iaa-hero-title {
        font-size: 3rem;
    }
    
    .iaa-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .iaa-hero-content {
        padding: 0 20px 80px;
    }
    
    .iaa-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .iaa-services-title {
        font-size: 2rem;
    }
    
    .iaa-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Mobile header fixes */
    .iaa-hero-section {
        background-size: cover; /* Keep cover for mobile */
    }
    
    .iaa-logo {
        right: 50% !important; /* Center logo on mobile */
        transform: translateX(50%) !important;
    }
    
    /* Mobile logo line adjustments */
    .iaa-logo-line-left {
        width: calc(50% - 40px) !important; /* Equal width for mobile */
    }
    
    .iaa-logo-line-right {
        width: calc(50% - 40px) !important; /* Equal width for mobile */
    }
    
    /* Mobile footer fixes */
    .iaa-social-links-list {
        flex-direction: row !important; /* Force horizontal alignment */
        gap: 16px;
    }
    
    .iaa-legal-links {
        flex-direction: row !important; /* Force horizontal alignment */
        gap: 8px;
        text-align: left;
        flex-wrap: wrap;
    }
    
    .iaa-legal-links span {
        display: inline !important; /* Show separators */
    }
    
    .iaa-footer-separator {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .iaa-hero-section {
        min-height: 500px;
        background-size: cover; /* Keep cover for very small screens */
    }
    
    .iaa-hero-title {
        font-size: 2.5rem;
    }
    
    .iaa-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .iaa-hero-content {
        padding: 0 15px 60px;
    }
    
    .iaa-container {
        padding: 0 15px;
    }
    
    .iaa-event-selection {
        padding: 60px 0;
    }
    
    .iaa-services-section {
        padding: 60px 0;
    }
    
    .iaa-event-caption {
        padding: 16px 0;
        font-size: 18px;
    }
    
    /* Extra small screen logo line adjustments */
    .iaa-logo-line-left {
        width: calc(50% - 40px) !important; /* Equal width for very small screens */
    }
    
    .iaa-logo-line-right {
        width: calc(50% - 40px) !important; /* Equal width for very small screens */
    }
    
    /* Extra small screen footer fixes */
    .iaa-social-links-list {
        gap: 12px; /* Reduce gap for very small screens */
    }
    
    .iaa-legal-links {
        gap: 6px; /* Reduce gap for very small screens */
        font-size: 0.8rem; /* Smaller font for better fit */
    }
    
    .iaa-social-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.iaa-event-card:focus,
.iaa-social-links a:focus,
.iaa-legal-links a:focus {
    outline: 2px solid #002D62;
    outline-offset: 2px;
}

/* Loading animation for images */
.iaa-event-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .iaa-hero-section,
    .iaa-services-section {
        background: none !important;
        color: #000000 !important;
    }
    
    .iaa-hero-title,
    .iaa-hero-subtitle {
        color: #000000 !important;
        text-shadow: none !important;
    }
    
    .iaa-services-title,
    .iaa-service-name,
    .iaa-service-description {
        color: #000000 !important;
    }
}


/* redesign */
.sb-hero-section {
    background: var(--hero-bg) center center/cover no-repeat !important;
    display: flex;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 100px;    
    min-height: 550px;
}
.sb-hero-section::before {
	content: "";
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) -22.03%, rgba(0, 0, 0, 0.05) 100%);
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.sb-hero-content {
	width: 100%;
	margin-top: auto;
	margin-bottom: 80px;
	padding-top: 30px;
	position: relative;
	z-index: 2;
}
.sb-content-center {
	max-width: 1280px;
	margin: 0 auto;
}
.sb-hero-section h1 {
	font-size: 70px;
	color: #fff;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 20px;
}
.sb-hero-section p {
	font-size: 40px;
	margin-bottom: 0;
	color: #fff;
	font-weight: 300;
	line-height: 1.1;
    font-family:var(--secondary_font);
}
.sb-hero-title span {
	display: block;
}
/* AVA-1073: header now reuses the theme's masthead classes (sticky `position:fixed`,
   open/close menu, past-hero state come from the theme's custom.css/custom.js).
   The old absolute positioning is dropped so it doesn't override the theme's fixed header.
   sb- classes are kept only as harmless hooks. */
.sb-header-elements-wrapper {
	display: flex;
	column-gap: 20px;
	align-items: center;
	position: relative;
	z-index: 9999;
	min-height: 26px;
}
.sb-full-header {
	overflow: hidden;
}
.sb-header-logo {
	margin-top: 0;
	position: relative;
	top: 0;
}
.sb-header-logo::before, .sb-header-logo::after {
	content: "";
	position: absolute;
	height: 2px;
	background: #fff;
	width: 1000px;
	left: -1000px;
	top: 50%;
	transform: translateY(-50%);
}
.sb-header-logo::after {
	left: auto;
	right: -1000px;
}
.sb-logo-inner {
	position: relative;
	text-align: left;
	height: 48px;
}
.sb-logo-inner::before, .sb-logo-inner::after {
	content: "";
	width: calc(70% - 20px);
	height: 2px;
	background: #fff;
	display: block;
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -1px;
}
.sb-logo-inner::after {
	left: auto;
	right: 0;
	width: calc(30% - 68px);
}
.sb-logo-inner a {
	display: inline-block;
	margin-left: 70%;
	height: 48px;
}
.sb-logo-inner svg {
	width: 48px;
	height: 48px;
}
.sb-event-selection{
    padding: 60px 0 80px;
}

/* responsive */
@media (max-width: 1400px) {
  .sb-content-center {  max-width: 90%; }
}

@media (max-width:1279px){
    .iaa-event-image {aspect-ratio: 1.8 !important;	height: auto;}
    .iaa-events-grid {gap: 40px;}
}

@media (max-width: 1023px) {
    .sb-hero-section h1{   font-size: 60px; }
    .iaa-intro-title{font-size:40px;}
    .car-item h4{font-size:18px;}
    .cars-grid{display:flex; flex-wrap:wrap;}
    .car-item {width: calc(50% - 12px);}
}

@media (max-width: 959px) {
    .sb-hero-section h1{   font-size: 50px; }
    .sb-hero-content {margin-bottom: 45px;}

    .city-image-container, .car-image-left {flex: 0 0 300px;}
    .city-image-container img{height:auto; display:block;}    
    .popup-header h2 {line-height: 1.2;}

    .calendar-day.available{font-size:12px;}
    .date-time-selection {column-gap: 25px;}
    .time-slots-container {padding: 12px 0px 12px 25px;}
    .calendar-container {padding: 24px 24px;}
    .time-slot {padding: 12px 8px;}
}

@media (max-width: 767px) {
    /* HYV-2004: use the Mobile Hero Image when set, otherwise keep the desktop one.
       !important is required to beat the desktop `background` shorthand above. */
    .sb-hero-section {
        background-image: var(--hero-bg-mobile, var(--hero-bg)) !important;
    }
    .sb-hero-section p{  font-size: 34px;  }
    .sb-logo-inner a {		margin-left: calc(50% - 24px);	}
    .sb-logo-inner::before, .sb-logo-inner::after {		width: calc(50% - 40px);	}
    .sb-logo-inner::after {		width: calc(50% - 40px);	}
    .sb-event-selection {padding: 30px 0 80px;}
    .iaa-events-grid {gap: 20px;}

    .popup-header {padding: 16px 15px 4px 20px;}
    .vwtd-booking-popup{height:92dvh; min-height:92dvh;}
    .description-content {flex-direction: column;	gap: 0;}
    .city-image-container {flex: auto; margin-bottom:25px;}
    .step-header h3, .sub-heading, .car-details-title{text-align:center;}
    .progress-container {padding: 15px 20px 18px;	flex-shrink: 0;}
    .popup-content {padding: 25px 20px;}
    .experience-description {margin-bottom: 20px;}
    .description-content{padding-bottom:0;}
    .cars-grid {gap: 10px;}
    .car-item {	width: 100%;}

    .car-item .car-info {padding: 20px 16px 20px 16px;}
    .car-details-row {  gap: 15px;   flex-direction: column;  }
    .car-image-left {flex: auto;	width: 100%;}
    .car-info-right {max-width: 100%;}

    .date-time-selection{flex-direction:column;}
    .calendar-wrapper {flex: auto;	width: 100%;	max-width: 100%;}
    .time-slots-container {padding: 20px 0px;	flex: auto; width:100%; border:0;}
    .time-slots-container h4 {margin: 0 0 20px 0;	font-size: 20px;	text-align: center;}
    .calendar-container {padding: 12px 11px 15px;}
    .loading-available-slots{text-align:center; max-width:250px; margin-left:auto; margin-right:auto;}

    .review-container{flex-direction:column;}
    .review-section{flex:auto; width:100%; max-width:100%;}
    #review-car-image img {max-width: 300px;}
    .address-notice p, .notice-passenger-confirm p{align-items:start;}
    .notice-asterisk {margin-top: 4px;}

    .select-date-first {text-align: center;	padding-left: 20px;	padding-right: 20px;}
    .sb-event-selection + .sb-footer {padding-top: 20px;}

    .standtour-intro-row{flex-direction:column;}
    .standtour-intro-left {max-width: 100%;	margin-bottom: 40px; width:100%; min-height:unset;}
    .standtour-intro-right {border-left: 0;	padding-left: 0;	min-width: 100%;	padding-right: 0;	text-align: left;}
}

@media (max-width:639px){
    .sb-services-section {padding: 60px 0 80px;}
    .iaa-services-grid{flex-direction:column; align-items:center;}    
    .iaa-services-title {margin-bottom:50px;}
    .iaa-service-name{font-size:18px;}
    .sb-footer {padding: 80px 0 0;}
    .sb-footer-content {	padding: 30px 0 0;}
    .sb-legal-links{column-gap:12px;}
    .sb-social-links-title {font-size: 16px;	margin-bottom: 20px;}
    .sb-footer-section {	margin-bottom: 32px;}
    .sb-footer-separator {	max-width: 200px;	margin: 0 0 20px;}
    .popup-header h2 {	font-size: 20px;}
    .popup-content .step-content {font-size: 16px;}
    .cols-holder{flex-direction:column;}
    .two-cols .each-col:first-child {margin-bottom: 24px;}
    .each-col.select-col {max-width: 100%;}
    .columns-two-thirds-one-third .each-col:nth-child(2), .columns-one-third-two-thirds .each-col:nth-child(1) {max-width: 100%;}
    .terms-dropdown-content.open {max-height: 310px;}
    #review-car-image img {max-width: 100%;}
    .form-group {margin-bottom: 0;}
}

@media (max-width: 479px) {
    .sb-hero-section h1 {   font-size: 40px; }
    .sb-hero-section p{  font-size: 29px;  }
    .sb-hero-section{ min-height:360px;}
    .sb-logo-inner svg {width: 40px;	height: 40px;}
    .sb-logo-inner a {width: 40px;	height: 40px; margin-left: calc(50% - 20px);}
    .iaa-services-title {font-size: 24px;}
    .iaa-intro-title {font-size: 32px;}
    .popup-footer button {width: 100%;}
    .popup-footer {flex-direction: column; padding: 20px; row-gap: 12px;}

    .car-image-container {height: 160px;}
    .car-color-background{height:100px;}

    .terms-text{font-size:12px;}

    .phone-input-wrapper {width: 120px;min-width: 120px;}
    body .phone-input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {column-gap: 5px;}
}
