/* ==========================================
   ZOOFASTER LANDING PAGE STYLES
   Mobile-first, responsive design
   ========================================== */

/* CSS Variables */
:root {
    --color-primary: #E30613;
    --color-primary-dark: #B30000;
    --color-krakvet: #9FD444;
    /* Krakvet Brand Green */
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #888888;
    --color-bg-light: #f9f9f9;
    --color-border: #e0e0e0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    --max-width: 1000px;
    --border-radius: 12px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Landing Page */
.landing-page {
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================
   HERO BANNER SECTION
   ========================================== */
.hero-banner {
    background: radial-gradient(circle at 50% 30%, #ff4d4d 0%, var(--color-primary) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    background-color: var(--color-primary);
    padding: var(--spacing-xl) var(--spacing-sm) 80px;
    /* added bottom padding for wave */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
    pointer-events: none;
}

.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brands-transition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    background-color: var(--color-white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-medium);
    /* Mobile defaults */
    width: auto;
    /* width: 90%; deleted mobile default width to let it fit content */
    min-width: 250px;
    flex-direction: column;
    /* Stack vertically on mobile */
}

.brand-old,
.brand-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Visually balance Zoofaster logo on mobile */
.brand-new .brand-logo {
    height: 42px;
}

.brand-text-fallback {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.transition-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: rotate(90deg);
    /* Point down on mobile */
    margin: var(--spacing-xs) 0;
}

.transition-arrow svg {
    width: 32px;
    height: 32px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================
   INFO SECTION
   ========================================== */
.info-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--color-white);
}

.section-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.info-text {
    max-width: 800px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.info-text p.highlight {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--color-bg-light);
}

.benefits-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(to right,
            var(--color-border) 0,
            var(--color-border) 8px,
            transparent 8px,
            transparent 16px);
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.benefit-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(227, 30, 36, 0.1);
}

.benefit-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.benefit-icon svg {
    width: 40px;
    height: 40px;
}

.benefit-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    text-align: center;
}

.benefit-description {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.6;
    text-align: left;
}

.benefits-note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    font-style: italic;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: var(--spacing-lg) var(--spacing-sm);
    background-color: var(--color-white);
}

.cta-title {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.cta-text {
    margin-bottom: var(--spacing-lg);
}

.cta-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.promo-box {
    background: linear-gradient(135deg, #fffafa 0%, #ffecec 100%);
    border: 2px solid #ffcbcd;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
}

.promo-intro {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.promo-code-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 32px;
    /* Increased to make room for success message */
}

.promo-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

.promo-code {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
    cursor: pointer;
    /* Clickable */
    transition: transform 0.1s ease, background-color 0.2s;
}

.promo-code img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    /* Turn icon white */
}

.promo-code:active {
    transform: scale(0.95);
}

.promo-code.copied {
    background-color: #0047ab;
    /* Success Blue */
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.4);
}

.promo-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-left: 16px;
}

.copy-success-msg {
    color: #0047ab;
    font-size: 0.8rem;
    font-weight: 500;

    /* Absolute position to avoid layout shift */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    margin-top: 4px;
    /* Move closer to button */

    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.copy-success-msg.visible {
    opacity: 1;
}

.promo-terms {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-top: var(--spacing-sm);
}

.utilize-code-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.utilize-code-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.utilize-code-link svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.utilize-code-link:hover svg {
    transform: translateX(4px);
}

.brand-text {
    margin-left: 4px;
    display: inline-flex;
    /* Keep pieces together */
}

.link-text {
    display: inline;
}

.brand-black {
    color: #333333;
}

.brand-green {
    color: var(--color-krakvet);
}

/* ==========================================
   TABLET STYLES (min-width: 600px)
   ========================================== */
@media (min-width: 600px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-banner {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .brands-transition {
        gap: var(--spacing-sm);
        /* Tighten spacing for vertical */
        padding: var(--spacing-md) var(--spacing-lg);
        max-width: none;
        width: fit-content;
        flex-wrap: nowrap;
        flex-direction: row;
        /* Horizontal on tablet+ */
    }

    .transition-arrow {
        transform: rotate(0deg);
        /* Reset rotation to point right */
    }

    .brand-logo {
        height: 48px;
    }

    /* Visually balance Zoofaster logo (needs to be larger) */
    .brand-new .brand-logo {
        height: 60px;
    }

    .transition-arrow svg {
        width: 32px;
        height: 32px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-code-wrapper {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================
   DESKTOP STYLES (min-width: 900px)
   ========================================== */
@media (min-width: 900px) {
    .hero-banner {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .brands-transition {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .brand-logo {
        height: 44px;
    }

    /* Further increase on desktop */
    .brand-new .brand-logo {
        height: 60px;
    }

    .info-section,
    .benefits-section,
    .cta-section {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }

    .benefit-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .benefit-title {
        font-size: 0.95rem;
    }

    .benefit-description {
        font-size: 0.8rem;
    }

    .promo-box {
        max-width: 700px;
        margin: 0 auto;
        padding: var(--spacing-lg);
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title,
.hero-subtitle,
.brands-transition {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.brands-transition {
    animation-delay: 0.1s;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    color: var(--color-text);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-item:hover {
    color: var(--color-primary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    /* Brand Color Icons */
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    color: var(--color-text-light);
    /* Icons start gray */
    transition: all 0.2s ease;
}

.social-link svg,
.social-link img {
    width: 20px;
    height: 20px;
    display: block;
    transition: filter 0.2s ease;
    /* Default: Turn the green icon into a neutral dark gray */
    filter: grayscale(100%) brightness(0.4);
}

.social-link:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.social-link:hover svg,
.social-link:hover img {
    /* Hover: Turn icon white to contrast with red background */
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (min-width: 600px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-contact {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
}

/* Print styles */
@media print {
    .hero-banner {
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .promo-box {
        border: 2px solid #000;
    }
}