/* ==========================================================================
   site.css — Synergy Food Sales (combined normalize + skeleton + site styles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Normalize (minimal subset appropriate for this site)
   -------------------------------------------------------------------------- */
html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

article, aside, details, figcaption, figure, footer, header, main, nav, section, summary {
    display: block;
}

audio, canvas, progress, video {
    display: inline-block;
    vertical-align: baseline;
}

    audio:not([controls]) {
        display: none;
        height: 0;
    }

[hidden], template {
    display: none;
}

a {
    background-color: transparent;
}

    a:active, a:hover {
        outline: 0;
    }

b, strong {
    font-weight: 700;
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

button, input, optgroup, select, textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

button {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

    button[disabled], html input[disabled] {
        cursor: default;
    }

    button::-moz-focus-inner, input::-moz-focus-inner {
        border: 0;
        padding: 0;
    }

input {
    line-height: normal;
}

textarea {
    overflow: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
}

/* --------------------------------------------------------------------------
   Skeleton-like Grid (float-based, as used by your HTML)
   -------------------------------------------------------------------------- */
.container {
    position: relative;
    width: 100%;
    max-width: none; /* full width */
    margin: 0 auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.column, .columns {
    width: 100%;
    float: left;
    box-sizing: border-box;
}

/* Devices larger than 400px */
@media (min-width: 400px) {
    .container {
        width: 100%;
    }
}

/* Devices larger than 550px: activate column widths */
@media (min-width: 550px) {
    .container {
        width: 100%;
    }

    .one.column, .one.columns {
        width: 4.66666666667%;
    }

    .two.columns {
        width: 13.3333333333%;
    }

    .three.columns {
        width: 25%;
    }

    .four.columns {
        width: 30.6666666667%;
    }

    .five.columns {
        width: 39.3333333333%;
    }

    .six.columns {
        width: 48%;
    }

    .seven.columns {
        width: 56.6666666667%;
    }

    .eight.columns {
        width: 65.3333333333%;
    }

    .nine.columns {
        width: 75.0%;
    }

    .ten.columns {
        width: 82.6666666667%;
    }

    .eleven.columns {
        width: 91.3333333333%;
    }

    .twelve.columns {
        width: 100%;
    }

    .one-third.column {
        width: 30.6666666667%;
    }

    .two-thirds.column {
        width: 65.3333333333%;
    }

    .one-half.column {
        width: 48%;
    }
}

/* Clearing */
.container:after, .row:after, .u-cf {
    content: "";
    display: table;
    clear: both;
}

/* --------------------------------------------------------------------------
   Base Styles / Theme
   -------------------------------------------------------------------------- */
html {
    font-size: 62.5%;
}

body {
    font-size: 1.3em;
    line-height: 1.6;
    font-weight: 400;
    font-family: 'Roboto', arial, sans-serif;
    color: #222;
    background-color: #f5f6f8; /* light grey */
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility colors/classes used in markup */
.wh {
    background-color: #fff;
}

.bg {
    background-image: none;
}

.bl {
    background-color: #1A3985;
}

.blue {
    background-color: #1A3985;
    color: #fff;
}

.grey {
    background-color: #e9e7e6;
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 300;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    padding-left: 10px;
}

h2 {
    font-size: 1.6rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: .8rem;
}

h4 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: .8rem;
}

p {
    margin-top: 0;
}

a {
    color: #1EAEDB;
}

    a:hover {
        color: #0FA0CE;
    }

/* Keep long filenames/URLs from breaking layouts */
a, p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
}

/* Basic spacing similar to Skeleton defaults */
p, ul, ol, form, table, blockquote, pre {
    margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    background: #fff;
    color: #000;
    padding: 8px 10px;
    z-index: 9999;
    border-radius: 4px;
}

    .skip-link:focus {
        left: 10px;
    }

/* --------------------------------------------------------------------------
   Readability guard for full-width layouts
   -------------------------------------------------------------------------- */
:root {
    --readable-max: 1100px; /* best for text measure */
    --panel-max: 1600px; /* wider so a 4-up manufacturer grid feels good */
}

/* Prevent header content from spreading too wide */
.site-header .header-inner {
    max-width: var(--panel-max);
    margin-left: auto;
    margin-right: auto;
}

/* Keep main panel (nav + content row) aligned and centered */
.content-shell {
    max-width: var(--panel-max);
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0;
    /* New layout control (replaces old float dependency for the main row) */
    display: grid;
    grid-template-columns: 1fr; /* stacked by default */
    gap: 12px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header .container {
    padding-top: 10px;
}

.header-banner {
    width: 100%;
    max-width: var(--panel-max);
    margin-left: auto;
    margin-right: auto;
    float: none; /* override Skeleton's .columns float so centering works */
}

.header-inner {
    padding: 10px 10px 0 10px;
}

.site-logo {
    display: block;
    max-width: 340px;
}

.site-title {
    padding-top: 20px;
    margin-bottom: 10px;
}

.site-subtitle {
    padding-left: 10px;
    margin-bottom: 10px;
}

/* NAV: match the same max width as content (no full-bleed band) */
.site-header nav {
    background: transparent;
}

/* Primary navigation (the bar matches the content width) */
.site-nav {
    list-style: none;
    margin: 0;
    max-width: var(--panel-max);
    margin-left: auto;
    margin-right: auto;
    padding: 10px clamp(16px, 3vw, 48px);
    background-color: #1A3985;
    border-radius: 0; /* square corners so it joins content visually */
    box-sizing: border-box;
}

    .site-nav li {
        display: inline-block;
        margin: 0;
    }

        .site-nav li + li {
            margin-left: 8px;
        }

    .site-nav a.nav {
        color: #fff;
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 4px;
        display: inline-block;
    }

        .site-nav a.nav:hover,
        .site-nav a.nav:focus {
            color: #0FA0CE;
            outline: 0;
        }

    .site-nav a[aria-current="page"] {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

/* --------------------------------------------------------------------------
   Two-column layout on larger screens: left content + right contacts
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
    .content-shell {
        grid-template-columns: 1fr 380px; /* left grows, right fixed width */
        gap: 16px;
    }

        /* Disable Skeleton floats/widths inside this grid row */
        .content-shell .nine.columns,
        .content-shell .three.columns {
            float: none !important;
            width: auto !important;
        }

    /* Give the right column a little internal padding so it feels intentional */
    .contacts {
        padding: 10px;
        box-sizing: border-box;
    }
}

/* Stack layout on smaller screens (comfort) */
@media (max-width: 900px) {
    .nine.columns, .three.columns {
        width: 100% !important;
    }
}

/* --------------------------------------------------------------------------
   Left Content Panel
   -------------------------------------------------------------------------- */
.content {
    padding: 16px;
    box-sizing: border-box;
}

/* Modern intro block (News page) */
.content-intro {
    background: rgba(255, 255, 255, 0.65);
    border-left: 4px solid #1A3985;
    border-radius: 8px;
    padding: 14px 14px 12px 14px;
    margin: 10px 0 16px 0;
}

.content-title {
    margin: 0 0 6px 0;
    padding-left: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1A3985;
}

.content-lede {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #333;
    max-width: 70ch;
}

/* Section titles beneath intro */
.news-year .section-title {
    margin: 18px 0 8px 0;
    padding-left: 0;
    font-weight: 700;
    color: #1A3985;
}

/* --------------------------------------------------------------------------
   Manufacturers grid
   -------------------------------------------------------------------------- */
.manufacturers {
    text-align: left;
    padding: 10px;
    box-sizing: border-box;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
    box-sizing: border-box;
    min-width: 0;
}

/* 2-up, then 3-up */
@media (min-width: 550px) {
    .manufacturer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .manufacturer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 4-up on larger desktops */
@media (min-width: 1200px) {
    .manufacturer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.manufacturer {
    background: transparent;
    text-align: center;
    padding: 10px;
    margin: 0;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Center logos even if sizes differ */
.manufacturer-logo {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    min-width: 0;
}

    .manufacturer-logo img {
        max-height: 100px;
        width: auto;
        height: auto;
        margin: 0;
        display: block;
    }

.manufacturer p {
    margin: 0;
    font-size: 12px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Newsletter library
   -------------------------------------------------------------------------- */
.news-year {
    margin-bottom: 20px;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 0;
    min-width: 0;
}

@media (min-width: 550px) {
    .newsletter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .newsletter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.newsletter-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid rgba(0,0,0,0.06);
}

.newsletter-title {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.newsletter-meta {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #555;
    max-width: 70ch;
}

.newsletter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    background: #1A3985;
    color: #fff;
}

    .btn:hover, .btn:focus {
        background: #0FA0CE;
        color: #fff;
    }

    .btn.btn-secondary {
        background: #e9e7e6;
        color: #1A3985;
    }

        .btn.btn-secondary:hover, .btn.btn-secondary:focus {
            background: #d9d7d6;
            color: #1A3985;
        }

/* --------------------------------------------------------------------------
   Contacts column
   -------------------------------------------------------------------------- */
.contacts {
    padding: 10px 0;
}

.contact-section {
    margin-bottom: 15px;
}

.section-title {
    padding-left: 10px;
}

.people {
    padding: 0 20px;
}

.box {
    background-color: #1A3985;
    margin-top: 10px;
    padding-bottom: 10px;
    border-radius: 6px;
}

.contact-card img {
    display: block;
    margin: 10px 0 6px 0;
}

.contact-card p {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: transparent;
    padding: 10px 0 20px 0;
}

.footer-text {
    color: #fff;
    margin: 0;
    padding-left: 10px;
    font-size: 12px;
}

/* Background image behavior like original */
@media (min-width: 750px) {
    .bg {
        background-image: url("../images/food-sales.jpg");
        background-position: top right;
        background-repeat: no-repeat;
        height: 223px;
    }
}
