/* ========================================
   PAGES V2 - Page-specific styles with text balance
   ======================================== */

/* ======== HOME PAGE ======== */
.Hero {
    width: 100vw !important; /* Force full viewport width */
    contain-intrinsic-block-size: auto 6.25rem;
    min-height: 37.5rem; /* 600px baseline */
    max-height: 100vh; /* Never exceed viewport height */
    background-image: url('../images/Front Page.jpg');
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    /* Top padding to account for absolute header (~80px = 5rem) */
    padding: 5rem 4.375rem 1.25rem 4.375rem; /* Equal left/right padding for centered content */
    display: flex;
    flex-direction: column;
    align-items: start;
    /* align-content: flex-start; */
    justify-content: flex-end;
    box-sizing: border-box; /* Include padding in width calculation */
    overflow: hidden;
    /* Ensure Hero starts at viewport edge (0,0) and is full width */
    margin: 0 !important;
    position: relative;
    left: 0 !important; /* Force to start at left edge */
    margin-left: calc(-50vw + 50%) !important; /* Break out of container */
    top: 0;
    width: 100vw; /* Full viewport width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.form-container {
    width: 18.25rem; /* Fixed width - no scaling */
    max-width: 100%; /* Responsive constraint */
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-container select,
.form-container input {
    width: 100%; /* Use container width */
    height: 40px; /* Fixed height in px */
    padding: 6px 16px; /* Reduced top/bottom padding by 50% */
    background: white;
    border: 0 solid var(--color-border);
    border-radius: 0.5rem;
    font-size: 1rem; /* Fixed font size */
    color: var(--color-text);
}

.form-container .btn {
    margin-top: 0rem;
    max-width: 16.875rem; /* 270px converted to REM */
}

.hero-text {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 2.1875rem;
    line-height: 2.1875rem;
    margin-bottom: .5rem;
    text-align: left;
    width: 100%; /* Align with form width */
}

.hero-text strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* Transit Section */
.transit-section {
    width: 100vw; /* Full viewport width */
    height: 31.625rem;
    display: flex;
    flex-direction: column;
    /* row-gap: 0.5rem; */
    align-items: center;
    justify-content: center;
    padding: 0 3rem; /* Internal padding for content */
    box-sizing: border-box; /* Include padding in width calculation */
}

.transit-title {
    font-family: var(--font-heading);
    font-size: 1.875rem; /* 30px from reference */
    text-align: center;
    text-wrap: balance;
    width: 100%;
    margin: 0 auto 1.75rem; /* Proper gap below */
    line-height: 1.3;
}

.transit-title .orange {
    color: var(--color-primary);
    font-weight: 700;
}

.transit-section__subtitle {
    color: var(--color-primary);
    font-size: 1.75rem;
    text-align: center;
    width: 100%;
    margin: 1.5rem auto 0.5rem;
    font-family: var(--font-heading);
}

.transit-section__note {
    color: var(--color-primary);
    font-size: 1.25rem;
    text-align: center;
    font-weight: 400;
    width: 100%;
    margin: 0 auto 1.5rem;
}

.transit-section__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ======== VEHICLES PAGE ======== */
.vehicles-hero {
    background: var(--color-bg-light);
    padding: 6rem 0 2.5rem 0; /* Top padding for header clearance */
    margin-top: 0; /* Start at viewport top */
}

.page-header__content {
    width: 100%;
    margin: 0 auto;
     text-align: center;
    padding: 0 3rem; /* Internal padding for content */
}

.page-header__title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

/* When title is a span (vehicles page), make it hug content */
span.page-header__title {
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

.page-header__brand-logos {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header__logo--renault {
    height: 2rem;
}

.page-header__logo--dacia {
    height: 1.75rem;
}

.page-header__or {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--color-black);
}

.page-header__subtitle {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

.page-header__note {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--color-black);
    text-align: center;
    width: 100%;
    margin: 0 auto;
    line-height: 0.9;
}

/* Vehicle Filters Section */
.vehicle-filters {
    background: var(--color-white);
    border-top: 0.0625rem solid var(--color-border);
    border-bottom: 0.0625rem solid var(--color-border);
    padding: 0;
    width: 100%;
}

.vehicle-filters__checkboxes {
    width: 100%;
    margin: 0;
    padding: 6px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 0.0625rem solid var(--color-border);
}

.checkbox-group {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--color-black);
    cursor: pointer;
}

.vehicle-filters__form {
    width: 100%;
    margin: 0;
    padding: 6px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-form-row {
    display: flex;
    gap: 0;
    justify-content: center;
}

.date-input,
.location-select {
    height: 40px;
    padding: 6px 1rem;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-black);
    background: var(--color-white);
    outline: none;
    flex: 1;
    max-width: 12.5rem;
}

.date-input {
    border-radius: 0;
}

/* Center select (first location select) has left and right borders */
.location-select:first-of-type {
    border-radius: 0;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.location-select:last-of-type {
    border-radius: 0;
}

.date-input:focus,
.location-select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

/* ======== TEAM PAGE ======== */
.team-hero {
    background: var(--color-white);
    padding: 6rem 0 3.75rem 0; /* Top padding for header clearance */
    text-align: center;
    margin-top: 0; /* Start at viewport top */
}

.team-hero .page-header__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

.team-hero .page-header__subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

.orange-text {
    color: var(--color-primary);
}

/* ======== BOOKING PAGE ======== */
.booking-hero {
    background: var(--color-bg-light);
    padding: 5rem 0 3.75rem 0;
    text-align: center;
}

.booking-hero .page-header__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

.booking-hero .page-header__subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    width: 100%;
    line-height: 0.9;
}

/* ======== TRANSIT PAGE ======== */
.transit-hero {
    background: var(--color-white);
    padding: 5rem 0 3.75rem 0;
    text-align: center;
}

.transit-hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.transit-hero__subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.4;
}

