/* 
 * Rahatt.co - Premium Waitlist CSS
 * Theme: Dark Mode, Glassmorphism, Modern
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* "Latte" Theme Colors */
    --bg-main: #fcfbf9;
    /* Cream Paper */
    --bg-card: #ffffff;
    --bg-card-hover: #faf9f6;
    --border-color: #e5e0d8;
    /* Soft Taupe */

    /* Gradients: Warm Natural Tones */
    --primary-gradient: linear-gradient(135deg, #a67c70 0%, #8a6a4b 100%);
    /* Coffee/Bronze */

    /* Text */
    --text-main: #3d342b;
    /* Dark Coffee */
    --text-muted: #786b61;
    /* Warm Grey */

    --accent-glow: rgba(166, 124, 82, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: url('bg-wallpaper.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Typography */
h1,
h2,
h3,
h4,
.brand-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #d1cdc7;
}

.btn-primary {
    background: var(--text-main);
    /* High contrast dark button */
    color: #fff;
    box-shadow: 0 4px 12px rgba(61, 52, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 52, 43, 0.25);
    background: #2c251f;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(245, 242, 235, 0.9);
    /* Slightly translucent */
    border-bottom: 1px solid var(--border-color);
}

header .container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: center;
    height: 100%;
    /* Ensure full height for vertical centering */
}

.nav-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Strict vertical centering */
    gap: 24px;
    height: 100%;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Strict vertical centering */
    gap: 16px;
    height: 100%;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

.brand-logo {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
    text-align: center;
    display: flex;
    /* Flex alignment for logo text */
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 140px;
    /* Increased separation from fixed header */
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 460px;
    margin: 0 auto 60px;
    position: relative;
}

.input-group {
    flex: 1;
    position: relative;
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.input-field:focus {
    outline: none;
    border-color: #a67c52;
    box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.1);
}

.success-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding-top: 12px;
    color: #059669;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    pointer-events: none;
}

.success-message.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Offerings Grid */
.offerings-grid {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    /* Ensure equal height */
}

.offering-card {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    /* Styles inherited from feature-card but ensuring alignment */
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 100px;
    /* Increased separation */
    padding-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    /* Paper Shadow */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    height: 100%;
    /* Fill container */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #d1cdc7;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f5f0eb;
    /* Light latte bg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #8a6a4b;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
/* Section Utilities */
.section {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, transparent 0%, rgba(229, 224, 216, 0.3) 50%, transparent 100%);
    text-align: center;
    padding: 40px 0;
    /* 50% reduced padding (was 80px via .section) */
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* FAQ Section */
.faq-section {
    max-width: 700px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 48px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: #d1cdc7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #8a6a4b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.answer-content {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer (Expanded) */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
    background: #e5e0d8;
    /* Distinctly darker latte/taupe */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    font-weight: 600;
}

.brand-col .brand-logo {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--text-main);
}

.brand-col p {
    color: var(--text-muted);
    max-width: 300px;
}

.links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.links-col a:hover {
    color: #8a6a4b;
    padding-left: 4px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}