/* ========================================
   EXACT WIX TEMPLATE REPLICATION
   Sharp, balanced design with proper color harmony
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile touch optimization */
html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: 100%;
}

/* ========================================
   WIX TEMPLATE COLOR PALETTE
   ======================================== */
:root {
    /* Backgrounds - harmonized with blue sticky image */
    --color-bg-body: rgb(10, 15, 25); /* Deep blue-black to match sticky background */
    --color-bg-primary: rgb(15, 20, 30); /* Slightly lighter for depth */
    --color-bg-box: rgba(20, 30, 45, 0.85); /* Semi-transparent dark blue-gray boxes */
    --color-bg-box-alt: rgba(25, 35, 50, 0.9); /* Alternative box color */

    /* Text colors */
    --color-text-primary: rgb(255, 255, 255);
    --color-text-secondary: rgb(180, 190, 200);

    /* Red accent theme - vibrant for contrast */
    --color-red-primary: rgb(220, 60, 60);
    --color-red-hover: rgb(240, 90, 90);
    --color-red-light: rgb(255, 120, 120);

    /* Blue accent theme - matches background */
    --color-blue-primary: rgb(100, 180, 255);
    --color-blue-light: rgb(150, 200, 255);
    --color-cyan: rgb(60, 200, 230);

    /* Design system */
    --site-width: 1250px;
    --content-width: 1110px;
    --section-spacing: 100px;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--color-bg-body);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Mobile optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   STICKY BACKGROUND (Wix method)
   ======================================== */
.sticky-background {
    position: fixed; /* FIXED for true parallax effect */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

.sticky-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Enhance the background image */
    filter: brightness(0.7) contrast(1.1) saturate(1.2);
}

/* ========================================
   ALL CONTENT SECTIONS - TRANSPARENT
   Content "slides over" the sticky background
   ======================================== */
.hero,
.section {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0); /* Fully transparent */
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.container {
    max-width: 100%; /* Full width like Wix */
    margin: 0 auto;
    padding: 0 20px; /* Minimal padding - about 1 inch on each side */
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    /* No negative margin needed with fixed background */
}

/* Header */
.header {
    padding: 30px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.05); /* Sharpen logo */
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Better readability */
}

.nav a:hover {
    color: var(--color-blue-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 16px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s;
}

.login:hover {
    color: var(--color-blue-light);
}

.btn-outline {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--color-text-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

/* Hero content */
.hero-content {
    margin-top: 180px;
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 80px;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn-red {
    display: inline-block;
    padding: 14px 40px;
    background: var(--color-red-primary);
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 60, 60, 0.4);
}

.btn-red:hover {
    background: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 60, 60, 0.6);
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.section {
    padding: var(--section-spacing) 0;
}

/* EXACT WIX TEMPLATE STRUCTURE */
/* Semi-transparent boxes that blend with background */
.picture-frame {
    width: 100%; /* Full width - takes entire container */
    max-width: none; /* No max-width restriction like Wix */
    margin: 0 auto;
    background: var(--color-bg-box); /* Semi-transparent blue-gray */
    border: 1px solid rgba(100, 180, 255, 0.15); /* Subtle blue border */
    border-radius: 8px; /* Slight rounding for modern look */
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); /* Glass effect */
}

/* Grid layouts */
.frame-grid {
    display: flex;
    width: 100%;
    min-height: 500px;
}

/* Horizontal split */
.frame-grid-horizontal {
    flex-direction: column;
}

/* Vertical split */
.frame-grid-vertical {
    flex-direction: row;
}

/* Left column with image */
.frame-left {
    position: relative;
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.frame-left.with-image {
    position: relative;
    min-height: 600px;
}

/* Images - SHARP and CLEAR */
.frame-left.with-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    /* Image enhancement for clarity and vibrancy */
    filter: brightness(1.15) contrast(1.2) saturate(1.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    z-index: 0;
    /* Ensure images load properly */
    display: block;
}

.frame-left.with-image h2 {
    position: relative;
    z-index: 1;
    padding: 54px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Right column - text content */
.frame-right {
    position: relative;
    flex: 1;
    padding: 60px;
    background: rgba(0, 0, 0, 0.1);
}

.frame-left h2,
.frame-right h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text-primary);
    margin-bottom: 30px;
}

.frame-left p,
.frame-right p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Feature cards */
.feature-card {
    margin-bottom: 40px;
}

.feature-card:last-child {
    margin-bottom: 0;
}

.icon {
    width: 50px;
    height: 50px;
    color: var(--color-cyan);
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(60, 200, 230, 0.4));
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary); /* White like all other headings */
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(100, 180, 255, 0.2);
    margin-top: 10px;
}

/* Stats section */
.stats-title {
    font-family: 'Poppins', sans-serif;
    font-size: 38px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin-bottom: 60px;
}

