/* CABOZ Website Integration Styles */

:root {
    --caboz-font-family: "Neue Haas Grotesk Display Pro", "futura pt", "Montserrat", sans-serif;
    --caboz-primary-green: #76ab00;
    --caboz-primary-green-rgba: rgba(118, 171, 0, 0.7);
    --caboz-red: #cc0000;
    --caboz-text-color: #4a4a4a;
    --caboz-title-color: #363636;
}

body {
    font-family: var(--caboz-font-family);
    color: var(--caboz-text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--caboz-font-family);
    color: var(--caboz-title-color);
    font-weight: 700;
}

/* Hero Section */
.caboz-hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.caboz-hero-unauth {
    height: calc(100vh - 60px);
    min-height: 600px;
}

.caboz-hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 75% center;
}

.caboz-hero-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.caboz-hero-main-text {
    font-size: clamp(3rem, 5vw, 6rem);
    color: white;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    max-width: 1200px;
}

.caboz-hero-sub-text {
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

/* Mobile Header (Visible only on mobile) */
.caboz-mobile-header {
    display: none;
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
    background-color: white;
}

.caboz-mobile-header h1 {
    font-size: 2rem;
    color: var(--caboz-title-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Stamp adjustments for new hero */
.caboz-stamp {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    position: absolute;
    top: 2rem;
    left: 2rem;
    background-color: var(--caboz-primary-green-rgba);
    transform: rotate(-15deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .caboz-hero-section {
        display: block; /* Show image hero on mobile */
        height: 60vh;
        min-height: 400px;
        margin-bottom: 2rem;
    }
    
    .caboz-hero-unauth {
        height: calc(100vh - 60px);
        min-height: 500px;
    }
    
    .caboz-mobile-header {
        display: none; /* Hide simple header since we show hero */
    }

    .caboz-hero-main-text {
        font-size: 2rem; /* Smaller font on mobile */
        padding: 0 1rem;
    }

    .caboz-hero-sub-text {
        font-size: 0.9rem;
    }
    
    /* Mobile Stamp - Overlay Bottom Right */
    .caboz-stamp {
        display: flex;
        width: 125px;
        height: 125px;
        top: auto;
        left: auto;
        bottom: 1.5rem;
        right: 1.5rem;
        background-color: var(--caboz-primary-green); /* Solid color for better visibility */
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        transform: rotate(-10deg);
    }
    
    .caboz-stamp-text {
        font-size: 0.5rem;
        line-height: 0.9;
    }

    /* Smaller cards for mobile */
    .caboz-card {
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .caboz-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .caboz-card-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .caboz-card-content {
        font-size: 0.9rem;
        padding-left: 1rem;
        line-height: 1.4;
    }
    
    .caboz-image-wrapper {
        padding-top: 60%; /* Slightly shorter images */
        margin-bottom: 0.75rem;
    }
    
    .caboz-card-grid {
        gap: 1.5rem;
    }
    
    .caboz-dashboard-card {
        padding: 1.5rem;
    }
}

/* Desktop Cards Bigger */
@media (min-width: 1024px) {
    .caboz-card-grid {
        /* 2 columns for main projects to make them bigger */
        grid-template-columns: repeat(2, 1fr); 
        gap: 4rem;
    }
    
    .caboz-card-title {
        font-size: 1.75rem;
    }
    
    .caboz-card-subtitle {
        font-size: 1.4rem;
    }
    
    .caboz-card-content {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .caboz-image-wrapper {
        padding-top: 65%;
    }
}

.caboz-stamp-outline {
    height: 110%;
    width: 110%;
    border: 2px solid var(--caboz-primary-green-rgba);
    border-radius: 50%;
    position: absolute;
}

.caboz-stamp-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Mobile Stamp Section (Removed) */
.caboz-mobile-stamp-section {
    display: none;
}

/* Typography Overrides for Home */
.caboz-home-title {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 700;
    color: #212529;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.caboz-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #adb5bd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Button Styles */
.caboz-button-primary {
    background-color: var(--caboz-primary-green);
    color: white;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.caboz-button-primary:hover {
    background-color: #608a00; /* Darker shade */
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(118, 171, 0, 0.3);
}

/* CABOZ Card Design */
.caboz-card {
    margin-bottom: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.caboz-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-top: 70%; /* Aspect ratio */
    margin-bottom: 1rem;
    background-color: #f5f5f5;
}

.caboz-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.caboz-card:hover .caboz-image-wrapper img {
    transform: scale(1.05);
}

.caboz-caption {
    padding-top: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.caboz-card-title {
    color: var(--caboz-red);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.caboz-card-subtitle {
    color: #999999;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.caboz-card-content {
    padding-left: 1.5rem;
    border-left: 1px solid #dbdbdb;
    font-size: 1rem;
    color: var(--caboz-text-color);
    line-height: 1.5;
}

.caboz-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Grid Layout for Cards */
.caboz-card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .caboz-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Box style for section headers */
.caboz-box {
    background-color: white;
    border-radius: 6px;
    color: #4a4a4a;
    display: block;
    padding: 1.25rem;
}

.caboz-header-title {
    color: #363636;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.125;
    margin-bottom: 1.5rem;
}

.caboz-header-subtitle {
    color: #999999;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

/* KPI Card Hover Effect */
.caboz-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
    border-color: var(--caboz-primary-green) !important;
}
