/* ============================================
   AMERICAN ROUTE LOGISTICS — Main Stylesheet
   Navy Blue #1a2744 | Red #c0392b | White
   Font: Barlow Condensed + Barlow
============================================ */

:root {
    --navy: #1a2744;
    --navy-dark: #0f1a30;
    --navy-light: #243560;
    --red: #c0392b;
    --red-dark: #a93226;
    --red-light: #e74c3c;
    --white: #ffffff;
    --off-white: #f5f3ef;
    --light-gray: #f0f0f0;
    --gray: #888;
    --dark-text: #1a1a2e;
    --body-text: #444;
    --border: #ddd;
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.18);
    --radius: 4px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text);
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    color: var(--dark-text);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.05em; }

.section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    display: block;
    margin-bottom: 0.5rem;
}

/* ---- CONTAINER ---- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.4); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-red { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* ---- TOPBAR ---- */
.topbar {
    background: var(--navy-dark);
    color: #ccc;
    font-size: 0.82rem;
    padding: 0.5rem 1.25rem;
    position: relative;
    z-index: 100;
}
.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--red-light); }
.topbar a i { margin-right: 0.35rem; color: var(--red); }
.topbar-cta {
    background: var(--red);
    color: #fff !important;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.topbar-cta:hover { background: var(--red-dark); }

/* ---- MAIN HEADER ---- */
.main-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 25px rgba(0,0,0,0.15); }
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 80px;
}
.logo-wrap { flex-shrink: 0; }
.logo-img { height: 60px; width: auto; object-fit: contain; }

.main-nav ul { display: flex; gap: 0.25rem; align-items: center; }
.main-nav a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--navy);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-ctas { display: flex; align-items: center; gap: 0.75rem; }
.btn-quote {
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.btn-quote:hover { background: var(--red-dark); color: #fff; }
.btn-phone {
    background: var(--navy);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius);
    white-space: nowrap;
}
.btn-phone:hover { background: var(--navy-dark); color: #fff; }
.btn-phone i { margin-right: 0.35rem; }

/* Mobile Toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 5px; }
.mobile-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- PAGE HERO BANNER ---- */
.page-hero {
    background: var(--navy-dark);
    position: relative;
    padding: 5rem 1.25rem;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,39,68,0.95) 40%, rgba(192,57,43,0.6) 100%);
    z-index: 1;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}
.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; }

/* ---- HOME HERO ---- */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-dark);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,20,45,0.92) 45%, rgba(10,20,45,0.5) 100%),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1600&q=80') center/cover no-repeat;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(192,57,43,0.2);
    border: 1px solid rgba(192,57,43,0.5);
    border-radius: 2px;
    padding: 0.4rem 1rem;
    color: #f9a793;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero-eyebrow::before { content: '★'; color: var(--red-light); }
.hero h1 { color: #fff; line-height: 1.05; }
.hero h1 span { color: var(--red-light); }
.hero-sub {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 540px;
    line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    width: 100%;
}
.hero-stat { text-align: left; }
.hero-stat strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--red-light);
    line-height: 1;
}
.hero-stat span { color: rgba(255,255,255,0.65); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 1.2rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ---- STATS BAR ---- */
.stats-bar {
    background: var(--off-white);
    padding: 3.5rem 0;
    border-top: 4px solid var(--red);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}
.stat-icon {
    width: 56px;
    height: 56px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.stat-item:hover .stat-icon { transform: scale(1.1); background: var(--red-dark); }
.stat-item h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--navy);
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
}

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--body-text); font-size: 1.05rem; }

/* ---- ABOUT SNIPPET ---- */
.about-snippet .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-img-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--red);
    color: #fff;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-img-badge strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2.5rem; font-weight: 900; display: block; line-height: 1; }
.about-img-badge span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.about-text { padding: 1rem 0; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { margin-bottom: 1.25rem; color: var(--body-text); }
.about-text .btn { margin-top: 0.75rem; }

/* ---- SERVICES GRID ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .check-icon {
    width: 44px;
    height: 44px;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.service-card p { font-size: 0.9rem; color: var(--body-text); line-height: 1.65; }
.service-card a.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--red);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 1rem;
}
.service-card a.read-more:hover { gap: 0.75rem; }

/* ---- WHY CHOOSE US ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}
.why-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: var(--transition);
}
.why-card:hover { background: rgba(192,57,43,0.2); border-color: var(--red); }

/* ---- PARALLAX CTA ---- */
.parallax-cta {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-dark);
}
.parallax-cta-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?w=1600&q=80') center/cover no-repeat;
    opacity: 0.25;
}
.parallax-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26,39,68,0.98) 50%, rgba(26,39,68,0.6) 100%);
}
.parallax-cta-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}
.parallax-cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.parallax-cta p { color: rgba(255,255,255,0.75); max-width: 550px; margin-bottom: 2rem; }
.parallax-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- NEWS GRID ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.news-card-img-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.news-card-cat {
    background: var(--red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}
.news-card-date { color: var(--gray); font-size: 0.82rem; }
.news-card-body h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: var(--navy); line-height: 1.3; }
.news-card-body h3 a:hover { color: var(--red); }
.news-card-body p { font-size: 0.88rem; color: var(--body-text); line-height: 1.65; flex: 1; }
.news-card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.read-more-link {
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
}
.read-more-link:hover { color: var(--red-dark); gap: 0.6rem; }

