/* site.css - Flat Design UI */
/* Global variables following flat design principles with bold, high-contrast colors */
:root {
    /* Flat Design Color Palette */
    --primary-color: #1E1E24; /* Dark Grey */
    --secondary-color: #9A191A; /* Red */
    --error-color: #e74c3c; /* Flat Red */
    --warning-color: #f1c40f; /* Flat Yellow */
    --text-color: #0a0a0a; /* Dark Gray */
    --background-color: #eccaca; 
    --border-color: #ecf0f1; /* Light Gray */
    --header-bg-color: white;
    --footer-bg-color: #0a0a0a; /* Much darker footer background */
    
    /* Additional flat colors for variety */
    --accent-color: #9b59b6; /* Flat Purple */
    --info-color: #3498db; /* Flat Blue */
    --dark-color: #34495e; /* Dark Blue-Gray */
    --light-color: #ffffff; /* White */
    
    /* Legacy variable mappings for compatibility */
    --color-bg-lightest: #ffffff;
    --color-bg-light: #ecf0f1;
    --color-bg-dark: #34495e;
    --color-bg-darkest: #2c3e50;
    --color-fg-light: #ffffff;
    --color-fg-dark: #2c3e50;
    --color-accent-1: #e67e22; /* Flat Orange */
    --color-accent-2: #e74c3c; /* Flat Red */
    
    /* Typography */
    font-size: 20px;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    
    /* Layout */
    --footer-width: 1297px;
    --header-height: 100px;
    text-align: justify;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: left;
}

h1, h2 {
    text-transform: uppercase;
    font-weight: 900;
}

@media (max-width: 600px){
    h1, h2, a.button, button.button {
        font-size: 1rem;
    }
    
    h3 {
        font-size: .92rem!important;
    }
    
    p, li {
        font-size: .82em;
    }
}

@media (max-width: 400px){
    h1, h2, a.button, button.button {
        font-size: .95rem;
    }

    h3 {
        font-size: .88rem !important;
    }

    p, li {
        font-size: .79em;
    }
}

.float-right {
    float: right;
}

/* Flat Design - No shadows on framed images */
img.framed {
    /*border: 3px solid var(--primary-color);*/
    padding: 8px 5px;
    background-color: var(--light-color);
}

/* Mobile: Stack images above text for side-by-side layouts */
@media (max-width: 800px) {
    /* Remove float on mobile to allow proper stacking */
    .float-right {
        float: none;
        display: block;
        max-width: 100%;
    }
    
    /* Convert rows to columns on mobile with image on top */
    .row {
        flex-direction: column-reverse!important;
        width: auto;
        height: auto;
    }
    
    .row.reverse {
        flex-direction: column-reverse!important;
        width: auto;
        height: auto;
    }
}

.row {
    flex-direction: row;
    width: 100%;
}

.column {
    flex-direction: column;
}

.row, .column {
    display: flex;
    flex: 1;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    gap: 2em;
}

@media (max-width: 1200px) {
    .row, .column {
        gap: .5em;
    }
}

.wrap {
    flex-wrap: wrap;
}

.row.reverse {
    flex-direction: row-reverse;
}

.column.reverse {
    flex-direction: column-reverse;
}

.row > *, .column > * {
    flex: 1 1 auto;
}

/* Flat Design Buttons - Sharp edges, solid fills, no shadows or transforms */
button, .button {
    display: inline-block;
    padding: 0.75em 1.5em;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.25em;
    border: none;
    border-radius: 0; /* Flat design uses sharp edges */
    text-align: center;
    text-transform: uppercase;
    max-width: fit-content;
    max-height: fit-content;
}

.carousel-prev, .carousel-next, .button {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transition: background-color 0.2s ease,
    background-image 0.2s ease,
    color 0.2s ease;
}

button.button {
    width: fit-content;
}

.carousel-prev:hover, .carousel-next:hover, .button:hover {
    background-color: transparent;
    background-image: url("/img/concrete-texture.png");
    color: var(--secondary-color)
}

header {
    height: var(--header-height);
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

@media (max-width: 1200px) {
    .three-column-grid {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }
    
    .three-column-grid * {
        width: 80%;
    }
    
    .three-column-grid a h3 {
        width:100%;
        padding: 8px 0 !important;
    }
}

.no-gap {
    gap:0; !important;
}
.show-always {
    display: unset!important;
}

@media(max-width: 1200px) {
    .ipad-column, .ipad-column-reverse {
        flex-direction: column !important;
        align-items: center;
    }
    .ipad-column img, .ipad-column-reverse img {
        width: 80%;
        height: auto;
        aspect-ratio: 14 / 9;
        object-fit: cover;
    }

    .ipad-column-reverse {
        flex-direction: column-reverse !important;
    }
}

@media(max-width: 600px) {
    .ipad-column img, .ipad-column-reverse img {
        width: 100%;
    }
}
.ipad-column img, .ipad-column-reverse img {
    width: 80%;
    height: auto;
    aspect-ratio: 14 / 9;
    object-fit: cover;
}

.flex-spacer {
    flex-grow: 1;
    flex-basis: 0;
}

.negative-spacer {
    margin-bottom: -1rem;
}

