/*
 * Ricardo Valverde Photography LLC - Layout Styles
 * Spacing, grid, containers, responsive breakpoints
 *
 * ===========================================================================
 * RESPONSIVE DESIGN STRATEGY
 * ===========================================================================
 *
 * MOBILE-FIRST APPROACH:
 * WHY: 40% of photography clients browse portfolios on mobile
 * - Base styles: Mobile (320px+)
 * - Media queries: Add complexity for larger screens
 * - Progressive enhancement vs graceful degradation
 *
 * BREAKPOINT PHILOSOPHY:
 * Based on content needs, not device sizes
 * - 640px: Small phones → large phones
 * - 768px: Tablets portrait, large phones landscape
 * - 968px: Tablets landscape, small laptops
 * - 1024px: Standard laptops
 * - 1200px: Large desktops
 *
 * WHY THESE SPECIFIC BREAKPOINTS:
 *
 * 768px: MOST COMMON - Mobile to tablet transition
 * - iPhone: 375px-428px (mobile styles)
 * - iPad: 768px-1024px (tablet styles)
 * - Navigation: Hamburger menu → full nav
 * - Grid: 1 column → 2 columns
 * - Covers 80% of responsive changes
 *
 * 968px: TABLET LANDSCAPE - Complex layouts
 * - Use case: 3-column grids, sidebars
 * - iPad Pro landscape: 1024px
 * - Small laptops: 1280px
 *
 * 640px: SMALL PHONE - Tight spacing
 * - iPhone SE: 375px
 * - Reduce padding, stack more aggressively
 * - Only used for extreme space constraints
 *
 * 1024px: DESKTOP - Full complexity
 * - Standard laptop: 1366px, 1440px
 * - Multi-column layouts, sidebars
 * - 4-column grids
 *
 * MAX-WIDTH STRATEGY:
 * All media queries use max-width (mobile-first)
 * @media (max-width: 768px) = "up to 768px" (mobile + small tablet)
 * Base styles apply to > 768px (desktop)
 *
 * TESTING TARGETS:
 * - iPhone 14: 390x844 (mobile)
 * - iPad: 768x1024 (tablet portrait)
 * - MacBook Air: 1440x900 (laptop)
 * - 1920x1080: Desktop
 *
 * ===========================================================================
 * CONTAINER SYSTEM
 * ===========================================================================
 *
 * WHY THREE CONTAINER TYPES:
 *
 * .container (1200px max):
 * - Use case: Marketing pages, content
 * - Optimal readability for text
 * - Standard centered layout
 *
 * .container-wide (1400px max):
 * - Use case: Dashboards, data tables
 * - More horizontal space for complex layouts
 * - Still leaves margin on large monitors
 *
 * .container-fluid (no max):
 * - Use case: Full-width backgrounds, heroes
 * - Edge-to-edge content
 * - Uses viewport width minus padding
 *
 * PADDING STRATEGY:
 * Desktop: 32px (--spacing-xl) horizontal padding
 * Mobile: 16px (--spacing-md) - conserve space
 *
 * ===========================================================================
 * GRID SYSTEM
 * ===========================================================================
 *
 * CSS GRID vs FLEXBOX DECISION:
 * - Grid: Used for 2D layouts (rows and columns)
 * - Flexbox: Used for 1D layouts (navigation, cards in row)
 *
 * WHY NOT BOOTSTRAP GRID:
 * - CSS Grid: Native, powerful, less markup
 * - Bootstrap: 12-column system, more divs
 * - File size: CSS Grid = 0 bytes extra, Bootstrap = 50KB+
 *
 * GRID CLASSES:
 * .grid-2, .grid-3, .grid-4: Simple equal-column grids
 * .grid-auto: Auto-fit columns (responsive without media queries)
 * .grid-sidebar: Sidebar + main content layout
 *
 * GAP VALUES:
 * Why var(--spacing-xl) (32px) default:
 * - Breathing room between grid items
 * - Testing: 24px felt cramped, 48px too loose
 * - 32px: Visual separation without wasted space
 */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-xl);
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