.transit-section__link {
    display: inline-block;
    padding: 0.625rem 1rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    height: 1.3125rem;
    display: flex;
    align-items: center;
    transition: opacity var(--transition-speed);
}

.transit-section__link:hover {
    opacity: 0.9;
}

/* Benefits Section */
.benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 3rem; /* Internal padding for content */
    width: 100%;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 10rem;
}

.benefit__icon {
    width: 5rem;
    height: 4rem;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.benefit__text {
    font-size: 0.875rem;
    line-height: 1.4;
    text-wrap: balance;
    min-height: 3rem;
}

.benefit__text strong {
    font-weight: 700;
}

.benefit__text-small {
    font-size: 0.75rem;
    display: block;
    margin-top: 0.25rem;
}

/* Orange Section */
.orange-section {
    width: 100vw !important; /* Force full viewport width */
    padding: 0;
    min-height: 34.375rem;
    color: var(--color-white);
    display: flex;
    align-items: stretch;
    flex-direction: row;
    /* gap: 2rem; */
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0 !important;
    left: 0 !important; /* Force to start at left edge */
    margin-left: calc(-50vw + 50%) !important; /* Break out of container */
    position: relative;
}

.orange-section__image {
    flex: 1; /* Fill remaining space */
    background: var(--color-primary);
    background-image: url('../images/Section.jpg');
    background-repeat: no-repeat;
    background-position: center center; /* Center the image */
    background-size: cover; /* Fill area completely */
}

.steps {
    flex: 0 0 auto; /* Hug content width */
    padding: 3rem;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steps__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-wrap: balance;
    text-align: center;
    width: 100%;
    font-family: var(--font-heading);
}

/* Vehicles Section */
.vehicles-section {
    width: 100vw; /* Full viewport width */
    padding: 3rem 3rem; /* Increased top/bottom padding */
    min-height: 31.25rem; /* 500px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--color-white);
    box-sizing: border-box; /* Include padding in width calculation */
}

.vehicles-section h2 {
    text-align: center;
    margin-bottom: 2rem; /* Increased spacing */
    width: 100%;
}

.vehicles-section .coming-soon {
    text-align: center;
    padding: 0; /* Remove extra padding since parent has it */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vehicles-section .coming-soon p {
    text-align: center;
    margin: 0 auto;
    max-width: 50rem; /* Limit width for better readability */
    line-height: 1.6;
}

/* Testimonial Section */
.testimonial {
    width: 100vw; /* Full viewport width */
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
    min-height: 18.75rem; /* 300px */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box; /* Include padding in width calculation */
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;

}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Logos */
.logos {
    display: flex;
    gap: 1rem;
    align-items: center;
    /* justify-content: center; */
    margin-top: 0.375rem;
    height: 2.3125rem;
}

.hero-bottom-text {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-black);
    /* height: 2.1875rem; */
    display: flex;
    flex-direction: column;
    width: 31.25rem;
    /* justify-content: center; */
}

.hero-bottom-text img {
    display: inline;
    height: 0.625rem;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.hero-bottom-text strong {
    font-weight: 700;
}

.logo__renault {
    height: 2.3125rem;
    width: auto;
}

.logo__dacia {
    height: 1.75rem;
    width: auto;
}

/* ======== VEHICLES PAGE ======== */
.page-header__top-line {
    display: flex;
    align-items:baseline;
    gap: 1rem;
    padding-left: 4.375rem;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    padding-left: 4.375rem;
}

.page-header__or {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    padding: 0 0.25rem;
}

.page-header__logo {
    height: 1.75rem;
}

.page-header__logo--renault {
    width: 1.75rem;
}

.page-header__logo--dacia {
    width: 1.625rem;
}

.page-header__subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    padding-left: 4.375rem;
}

.page-header__note {
    font-family: var(--font-heading);
    font-size: 1.3125rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    padding-left: 4.375rem;
    padding-bottom: 2.5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    width: 100%;
}

.page-header {
    padding-top: 6rem; /* Top padding for header clearance */
    background: var(--color-bg-light);
    margin-top: 0; /* Start at viewport top */
}

.page-header p {
    font-size: 1.3125rem;
}

.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.filters--top {
    border: 0.0625rem solid var(--color-black);
    border-bottom: none;
    gap: 1rem;
    padding: 1rem 2rem;
}

.filters--bottom {
    justify-content:flex;
}

.filters--bottom select {
    min-width: 16rem;
    width: 33%;
    height: 2.5rem;
    padding: 0 2rem;
    border-right: 0.0625rem solid var(--color-border);
    border-radius: 0;
    background: white;
    font-size: 0.875rem;
}

.filters--bottom date {
    min-width: 16rem;
    width: 34%;
    height: 2.5rem;
    padding: 0 2rem;
    border-right: 0.0625rem solid var(--color-border);
    border-radius: 0;
    background: white;
    font-size: 0.875rem;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    grid-auto-rows: 1fr;
}

/* Legacy class support */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    grid-auto-rows: 1fr;
}

