/* Baker Implement Custom Styles */

:root {
    --baker-red: #b32018;
    --baker-dark-red: #8a1812;
    --baker-light-gray: #f4f4f4;
    --baker-dark-gray: #333333;
    --baker-text: #444444;
    --max-content-width: 1400px;
}

/* Import Google Fonts matching Baker Implement */
@import url('https://fonts.googleapis.com/css?family=Lato|Montserrat:900');

/* Global Typography */
html {
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--baker-text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content Wrapper for Desktop */
.site-content-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--baker-dark-gray);
}

/* Custom Header Styles */
.baker-header {
    background-color: white;
    border-bottom: 4px solid var(--baker-red);
    padding: 15px 0;
}

.baker-header-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.baker-logo {
    max-width: 300px;
    height: auto;
}

.baker-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.caseih-logo {
    max-width: 150px;
    height: auto;
}

.baker-toplinks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.baker-toplinks a {
    color: var(--baker-dark-gray);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

.baker-toplinks a:hover {
    color: var(--baker-red);
}

.baker-toplinks i {
    margin-right: 5px;
    color: var(--baker-red);
}

/* Navigation Menu */
.baker-nav {
    background-color: var(--baker-red);
    padding: 0;
}

.baker-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.baker-nav li {
    margin: 0;
}

.baker-nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.baker-nav a:hover {
    background-color: var(--baker-dark-red);
}

/* Buttons */
.btn-primary, .baker-btn {
    background-color: var(--baker-red);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover, .baker-btn:hover {
    background-color: var(--baker-dark-red);
    color: white;
}

/* Content Sections */
.content-section {
    padding: 40px 20px;
}

.content-section:nth-child(even) {
    background-color: var(--baker-light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Desktop Improvements */
@media (min-width: 769px) {
    .content-section {
        padding: 60px 40px;
    }

    .container {
        padding: 0 40px;
    }
}

/* Override Ananke theme article width for desktop */
article {
    max-width: 100% !important;
}

.mw7 {
    max-width: 100% !important;
}

.center {
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.baker-footer {
    background-color: var(--baker-dark-gray);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.baker-footer a {
    color: white;
    text-decoration: none;
}

.baker-footer a:hover {
    color: var(--baker-red);
}

/* Featured Equipment Cards */
.equipment-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(179, 32, 24, 0.2);
}

.equipment-card img {
    width: 100%;
    height: auto;
}

.equipment-card-content {
    padding: 20px;
}

.equipment-card h3 {
    color: var(--baker-red);
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .baker-header-wrap {
        flex-direction: column;
        text-align: center;
    }

    .baker-logo {
        max-width: 200px;
        margin-bottom: 15px;
    }

    .baker-header-right {
        flex-direction: column;
    }

    .caseih-logo {
        max-width: 120px;
        margin-bottom: 10px;
    }

    .baker-nav ul {
        flex-direction: column;
    }

    .baker-nav a {
        text-align: center;
    }
}

/* Override Ananke theme defaults */
.site-header {
    background-color: white !important;
}

header.bg-black {
    background-color: white !important;
}

.site-title a {
    color: var(--baker-dark-gray) !important;
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, var(--baker-red) 0%, var(--baker-dark-red) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

/* Accent bars and dividers */
.accent-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--baker-red) 0%, var(--baker-dark-red) 100%);
    margin: 40px 0;
}

/* Call-to-action sections */
.cta-section {
    background-color: var(--baker-red);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section .baker-btn {
    background-color: white;
    color: var(--baker-red);
}

.cta-section .baker-btn:hover {
    background-color: var(--baker-light-gray);
}

/* ====================
   DESKTOP OPTIMIZATIONS
   ==================== */

/* FORCE full-width layout - override ALL narrow Tachyons classes */
.measure,
.measure-wide,
.measure-narrow {
    max-width: 100% !important;
}

.mw5, .mw6, .mw7, .mw8 {
    max-width: 100% !important;
}

.w-70-ns,
.w-60-ns,
.w-50-ns {
    width: 100% !important;
}

.center {
    max-width: var(--max-content-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Fix Ananke theme's overly narrow content widths */
@media (min-width: 769px) {
    /* Override Tachyons width classes */
    .w-100 {
        width: 100% !important;
    }

    .mw8 {
        max-width: 96rem !important;
    }

    .mw9 {
        max-width: 100% !important;
    }

    /* Main content area improvements */
    main article,
    main .article {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }

    /* Homepage specific improvements */
    .home main {
        max-width: 100% !important;
    }

    /* Wider content on larger screens */
    .ph3 {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .ph4 {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }

    /* Better font sizes for desktop */
    h1 {
        font-size: 3rem !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }

    h3 {
        font-size: 1.75rem !important;
    }

    p, li {
        font-size: 1.125rem !important;
        line-height: 1.75 !important;
    }

    /* Equipment carousel desktop optimizations */
    .equipment-carousel-wrapper {
        padding: 80px 40px !important;
    }

    .equipment-carousel-header h2 {
        font-size: 3em !important;
    }

    /* Make sure images scale properly */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .container,
    main article {
        padding: 0 60px !important;
    }

    .baker-header-wrap {
        max-width: 1400px !important;
        padding: 0 60px !important;
    }
}

/* Ensure proper box-sizing globally */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Fix any overflow issues */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Smoother transitions */
a,
button,
.btn,
.equipment-card {
    transition: all 0.3s ease-in-out;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--baker-red);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .baker-nav,
    .baker-header-right,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    .equipment-inquiry-modal {
        display: none !important;
    }
}
