/* About and Terms Page Styles */

/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Common Page Styles */
.about-page-title,
.terms-page-title {
    font-size: 3rem;
    font-weight: 900;
    color: #00B5CC;
    text-align: center;
    margin: 4rem 0 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    padding: 0 1rem;
}

.about-intro,
.terms-highlight {
    font-size: 1.25rem;
    color: #333;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
    padding: 0 2rem;
}

.about-content,
.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* About Page Specific Styles */
.about-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00B5CC;
    margin: 4rem 0 2rem;
    text-align: center;
    line-height: 1.3;
}

.about-lead-text {
    font-size: 1.125rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

/* About Features Section - Improved */
.about-features {
    margin: 3rem 0;
}

.about-feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 181, 204, 0.15);
    border-color: #00B5CC;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00B5CC;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.about-conclusion {
    margin: 4rem 0;
    text-align: center;
}

/* Reviews Section */
.reviews-section {
    margin: 5rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #00B5CC;
    margin-bottom: 1rem;
}

.reviews-date {
    font-size: 1.125rem;
    color: #666;
    font-weight: 500;
}

/* Stats Card */
.stats-card {
    background: linear-gradient(135deg, #00B5CC 0%, #0099cc 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 181, 204, 0.3);
    height: 100%;
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.stats-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.rating-display {
    margin: 1.5rem 0;
}

.rating-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-icon {
    width: 24px;
    height: 24px;
}

.google-review-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.google-review-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.google-icon {
    width: 32px;
    height: 32px;
}

.google-text {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff !important;
}

/* Review Items */
.review-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.15);
    border-color: #00B5CC;
}

.review-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-details {
    flex: 1;
}

.reviewer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.reviewer-info {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
}

.review-star {
    width: 18px;
    height: 18px;
}

.review-date {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

.review-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Terms Page Specific Styles */
.terms-highlight {
    display: block;
    font-size: 1.5rem;
    color: #00B5CC;
    font-weight: 600;
    margin-top: 1rem;
}

.terms-section {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.15);
    border-color: #00B5CC;
}

.terms-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #00B5CC;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.terms-list-item:last-child {
    border-bottom: none;
}

