/* 
 * AGF - All Good Food Manufacturing
 * Uniform Design System & Core Styles
 */

:root {
    /* Colors */
    --c-primary: #ED1C24;
    --c-primary-dark: #B11116;
    --c-secondary: #003366;
    /* Deep Blue from brand */
    --c-text-main: #1a1a1a;
    --c-text-light: #555555;
    --c-bg-light: #f9f9f9;
    --c-bg-white: #ffffff;
    --c-border: #e0e0e0;
    --c-success: #28a745;

    /* Typography */
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Baloo 2', 'Baloo', system-ui, cursive;
    --h1-size: 3rem;
    --h2-size: 2.25rem;
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --small-size: 0.875rem;

    /* Spacing Scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    /* Base 16px */
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-8: 3rem;
    --s-10: 4rem;
    --s-12: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Components */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 50px;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.2s ease;
}

/* 
 * Reset & Base 
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skip to content - accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--c-primary);
    color: white;
    padding: 0.75rem 1.25rem;
    z-index: 10000;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

body {
    font-family: var(--font-base);
    color: var(--c-text-main);
    line-height: 1.6;
    background-color: var(--c-bg-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--s-4);
    color: #111;
}

h1 {
    font-size: var(--h1-size);
    letter-spacing: -1px;
}

h2 {
    font-size: var(--h2-size);
    letter-spacing: -0.5px;
}

h3 {
    font-size: var(--h3-size);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
 * Layout Utilities 
 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--s-4);
}

.section {
    padding: var(--s-10) 0;
}

.section--tight {
    padding: var(--s-6) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--c-primary);
}

.mb-sm {
    margin-bottom: var(--s-2);
}

.mb-md {
    margin-bottom: var(--s-4);
}

.mb-lg {
    margin-bottom: var(--s-8);
}

/*
 * Components
 */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: var(--body-size);
    font-family: var(--font-display);
}

.btn:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--c-primary);
    color: var(--c-bg-white);
    box-shadow: 0 4px 12px rgba(237, 27, 36, 0.3);
}

.btn-primary:hover {
    background-color: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 27, 36, 0.4);
}

.btn-outline {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: var(--c-bg-white);
}

.btn-outline:hover {
    background-color: var(--c-primary);
    color: var(--c-bg-white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--body-size);

    border: 2px solid var(--c-bg-white);
    color: var(--c-bg-white);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--c-bg-white);
    color: var(--c-primary);
}

/* Cards */
.card {
    background: var(--c-bg-white);
    padding: var(--s-6);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--c-border);
}

/* AEO Block */
.aeo-block {
    background: #f8fcfd;
    border-left: 5px solid var(--c-primary);
    padding: var(--s-6);
    margin: var(--s-6) 0;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
}

.aeo-block h3 {
    font-size: 1.25rem;
    color: var(--c-primary);
    margin-bottom: var(--s-4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aeo-block ul {
    margin-left: 0;
}

.aeo-block li {
    margin-bottom: var(--s-2);
    padding-left: var(--s-5);
    position: relative;
}

.aeo-block li::before {
    content: "•";
    color: var(--c-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4rem;
}

/* Header */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--s-6);
    align-items: center;
}

.nav-links .btn {
    font-size: 0.85rem;
    padding: 10px 20px;
    color: #ffffff !important;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--c-text-main);
    position: relative;
    padding: var(--s-1) 0;
    font-family: var(--font-display);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--c-primary);
    transition: width 0.3s;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--c-primary);
}

.nav-links a:focus-visible,
.lang-dropdown a:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
}
.mobile-toggle:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

/* Hero */
.hero {
    position: relative;
    background-color: #111;
    padding: var(--s-12) 0;
    text-align: center;
    overflow: hidden;
    color: var(--c-bg-white);
}

