/* ============================================================
   AVCON MANAGER THEME — MAIN STYLES
   ============================================================ */

/* ---------- Layout helpers ---------- */
.avm-container {
    max-width: var(--avm-container);
    margin: 0 auto;
    padding: 0 24px;
}
.avm-section { padding: 72px 0; }
.avm-section--tight { padding: 48px 0; }
.avm-section--light { background: var(--avm-bg-light); }
.avm-section--navy { background: var(--avm-bg-navy); color: #fff; }
.avm-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 600;
    color: var(--avm-primary);
    margin: 0 0 12px;
}
.avm-heading {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 600;
    color: var(--avm-navy);
    margin: 0 0 18px;
}
.avm-heading--sm { font-size: clamp(22px, 3vw, 28px); }
.avm-text { font-size: 17px; line-height: 1.7; color: var(--avm-text-muted); margin: 0 0 20px; }
.avm-text-lg { font-size: 19px; }
.avm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--avm-radius-sm);
    background: var(--avm-primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.avm-btn:hover { background: var(--avm-primary-dark); color: #fff; transform: translateY(-1px); }
.avm-btn--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.5);
}
.avm-btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.avm-link {
    color: var(--avm-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.avm-link:hover { text-decoration: underline; }
.avm-grid { display: grid; gap: var(--avm-gap); }
.avm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.avm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.avm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
    .avm-grid--3, .avm-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .avm-grid--2, .avm-grid--3, .avm-grid--4 { grid-template-columns: 1fr; }
    .avm-section { padding: 48px 0; }
}

/* ---------- Header ---------- */
.avm-header {
    background: var(--avm-navy);
    position: sticky;
    top: 0;
    z-index: 100;
}
.avm-header-inner {
    max-width: var(--avm-container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.avm-logo img { height: 40px; width: auto; }
.avm-nav { display: flex; align-items: center; gap: 28px; }
.avm-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.avm-nav li { position: relative; }
.avm-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.avm-nav a:hover,
.avm-nav li.current-menu-item > a,
.avm-nav li.current-menu-ancestor > a,
.avm-nav li.current_page_item > a {
    border-bottom-color: var(--avm-primary);
}
.avm-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    box-shadow: var(--avm-shadow);
    min-width: 240px;
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 10;
}
.avm-nav li:hover > .sub-menu { display: block; }
.avm-nav .sub-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--avm-navy);
    border-bottom: 2px solid transparent;
}
.avm-nav .sub-menu a:hover,
.avm-nav .sub-menu li.current-menu-item > a {
    background: var(--avm-bg-light);
    border-bottom-color: var(--avm-primary);
}
.avm-header-phone {
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
}
.avm-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
}
@media (max-width: 900px) {
    .avm-nav { display: none; }
    .avm-menu-toggle { display: block; }
    .avm-header-phone { display: none; }
    .avm-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--avm-navy);
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: 12px 24px 20px;
    }
    .avm-nav.is-open ul { flex-direction: column; gap: 4px; }
    .avm-nav.is-open .sub-menu { position: static; box-shadow: none; border: none; display: block; padding-left: 12px; background: transparent; }
    .avm-nav.is-open .sub-menu a { color: #fff; }
}

