/* Castlewise Brand Theme - Custom CSS */

/* Based on Castlewise Brandbook */

/* =====================================================
    FONTS - Georgia for brand, Montserrat for content
    ===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Georgia:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
    /* Brand Colors from Brandbook */
    --cw-burgundy-primary: #c11f3f;
    --cw-gold-cream: #cabba8;
    --cw-black: #000;

    /* Burgundy Shades */
    --cw-burgundy-light: #d84968;
    --cw-burgundy-dark: #8b1530;
    --cw-burgundy-darker: #5a0e1f;

    /* Gold/Cream Shades */
    --cw-cream-lighter: #e8dfd5;
    --cw-cream-light: #d8cdbf;
    --cw-cream-medium: #cabba8;
    --cw-cream-dark: #a89989;
    --cw-cream-darker: #8b7c6e;

    /* Grey Shades */
    --cw-grey-lightest: #f5f5f5;
    --cw-grey-lighter: #ccc;
    --cw-grey-light: #999;
    --cw-grey-medium: #666;
    --cw-grey-dark: #333;
    --cw-grey-darkest: #1a1a1a;

    /* Typography */
    --font-brand: georgia, "Times New Roman", serif;
    --font-body:
        "Montserrat", -apple-system, blinkmacsystemfont, "Segoe UI", roboto,
        sans-serif;
}

/* =====================================================
    GLOBAL TYPOGRAPHY
    ===================================================== */
body {
    font-family: var(--font-body);
    color: var(--cw-grey-darkest);
    background-color: #fff;
}

/* Brand Typography - Use Georgia for headings and brand elements */
.cw-brand-text,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4 {
    font-family: var(--font-brand) !important;
    color: var(--cw-burgundy-primary);
    font-weight: 400;
}

/* Subtitle and body text - Use Montserrat */
.cw-subtitle,
.mud-typography-h5,
.mud-typography-h6,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-caption,
.mud-typography-button {
    font-family: var(--font-body) !important;
}

/* =====================================================
    BRAND SPECIFIC CLASSES
    ===================================================== */
.cw-brand-name {
    font-family: var(--font-brand);
    color: var(--cw-burgundy-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cw-subtitle-text {
    font-family: var(--font-body);
    color: var(--cw-grey-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    font-size: 0.875rem;
}

/* =====================================================
    MUDBLAZOR COMPONENT OVERRIDES
    ===================================================== */

/* AppBar Customization */
.mud-appbar {
    background-color: #fff !important;
    color: var(--cw-burgundy-primary) !important;
    border-bottom: 1px solid var(--cw-cream-light);
}

.mud-appbar .mud-icon-button {
    color: var(--cw-burgundy-primary) !important;
}

/* Drawer Customization */
.mud-drawer {
    background-color: #fff;
    border-right: 1px solid var(--cw-cream-light);
}

.mud-drawer .mud-navmenu {
    font-family: var(--font-body);
}

.mud-nav-item {
    color: var(--cw-grey-dark);
    font-family: var(--font-body);
}

.mud-nav-item:hover {
    background-color: var(--cw-cream-lighter);
}

.mud-nav-item.active {
    background-color: var(--cw-burgundy-primary);
    color: #fff;
}

/* Button Customization */
.mud-button-root.mud-button-filled-primary {
    background-color: var(--cw-burgundy-primary);
    color: #fff;
}

.mud-button-root.mud-button-filled-primary:hover {
    background-color: var(--cw-burgundy-dark);
}

.mud-button-root.mud-button-filled-secondary {
    background-color: var(--cw-cream-medium);
    color: var(--cw-grey-darkest);
}

.mud-button-root.mud-button-filled-secondary:hover {
    background-color: var(--cw-cream-dark);
}

.mud-button-root.mud-button-outlined-primary {
    border-color: var(--cw-burgundy-primary);
    color: var(--cw-burgundy-primary);
}

.mud-button-root.mud-button-outlined-primary:hover {
    background-color: rgb(193 31 63 / 8%);
}

/* Card Customization */
.mud-card {
    border: 1px solid var(--cw-cream-light);
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.mud-card:hover {
    box-shadow: 0 4px 16px rgb(193 31 63 / 12%);
    border-color: var(--cw-burgundy-primary);
    transition: all 0.3s ease;
}

/* =====================================================
    LANDING PAGE SPECIFIC STYLES
    ===================================================== */
.cw-hero-section {
    min-height: 600px;
    background: linear-gradient(
        135deg,
        var(--cw-burgundy-primary) 0%,
        var(--cw-burgundy-dark) 100%
    );
    color: #fff;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cw-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgb(202 187 168 / 10%) 100%
    );
    pointer-events: none;
}

.cw-hero-content {
    position: relative;
    z-index: 1;
}

.cw-hero-title {
    font-family: var(--font-brand);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cw-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cw-hero-button {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* Feature Cards */
.cw-feature-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.cw-feature-card:hover {
    transform: translateY(-8px);
}

.cw-feature-icon {
    font-size: 3rem;
    color: var(--cw-burgundy-primary);
    margin-bottom: 1rem;
}

.cw-feature-title {
    font-family: var(--font-brand);
    color: var(--cw-burgundy-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cw-feature-description {
    font-family: var(--font-body);
    color: var(--cw-grey-dark);
    line-height: 1.6;
}

/* Section Styles */
.cw-section {
    padding: 4rem 2rem;
}

.cw-section-title {
    font-family: var(--font-brand);
    color: var(--cw-burgundy-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.cw-section-light {
    background-color: #fff;
}

.cw-section-cream {
    background-color: var(--cw-cream-lighter);
}

/* CTA Section */
.cw-cta-section {
    background: linear-gradient(
        135deg,
        var(--cw-cream-medium) 0%,
        var(--cw-cream-dark) 100%
    );
    padding: 4rem 2rem;
    text-align: center;
}

.cw-cta-title {
    font-family: var(--font-brand);
    color: var(--cw-burgundy-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cw-cta-text {
    font-family: var(--font-body);
    color: var(--cw-grey-darkest);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
    UTILITY CLASSES
    ===================================================== */
.text-burgundy {
    color: var(--cw-burgundy-primary) !important;
}

.text-cream {
    color: var(--cw-cream-dark) !important;
}

.bg-burgundy {
    background-color: var(--cw-burgundy-primary) !important;
}

.bg-cream {
    background-color: var(--cw-cream-lighter) !important;
}

.border-burgundy {
    border-color: var(--cw-burgundy-primary) !important;
}

.border-cream {
    border-color: var(--cw-cream-light) !important;
}

/* =====================================================
    RESPONSIVE DESIGN
    ===================================================== */
@media (width <= 960px) {
    .cw-hero-title {
        font-size: 2.5rem;
    }

    .cw-hero-subtitle {
        font-size: 1.1rem;
    }

    .cw-section-title {
        font-size: 2rem;
    }

    .cw-cta-title {
        font-size: 2rem;
    }
}

@media (width <= 600px) {
    .cw-hero-title {
        font-size: 2rem;
    }

    .cw-hero-subtitle {
        font-size: 1rem;
    }

    .cw-section {
        padding: 2rem 1rem;
    }
}