.hero img.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--s-5);
    color: var(--c-bg-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto var(--s-6);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* FAQ Accordion */
.faq-accordions details {
    background: var(--c-bg-white);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    margin-bottom: var(--s-4);
    padding: var(--s-2) var(--s-5);
    transition: var(--transition);
}

.faq-accordions details[open] {
    box-shadow: var(--shadow-card);
    border-color: var(--c-border);
}

.faq-accordions summary {
    padding: var(--s-4) 0;
    font-weight: 600;
    color: var(--c-text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-accordions summary::-webkit-details-marker {
    display: none;
}

.faq-accordions summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--c-primary);
}

.faq-accordions details[open] summary::after {
    content: "-";
}

.faq-accordions p {
    padding-bottom: var(--s-4);
    color: var(--c-text-light);
}

/* Footer */
footer {
    background: #111;
    color: #fff;
    padding: var(--s-10) 0 var(--s-8);
    margin-top: var(--s-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-8);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: var(--s-5);
    letter-spacing: 0.5px;
}

.footer-col a {
    color: #888;
    margin-bottom: var(--s-2);
    display: block;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 
 * Page Specific Styles 
 */

/* Home: Revolution/Mission */
.revolution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
    align-items: center;
}

.revolution-image img {
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}

.highlight-red {
    color: var(--c-primary);
    display: block;
}

.btn-pill-blue {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
    padding: 1rem 2.5rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    border: 1px solid white;
    box-shadow: 0 4px 6px rgba(13, 71, 161, 0.1);
    transition: var(--transition);
}

.btn-pill-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 71, 161, 0.15);
}

/* Clarity Grid (Home/Products) */
.clarity-grid {
    display: flex;
    flex-direction: column;
    gap: var(--s-6);
}

.clarity-card {
    background: var(--c-bg-white);
    padding: var(--s-8);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.clarity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #eee;
}

.clarity-card h3,
.clarity-card h4 {
    color: var(--c-primary);
    margin-bottom: var(--s-4);
}

/* Products & Services */
.service-row-container {
    display: flex;
    flex-direction: column;
    gap: var(--s-10);
    margin-top: var(--s-6);
}

.service-row {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--s-10);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: var(--s-10);
}

.service-row:last-child {
    border: none;
    padding-bottom: 0;
}

.service-title h3 {
    font-size: 1.8rem;
    color: var(--c-primary);
}

.service-info ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--c-text-light);
    margin-bottom: var(--s-6);
}

.why-it-matters-box {
    border: 1px solid #ffebee;
    border-left: 4px solid var(--c-primary);
    border-radius: var(--r-sm);
    padding: var(--s-4);
    background-color: #fffafa;
}

.why-it-matters-title {
    color: var(--c-primary);
    font-weight: 700;
    font-size: var(--small-size);
    margin-bottom: var(--s-2);
    display: block;
    text-transform: uppercase;
}

/* Timeline (History) */
.timeline-section {
    position: relative;
    background: #fdfdfd;
}

.timeline-line {
    width: 100%;
    height: 4px;
    background: var(--c-secondary);
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
    position: relative;
    z-index: 2;
    padding-top: 50px;
}

.timeline-item {
    position: relative;
    padding-top: var(--s-6);
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: var(--c-secondary);
    border-radius: 50%;
    position: absolute;
    top: -12px;
    left: 0;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--c-secondary);
}

.timeline-year {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-secondary);
    margin-bottom: var(--s-2);
    display: block;
}

/* Team */
/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s-8);
    margin-top: var(--s-8);
}

