/* ==========================================================================
   Costa Prime Cars - Exact Flyer Digital Reproduction Style
   ========================================================================== */

:root {
    --bg-black: #000000;
    --header-white: #ffffff;
    --accent-orange: #f28b0c;
    --accent-dark-orange: #df7e08;
    --text-white: #ffffff;
    --text-black: #000000;
    
    /* Layout Borders (Flyer dividers) */
    --divider-orange: 1px solid #f28b0c;
    --divider-thick: 2px solid #f28b0c;
    --divider-black: 1px solid #000000;
    
    --font-display: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Roboto', -apple-system, sans-serif;
}

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

body {
    background-color: #0c0d0e;
    color: var(--text-white);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Flyer Card Container */
.flyer-card {
    max-width: 1120px;
    width: 100%;
    background-color: var(--bg-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   HEADER (White Background)
   -------------------------------------------------------------------------- */
.header {
    background-color: var(--header-white);
    color: var(--text-black);
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cars-svg {
    height: 48px;
    width: auto;
    margin-bottom: 0.2rem;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1;
    color: var(--text-black);
    margin-bottom: 0.3rem;
}

.brand-title .highlight {
    color: var(--accent-orange);
}

.logo-divider {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
    margin: 0.2rem 0;
}

.divider-line {
    flex-grow: 1;
    height: 1.5px;
    background-color: var(--text-black);
}

.divider-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 3.5px;
    color: var(--text-black);
}

.logo-location {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.location-pin {
    width: 14px;
    height: 14px;
    color: var(--accent-orange);
}

/* Facebook Link */
.facebook-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-black);
    transition: transform 0.2s ease;
}

.facebook-box:hover {
    transform: translateY(-2px);
}

.fb-icon-circle {
    background-color: var(--text-black);
    color: var(--header-white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fb-icon-circle svg {
    width: 26px;
    height: 26px;
}

.fb-label {
    display: flex;
    flex-direction: column;
}

.fb-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
}

.fb-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
}

/* --------------------------------------------------------------------------
   MAIN SECTION: Split View
   -------------------------------------------------------------------------- */
.main-split {
    display: grid;
    grid-template-columns: 46% 54%;
    background-color: var(--bg-black);
}

/* Left Panel: Services */
.left-panel {
    padding: 2rem 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    background: linear-gradient(135deg, #0e0f12 0%, #1c0f00 100%);
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.service-icon {
    background-color: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(242, 139, 12, 0.2);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.service-main {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.service-sub {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--accent-orange);
}

/* Malaga Airport Delivery Capsule */
.delivery-capsule {
    background-color: var(--header-white);
    color: var(--text-black);
    border-radius: 50px;
    padding: 0.8rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    margin-top: 0.5rem;
}

.delivery-badge-black {
    background-color: var(--text-black);
    color: var(--header-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-badge-black svg {
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
}

.delivery-text-content {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.2px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.delivery-destination {
    color: var(--accent-orange);
    font-weight: 900;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    letter-spacing: 0.5px;
}

.destination-plane {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
}

/* Right Panel: Visual */
.right-panel {
    width: 100%;
    height: 100%;
}

.image-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.flyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   CONTACTS BAR
   -------------------------------------------------------------------------- */
.contacts-bar {
    border-top: var(--divider-orange);
    border-bottom: var(--divider-orange);
    background-color: var(--bg-black);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.contact-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0.5rem;
}

.contact-item:not(:last-child) {
    border-right: var(--divider-orange);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-white);
    transition: transform 0.2s ease;
}

.contact-link:hover {
    transform: scale(1.03);
}

.contact-icon {
    background-color: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

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

/* --------------------------------------------------------------------------
   OPTIONS GRID
   -------------------------------------------------------------------------- */
.options-bar {
    background-color: var(--bg-black);
    border-bottom: var(--divider-orange);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

.option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 0.5rem;
    text-align: center;
}

.option-item:not(:last-child) {
    border-right: var(--divider-orange);
}

.option-icon-circle {
    background-color: transparent;
    border: 1px solid var(--text-white);
    color: var(--accent-orange);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.option-item:hover .option-icon-circle {
    background-color: rgba(255, 255, 255, 0.05);
}

.option-icon-circle svg {
    width: 20px;
    height: 20px;
}

.option-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    color: var(--text-white);
}

/* --------------------------------------------------------------------------
   FOOTER (Legal & Call to action)
   -------------------------------------------------------------------------- */
.footer-legal {
    background-color: var(--bg-black);
    padding: 1.2rem 0;
}

.footer-grid-three {
    display: grid;
    grid-template-columns: 31% 25% 44%;
    width: 100%;
    align-items: center;
}

.footer-col {
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-col:not(:last-child) {
    border-right: var(--divider-orange);
}

.footer-icon-wrap {
    color: var(--accent-orange);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.footer-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.company-name {
    color: var(--accent-orange);
}

.company-address-line, .company-city-line {
    color: var(--accent-orange);
}

.callout-col {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding-left: 2rem;
}

.callout-phone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.phone-icon-orange {
    color: var(--accent-orange);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon-orange svg {
    width: 18px;
    height: 18px;
}

.callout-phone-link {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.callout-phone-link:hover {
    color: var(--accent-orange);
}

.qr-web-box {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--bg-black);
}

.qr-code-wrap {
    background-color: var(--header-white);
    padding: 4px;
    border-radius: 4px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-img {
    width: 100%;
    height: 100%;
    display: block;
}

.qr-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.qr-visit-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--accent-orange);
    letter-spacing: 0.5px;
}

.qr-visit-sub {
    font-size: 0.68rem;
    color: var(--text-white);
    font-weight: 500;
}

.qr-web-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--accent-orange);
    text-decoration: none;
    margin-top: 0.1rem;
}

.qr-web-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Adaptive layout)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .flyer-card {
        max-width: 100%;
    }
    
    .header {
        padding: 1.2rem 1.5rem;
    }
    
    .main-split {
        grid-template-columns: 100%;
    }
    
    .left-panel {
        padding: 2rem 1.5rem;
        order: 1;
    }
    
    .right-panel {
        order: 2;
        height: 320px;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-item:nth-child(2) {
        border-right: none;
    }
    
    .contact-item:nth-child(1), .contact-item:nth-child(2) {
        border-bottom: var(--divider-orange);
    }
    
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .option-item:nth-child(3) {
        border-right: none;
    }
    
    .option-item:nth-child(1), .option-item:nth-child(2), .option-item:nth-child(3) {
        border-bottom: var(--divider-orange);
    }
    
    .footer-grid-three {
        grid-template-columns: 100%;
    }
    
    .footer-col {
        border-right: none !important;
        border-bottom: var(--divider-orange);
        padding: 1rem 1.5rem;
    }
    
    .callout-col {
        border-bottom: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 640px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        padding: 1.5rem 1rem;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .divider-text {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .logo-location {
        font-size: 0.9rem;
    }
    
    .right-panel {
        height: 220px;
    }
    
    .contacts-grid {
        grid-template-columns: 100%;
    }
    
    .contact-item {
        border-right: none !important;
        border-bottom: var(--divider-orange);
        padding: 1rem 1rem;
        justify-content: flex-start;
    }
    
    .contact-item:last-child {
        border-bottom: none;
    }
    
    .options-grid {
        grid-template-columns: 100%;
    }
    
    .option-item {
        border-right: none !important;
        border-bottom: var(--divider-orange);
        padding: 1rem 1.5rem;
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }
    
    .option-item:last-child {
        border-bottom: none;
    }
    
    .option-label {
        font-size: 0.8rem;
    }
    
    .callout-col {
        align-items: center;
        text-align: center;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .qr-web-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .qr-text-wrap {
        align-items: center;
    }
}