.terms-list-item:hover {
    background: rgba(0, 181, 204, 0.05);
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.terms-icon-success,
.terms-icon-info,
.terms-icon-warning {
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.terms-icon-success {
    color: #28a745;
}

.terms-icon-info {
    color: #17a2b8;
}

.terms-icon-warning {
    color: #ffc107;
}

.terms-feature-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.3;
}

.terms-feature-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Focus and Selection States */
.about-feature-card:focus,
.terms-section:focus,
.stats-card:focus,
.review-item:focus,
.google-review-card:focus {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

.about-feature-card:focus-within,
.terms-section:focus-within,
.stats-card:focus-within,
.review-item:focus-within,
.google-review-card:focus-within {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

/* Focused State (JavaScript added) */
.about-feature-card.focused,
.terms-section.focused,
.stats-card.focused,
.review-item.focused,
.google-review-card.focused {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

/* Selected State */
.about-feature-card.selected,
.terms-section.selected,
.stats-card.selected,
.review-item.selected,
.google-review-card.selected {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
    border-color: #00B5CC;
    box-shadow: 0 8px 25px rgba(0, 181, 204, 0.2);
}

/* Keyboard Navigation Support */
.about-feature-card:focus-visible,
.terms-section:focus-visible,
.stats-card:focus-visible,
.review-item:focus-visible,
.google-review-card:focus-visible {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .about-content,
    .terms-content {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .about-page-title,
    .terms-page-title {
        font-size: 2.75rem;
        margin: 3rem 0 2.5rem;
    }
    
    .about-section-title,
    .terms-section-title {
        font-size: 2rem;
    }
    
    .terms-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .about-content,
    .terms-content {
        padding: 0 1rem;
    }
    
    .about-page-title,
    .terms-page-title {
        font-size: 2.25rem;
        margin: 2.5rem 0 2rem;
        padding: 0 0.5rem;
    }
    
    .about-intro,
    .terms-highlight {
        font-size: 1.125rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .about-section-title,
    .terms-section-title {
        font-size: 1.75rem;
        margin: 3rem 0 1.5rem;
    }
    
    .about-lead-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .about-feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Only apply column layout to Reasons To Book With Us section */
    .terms-section:first-of-type .terms-list-item {
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-icon-success,
    .terms-section:first-of-type .terms-list-item .terms-icon-info,
    .terms-section:first-of-type .terms-list-item .terms-icon-warning {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-name {
        display: inline;
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-description {
        display: block;
        margin-top: 0;
        margin-left: 0;
        padding-left: 2.5rem;
    }
    
    /* Keep other sections with horizontal layout */
    .terms-list-item {
        padding: 1rem 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .terms-list-item .terms-icon-success,
    .terms-list-item .terms-icon-info,
    .terms-list-item .terms-icon-warning {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .terms-list-item .terms-feature-name {
        display: inline;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .terms-list-item .terms-feature-description {
        display: block;
        margin-top: 0.5rem;
        margin-left: 2.5rem;
    }
    
    .terms-feature-name {
        font-size: 1rem;
    }
    
    .terms-feature-description {
        font-size: 0.875rem;
    }
    
    .stats-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .review-item {
        padding: 1.5rem;
    }
    
    .review-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .reviewer-name {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .review-rating {
        justify-content: center;
    }
    
    .reviews-section {
        margin: 3rem 0;
        padding: 2rem 0;
    }
    
    .reviews-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .about-content,
    .terms-content {
        padding: 0 0.75rem;
    }
    
    .about-page-title,
    .terms-page-title {
        font-size: 2rem;
        margin: 2rem 0 1.5rem;
        padding: 0 0.25rem;
    }
    
    .about-intro,
    .terms-highlight {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .about-section-title,
    .terms-section-title {
        font-size: 1.5rem;
        margin: 2.5rem 0 1.25rem;
    }
    
    .about-lead-text {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }
    
    .about-feature-card {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    .feature-description {
        font-size: 0.8125rem;
    }
    
    .terms-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    /* Only apply column layout to Reasons To Book With Us section */
    .terms-section:first-of-type .terms-list-item {
        padding: 0.75rem 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.25rem;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-icon-success,
    .terms-section:first-of-type .terms-list-item .terms-icon-info,
    .terms-section:first-of-type .terms-list-item .terms-icon-warning {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-name {
        display: inline;
        margin-bottom: 0;
        margin-right: 0;
    }
    
    .terms-section:first-of-type .terms-list-item .terms-feature-description {
        display: block;
        margin-top: 0;
        margin-left: 0;
        padding-left: 2rem;
    }
    
    /* Keep other sections with horizontal layout */
    .terms-list-item {
        padding: 0.75rem 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .terms-list-item .terms-icon-success,
    .terms-list-item .terms-icon-info,
    .terms-list-item .terms-icon-warning {
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .terms-list-item .terms-feature-name {
        display: inline;
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .terms-list-item .terms-feature-description {
        display: block;
        margin-top: 0.5rem;
        margin-left: 2.5rem;
    }
    
    .terms-feature-name {
        font-size: 0.9375rem;
    }
    
    .terms-feature-description {
        font-size: 0.8125rem;
    }
    
    .stats-card {
        padding: 1.5rem 1.25rem;
    }
    
    .stats-number {
        font-size: 1.75rem;
    }
    
    .review-item {
        padding: 1.25rem;
    }
    
    .reviewer-name {
        font-size: 1rem;
    }
    
    .review-text {
        font-size: 0.875rem;
    }
    
    .reviews-section {
        margin: 2.5rem 0;
        padding: 1.5rem 0;
    }
    
    .reviews-title {
        font-size: 1.625rem;
    }
}
.site-navbar .semi-nav .nav-link {
    color: #00b5cc !important;
}
/* Focus and Selection States */
.about-feature-card:focus,
.terms-section:focus,
.stats-card:focus,
.review-item:focus,
.google-review-card:focus {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

/* Focused State (JavaScript added) */
.about-feature-card.focused,
.terms-section.focused,
.stats-card.focused,
.review-item.focused,
.google-review-card.focused {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

.about-feature-card:focus-within,
.terms-section:focus-within,
.stats-card:focus-within,
.review-item:focus-within,
.google-review-card:focus-within {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 181, 204, 0.2);
}

/* Keyboard Navigation Support */
.about-feature-card:focus-visible,
.terms-section:focus-visible,
.stats-card:focus-visible,
.review-item:focus-visible,
.google-review-card:focus-visible {
    outline: 3px solid #00B5CC;
    outline-offset: 2px;
}

/* Selection States */
.about-feature-card.selected,
.terms-section.selected,
.stats-card.selected,
.review-item.selected,
.google-review-card.selected {
    border-color: #00B5CC;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
    box-shadow: 0 8px 25px rgba(0, 181, 204, 0.15);
}

/* Active States */
.about-feature-card:active,
.terms-section:active,
.stats-card:active,
.review-item:active,
.google-review-card:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Hover and Focus Combined */
.about-feature-card:hover:focus,
.terms-section:hover:focus,
.stats-card:hover:focus,
.review-item:hover:focus,
.google-review-card:hover:focus {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 181, 204, 0.25);
}

/* Terms List Item Focus States */
.terms-list-item:focus {
    outline: 2px solid #00B5CC;
    outline-offset: 1px;
    background: #f0f9ff;
    border-radius: 10px;
    padding: 1.5rem 1rem;
}

.terms-list-item:focus-visible {
    outline: 2px solid #00B5CC;
    outline-offset: 1px;
}

/* Feature Icon Focus States */
.feature-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 181, 204, 0.3);
}

/* Review Avatar Focus States */
.reviewer-avatar:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 181, 204, 0.3);
}

/* Google Icon Focus States */
.google-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.3);
}

/* Terms Icons Focus States */
.terms-icon-success:focus,
.terms-icon-info:focus,
.terms-icon-warning:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Responsive Focus States */
@media (max-width: 768px) {
    .about-feature-card:focus,
    .terms-section:focus,
    .stats-card:focus,
    .review-item:focus,
    .google-review-card:focus {
        outline-width: 2px;
        outline-offset: 1px;
    }
    
    .terms-list-item:focus {
        outline-width: 2px;
        outline-offset: 1px;
    }
}

@media (max-width: 480px) {
    .about-feature-card:focus,
    .terms-section:focus,
    .stats-card:focus,
    .review-item:focus,
    .google-review-card:focus {
        outline-width: 2px;
        outline-offset: 1px;
        transform: translateY(-2px);
    }
    
    .about-feature-card:hover:focus,
    .terms-section:hover:focus,
    .stats-card:hover:focus,
    .review-item:hover:focus,
    .google-review-card:hover:focus {
        transform: translateY(-3px);
    }
}

/* Responsive Menu Display */
@media only screen and (max-width: 991px) {
    .responsive-menu {
        display: revert !important;
        margin-top: 0px !important;
        display: flex !important;
        flex-direction: column;
    }
}

/* Car Title Links */
.car-title-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: 100%;
}

.car-title-link:hover {
    color: #00B5CC;
    text-decoration: underline;
    transform: translateY(-1px);
}

.car-title-link:focus {
    outline: 2px solid #00B5CC;
    outline-offset: 2px;
    border-radius: 4px;
}

.car-title-link:active {
    transform: translateY(0);
}

/* Responsive car title links */
@media (max-width: 768px) {
    .car-title-link {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .car-title-link {
        font-size: 0.85em;
    }
}


/* Remove focus outlines */
* { outline: none !important; }
a:focus, button:focus { outline: none !important; box-shadow: none !important; }
* { -webkit-tap-highlight-color: transparent !important; }
