/* Local Fonts */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('./fonts/outfit-300.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/outfit-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./fonts/outfit-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('./fonts/outfit-800.ttf') format('truetype');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/playfair-700.ttf') format('truetype');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('./fonts/playfair-900.ttf') format('truetype');
}

:root {
    --pine-red: #EE1C25;
    --pine-red-dark: #c1151d;
    --white: #ffffff;
    --off-white: #fcfcfc;
    --black: #1a1a1a;
    --text-main: #333333;
    --text-muted: #666666;
    --grey-light: #f0f0f0;
}

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

body,
html {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    overflow: hidden;
}

.page-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Layout */
.app-layout {
    flex: 1;
    display: flex;
    width: 100%;
    overflow: hidden;
}

/* Info Panel (Left) */
.info-panel {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    border-right: 1px solid var(--grey-light);
}

.branding .logo {
    height: 80px;
    /* Larger logo */
    width: auto;
}

.message-box {
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content */
    text-align: center;
    /* Center text */
}

.badge {
    background: rgba(238, 28, 37, 0.1);
    color: var(--pine-red);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    border: 1px solid var(--pine-red);
    width: auto;
}

/* Opportunity Group Container */
.opportunity-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

/* Button Base Styles */
.opportunity-btn {
    background-color: #EE1C25 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    flex: 1 1 200px;
    border: 2px solid #EE1C25;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(238, 28, 37, 0.2);
    cursor: pointer;
    line-height: normal;
}

/* SVG Icon Styles */
.opportunity-btn svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: block;
}

/* Hover State */
.opportunity-btn:hover {
    background-color: #c1151d !important;
    border-color: #c1151d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(238, 28, 37, 0.3);
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--black);
    text-align: center;
}

.accent-red {
    color: var(--pine-red);
}

.description {
    font-size: 1rem;
    max-width: 500px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.urgent-call {
    background: var(--off-white);
    border-left: 5px solid var(--pine-red);
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    text-align: left;
    /* Reset text align for this box */
    width: 100%;
}

.urgent-call a {
    color: var(--pine-red);
    text-decoration: none;
    font-weight: 800;
}

.hero-frame {
    flex: 2;
    /* Dominant space */
    width: 100%;
    min-height: 0;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CRITICAL */
    object-position: center bottom;
    /* Align to bottom to avoid gap */
}

/* Action Panel (Right) */
.action-panel {
    flex: 1;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.list-wrapper {
    height: 100%;
    display: flex;
    display: flex;
    flex-direction: column;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.list-header-text {
    flex: 1;
    min-width: 200px;
}

.list-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.list-header p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
}

.scroll-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

.scroll-list::-webkit-scrollbar {
    width: 5px;
}

.scroll-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.meta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.phone-btn {
    background: var(--pine-red);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, background 0.2s;
    white-space: nowrap;
}

.phone-btn:hover {
    background: var(--pine-red-dark);
    transform: translateY(-2px);
}

.primary-btn {
    background: var(--pine-red);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    /* More rounded for distinction */
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 15px rgba(238, 28, 37, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

/* Shine Effect */
.primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -60%;
    }

    20% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

.primary-btn:hover {
    background: var(--pine-red-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(238, 28, 37, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.primary-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Footer */
.app-footer {
    padding: 1rem 4rem;
    background: var(--white);
    border-top: 1px solid var(--grey-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE - Priority Fix */
@media (max-width: 1024px) {

    body,
    html {
        overflow: auto;
    }

    .page-wrapper {
        height: auto;
    }

    .app-layout {
        flex-direction: column;
        overflow: visible;
    }

    .info-panel {
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--grey-light);
    }

    .hero-frame {
        display: none;
    }

    /* Hide image on tablet/mobile if needed to save space */
    .action-panel {
        padding: 3rem 2rem;
    }

    .scroll-list {
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .info-panel {
        padding: 2rem 1.5rem;
    }

    .title {
        font-size: 2.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .phone-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
    }

    .branding .logo {
        height: 45px;
    }

    .badge {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
    }
}