@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* Palette inspired by Respo (Dark, White, Green) */
    --primary-dark: #0f172a;
    /* Deep dark blue/black */
    --primary-green: #00876c;
    /* Elegant deep green */
    --accent-green: #e6f4f1;
    /* Light green background */
    --white: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;

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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 135, 108, 0.2);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    width: 100%;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Context for absolute centering */
}

/* CSS Logo */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-green);
    position: relative;
    padding-right: 15px;
    z-index: 2;
    /* Content above */
}

/* Removed: decorative dot after logo */
/*
.logo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
}
*/

/* Navigation */
.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    transition: all 0.3s ease;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Breadcrumbs */
.breadcrumbs-bar {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
    font-size: 0.8rem;
    position: sticky;
    top: var(--header-height);
    z-index: 999;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 400;
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.breadcrumbs a:hover {
    color: var(--primary-green);
}

.bc-home {
    padding: 2px;
    border-radius: 4px;
}

.bc-home:hover {
    background: var(--accent-green);
}

.bc-sep {
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 300;
}

.bc-current {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Mobile Header Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide nav links on mobile for now (MVP) */
        /* future: hamburger menu */
    }

    .header-inner {
        justify-content: space-between;
    }

    .logo {
        font-size: 22px;
        white-space: nowrap;
    }
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    /* Content above */
}

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

.bell-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.bell-icon:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    overflow: hidden;
    min-height: calc(100vh - var(--header-height));
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: var(--accent-green);
    border-radius: 50% 0 0 50%;
    z-index: -1;
    opacity: 0.6;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-badge {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 24px;
}

.hero-content {
    max-width: 550px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hero-image {
    width: 45%;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background: #e2e8f0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 135, 108, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* User Dropdown */
.user-menu-container {
    position: relative;
    z-index: 1001;
    /* Above almost everything */
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50px;
    transition: background 0.2s;
}

.user-menu-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.user-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-header strong {
    display: block;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.dropdown-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
    text-decoration: none;
}

.dropdown-item:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
}

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

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 32px;
    }

    .hero-image {
        width: 100%;
        justify-content: center;
    }

    .hero::before {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        right: 0;
        border-radius: 50% 50% 0 0;
    }
}

/* Global Modals & Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 135, 108, 0.1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}