/* ---- NEWS PAGE LAYOUT ---- */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.news-featured {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.news-featured-img { height: 100%; min-height: 280px; object-fit: cover; }
.news-featured-img-placeholder {
    min-height: 280px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}
.news-featured-body { padding: 2rem; }
.news-featured-body h2 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
.news-featured-body h2 a:hover { color: var(--red); }

/* Sidebar */
.news-sidebar {}
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.sidebar-widget-title {
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 1.25rem;
}
.sidebar-widget-body { padding: 1.25rem; }
.recent-post-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.recent-post-item:last-child { border-bottom: none; }
.recent-post-item a { color: var(--navy); font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.recent-post-item a:hover { color: var(--red); }
.recent-post-item small { display: block; color: var(--gray); font-size: 0.78rem; margin-top: 0.2rem; }
.cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--body-text);
    font-size: 0.9rem;
}
.cat-list a:last-child { border-bottom: none; }
.cat-list a:hover { color: var(--red); }
.cat-list a span { background: var(--light-gray); font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 10px; color: var(--gray); }

/* ---- KNOWLEDGE BASE ---- */
.kb-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}
.kb-filter a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    background: var(--light-gray);
    color: var(--navy);
    text-transform: uppercase;
    transition: var(--transition);
}
.kb-filter a:hover, .kb-filter a.active { background: var(--red); color: #fff; }

.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.kb-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: var(--transition);
}
.kb-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.kb-card-img { width: 100%; height: 200px; object-fit: cover; }
.kb-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.25);
}
.kb-card-body { padding: 1.5rem; }
.kb-card-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; color: var(--navy); line-height: 1.3; }
.kb-card-body h3 a:hover { color: var(--red); }
.kb-card-body p { font-size: 0.88rem; color: var(--body-text); }
.kb-card-footer {
    padding: 0.85rem 1.5rem;
    background: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
}

/* ---- SINGLE POST ---- */
.post-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.post-content h1 { margin-bottom: 1.5rem; }
.post-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; color: var(--gray); font-size: 0.88rem; }
.post-meta span { display: flex; align-items: center; gap: 0.35rem; }
.post-meta span i { color: var(--red); }
.post-hero-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.post-body { font-size: 1rem; line-height: 1.8; color: var(--body-text); }
.post-body h2, .post-body h3 { margin: 2rem 0 1rem; color: var(--navy); }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-body blockquote {
    border-left: 4px solid var(--red);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--off-white);
    font-style: italic;
    color: var(--navy);
}

/* ---- CONTACT PAGE ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1.5rem; color: var(--body-text); }
.contact-detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-detail-text h4 { font-size: 0.85rem; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 0.25rem; text-transform: uppercase; }
.contact-detail-text p { color: var(--navy); font-weight: 600; margin: 0; }

/* ---- FORMS ---- */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--navy);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}
.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: var(--transition);
    background: #fff;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; font-size: 1rem; padding: 1rem; margin-top: 0.5rem; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ---- ABOUT PAGE ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.team-card { text-align: center; }
.team-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--red);
}
.team-avatar-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.4);
    margin: 0 auto 1rem;
    border: 4px solid var(--red);
}
.team-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.25rem; }
.team-card span { font-size: 0.85rem; color: var(--red); font-weight: 600; }

/* Customer Experience */
.cx-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
}
.cx-wrap h2 { margin-bottom: 1rem; }
.cx-wrap p { margin-bottom: 1.25rem; color: var(--body-text); }
.cx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-top: 2rem; }
.cx-card {
    background: var(--off-white);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: var(--radius);
    line-height: 1.4;
}

/* ---- QUOTE PAGE ---- */
.quote-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); }
.quote-form-wrap { max-width: 860px; margin: 0 auto; }

/* ---- SERVICES PAGE ---- */
.service-detail {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }
.service-detail img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.service-img-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}
.service-detail-text span.section-label { margin-bottom: 0.35rem; }
.service-detail-text h2 { margin-bottom: 1rem; }
.service-detail-text p { margin-bottom: 1rem; color: var(--body-text); }
.service-features { margin: 1.25rem 0; }
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.service-features li i { color: var(--red); margin-top: 0.2rem; flex-shrink: 0; }