.team-member {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: var(--r-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #ffebee;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-photo {
    width: 180px;
    height: 220px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    /* Add a subtle drop shadow to the cut-out image itself so it pops off the card */
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
}

.team-name-tag {
    /* Converted from pill to heading */
    background: transparent;
    color: var(--c-text-main);
    padding: 0;
    box-shadow: none;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    border-radius: 0;
}

.team-role {
    color: var(--c-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.team-role::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #eee;
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.team-bio {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: auto;
    /* Pushes content ensuring cards fill height evenly if flex container allows */
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: var(--s-6);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text {
    padding: var(--s-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bg-dark-blue {
    background-color: var(--c-secondary);
    color: white;
}

.bg-yellow {
    background-color: #fffcd6;
    color: var(--c-secondary);
}

.bg-light-blue {
    background-color: #e3f2fd;
    color: var(--c-secondary);
}

.bg-dark-blue h3 {
    color: white;
}

/* Partner Banner */
.partner-banner {
    background-image: url('../img/agf-home-partner-banner.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--s-12) 0;
    text-align: center;
    color: white;
    position: relative;
}

.partner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.partner-content {
    position: relative;
    z-index: 2;
}

.partner-content h2 {
    color: white;
    font-size: 2.5rem;
}

/* Home Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-6);
}

.category-card {
    position: relative;
    height: 400px;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: white;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem;
    pointer-events: none;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--s-8);
}

/* Why Choose Us */
.wcu-section .wcu-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: center;
    margin-bottom: var(--s-10);
}

.wcu-img-circle {
    border-radius: 50%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin: 0 auto;
}

.wcu-wide-banner img {
    width: 100%;
    border-radius: var(--r-md);
}

.wcu-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: center;
}

/* Home Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-10);
    text-align: center;
}

.service-img-rounded {
    width: 100%;
    height: 180px;
    border-radius: var(--r-lg);
    object-fit: cover;
    margin-bottom: var(--s-6);
}

.service-card {
    background: var(--c-bg-white);
    padding: var(--s-6);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--c-border);
}

.service-card h3 {
    color: var(--c-primary);
    margin-bottom: var(--s-4);
}

.lang-switch {
    font-weight: 600;
    cursor: pointer;
    margin-left: var(--s-2);
    position: relative;
    padding: 10px 0;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: -10px;
    background: white;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1100;
    border: 1px solid #eee;
}

.lang-switch:hover .lang-dropdown {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--c-text-main) !important;
    /* Force override nav link color */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    text-align: left;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--c-primary) !important;
}

.lang-dropdown a::after {
    display: none !important;
    /* Remove nav link underline */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
    align-items: center;
}

.impact-img img {
    border-radius: var(--r-lg);
}

.impact-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.impact-icon {
    font-size: 2rem;
    min-width: 50px;
}

/* Checklists & Process */
.checklist-box {
    background: #f0f7ff;
    padding: var(--s-8);
    border-radius: var(--r-md);
    border: 1px solid #d0e4ff;
}

.list-checked {
    list-style: none;
    padding-left: 0;
}

.list-checked li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.list-checked li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--c-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-6);
    counter-reset: step;
    margin-top: var(--s-6);
}

.step-item {
    position: relative;
    padding: 2.5rem 1.5rem 1.5rem;
    background: white;
    border: 1px solid #eee;
    border-radius: var(--r-md);
    text-align: center;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--c-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form */
.form-group {
    margin-bottom: var(--s-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--s-2);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--r-sm);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--c-primary);
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.sla-box {
    background: #eefbf3;
    color: #0f5132;
    padding: 1rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border-left: 4px solid #0f5132;
}

/* Utilities for cleaning HTML */
.text-list {
    list-style: disc;
    padding-left: var(--s-5);
    margin-bottom: var(--s-4);
    color: var(--c-text-light);
}

.text-list li {
    margin-bottom: var(--s-2);
}

.link-arrow {
    color: var(--c-primary);
    font-weight: 600;
    margin-right: var(--s-4);
    display: inline-block;
}

/* OEM / ODM Landing Page UI Enhancements */
.page-oem .section--alt,
.page-odm .section--alt {
    background-color: #f9fafb;
}

.page-oem .clarity-grid,
.page-odm .clarity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
}

.page-oem .clarity-grid > div,
.page-odm .clarity-grid > div {
    background: var(--c-bg-white);
    padding: var(--s-6);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
    transition: var(--transition);
}

.page-oem .clarity-grid > div:hover,
.page-odm .clarity-grid > div:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--c-primary);
}

.page-oem .clarity-grid > div:first-child,
.page-odm .clarity-grid > div:first-child {
    border-top: 4px solid var(--c-primary);
}

.page-oem .clarity-grid > div:last-child,
.page-odm .clarity-grid > div:last-child {
    border-top: 4px solid var(--c-secondary);
}

.page-oem .cta-box,
.page-odm .cta-box {
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
    padding: var(--s-8);
    border-radius: var(--r-md);
    border: 2px solid rgba(0,51,102,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.page-oem .cta-box .btn,
.page-odm .cta-box .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.page-oem .process-steps .step-item,
.page-odm .process-steps .step-item {
    background: var(--c-bg-white);
    box-shadow: var(--shadow-card);
}

.page-oem .service-partner-banner,
.page-odm .service-partner-banner {
    background: linear-gradient(135deg, var(--c-secondary) 0%, #004080 100%);
    color: white;
    padding: var(--s-8) 0;
    text-align: center;
}

.page-oem .service-partner-banner h2,
.page-odm .service-partner-banner h2 {
    color: white;
    margin-bottom: var(--s-2);
}

.page-oem .service-partner-banner p,
.page-odm .service-partner-banner p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--s-5);
}

.page-oem .service-partner-banner .banner-buttons,
.page-odm .service-partner-banner .banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-oem .service-partner-banner .btn-outline-dark,
.page-odm .service-partner-banner .btn-outline-dark {
    border-color: white;
    color: white;
}

.page-oem .service-partner-banner .btn-outline-dark:hover,
.page-odm .service-partner-banner .btn-outline-dark:hover {
    background: white;
    color: var(--c-secondary);
}

@media (max-width: 768px) {
    .page-oem .clarity-grid,
    .page-odm .clarity-grid {
        grid-template-columns: 1fr;
    }
}

.link-arrow:hover {
    text-decoration: underline;
    transform: translateX(2px);
}


/* Why Choose Us Page Styles */
.wcu-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: center;
    margin-bottom: var(--s-10);
}