.stat {
    text-align: center;
    padding: 40px 30px;
    border-right: 1px solid rgba(100, 180, 255, 0.2);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-red-primary);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(220, 60, 60, 0.3);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.stat-line {
    width: 100px;
    height: 2px;
    background: rgba(100, 180, 255, 0.3);
    margin: 0 auto;
}

/* Stats image - FULL FILL bottom frame */
.stats-image {
    width: 100%; /* Full width of frame */
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(100, 180, 255, 0.2);
    display: block;
    overflow: hidden;
    height: 400px; /* Fixed height for full coverage */
}

.stats-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the entire space */
    object-position: center;
    display: block;
    opacity: 1;
    /* Darker rendering optimized for panoramic display */
    filter: brightness(0.75) contrast(1.15) saturate(1.2);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    /* Sharp rendering */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* CTA section */
.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
}

.cta-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-bg-primary);
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(100, 180, 255, 0.15);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.1);
}

.footer-col p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.footer-col h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-blue-light);
}

.newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 180, 255, 0.2);
    color: var(--color-text-primary);
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
}

.newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--color-blue-primary);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.btn-small {
    background: var(--color-red-primary);
    color: var(--color-text-primary);
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Open Sans', sans-serif;
}

.btn-small:hover {
    background: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 60, 60, 0.4);
}

.social {
    display: flex;
    gap: 12px;
}

.social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 180, 255, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social a:hover {
    background: var(--color-blue-primary);
    border-color: var(--color-blue-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(100, 180, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   RESPONSIVE - OPTIMIZED FOR MOBILE/IPHONE
   ======================================== */

/* Tablet and smaller desktop */
@media (max-width: 1200px) {
    .frame-grid-vertical {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-num {
        font-size: 36px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Mobile devices - iPhone optimized */
@media (max-width: 768px) {
    /* Typography adjustments for mobile */
    .hero-content h1 {
        font-size: 36px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 18px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .hero-content {
        margin-top: 100px;
        padding: 0 10px;
    }

    /* Header adjustments */
    .header {
        padding: 20px 0;
    }

    .logo img {
        height: 35px;
    }

    .nav {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 14px;
    }

    .login {
        font-size: 14px;
    }

    .login svg {
        width: 16px;
        height: 16px;
    }

    /* Section spacing */
    .section {
        padding: 60px 0;
    }

    /* Container padding for mobile */
    .container {
        padding: 0 15px;
    }

    /* Picture frames - stack vertically on mobile */
    .picture-frame {
        border-radius: 6px;
        margin-bottom: 20px;
    }

    .frame-grid-vertical,
    .frame-grid-horizontal {
        flex-direction: column;
        min-height: auto;
    }

    /* Frame content padding */
    .frame-left,
    .frame-right {
        padding: 30px 20px;
    }

    .frame-left.with-image {
        min-height: 450px;
        position: relative;
        overflow: hidden;
    }

    .frame-left.with-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        /* Ensure proper rendering on mobile */
        max-width: 100%;
        image-rendering: -webkit-optimize-contrast;
    }

    .frame-left.with-image h2 {
        padding: 30px 20px;
        font-size: 24px;
        position: relative;
        z-index: 1;
    }

    .frame-right h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .frame-right p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    /* Feature cards */
    .feature-card {
        margin-bottom: 30px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 14px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    /* Stats section */
    .stats-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .stat {
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(100, 180, 255, 0.2);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .stat-num {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-line {
        width: 80px;
    }

    /* Stats image - full width on mobile */
    .stats-image {
        width: 100%;
        margin: 0;
        padding: 0;
        height: 250px;
        display: block;
        overflow: hidden;
        border-top: 1px solid rgba(100, 180, 255, 0.2);
    }

    .stats-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        /* Darker rendering for mobile */
        filter: brightness(0.75) contrast(1.15) saturate(1.2);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
        /* Sharp rendering on mobile */
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* CTA section */
    .cta-content {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .cta-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Buttons */
    .btn-red {
        padding: 12px 32px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-logo {
        height: 35px;
    }

    .footer-col h4 {
        font-size: 14px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 13px;
    }

    .newsletter input[type="email"] {
        font-size: 14px;
        padding: 10px 14px;
    }

    .newsletter label {
        font-size: 11px;
    }

    .btn-small {
        padding: 10px 20px;
        font-size: 13px;
    }

    .social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

/* Small phones - iPhone SE and similar */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .container {
        padding: 0 12px;
    }

    .frame-left,
    .frame-right {
        padding: 25px 15px;
    }

    .frame-left.with-image {
        min-height: 350px;
        position: relative;
        overflow: hidden;
    }

    .frame-left.with-image img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .stats-image {
        width: 100%;
        margin: 0;
        padding: 0;
        height: 200px;
        display: block;
        overflow: hidden;
        border-top: 1px solid rgba(100, 180, 255, 0.2);
    }

    .stats-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        filter: brightness(0.75) contrast(1.15) saturate(1.2);
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .stat {
        padding: 25px 15px;
    }

    .stat-num {
        font-size: 28px;
    }
}
