/* ============================================
   DanzPass — WebMee Template Color Palette
   ============================================ */

:root {
    /* Primary — purple from DanzPass artwork */
    --primary-color:  #802895;
    --primary-hover:  #6a1f7c;
    --primary-light:  #e8d4f0;

    /* Buttons — DanzPass pink */
    --btn-color:      #E7058C;
    --btn-hover:      #c30475;

    /* Badges — DanzPass yellow */
    --badge-color:    #FEDC10;
    --badge-border:   #e3c40a;

    /* Soft accents (lighter shades of artwork pink / purple / orange) */
    --accent-blush:   #f8e6ef;
    --accent-lavender:#efe6f5;
    --accent-peach:   #fdeee4;

    /* Text */
    --text-dark:      #2d2d2d;
    --text-muted:     #717171;
    --text-white:     #ffffff;

    /* Backgrounds */
    --bg-surface:     #efe6f5;
    --bg-light:       #faf6fc;
    --bg-white:       #ffffff;
    --bg-footer:      #efe6f5;
    --bg-hero-overlay: rgba(128, 40, 149, 0.88);

    /* UI */
    --border-light:   #e0e0e0;
    --shadow:         0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover:   0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-card:    0 2px 8px rgba(0, 0, 0, 0.07);
    --shadow-card-hover: 0 8px 24px rgba(128, 40, 149, 0.16);
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 76px; /* anchors don't hide under sticky header */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Bree Serif', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Scroll-reveal animations (subtle fade-up)
   .reveal is added by script.js, so content is
   always visible when JavaScript is disabled.
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Inline text links (e.g. Worldpay) */
.text-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--btn-color);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Header
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.header-brand:hover .header-logo {
    transform: scale(1.03);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--badge-color);
    border: 1px solid var(--badge-border);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dark);
    animation: headerPulse 1.8s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background-color: var(--btn-color);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
}

.header-cta:hover {
    background-color: var(--btn-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    display: grid;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
}

.hero-media {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% bottom; /* keep band + dancers anchored, crop spare white */
}

.hero .container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(40px, 6vw, 72px) 0;
}

.hero-content {
    max-width: 640px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
    text-align: left;
}

/* DANZPASS brand logo */
.hero-brand {
    margin: 0;
    line-height: 0;
}

.hero-logo-img {
    display: block;
    width: min(280px, 60vw);
    height: auto;
    object-fit: contain;
}

.hero-brand + .hero-subheading {
    margin-top: -16px;
}

.hero-subheading {
    font-size: 17px;
    color: #6E2B92;
    font-weight: 400;
    max-width: 580px;
    line-height: 1.75;
}

.cta-button {
    display: inline-block;
    background-color: var(--btn-color);
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   What DanzPass Offers
   ============================================ */

.offers {
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--bg-light);
}

.section-heading {
    font-family: 'Bree Serif', serif;
    font-size: clamp(28px, 4.5vw, 40px);
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.section-sub {
    text-align: center;
    font-size: 16px;
    color: #6E2B92;
    margin: 12px auto 0;
    max-width: 560px;
    line-height: 1.7;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.offer-card {
    background: var(--bg-white);
    border: 1px solid rgba(128, 40, 149, 0.08);
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.offer-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--btn-color), var(--primary-color));
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.offer-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 1.35;
}

.offer-text {
    font-size: 14.5px;
    color: #6E2B92;
    line-height: 1.65;
    margin: 0;
}

/* ============================================
   Coming Soon Section
   ============================================ */

.coming-soon {
    padding: 88px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 40, 149, 0.14) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

.coming-soon::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 58, 140, 0.12) 0%, transparent 70%);
    bottom: -100px;
    left: -60px;
    pointer-events: none;
}

.coming-soon-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--badge-color);
    border: 1px solid var(--badge-border);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.coming-soon-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dark);
    animation: comingPulse 1.8s ease-in-out infinite;
}

@keyframes comingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.coming-soon-heading {
    font-family: 'Bree Serif', serif;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    margin: 4px 0;
}

.coming-soon-lead {
    font-size: 17px;
    color: #6E2B92;
    line-height: 1.75;
    max-width: 520px;
}

.coming-soon-info {
    font-size: 16px;
    color: #6E2B92;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 4px;
}

.coming-soon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 15px 36px;
    background-color: var(--btn-color);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.coming-soon-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.coming-soon-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 36px;
    margin-top: 28px;
    opacity: 0.55;
}

.coming-soon-bars span {
    display: block;
    width: 4px;
    border-radius: 4px;
    background: var(--primary-color);
    animation: barBounce 1.2s ease-in-out infinite;
}

.coming-soon-bars span:nth-child(1)  { height: 12px; animation-delay: 0s; }
.coming-soon-bars span:nth-child(2)  { height: 22px; animation-delay: 0.1s; }
.coming-soon-bars span:nth-child(3)  { height: 30px; animation-delay: 0.2s; }
.coming-soon-bars span:nth-child(4)  { height: 18px; animation-delay: 0.15s; }
.coming-soon-bars span:nth-child(5)  { height: 28px; animation-delay: 0.05s; }
.coming-soon-bars span:nth-child(6)  { height: 14px; animation-delay: 0.25s; }
.coming-soon-bars span:nth-child(7)  { height: 24px; animation-delay: 0.12s; }
.coming-soon-bars span:nth-child(8)  { height: 16px; animation-delay: 0.18s; }