.wcu-img-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #f0f0f0;
    margin: 0 auto;
    display: block;
    box-shadow: var(--shadow-md);
}

.wcu-wide-banner img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.wcu-grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
    align-items: flex-start;
}

.wcu-large-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 0;
}

.wcu-prod-img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    margin-top: var(--s-4);
}

/* Compliance Banner */
.compliance-banner {
    background-color: var(--c-secondary);
    color: white;
    border-radius: var(--r-md);
    padding: var(--s-8);
    margin: var(--s-10) 0;
}

.compliance-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--s-8);
    align-items: center;
}

.compliance-left h2 {
    color: white;
    font-size: 2rem;
    line-height: 1.3;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: var(--s-6);
    margin-bottom: 0;
}

.compliance-right ul {
    list-style: none;
    padding-left: 0;
}

.compliance-right li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.compliance-right li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    /* Green for compliance check */
    font-weight: bold;
}

/* Contact Page Enhancements (New) */

.contact-hero-enhanced {
    background: url('../img/agf-contact-us-hero.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-enhanced h1,
.contact-hero-enhanced p {
    color: white;
}



.aeo-answer {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--c-primary);
    box-shadow: var(--shadow-sm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
}

.contact-details-box {
    background: white;
    padding: var(--s-8);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon-new {
    color: var(--c-primary);
    font-size: 1.5rem;
}

.contact-label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--c-secondary);
}

.enquiry-process-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--s-8);
    margin-top: var(--s-8);
}

.process-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.process-step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--c-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .compliance-content {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    .compliance-left h2 {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: var(--s-4);
        margin-bottom: var(--s-4);
    }
}

/* Media Queries */
@media (min-width: 768px) {
    .clarity-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--c-bg-white);
        padding: var(--s-6);
        box-shadow: var(--shadow-hover);
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .revolution-grid,
    .split-layout,
    .wcu-section .wcu-grid-top,
    .wcu-grid-bottom,
    .impact-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    .service-row {
        grid-template-columns: 1fr;
        gap: var(--s-5);
        padding-bottom: var(--s-6);
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        width: 4px;
        height: 100%;
        left: 24px;
        top: 0;
    }

    .timeline-dot {
        left: 14px;
        top: 0;
    }

    .timeline-item {
        padding-left: 4rem;
        padding-top: 0;
        margin-bottom: 3rem;
    }

    .category-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .wcu-img-circle {
        width: 250px;
        height: 250px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 
 * Responsive Enhancements 
 */

/* Value Grid (Replaces inline styles) */
.value-card-icon {
    display: block;
    width: 100%;
    height: 160px;
    margin: 0 auto 1rem;
    object-fit: cover;
    object-position: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Trust Grid (Replaces inline styles) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* Hero Buttons (Base) */
.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn+.btn {
    margin-left: 1rem;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 1.75rem;
        --h3-size: 1.25rem;
        --s-8: 2rem;
        --s-10: 3rem;
        --s-12: 4rem;
    }

    .hero {
        padding: var(--s-10) 0;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: var(--s-4);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: var(--s-6);
    }

    /* Force grids to single column on small screens if auto-fit doesn't catch it */
    .value-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--s-6);
    }

    /* Hero Buttons Mobile */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem !important;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    /* Adjust padding for cards */
    .card,
    .aeo-block,
    .clarity-card,
    .contact-details-box {
        padding: var(--s-6);
    }

    /* Footer stacking */
    .footer-grid {
        gap: var(--s-8);
    }

    /* Banner Buttons Mobile */
    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .banner-buttons .btn-outline-dark {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Banner Buttons Base */
.banner-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}