/* BillieMe Website Styles
   Minimalistisch design met app gradient
   Mobile-first responsive design
   WCAG 2.1 Level AA compliant
*/

/* CSS Variables for consistent theming */
:root {
    --gradient-start: rgb(51, 102, 204); /* Blue */
    --gradient-end: rgb(102, 51, 153);   /* Purple */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text-primary);
    color: var(--gradient-start);
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius);
}

.skip-link:focus {
    top: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    padding-top: 120px;
}

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

.hero-title {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.hero-cta {
    margin-top: var(--spacing-lg);
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: var(--border-radius);
}

.app-store-badge img {
    display: block;
    height: auto;
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-section {
    padding: var(--spacing-xl) 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 375 / 812;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-title {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.footer-heading {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.footer-description {
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
}

.app-store-badge-small img {
    max-width: 120px;
    height: auto;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    z-index: 10000;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    color: var(--text-secondary);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.cookie-button {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.cookie-accept {
    background: var(--text-primary);
    color: var(--gradient-start);
}

.cookie-accept:hover,
.cookie-accept:focus {
    background: var(--text-secondary);
    transform: scale(1.05);
}

.cookie-reject {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.cookie-reject:hover,
.cookie-reject:focus {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-link {
    color: var(--text-secondary);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-link:hover,
.cookie-link:focus {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: var(--spacing-md);
        transition: left 0.3s ease;
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ------------------------------------------------------------------
   billieme.com per-language site (BillieMe/public/{nl,en}) — additions
   on top of the legacy website/styles.css (2026-10-23).
   ------------------------------------------------------------------ */

/* Muted text a little brighter for 4.5:1 on the lighter blue end. */
:root {
    --text-muted: rgba(255, 255, 255, 0.85);
}

/* Content pages: room for the fixed navbar. */
.page-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    max-width: 800px;
}

.page-section h2 {
    margin-top: var(--spacing-md);
}

/* Lists lost their indent in the global reset. */
main ul,
main ol {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

main li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
}

/* Links in running text: not by colour alone (WCAG 1.4.1). */
main p a:not(.store-button):not(.app-store-badge),
main li a:not(.store-button) {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Navbar with language switch. */
.nav-container {
    gap: var(--spacing-sm);
}

.nav-menu {
    margin-left: auto;
}

.lang-switch {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.lang-switch a {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
    text-align: center;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

.lang-switch a[aria-current="page"] {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-switch a:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-menu {
        margin-left: 0;
    }
    .nav-logo {
        margin-right: auto;
    }
}

/* Draft banner on legal pages: dark text on light amber (> 10:1). */
.legal-banner {
    background: #FFE8A3;
    color: #3B2A00;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.legal-banner p {
    color: #3B2A00;
    margin: 0;
}

/* Cards (FAQ, help, contact, return pages). */
.faq-item,
.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card .faq-item {
    background: rgba(255, 255, 255, 0.06);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-category {
    margin-top: var(--spacing-lg);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

/* Text button (EN App Store link, mail button, language chooser). */
.store-button {
    display: inline-block;
    min-height: 44px;
    padding: 0.65rem 1.5rem;
    background: var(--text-primary);
    color: rgb(51, 51, 153);
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
}

.store-button:hover {
    transform: scale(1.03);
}

.chooser-links {
    list-style: none;
    padding-left: 0;
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Tables (pricing, business terms). */
.table-wrap {
    overflow-x: auto;
    margin-bottom: var(--spacing-md);
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
}

main caption {
    text-align: left;
    font-weight: 600;
    padding-bottom: var(--spacing-xs);
}

main th,
main td {
    text-align: left;
    vertical-align: top;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

main th {
    color: var(--text-primary);
}

main td {
    color: var(--text-secondary);
}

footer .footer-heading {
    font-size: 1.125rem;
}