@keyframes barBounce {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    background-color: var(--bg-footer);
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-form-wrapper {
    position: relative;
    max-width: 480px;
}

.contact-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
}

.contact-illustration-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
}

.contact-heading {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: left;
    line-height: 1.2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    z-index: 1;
    opacity: 0.5;
}

.input-icon path {
    fill: var(--text-muted);
}

.input-wrapper input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.input-wrapper input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    padding-left: 18px;
    resize: vertical;
    min-height: 130px;
}

.input-wrapper input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 40, 149, 0.15);
}

.form-group.has-error .input-wrapper input,
.form-group.has-error .contact-form textarea,
.form-group.has-error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-error {
    display: none;
    margin: 6px 0 0;
    font-size: 13px;
    color: #dc2626;
    line-height: 1.4;
}

.form-group.has-error .form-error {
    display: block;
}

.submit-button {
    background-color: var(--btn-color);
    color: var(--text-white);
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow);
}

.submit-button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--bg-footer);
    padding: 40px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    opacity: 0.7;
}

.contact-phone,
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-phone:hover,
.contact-email:hover {
    color: #6E2B92;
}

.contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--btn-color), var(--primary-color));
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-brand-tag {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-align: center;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
    opacity: 0.2;
    margin: 8px 0 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.copyright {
    font-size: 13px;
    color: var(--text-dark);
    margin: 0;
}

.copyright a {
    color: #6E2B92;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.copyright a:hover {
    opacity: 0.85;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-dark);
    color: var(--text-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 17px;
    height: 17px;
}

.scroll-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--btn-color);
    border: none;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.scroll-to-top:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    .header { padding: 8px 0; }

    .header-logo { height: 30px; }

    .header-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Hero: logo → description → CTA first, image below as a card */
    .hero {
        display: flex;
        flex-direction: column;
        background: var(--bg-white);
    }

    .hero .container {
        order: 1;
        grid-area: auto;
        padding: 32px 20px 28px; /* keep side breathing room for text */
    }

    .hero-media {
        order: 2;
        width: min(100% - 40px, 440px); /* centered, never edge-to-edge */
        margin: 0 auto 36px;
        height: clamp(220px, 58vw, 320px);
        border-radius: 16px;
        overflow: hidden;
        background: #f7f0fb;
        box-shadow: var(--shadow-card);
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 75% center; /* center on the dancers artwork */
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-text {
        gap: 20px;
        align-items: stretch;
        text-align: left;
    }

    .hero-brand {
        align-self: center; /* center the logo */
    }

    .hero-logo-img {
        width: min(360px, 88vw); /* bigger on mobile */
    }

    .hero-brand + .hero-subheading {
        margin-top: -4px;
    }

    .hero-subheading {
        font-size: 15px;
        line-height: 1.7;
        color: #6E2B92;
        max-width: 100%;
        text-align: center; /* center the description */
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 15px 24px;
    }

    .offers {
        padding: 48px 0;
    }

    .offers-grid {
        gap: 16px;
        margin-top: 32px;
    }

    .offer-card {
        padding: 22px 20px;
    }

    .coming-soon {
        padding: 48px 0;
    }

    .coming-soon-inner {
        gap: 16px;
    }

    .coming-soon-heading {
        font-size: 26px;
    }

    .coming-soon-lead {
        font-size: 15px;
    }

    .coming-soon-info {
        font-size: 15px;
    }

    .coming-soon-btn {
        width: 100%;
        justify-content: center;
    }

    .contact {
        padding: 44px 0 8px; /* footer continues on same bg — keep rhythm even */
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-heading {
        font-size: 26px;
        margin-bottom: 24px;
        text-align: center;
    }

    .contact-form {
        gap: 16px;
    }

    .contact-illustration {
        min-height: auto;
        order: 2;
    }

    .contact-illustration-img {
        max-width: 300px;
        margin: 0 auto;
    }

    .contact-form-wrapper {
        max-width: 100%;
    }

    .submit-button {
        width: 100%;
    }

    .footer {
        padding: 0 0 24px; /* gap above CONTACT comes from contact section only */
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

    /* Group the two contact lines: left-aligned with each other
       so the icons stack in a clean column, group centered as one block */
    .footer-contact {
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto;
        gap: 10px;
    }

    .footer-contact .contact-label {
        align-self: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        text-align: center;
    }

    .footer-bottom-right {
        justify-content: center;
        width: 100%;
    }

    .copyright {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
    }

    .contact-phone,
    .contact-email { font-size: 15px; }
}

@media (max-width: 540px) {
    .container { padding: 0 16px; }

    .header-badge { display: none; }

    .header-logo { height: 26px; }

    .header-cta {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-media {
        width: calc(100% - 32px);
        margin: 0 auto 30px;
        height: clamp(200px, 62vw, 280px);
        border-radius: 14px;
    }

    .hero-image {
        object-position: 75% center;
    }

    .hero .container {
        padding: 28px 16px 24px; /* keep side breathing room for text */
    }

    .hero-logo-img {
        width: min(320px, 86vw);
    }

    .hero-subheading {
        font-size: 14px;
        line-height: 1.65;
    }

    .contact-form textarea {
        min-height: 110px;
    }

    .coming-soon {
        padding: 40px 0;
    }

    .coming-soon-heading {
        font-size: 24px;
    }

    .coming-soon-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .contact {
        padding: 40px 0 32px;
    }

    .contact-illustration-img {
        max-width: 260px;
    }
}