@media (max-width: 768px) {

    .container,
    .container-fluid,
    .container-wide {
        padding: 0 var(--spacing-md);
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

@media (max-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

.column {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--gradient-dark);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Logo Feature Section */
/**
 * WHY: Full-screen dramatic hero design with background image
 * - Large B&W Chicano-style background image fills entire screen
 * - Subtle transparent overlay makes logo stand out prominently
 * - Logo overlays dramatically on the background
 * - Photography business: Gallery-like presentation
 * - Full viewport: Modern landing page aesthetic
 * - Mobile-responsive: Adapts beautifully at all screen sizes
 *
 * UPDATED June 28, 2026: 30% transparency for maximum logo prominence
 * WHY: Images work as subtle background teasers - logo must dominate hero
 * - Background images faded to ~30% visibility (70% dark overlay)
 * - Logo pops dramatically against muted, atmospheric background
 * - Images hint at the portfolio without competing with the brand mark
 * - Professional first impression: logo is the hero, photos are the stage
 */
.hero-logo {
    /* Light sepia base - shows through photos for warm aesthetic */
    /* WHY: Creates warm, lighter foundation matching site's sepia theme */
    /* EFFECT: Photos blend with cream base instead of appearing dark */
    background-color: #F5EFE7;
    /* Warm cream - site's primary light color */

    /* Full-screen background image with warm cream overlay (~15% image visibility) */
    /* WHY: Logo is BLACK - background must stay LIGHT so the logo pops */
    /* EFFECT: Cream overlay fades photos toward #F5EFE7 (light sepia), not darkness */
    /* RESULT: Ghost-pale photos on warm cream base - black logo reads clearly */
    background-image:
        linear-gradient(to bottom,
            rgba(245, 239, 231, 0.75) 0%,
            rgba(245, 239, 231, 0.75) 50%,
            rgba(245, 239, 231, 0.75) 100%),
        url('https://picsum.photos/seed/chicano-community-historia/1920/1080?grayscale');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* WHY: Smooth transition for background image slideshow */
    /* REASON: 2-second fade creates elegant crossfade between images */
    /* PERFORMANCE: Uses GPU-accelerated CSS transitions (60fps) */
    transition: background-image 2s ease-in-out;

    /* Full viewport coverage */
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-3xl) var(--spacing-xl);

    /* Ensure no margin/padding issues */
    margin: 0;
    overflow: hidden;
    /* WHY: Clips absolutely-positioned background layers to hero bounds */
}

/* Subtle texture overlay for depth */
.hero-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(201, 117, 114, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(201, 117, 114, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    /* Very light overlay keeps focus on logo */
}

.hero-logo-container {
    text-align: center;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-logo-image {
    max-width: 900px;
    width: 85%;
    height: auto;
    margin: 0 auto var(--spacing-3xl);
    position: relative;
    z-index: 3;

    /* WHY: Hero Logo_v1.png - Clean, professional logo (no softening needed) */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;

    /* WHY: Elegant drop shadow for depth against dark background */
    filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.6));

    /* WHY: Smooth linear fade-in, no burst/pop at end */
    animation: fadeInScale 2s linear;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo-image:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-tagline {
    font-size: clamp(1.25rem, 2.8vw, 1.8rem);
    color: #3D2E1F;
    /* WHY: Warm dark sepia - reads clearly on cream bg, distinct from black logo */
    max-width: 900px;
    margin: 0 auto var(--spacing-3xl);
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-logo .hero-cta {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-2xl);
}

.hero-logo .btn {
    min-width: 200px;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-logo .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 24px rgba(201, 117, 114, 0.5);
}

.hero-logo .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 117, 114, 0.7);
}

.hero-logo .btn-outline {
    border: 2px solid #3D2E1F;
    color: #3D2E1F;
    /* WHY: Hero bg is now cream - dark sepia text/border pops, white was invisible */
    background: rgba(61, 46, 31, 0.06);
    backdrop-filter: blur(4px);
}

.hero-logo .btn-outline:hover {
    background: #3D2E1F;
    color: #F5EFE7;
    border-color: #3D2E1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(61, 46, 31, 0.4);
}

@media (max-width: 968px) {
    .hero-logo {
        min-height: 90vh;
        padding: var(--spacing-2xl) var(--spacing-lg);
        background-attachment: scroll;
    }

    .hero-logo-image {
        max-width: 600px;
        width: 90%;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        min-height: 85vh;
        padding: var(--spacing-xl) var(--spacing-md);
        background-attachment: scroll;
        background-position: center 35%;
    }

    .hero-logo-image {
        max-width: 500px;
        width: 92%;
        margin-bottom: var(--spacing-2xl);
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-2xl);
    }

    .hero-logo .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        max-width: 350px;
        margin: var(--spacing-xl) auto 0;
    }

    .hero-logo .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        min-height: 80vh;
        background-position: center 30%;
    }

    .hero-logo-image {
        max-width: 320px;
        width: 95%;
    }

    .hero-tagline {
        font-size: 1rem;
    }
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-3xl);
}

@media (max-width: 968px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

/* Login Section */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-3xl) 0;
    background: var(--bg-light);
}

.login-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .login-info {
        order: 2;
    }
}

/* Dashboard Layout */
.dashboard-body {
    background-color: var(--bg-light);
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
    /* Height of navbar */
}

.dashboard-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: var(--spacing-2xl);
    max-width: 100%;
}

.dashboard-header {
    margin-bottom: var(--spacing-2xl);
}

.dashboard-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 968px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
        padding: var(--spacing-lg);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: var(--spacing-2xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

@media (max-width: 968px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    padding: var(--spacing-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Map Section */
.map-section {
    height: 400px;
    background: var(--bg-light);
}

.map-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-light);
}

/* Spacing Utilities */
.m-0 {
    margin: 0;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mt-4 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.mb-4 {
    margin-bottom: var(--spacing-xl);
}

.p-0 {
    padding: 0;
}

.pt-1 {
    padding-top: var(--spacing-sm);
}

.pt-2 {
    padding-top: var(--spacing-md);
}

.pt-3 {
    padding-top: var(--spacing-lg);
}

.pt-4 {
    padding-top: var(--spacing-xl);
}

.pb-1 {
    padding-bottom: var(--spacing-sm);
}

.pb-2 {
    padding-bottom: var(--spacing-md);
}

.pb-3 {
    padding-bottom: var(--spacing-lg);
}

.pb-4 {
    padding-bottom: var(--spacing-xl);
}
