/* 
   AMG Logistics - Corporate Standard Design 
   Focus: Professionalism, Trust, and Layout Stability
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    color: #333333; 
    line-height: 1.6; 
    background: #fdfdfd; 
    overflow-x: hidden; 
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

:root {
    --primary: #1E3A8A;      /* Corporate Blue */
    --primary-dark: #1e293b; /* Slate Dark for text */
    --accent: #D97706;       /* Corporate Amber */
    --bg-light: #f1f5f9;     /* Light Grey */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease-in-out;
}

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

/* --- HEADER --- */
.header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    flex-shrink: 0;
}

.logo img {
    height: 75px !important;
    width: auto !important;
    display: block;
}

.header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Utilities */
.hide-on-desktop { display: none; }
.hide-on-mobile { display: flex; }
.mobile-menu-toggle { background: transparent; border: none; color: var(--primary-dark); cursor: pointer; padding: 5px; display: none; }

.header-company-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.header-motto {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* --- NAVIGATION --- */
.nav {
    flex-shrink: 0;
}

.nav-list {
    display: flex !important;
    list-style: none !important;
    gap: 20px !important;
    align-items: center !important;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--accent);
}

/* Dropdown Menu */
.has-dropdown-container { position: relative !important; }
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    list-style: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(5px) !important;
    transition: 0.2s ease !important;
    border-top: 3px solid var(--primary) !important;
    padding: 0 !important;
    z-index: 1000 !important;
}

.has-dropdown-container:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    text-transform: none !important;
    font-size: 0.9rem !important;
    color: var(--primary-dark) !important;
    font-weight: 500 !important;
    border-bottom: 1px solid var(--bg-light) !important;
}
.dropdown-menu li:last-child a { border-bottom: none !important; }
.dropdown-menu li a:hover { background: var(--bg-light) !important; color: var(--primary) !important; padding-left: 25px !important; }

.lang-flags { display: flex !important; gap: 8px !important; align-items: center !important; margin-left: 10px !important; border-left: 1px solid var(--border-color); padding-left: 15px; }
.lang-flags img { height: 14px !important; width: auto !important; display: block !important; opacity: 0.8; transition: 0.2s; }
.lang-flags img:hover { opacity: 1; }

/* --- HERO SECTION --- */
.hero-slider { height: 70vh; position: relative; overflow: hidden; background: var(--primary-dark); }
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(30, 58, 138, 0.75);
    display: flex; align-items: center; color: #fff; z-index: 10;
}

.hero-content { max-width: 700px; }
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-motto { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; font-weight: 400; }
.slide { position: absolute; inset: 0; opacity: 0; transition: 1s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* --- SECTION STRUCTURE --- */
section { padding: 80px 0; }
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.centered { text-align: center; margin-bottom: 50px; }
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.centered .section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: var(--accent);
}

.split-text .section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 60px; height: 3px; background: var(--accent);
}

