@import url('variables.css');

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

@font-face {
    font-family: 'MyHeroFont2';
    /* Make sure filename matches exactly */
    src: url('../assets/fonts/Mochibop-Demo.ttf') format('truetype'); 
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MyHeroFont3';
    /* Make sure filename matches exactly */
    src: url('../assets/fonts/MochibopBold-Demo.ttf') format('truetype'); 
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MyHeroFont';
    /* Make sure filename matches exactly */
    src: url('../assets/fonts/Qilka-Bold copy.otf') format('opentype'); 
    font-weight: bold;
    font-style: normal;
}

body {
    background-color: var(--bg-paper);
    color: var(--secondary-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; }
button { font-family: var(--font-body); }

/* --- NAV --- */
.nav-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; max-width: 1200px; margin: 0 auto;
}
.logo { font-size: 1.8rem; color: var(--secondary-dark); font-family: var(--font-head); }
.logo span { color: var(--primary-dark); }

/* --- BUTTONS --- */
.btn-cta {
    background: var(--primary); color: var(--secondary-dark);
    padding: 14px 32px; border-radius: var(--radius-pill);
    font-weight: 700; text-decoration: none; border: none; cursor: pointer;
    box-shadow: 0 4px 0 #d99f0b;
    transition: transform 0.1s, box-shadow 0.1s;
    font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px;
}
.btn-cta:active { transform: translateY(4px); box-shadow: none; }
.btn-cta:hover { filter: brightness(1.05); }
.btn-cta.secondary { background: white; box-shadow: 0 4px 0 #e2e8f0; }

/* --- HERO SECTION --- */
.hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    padding: 4rem 5%; max-width: 1200px; margin: 0 auto; align-items: center;
}
.hero-content h1 { font-family: 'MyHeroFont', var(--font-head), serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; color: #556977; margin-bottom: 2rem; }
.hero-badges { display: flex; gap: 15px; margin-bottom: 1.5rem; }
.trust-badge { 
    background: rgba(33, 158, 188, 0.1); color: var(--secondary); 
    padding: 6px 14px; border-radius: 20px; font-weight: bold; font-size: 0.9rem;
}

/* Hero Visual & Floating Review */
.hero-visual { position: relative; }
.hero-visual img.hero-main-img { 
    width: 100%; border-radius: var(--radius-lg); 
    border: solid 8px #ffb706;
    box-shadow: var(--shadow-pop); transform: rotate(2deg);
    transition: transform 0.3s;
}
.hero-visual:hover img.hero-main-img { transform: rotate(0deg); }

.floating-review {
    position: absolute; bottom: -20px; left: -30px;
    background: white; padding: 15px 20px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 15px;
    max-width: 280px; transform: rotate(-2deg); animation: float 6s ease-in-out infinite;
    z-index: 2; border: 2px solid #f1f5f9;
}
.floating-review img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.review-text strong { display: block; font-size: 0.9rem; color: var(--secondary-dark); }
.review-text p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }
.stars { color: #fbbf24; font-size: 0.8rem; margin-top: 2px; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }

/* --- 3-STEP MAGIC SECTION --- */
.magic-steps-section {
    padding: 6rem 5%;
    text-align: center;
    background: white;
}
.magic-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    max-width: 1100px;
    margin: 4rem auto 0;
    gap: 10px;
}
.step-card {
    display: flex; flex-direction: column; align-items: center; gap: 15px; position: relative; z-index: 2;
}
.step-img {
    width: 160px; height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-paper);
    box-shadow: var(--shadow-pop);
    transition: 0.3s;
}
.step-card:hover .step-img { transform: scale(1.05); border-color: var(--primary); }
.step-card h3 { color: var(--primary-dark); font-size: 1.2rem; margin: 0; }

/* Swirly Arrows */
.arrow-container {
    width: 120px; height: 60px;
    display: flex; justify-content: center; align-items: center;
}
.swirly-svg {
    width: 100%; height: 100%;
    stroke: var(--primary); 
    stroke-width: 3; 
    stroke-linecap: round;
    /* We removed dasharray & animation from here */
}

.swirly-svg .motion-line {
    fill: none;
    stroke-dasharray: 10 5; /* Crayon look */
    animation: dash 30s linear infinite;
}

/* New: Ensure arrowheads are solid (no stroke outline) */
.swirly-svg polygon, 
.swirly-svg path:not(.motion-line) {
    fill: var(--primary);
}

@keyframes dash { to { stroke-dashoffset: -1000; } }

/* --- FAQ SECTION --- */
.faq-section {
    padding: 6rem 5%;
    background: var(--bg-paper);
    max-width: 800px;
    margin: 0 auto;
}
.faq-header { text-align: center; margin-bottom: 3rem; }
.faq-item {
    background: white; margin-bottom: 15px; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card); overflow: hidden;
}
.faq-question {
    padding: 20px; font-weight: bold; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); font-weight: normal; }
.faq-answer {
    padding: 0 20px 20px; color: var(--text-muted); display: none; line-height: 1.6;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question::after { content: '-'; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .floating-review { display: none; } /* Hide on mobile to save space */
    .magic-grid { grid-template-columns: 1fr; gap: 20px; }
    .arrow-container { 
        transform: rotate(90deg); 
        margin: 20px auto; /* Auto margins center it horizontally */
        display: block;    /* Ensures margin auto works */
        width: 100px;      /* Specific width helps centering */
    }
    .hero-badges {
        justify-content: center;
    }
}


.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100; /* High enough to sit over landing page, lower than builder */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* Class to hide button when builder is open */
.whatsapp-float.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px);
}