/* ======== TRANSIT PAGE ======== */
.transit-title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    text-wrap: balance;
}

.transit-title .orange {
    color: var(--color-primary);
    font-weight: 700;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th {
    background: var(--color-bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table th.orange {
    background: var(--color-primary);
    color: var(--color-white);
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 0.0625rem solid var(--color-border);
    text-wrap: pretty;
}

.comparison-table .check {
    color: #4CAF50;
    font-weight: 700;
    text-align: center;
}

.comparison-table .cross {
    color: #F44336;
    font-weight: 700;
    text-align: center;
}

/* FAQ Section */
.faq-section {
    background: var(--color-primary);
    padding: 4rem 2rem;
    color: var(--color-white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-category h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.faq-item {
    padding: 0.5rem 0;
    cursor: pointer;
    transition: padding-left 0.2s;
}

.faq-item:hover {
    padding-left: 0.5rem;
}

.cta__text {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.transit-section-title {
    text-align: center;
    margin: 2.5rem 0;
    text-wrap: balance;
}

.transit-cta {
    text-align: center;
    margin: 2.5rem 0;
}

.transit-faq-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    text-wrap: balance;
}

.transit-contact {
    text-align: center;
    margin-top: 3.75rem;
}

.transit-contact__text {
    margin-bottom: 1.25rem;
}

/* ======== TEAM PAGE ======== */
.team-content {
    display: flex;
    gap: 2rem;
    padding: 2rem 6rem;
}

.team-photo {
    text-align: center;
    min-width: 20rem;
}

.team-photo__image {
    width: 29.75rem;
    height: 21.06rem;
    background: #ddd;
    border-radius: 0.5rem;
    object-fit: cover;
}

.team-photo__caption {
    margin: 1.5rem 0;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    text-wrap: balance;
}

.team-text {
    flex: 1;
}

.team-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.team-intro__brand {
    font-weight: 700;
    text-transform: uppercase;
}

.team-cta {
    text-align: center;
    padding: 3.75rem 0;
}

.orange-text {
    color: var(--color-primary);
    font-weight: 600;
}

/* ======== BOOKING PAGE ======== */
.booking-form {
    display: flex;
    gap: 2rem;
    padding: 2rem;
}

.form-sidebar {
    width: 20rem;
    text-align: center;
}

.booking-vehicle-title {
    font-size: 3rem;
    font-weight: 300;
    font-family: var(--font-heading);
    text-wrap: balance;
}

.booking-vehicle-preview {
    width: 16rem;
    height: 16rem;
    background: #ddd;
    margin: 1.25rem 0;
    border-radius: 0.25rem;
}

.booking-link {
    color: var(--color-primary);
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.booking-link--spaced {
    margin-left: 1.25rem;
}

.booking-link:hover {
    text-decoration: underline;
}

.booking-divider {
    border: 0;
    border-top: 0.0625rem solid var(--color-black);
    margin: 1.5rem 0;
}

.booking-brand-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.booking-price {
    color: #999;
}

.booking-submit-btn {
    width: 16rem;
    margin-top: 1.5rem;
}

.booking-discount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.form-main {
    flex: 1;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 0.0625rem solid var(--color-border);
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Filter modifiers */
.filters--center {
    justify-content: center;
}

.filter-link {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
}

.filter-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.125rem;
    background: var(--color-border);
}

.filter-link--active {
    color: var(--color-primary);
    font-weight: 600;
}

.filter-link--active::after {
    background: var(--color-primary);
    right: 0;
}

/* ======== TESTIMONIAL ======== */
.testimonial {
    background: var(--color-black);
    color: var(--color-white);
    height: 18.75rem;
    display: flex;
    justify-content: center;
    padding: 0 3rem; /* Internal padding for content */
    align-items: center;
    padding: 0;
    gap: 2rem;
}

.quote {
    font-size: 6.25rem;
    color: var(--color-primary);
    line-height: 1;
}

.quote--left {
    align-self: flex-start;
    margin-top: 2rem;
}

.quote--right {
    align-self: flex-end;
    margin-bottom: 2rem;
    transform: rotate(180deg);
}

.testimonial__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-style: italic;
    text-wrap: balance;
}

.testimonial-text--main {
    font-size: 2.5rem;
    line-height: 1.2;
}

.testimonial-text--sub {
    font-size: 1.75rem;
    line-height: 1.3;
}

.testimonial-author {
    font-size: 1.25rem;
    font-style: normal;
    margin-top: 1rem;
}