/* Ibarra's Auto LLC - Shared Site Styles */

:root {
    --navy: #0F2040;
    --navy-light: #1A365D;
    --gold: #F4C430;
    --gold-hover: #D4A925;
    --gray-light: #F3F4F6;
    --gray: #9CA3AF;
    --text: #1F2937;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--navy);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left i,
.top-bar-right i {
    color: var(--gold);
    margin-right: 5px;
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switch {
    font-weight: 600;
    display: inline-block;
    margin-left: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

/* Global Banner */
.global-banner {
    background-color: var(--gold);
    color: var(--navy);
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.global-banner a {
    color: var(--navy);
    text-decoration: underline;
    margin-left: 10px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 320px;
    display: block;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    max-width: 100%;
    height: 88px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

body.page-home .logo {
    max-width: 360px;
}

body.page-home .logo img {
    height: 100px;
}

nav {
    display: flex;
    gap: 20px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--gold);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
}

.dropdown-content a {
    color: var(--navy);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--gray-light);
    color: var(--navy);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.header-phone {
    text-align: right;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.header-phone span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.header-phone a {
    font-size: 1.35rem;
    font-family: 'Oswald', sans-serif;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.header-phone a:hover {
    color: var(--gold);
}

#google_translate_element select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget span {
    display: none;
}

/* Buttons */
.btn {
    padding: 15px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
}

.btn-navy {
    background-color: var(--navy);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-navy:hover {
    background-color: var(--white);
    color: var(--navy);
}

.btn-white {
    background-color: var(--white);
    color: var(--navy);
}

.btn-white:hover {
    background-color: var(--gray-light);
}

.btn-gray {
    background: var(--gray-light);
    color: var(--navy);
    border: 1px solid #ddd;
}

.btn:hover {
    opacity: 0.95;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

.form-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Cards */
.service-card,
.car-card,
.coupon-card,
.trust-card,
.contact-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.car-card {
    color: var(--text);
    overflow: hidden;
    position: relative;
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.car-content,
.car-info {
    padding: 15px;
}

.car-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: 5px;
    line-height: 1.4;
}

.car-specs {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.car-price {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.car-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

.car-actions .btn {
    padding: 8px;
    font-size: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 30px;
}

.section-title span {
    color: var(--gold);
}

/* Footer */
.site-footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
    font-family: 'Roboto', sans-serif;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.footer-col p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-contact-info i {
    color: var(--gold);
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.footer-bottom a {
    color: var(--gray);
    text-decoration: none;
    margin-left: 15px;
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* Chatbot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border: none;
    outline: none;
}

.chatbot-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
    color: var(--navy);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
    transform-origin: bottom right;
    transform: scale(0.9);
}

.chatbot-window.open {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.chatbot-header {
    background: var(--navy);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: none;
}

.chatbot-header i.fa-robot {
    color: var(--gold);
}

.chatbot-close {
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
}

.chatbot-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    background: var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-bot {
    background: var(--white);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-user {
    background: var(--navy);
    color: var(--white);
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-opt-btn {
    background: rgba(15, 32, 64, 0.1);
    border: 1px solid var(--navy);
    color: var(--navy);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}

.chat-opt-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Legal / Content Pages */
.page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-content h1 {
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-content h2 {
    color: var(--navy);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.page-content p,
.page-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    header .container-nav {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .header-phone {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom a {
        margin: 0 10px;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}