/* --- FLEX & GRIDS --- */
.flex-split { display: flex; gap: 60px; align-items: center; }
.split-text { flex: 1; }
.split-visual { flex: 1; }
.split-visual img { width: 100%; border-radius: var(--radius-md); box-shadow: 0 4px 12px rgba(0,0,0,0.08); border: 4px solid #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* --- CARDS --- */
.vision-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.custom-icon { width: 50px; height: 50px; margin: 0 auto 20px; color: var(--primary); }
.custom-icon svg { width: 100%; height: 100%; }

.vision-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; }
.vision-card p { color: #64748b; font-size: 0.95rem; }

.service-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.service-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-5px); border-top-color: var(--accent); }
.service-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; }
.service-card p { margin-bottom: 20px; color: #475569; font-size: 0.95rem; line-height: 1.5; }
.read-more { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }

/* --- WHY AMG --- */
.why-amg-section { background: var(--primary); color: #fff; }
.why-amg-section .section-title { color: #fff; }
.why-amg-section .split-text .section-title::after { background: var(--accent); }

.why-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.why-icon { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.why-icon svg { width: 100%; height: 100%; }
.why-info strong { display: block; font-size: 1.1rem; margin-bottom: 5px; color: #fff; font-weight: 600; }
.why-info p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 0; }

/* --- CTA --- */
.cta-section { background: var(--bg-light); padding: 80px 0; text-align: center; border-bottom: 1px solid var(--border-color); }
.cta-box h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }
.cta-box p { font-size: 1.1rem; color: #475569; margin-bottom: 30px; }

/* --- FOOTER --- */
.footer { background: var(--primary-dark); color: #cbd5e1; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-logo img { height: 50px; background: #fff; padding: 10px 15px; border-radius: 8px; margin-bottom: 20px; }
.footer h4 { color: #fff; margin-bottom: 20px; font-size: 1rem; font-weight: 600; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block;}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: #cbd5e1; text-decoration: none; transition: 0.2s; }
.footer a:hover { color: var(--accent); text-decoration: underline; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-icon { display: flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 50%; color: #fff !important; transition: var(--transition); text-decoration: none !important; border: 1px solid rgba(255,255,255,0.1); }
.social-icon:hover { background: var(--accent); color: #fff !important; transform: translateY(-3px); border-color: var(--accent); }
.social-icon svg { width: 18px; height: 18px; display: block; }

.copyright-bar { text-align: center; font-size: 0.8rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.5); }

/* --- BUTTONS --- */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary);
}
.btn-primary:hover { background: transparent; color: var(--primary); }
.btn-secondary { background: transparent; color: #fff; padding: 12px 30px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; display: inline-block; border: 2px solid #fff; transition: var(--transition); }
.btn-secondary:hover { background: #fff; color: var(--primary); }


/* =========================================================================
   SUBPAGE (PAGE.PHP) STYLES
   ========================================================================= */

.page-banner {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
}
.page-banner::before { content: ''; position: absolute; inset: 0; background: rgba(30, 58, 138, 0.85); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 2.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }

.breadcrumbs { font-size: 0.85rem; opacity: 0.8; font-weight: 500; text-transform: uppercase; }
.breadcrumbs a { color: #fff; text-decoration: none; margin-right: 5px; transition: 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }

.page-content-wrapper { padding: 60px 0; }

.page-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.page-main-content {
    flex: 1;
}

.page-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Content Body Typography */
.content-body { font-size: 1.05rem; line-height: 1.8; color: #334155; }
.content-body p { margin-bottom: 20px; }
.content-body b, .content-body strong { color: var(--primary-dark); font-weight: 600; }

/* Custom Bullet Points */
.content-body ul {
    list-style: none !important;
    padding: 0;
    margin: 0 0 25px 0;
}

.content-body ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.content-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23D97706" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.sidebar-widget h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-light);
}

.support-widget p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
}

.contact-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-highlight svg { width: 24px; height: 24px; }

.links-widget ul { list-style: none; padding: 0; }
.links-widget li { margin-bottom: 10px; border-bottom: 1px dashed var(--border-color); padding-bottom: 10px; }
.links-widget li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.links-widget a { color: #475569; text-decoration: none; font-size: 0.95rem; transition: 0.2s; display: block; }
.links-widget a:hover { color: var(--accent); padding-left: 5px; }


@media (max-width: 992px) {
    /* Header Fallback for Tablets */
    .header .container { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .header-company-name, .header-motto { white-space: normal; text-align: center; font-size: 1.1rem; }
    .nav-list { flex-wrap: wrap; justify-content: center; }
    .page-layout { flex-direction: column; }
    .page-sidebar { width: 100%; }
    
    /* Structure Fallback */
    .flex-split { flex-direction: column; gap: 40px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    /* Global Adjustments */
    section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 20px; }
    
    /* Display Toggles */
    .hide-on-desktop { display: block; }
    .hide-on-mobile { display: none !important; }
    .mobile-menu-toggle { display: block; }
    
    /* Header Redesign */
    .header .container { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 20px; position: relative; }
    .header-left { gap: 0; }
    .logo img { height: 60px !important; }
    
    /* Mobile Navigation Dropdown */
    .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); padding: 15px 30px 30px; box-shadow: 0 15px 25px -5px rgba(0,0,0,0.15); border-top: 1px solid #e2e8f0; display: none; z-index: 1000; }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 0 !important; width: 100%; align-items: flex-start; padding-bottom: 0; border-bottom: none; }
    .nav-list li { width: 100%; margin: 0; border-bottom: 1px dashed #e2e8f0; }
    .nav-list li:last-child { border-bottom: none; }
    .nav-list a { display: block; padding: 16px 0; width: 100%; font-size: 1.05rem; font-weight: 600; color: var(--primary-dark); }
    .lang-flags { padding-top: 20px !important; margin-top: 10px !important; border-left: none; padding-left: 0; border-top: 2px solid #f1f5f9; justify-content: flex-start; gap: 20px; }
    .lang-flags img { height: 26px; border-radius: 3px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
    
    /* Dropdown Fix for Mobile */
    .has-dropdown::after { content: '▼'; float: right; font-size: 0.8rem; margin-top: 5px; }
    .dropdown-menu { position: relative !important; top: 0 !important; box-shadow: none !important; border-top: none !important; border-left: 2px solid var(--accent); margin-top: 0; padding: 0 0 10px 15px; display: none; }
    .has-dropdown-container.active .dropdown-menu { display: block; }
    
    /* Hero */
    .hero-slider { height: 60vh; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-motto { font-size: 1rem; margin-bottom: 20px; }
    .hero-btns { display: flex; flex-direction: column; gap: 15px; align-items: center; }
    .hero-btns a { width: 100%; text-align: center; margin: 0 !important; }
    
    /* Grids & Flex */
    .card-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo img { margin: 0 auto 20px; }
    .footer h4 { margin-bottom: 15px; }
    
    /* Why AMG Items */
    .why-item { flex-direction: column; align-items: flex-start; text-align: left; }
    .why-icon { margin-bottom: 10px; }
    
    /* CTA */
    .cta-section { padding: 50px 0; }
    .cta-box h2 { font-size: 1.6rem; }
    .cta-box p { font-size: 1rem; }
    
    /* Subpage */
    .page-banner { height: 180px; }
    .page-banner h1 { font-size: 1.6rem; }
    .image-grid { grid-template-columns: 1fr !important; }
}
