@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
    --background: #F3F2EB;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --popover: #ffffff;
    --popover-foreground: #1a1a1a;
    --primary: #7a2048;
    --primary-foreground: #ffffff;
    --secondary: #BCD2EC;
    --secondary-foreground: #1a1a1a;
    --muted: #e8e7e0;
    --muted-foreground: #6b6b6b;
    --accent: #7a2048;
    --accent-foreground: #ffffff;
    --border: #d4d3cc;
    --input: #ffffff;
    --ring: #7a2048;
    --radius: 0.5rem;
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Utility Classes (Tailwind-compatible)
   ======================================== */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-input { background-color: var(--input); }
.text-foreground { color: var(--foreground); }
.text-card-foreground { color: var(--card-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.border-border { border-color: var(--border); }

/* ========================================
   Component Classes
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.625rem 1.5rem;
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
    padding: 0.625rem 1.5rem;
}

.btn-ghost:hover {
    background-color: var(--muted);
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem;
}

.card:hover {
    border-color: var(--primary);
    opacity: 0.8;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.input, .textarea, .select {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--input);
    color: var(--foreground);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.input:focus, .textarea:focus, .select:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.textarea {
    resize: none;
}

.gradient-text {
    background: linear-gradient(to right, #7a2048, #9a3068);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-card {
    border-radius: 1.5rem;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.promo-card-left,
.promo-card-right {
    background: linear-gradient(135deg, #7a2048, #9a3068);
}

.promo-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   Responsive visibility helpers
   ======================================== */
@media (min-width: 1024px) {
    .lg\:hidden { display: none !important; }
    .lg\:flex { display: flex; }
    .lg\:block { display: block; }
}

@media (min-width: 1280px) {
    .xl\:block { display: block; }
    .xl\:flex { display: flex; }
    .xl\:min-h-screen { min-height: 100vh; }
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xl\:h-\[600px\] { height: 600px; }
}

/* ========================================
   Header
   ======================================== */
.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6b2574;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-link {
    padding: 0.5rem 1rem;
    color: #6b2574;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.header-link:hover {
    background: #f8f5f9;
}

.header-link-cta {
    background: #6b2574;
    color: white;
}

.header-link-cta:hover {
    background: #7d2d87;
}

/* ========================================
   Buttons (legacy - used by MainLayout pages)
   ======================================== */
.btn-secondary {
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: #666;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8f5f9;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    color: #6b2574;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #666;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-section h4 {
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #6b2574;
}

.footer-bottom {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

/* ========================================
   Common Components
   ======================================== */
.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f8f5f9;
    color: #6b2574;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #666;
}

/* ========================================
   Contact Form (Global for Blazor components)
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a0a0a;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6b2574;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-submit {
    padding: 1rem 2rem;
    background: #6b2574;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0.5rem;
}

.contact-submit:hover:not(:disabled) {
    background: #7d2d87;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 37, 116, 0.3);
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e6b5a;
    margin-bottom: 0.75rem;
}

.form-success p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #b91c1c;
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

/* ========================================
   Responsive - Common
   ======================================== */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .header-nav {
        gap: 0.25rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .header-link-cta {
        padding: 0.375rem 0.625rem;
    }

    .header .btn-secondary,
    .header .btn-primary {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 0.125rem;
    }

    .header-link {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }

    .header-link-cta {
        padding: 0.25rem 0.5rem;
    }

    .header-actions {
        gap: 0.375rem;
    }

    .header .btn-secondary,
    .header .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .form-group label {
        font-size: 0.8125rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .contact-submit {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}