/* ---- FOOTER ---- */
.site-footer { background: #0d1524; }
.footer-top { padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 70px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: #aaa; font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-brand p i { color: var(--red); margin-right: 0.4rem; }
.btn-footer-contact {
    display: inline-block;
    margin-top: 1.25rem;
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
}
.btn-footer-contact:hover { background: var(--red-dark); }
.footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul a { color: #aaa; font-size: 0.88rem; }
.footer-col ul a:hover { color: var(--red-light); }
.footer-social { display: flex; flex-direction: column; gap: 0.5rem; }
.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #aaa;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
}
.social-link i { width: 22px; text-align: center; color: #888; }
.social-link:hover { color: #fff; }
.social-link.fb:hover i { color: #1877f2; }
.social-link.tw:hover i { color: #1da1f2; }
.social-link.yt:hover i { color: #ff0000; }
.social-link.ig:hover i { color: #e1306c; }
.social-link.li:hover i { color: #0077b5; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem;
    text-align: center;
    color: #666;
    font-size: 0.82rem;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--red-light); }
.footer-sep { margin: 0 0.5rem; }

/* ---- FLOATING CONTACT ---- */
.float-contact {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    background: var(--red);
    color: #fff;
    border-radius: 50px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(192,57,43,0.5);
    z-index: 1000;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
}
.float-contact:hover { background: var(--red-dark); transform: scale(1.05); color: #fff; }
.float-contact i { font-size: 1.2rem; }

/* ---- ADMIN PANEL ---- */
.admin-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f0f2f5; }
.admin-sidebar {
    background: var(--navy-dark);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-brand img { height: 42px; }
.admin-brand span { font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.85); line-height: 1.2; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-left-color: var(--red);
}
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav-divider { padding: 0.5rem 1.5rem; font-size: 0.7rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-top: 0.5rem; }
.admin-main { padding: 2rem; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
.admin-topbar h1 { font-size: 1.5rem; color: var(--navy); }
.admin-topbar .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.admin-stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.admin-stat-icon.red { background: var(--red); }
.admin-stat-icon.navy { background: var(--navy); }
.admin-stat-icon.green { background: #27ae60; }
.admin-stat-icon.orange { background: #e67e22; }
.admin-stat-text strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.admin-stat-text span { font-size: 0.82rem; color: var(--gray); }
.admin-table-wrap {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    margin-bottom: 1.75rem;
}
.admin-table-title {
    padding: 1rem 1.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    background: #f9f9f9;
    border-bottom: 1px solid var(--border);
}
table.admin-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--body-text);
}
table.admin-table tr:last-child td { border-bottom: none; }
table.admin-table tr:hover td { background: #fafafa; }
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #cce5ff; color: #004085; }
.admin-form-wrap { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 8px rgba(0,0,0,0.07); }
.admin-form-wrap .form-group label { color: var(--navy); }
.editor-toolbar {
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.editor-toolbar button {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
}
.editor-toolbar button:hover { background: var(--red); color: #fff; border-color: var(--red); }
#postContent {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: none;
}

/* ---- PAGINATION ---- */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--navy);
}
.pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.pagination span.current { background: var(--red); color: #fff; border-color: var(--red); }

/* ---- ADMIN LOGIN ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding: 2rem;
}
.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}
.login-card img { height: 70px; margin: 0 auto 1.5rem; }
.login-card h2 { margin-bottom: 0.5rem; color: var(--navy); }
.login-card p { color: var(--gray); margin-bottom: 2rem; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid .footer-col:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .kb-grid { grid-template-columns: repeat(2, 1fr); }
    .about-snippet .container { grid-template-columns: 1fr; gap: 2rem; }
    .about-img-badge { right: 1rem; }
    .cx-grid { grid-template-columns: repeat(2, 1fr); }
    .post-wrap { grid-template-columns: 1fr; }
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .topbar-right { display: none; }
    .main-nav, .header-ctas { display: none; }
    .main-nav.open {
        display: flex;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        z-index: 998;
    }
    .main-nav.open ul { flex-direction: column; gap: 0; }
    .main-nav.open a {
        color: #fff;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1.1rem;
    }
    .main-nav.open a::after { display: none; }
    .main-nav.open a:hover { color: var(--red-light); }
    .header-ctas.open { display: flex; flex-direction: column; gap: 0.5rem; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; z-index: 997; }
    .mobile-toggle { display: flex; }
    
    .hero { min-height: 80vh; }
    .hero-stats { gap: 1.25rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .kb-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid .footer-brand { grid-column: span 2; }
    .footer-grid .footer-col:last-child { grid-column: span 2; display: block; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-grid.reverse { direction: ltr; }
    .news-featured { grid-template-columns: 1fr; }
    .cx-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .admin-wrap { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .news-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .why-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid .footer-brand { grid-column: span 1; }
    .footer-grid .footer-col:last-child { grid-column: span 1; }
    .cx-grid { grid-template-columns: 1fr 1fr; }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; text-align: center; }
    .admin-stats { grid-template-columns: 1fr; }
}

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ---- MISC UTILITIES ---- */
.text-red { color: var(--red); }
.text-navy { color: var(--navy); }
.text-white { color: #fff; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Map embed */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: none; }

/* Page breadcrumb */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb i { font-size: 0.6rem; }