/* ---------- Hero (full-width image + dark gradient overlay, used on every page) ---------- */
.avm-hero-media {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: var(--avm-navy);
    color: #fff;
}
.avm-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,17,30,0.25) 0%, rgba(15,17,30,0.9) 100%);
}
.avm-hero-media-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 64px 0;
}
.avm-hero-media .avm-eyebrow { color: #ff9d9d; }
.avm-hero-media .avm-heading { color: #fff; }
.avm-hero-media .avm-text { color: rgba(255,255,255,0.85); }
.avm-hero-content { max-width: 720px; }
.avm-hero-content--center { max-width: 720px; margin: 0 auto; text-align: center; }
.avm-hero-content--center .avm-hero-actions { justify-content: center; }
.avm-hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.avm-latest-card {
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--avm-border);
    border-left: 4px solid var(--avm-primary);
    border-radius: var(--avm-radius-sm);
}
.avm-latest-card .avm-eyebrow { margin-bottom: 6px; }
.avm-latest-card h3 { font-size: 18px; line-height: 1.4; margin: 4px 0 10px; color: var(--avm-navy); }
.avm-latest-card h3 a { color: inherit; text-decoration: none; }
.avm-tagline-banner {
    padding: 20px 0;
    background: var(--avm-navy);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ---------- Tiles / cards ---------- */
.avm-tile { position: relative; border-radius: var(--avm-radius); overflow: hidden; aspect-ratio: 4/3; }
.avm-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.avm-tile:hover img { transform: scale(1.05); }
.avm-tile-caption {
    position: absolute; inset: auto 0 0 0;
    padding: 20px 18px;
    background: linear-gradient(0deg, rgba(15,17,30,0.85) 0%, rgba(15,17,30,0) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.avm-service-card {
    background: #fff;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius);
    padding: 32px 28px;
    box-shadow: var(--avm-shadow);
    transition: box-shadow 0.15s, transform 0.15s;
}
.avm-service-card:hover { box-shadow: var(--avm-shadow-hover); transform: translateY(-2px); }
.avm-service-card h3 { color: var(--avm-navy); font-size: 20px; margin: 0 0 12px; }
.avm-service-card p { color: var(--avm-text-muted); font-size: 15px; line-height: 1.65; margin: 0 0 18px; }

.avm-photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avm-photo-strip img { border-radius: var(--avm-radius-sm); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 900px) { .avm-photo-strip { grid-template-columns: repeat(2, 1fr); } }

.avm-two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (max-width: 640px) { .avm-two-col-list { grid-template-columns: 1fr; } }
.avm-two-col-list ul { list-style: none; margin: 0; padding: 0; }
.avm-two-col-list li {
    padding: 10px 0 10px 26px;
    position: relative;
    border-bottom: 1px solid var(--avm-border);
    font-size: 15px;
    color: var(--avm-text);
}
.avm-two-col-list li::before {
    content: "";
    position: absolute; left: 0; top: 17px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--avm-primary);
}

/* ---------- Why-choose numbered blocks ---------- */
.avm-why-item { display: flex; gap: 20px; }
.avm-why-number {
    font-size: 32px; font-weight: 700; color: var(--avm-primary-light);
    -webkit-text-stroke: 1.5px var(--avm-primary);
    line-height: 1;
    flex-shrink: 0;
}
.avm-why-item h3 { margin: 0 0 8px; color: var(--avm-navy); font-size: 18px; }
.avm-why-item p { margin: 0; color: var(--avm-text-muted); font-size: 15px; line-height: 1.6; }

/* ---------- Person card (President / Sales team) ---------- */
.avm-person-card { display: flex; gap: 20px; align-items: center; }
.avm-person-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avm-person-card h3 { margin: 0 0 4px; color: var(--avm-navy); font-size: 17px; }
.avm-person-card p { margin: 2px 0; color: var(--avm-text-muted); font-size: 14px; line-height: 1.5; }
.avm-person-card a { color: var(--avm-primary); text-decoration: none; }

/* ---------- Certifications ---------- */
.avm-cert-list { list-style: none; margin: 0 0 24px; padding: 0; }
.avm-cert-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid var(--avm-border);
    font-size: 15px;
}
.avm-cert-list li::before { content: "✓"; position: absolute; left: 0; color: var(--avm-primary); font-weight: 700; }
.avm-cert-badges { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avm-cert-badges img { max-height: 80px; width: auto; }

/* ---------- Bottom CTA band ---------- */
.avm-cta-band {
    background: var(--avm-navy);
    color: #fff;
    text-align: center;
    padding: 56px 24px;
    border-radius: var(--avm-radius);
}
.avm-cta-band h2 { color: #fff; }
.avm-cta-band p { color: rgba(255,255,255,0.75); }

/* ---------- STC table ---------- */
.avm-stc-filters { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.avm-stc-search, .avm-stc-manufacturer {
    padding: 12px 16px;
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius-sm);
    font-size: 15px;
    font-family: inherit;
}
.avm-stc-search { flex: 1; min-width: 240px; }
.avm-stc-table-wrap {
    border: 1px solid var(--avm-border);
    border-radius: var(--avm-radius);
    overflow: hidden;
}
.avm-stc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.avm-stc-table thead th {
    background: var(--avm-navy);
    color: #fff;
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    position: sticky;
    top: 0;
}
.avm-stc-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--avm-border);
    vertical-align: top;
}
.avm-stc-table tbody tr:nth-child(even) { background: var(--avm-bg-light); }
.avm-stc-table tbody tr:hover { background: var(--avm-primary-light); }
.avm-stc-number { font-weight: 600; color: var(--avm-navy); white-space: nowrap; }
.avm-stc-empty { text-align: center; padding: 32px; color: var(--avm-text-muted); }
.avm-notice {
    background: var(--avm-bg-light);
    border: 1px dashed var(--avm-border);
    border-radius: var(--avm-radius-sm);
    padding: 20px;
    color: var(--avm-text-muted);
}

/* ---------- Contact page ---------- */
.avm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .avm-contact-grid { grid-template-columns: 1fr; } }
.avm-contact-block { margin-bottom: 28px; }
.avm-contact-block h3 { color: var(--avm-navy); font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.avm-contact-block p { margin: 0; color: var(--avm-text-muted); font-size: 15px; line-height: 1.6; }
.avm-hubspot-embed { border: 1px solid var(--avm-border); border-radius: var(--avm-radius); padding: 24px; background: #fff; }
.avm-identifiers { display: flex; gap: 32px; flex-wrap: wrap; font-size: 14px; color: var(--avm-text-muted); }
.avm-identifiers strong { color: var(--avm-navy); }

/* ---------- Careers ---------- */
.avm-perk-list { display: flex; gap: 32px; flex-wrap: wrap; margin: 20px 0; }
.avm-perk-list span { font-weight: 600; color: var(--avm-navy); font-size: 15px; }

/* ---------- News / Insights ---------- */
.avm-news-card { border: 1px solid var(--avm-border); border-radius: var(--avm-radius); overflow: hidden; box-shadow: var(--avm-shadow); transition: box-shadow 0.15s; }
.avm-news-card:hover { box-shadow: var(--avm-shadow-hover); }
.avm-news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.avm-news-card-body { padding: 20px; }
.avm-news-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--avm-primary); font-weight: 700; }
.avm-news-card h3 { font-size: 17px; line-height: 1.4; margin: 8px 0; }
.avm-news-card h3 a { color: var(--avm-navy); text-decoration: none; }
.avm-news-card p { color: var(--avm-text-muted); font-size: 14px; }
.avm-news-date { color: var(--avm-text-muted); font-size: 13px; }

/* ---------- Modification sub-page ---------- */

/* ---------- Footer ---------- */
.avm-footer { background: var(--avm-navy); color: rgba(255,255,255,0.8); padding: 56px 0 28px; }
.avm-footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.avm-footer-logo img { height: 34px; margin-bottom: 16px; }
.avm-footer-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.avm-footer-nav a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; }
.avm-footer-nav a:hover { color: #fff; }
.avm-footer-social { display: flex; gap: 16px; }
.avm-footer-social a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
.avm-footer-social a:hover { color: #fff; }
.avm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.avm-footer-bottom a { color: rgba(255,255,255,0.7); }

/* ---------- 404 ---------- */
.avm-404 { text-align: center; padding: 100px 24px; }
