/* ========================================
   MERI THEME - Main Stylesheet
   Brand: MERI Remote Control Tracked Mowers
   Colors: #CD2027 (Toro Red), #111111, #F5F5F5, #4A7C34 (accent), #E8A000 (accent)
   Fonts: Oswald (headings), Inter (body)
   ======================================== */

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #CD2027;
    --red-dark: #B01B22;
    --red-light: #E8454C;
    --black: #1A1A1A;
    --black-deep: #0D0D0D;
    --dark: #1A1A1A;
    --grey-900: #212121;
    --grey-800: #333333;
    --grey-600: #666666;
    --grey-400: #999999;
    --grey-200: #CCCCCC;
    --grey-100: #E0E0E0;
    --grey-50: #F5F5F5;
    --white: #FFFFFF;
    --green-accent: #4A7C34;
    --gold: #D4A017;
    --gold-accent: #D4A017;
    --font-heading: 'Oswald', 'Arial Black', 'Impact', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1280px;
    --header-height: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}
h1 { font-size: 3.5rem; letter-spacing: 2px; }
h2 { font-size: 2.5rem; letter-spacing: 1px; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}
.btn-outline-dark {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
}
.btn-outline-dark:hover {
    background: var(--black);
    color: var(--white);
}
.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black);
    height: var(--header-height);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: height 0.3s ease, box-shadow 0.3s ease;
}
/* Header shrink on scroll down */
.site-header.header-shrink {
    height: 54px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.site-header.header-shrink .logo-text { font-size: 1.5rem; }
.site-header.header-shrink .main-navigation .menu-item > a { padding: 6px 14px; font-size: 0.8rem; }
.site-header.header-shrink .header-cta .btn { padding: 7px 18px; font-size: 0.72rem; }
.site-header.header-shrink .sub-menu { top: 100%; }
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 8px;
    line-height: 1;
    transition: font-size 0.3s ease;
    display: block;
}

/* Navigation */
.main-navigation .nav-menu {
    display: flex;
    gap: 4px;
}
.main-navigation .menu-item > a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    transition: padding 0.3s ease, font-size 0.3s ease;
    letter-spacing: 0.5px;
}
.main-navigation .menu-item > a:hover { color: var(--red); }
.main-navigation .menu-item.current-menu-item > a { color: var(--red); }

/* Dropdown */
.menu-item-has-children { position: relative; }
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--black);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    padding: 8px 0;
    border: 1px solid rgba(255,255,255,0.1);
}
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--white);
}
.sub-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--red);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-icon {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    position: relative;
}
.menu-icon::before, .menu-icon::after {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    background: var(--white);
    position: absolute;
    left: 0;
    transition: transform 0.3s;
}
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

.header-cta .btn { padding: 10px 24px; font-size: 0.8rem; }

@media (max-width: 960px) {
    .menu-toggle { display: block; z-index: 1001; }
    .main-navigation .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--black);
        flex-direction: column;
        padding: 32px;
        overflow-y: auto;
        z-index: 999;
    }
    .main-navigation .nav-menu.active { display: flex; }
    .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 16px;
    }
    .header-cta { display: none; }
}

/* ========== HERO SECTION ========== */
.hero-section {
    margin-top: var(--header-height);
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-desktop.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(205,32,39,0.15) 0%, transparent 60%);
}
.hero-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-content h1 span { color: var(--red); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--grey-200);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--grey-900);
    border: 1px solid var(--grey-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-600);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px;
    }
    .hero-content h1 { font-size: 2rem; }
}

/* ========== TRUST BAR ========== */
.trust-bar {
    background: var(--black);
    padding: 40px 0;
    border-bottom: 1px solid var(--grey-100);
}
.trust-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}
.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ========== SECTION COMMONS ========== */
.section {
    padding: 100px 0;
}
.section-dark { background: var(--black); color: var(--white); }
.section-grey { background: var(--grey-50); }
.section-red { background: var(--red); color: var(--white); }
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 24px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
    font-size: 1.1rem;
    color: var(--grey-600);
    max-width: 700px;
    margin: 0 auto;
}
.section-dark .section-header p { color: var(--grey-400); }

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--grey-100);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--grey-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ========== SOLUTIONS GRID ========== */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.solution-card {
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}
.solution-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.solution-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.solution-card:hover .solution-image img {
    transform: scale(1.05);
}
.solution-content {
    padding: 24px 28px 28px;
    color: var(--black);
}
.solution-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--black);
}
.solution-content p {
    font-size: 0.95rem;
    color: var(--grey-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.solution-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 600;
}
.solution-products {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--grey-100);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.solution-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-400);
    font-weight: 600;
    margin-right: 2px;
}
.solution-products > a:not(.solution-link) {
    display: inline-block;
    padding: 4px 12px;
    background: var(--grey-50);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 1px solid var(--grey-200);
    transition: background 0.2s, color 0.2s;
}
.solution-products > a:not(.solution-link):hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.solution-products .solution-link {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--red);
}
.solution-products .solution-link:hover {
    color: var(--red-dark);
}

@media (max-width: 768px) {
    .solutions-grid { grid-template-columns: 1fr; }
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.products-grid-home {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .products-grid, .products-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .products-grid, .products-grid-home { grid-template-columns: 1fr; }
}
.product-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.product-image {
    aspect-ratio: 4/3;
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--grey-100), var(--grey-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-400);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}
.product-placeholder-parts {
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
    color: var(--grey-600);
    text-align: center;
}
.product-body {
    padding: 24px;
}
.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 8px;
}
.product-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.product-body h3 a { color: var(--black); }
.product-body h3 a:hover { color: var(--red); }
.product-applications { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.app-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(205,32,39,0.08);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-specs {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    font-size: 0.8rem;
    color: var(--grey-600);
}
.product-specs span {
    background: var(--grey-50);
    padding: 4px 10px;
    border-radius: 2px;
}
.product-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--red);
}


/* ========== WHY MERI ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.why-item {
    text-align: center;
    padding: 40px 20px;
}
.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
}
.why-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.why-item p {
    font-size: 0.9rem;
    color: var(--grey-600);
}

@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ========== SCENARIO BANNER ========== */
.scenario-banner {
    position: relative;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.scenario-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--grey-900) 40%, var(--red) 100%);
    opacity: 0.95;
}
.scenario-banner .section-inner { position: relative; }
.scenario-banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.scenario-banner p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

/* ========== BLOG CARDS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.blog-thumb {
    aspect-ratio: 16/10;
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-body {
    padding: 24px;
}
.blog-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 8px;
}
.blog-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.blog-body h3 a { color: var(--black); }
.blog-body h3 a:hover { color: var(--red); }
.blog-excerpt {
    font-size: 0.9rem;
    color: var(--grey-600);
    margin-bottom: 12px;
    line-height: 1.5;
}
.blog-date {
    font-size: 0.8rem;
    color: var(--grey-400);
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 100px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 32px;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== PRODUCT DETAIL PAGE ========== */
.product-detail {
    margin-top: var(--header-height);
    padding: 60px 0;
    overflow: hidden;
}
.product-detail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(360px, 420px) 1fr;
    gap: 40px;
    align-items: start;
}
.product-gallery {
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    width: 100%;
    max-width: 420px;
}
.product-gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.product-gallery-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.btn-tds {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.product-info {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.product-info h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    word-break: break-word;
}
.product-model-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.product-description {
    font-size: 1rem;
    color: var(--grey-800);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Specs Table */
.specs-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    table-layout: fixed;
}
.specs-table tr {
    border-bottom: 1px solid var(--grey-100);
}
.specs-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    word-break: break-word;
}
.specs-table td:first-child {
    font-weight: 600;
    color: var(--grey-800);
    width: 42%;
    background: var(--grey-50);
}
.specs-table td:last-child {
    color: var(--grey-600);
}

/* Features list */
.product-features {
    margin-bottom: 32px;
    max-width: 100%;
}
.product-features h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.product-features ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.product-features li {
    padding: 10px 12px;
    background: var(--grey-50);
    border-left: 3px solid var(--red);
    font-size: 0.85rem;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 768px) {
    .product-detail-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
    .product-gallery-col { align-items: stretch; }
    .product-gallery { width: 100%; max-width: 100%; }
    .btn-tds { max-width: 100%; }
    .product-features ul { grid-template-columns: 1fr; }
}

/* ========== PRODUCT CATALOG PAGE ========== */
.product-catalog {
    margin-top: var(--header-height);
    padding: 60px 0;
}
.catalog-header {
    text-align: center;
    margin-bottom: 60px;
}
.catalog-header h1 { margin-bottom: 16px; }
.catalog-header p { color: var(--grey-600); max-width: 600px; margin: 0 auto; }
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--grey-200);
    background: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-top: var(--header-height);
    background: var(--black);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--grey-400); font-size: 1.1rem; }

/* ========== CONTENT PAGES ========== */
.content-section {
    padding: 80px 0;
}
.content-section .section-inner {
    max-width: 800px;
}
.content-section h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px;
}
.content-section h3 {
    font-size: 1.25rem;
    margin: 30px 0 16px;
}
.content-section p {
    font-size: 1rem;
    color: var(--grey-800);
    line-height: 1.8;
    margin-bottom: 20px;
}
.content-section ul, .content-section ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.content-section li {
    font-size: 1rem;
    color: var(--grey-800);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h3 {
    margin-bottom: 20px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--grey-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.contact-info-item p {
    font-size: 0.9rem;
    color: var(--grey-600);
}
.contact-map {
    margin-top: 40px;
    aspect-ratio: 16/9;
    background: var(--grey-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form */
.contact-form {
    background: var(--grey-50);
    padding: 40px;
}
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--grey-800);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--grey-200);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.form-group textarea { min-height: 120px; resize: vertical; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--grey-100);
    padding: 24px 0;
}
.faq-question {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--red);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    content: '−';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 16px;
}
.faq-answer p {
    color: var(--grey-600);
    line-height: 1.7;
}

/* ========== CASE STUDIES ========== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.case-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    overflow: hidden;
}
.case-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.case-body {
    padding: 24px;
}
.case-location {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.case-body h3 {
    font-size: 1.1rem;
    margin: 8px 0 12px;
}
.case-body p {
    font-size: 0.9rem;
    color: var(--grey-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .case-studies-grid { grid-template-columns: 1fr; }
}

/* ========== ABOUT PAGE ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p {
    font-size: 1rem;
    color: var(--grey-800);
    line-height: 1.8;
    margin-bottom: 16px;
}
/* ========== CERTIFICATE GALLERY ========== */
.cert-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.cert-card {
    text-align: center;
}
.cert-img-link {
    display: block;
    border: 1px solid var(--grey-100);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.cert-img-link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cert-img-link img {
    width: 100%;
    aspect-ratio: 1.4/1;
    object-fit: cover;
    display: block;
}
.cert-label {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-800);
    font-weight: 600;
}
.cert-label small {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--grey-400);
    text-transform: none;
    font-weight: 400;
}
@media (max-width: 540px) {
    .cert-gallery { grid-template-columns: 1fr; }
}

/* ========== TEAM SECTION ========== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.team-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.team-photo {
    aspect-ratio: 1/1;
    background: var(--grey-50);
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-body {
    padding: 24px;
    text-align: center;
}
.team-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.team-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 12px;
}
.team-body p {
    font-size: 0.85rem;
    color: var(--grey-600);
    line-height: 1.6;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* ========== TESTIMONIALS ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    padding: 32px;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--grey-100);
    line-height: 1;
}
.testimonial-stars {
    color: var(--gold-accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.testimonial-quote {
    font-size: 0.9rem;
    color: var(--grey-800);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}
.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--black);
    margin-bottom: 2px;
}
.testimonial-author span {
    font-size: 0.78rem;
    color: var(--grey-400);
}
@media (max-width: 768px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ========== BREADCRUMBS ========== */
.meri-breadcrumbs {
    max-width: var(--max-width);
    margin: calc(var(--header-height) + 20px) auto 0;
    padding: 0 32px;
}
.meri-breadcrumbs ol {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--grey-600);
}
.meri-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--grey-400);
}
.meri-breadcrumbs a { color: var(--grey-600); }
.meri-breadcrumbs a:hover { color: var(--red); }

/* ========== 404 PAGE ========== */
.error-404 {
    margin-top: var(--header-height);
    padding: 120px 0;
    text-align: center;
}
.error-404 h1 {
    font-size: 8rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 16px;
}
.error-404 h2 { margin-bottom: 16px; }
.error-404 p { color: var(--grey-600); margin-bottom: 32px; }

/* ========== FOOTER ========== */
.site-footer {
    background: linear-gradient(var(--black), var(--black-deep));
    color: var(--grey-400);
    transition: all 0.4s ease;
}
/* Footer shrink effect when scrolled into view */
.site-footer .footer-top {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--grey-900);
    transition: padding 0.4s ease;
}
.site-footer .footer-logo,
.site-footer .footer-col h4,
.site-footer .footer-col a,
.site-footer .footer-tagline {
    transition: font-size 0.4s ease, margin 0.4s ease;
}
.site-footer.footer-visible .footer-top {
    padding: 50px 0 40px;
}
.site-footer.footer-visible .footer-logo {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.site-footer.footer-visible .footer-col h4 {
    margin-bottom: 12px;
}
.site-footer.footer-visible .footer-inner {
    gap: 28px;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 8px;
    display: block;
    margin-bottom: 16px;
}
.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 36px;
    height: 36px;
    background: var(--grey-900);
    color: var(--grey-400);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.social-link:hover {
    background: var(--red);
    color: var(--white);
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: var(--grey-400);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact ul li {
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.footer-bottom {
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    text-align: center;
    color: var(--grey-600);
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ========================================
   HOMEPAGE MOCKUP STYLES
   Only affects homepage content area
   Header & Footer navigation remain unchanged
   ======================================== */

/* === HERO (mockup style) === */
.hero-section {
    margin-top: var(--header-height);
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--black);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-desktop.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.95;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}
@media (max-width: 768px) {
    .hero-bg {
        background: url('../images/hero-mobile.webp');
        background-size: cover;
        background-position: center;
    }
    .hero-content {
        padding: 0 20px 80px;
    }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 32px 120px;
}
.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-content h1 .gold-accent { color: var(--gold); }
.hero-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 640px;
    line-height: 1.5;
    margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-buttons .btn-primary {
    background: var(--red);
    color: var(--white);
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}
.hero-buttons .btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(205,32,39,0.3);
}
.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: all 0.2s;
    display: inline-block;
}
.hero-buttons .btn-secondary:hover {
    background: var(--white);
    color: var(--black);
}

/* === TRUST BAR (mockup style) === */
.trust-bar {
    background: var(--black);
    padding: 18px 0;
}
.trust-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}
.trust-item .check {
    color: var(--gold);
    font-size: 16px;
}

/* === SECTION TITLES (mockup style) === */
.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto 24px;
}
.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--grey-600);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === FEATURES (mockup style) === */
.features-section {
    background: var(--grey-50);
    padding: 80px 0;
}
.features-section .feature-card {
    background: var(--white);
    border-left: 4px solid var(--red);
    padding: 32px 24px;
    text-align: left;
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-bottom: none;
    transition: none;
}
.features-section .feature-card:hover {
    transform: none;
    box-shadow: none;
}
.features-section .feature-card .num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 8px;
}
.features-section .feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}
.features-section .feature-card p {
    font-size: 14px;
    color: var(--grey-600);
    line-height: 1.6;
}

/* === SCENARIOS (mockup style) === */
.scenarios-section {
    background: var(--grey-50);
    padding: 80px 0;
}
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.scenario-tile {
    position: relative;
    height: 320px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    color: var(--white);
}
.scenario-tile-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.3s;
}
.scenario-tile:hover .scenario-tile-bg {
    transform: scale(1.05);
}
.scenario-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 24px;
    transition: background 0.3s;
}
.scenario-tile:hover .scenario-tile-overlay {
    background: linear-gradient(to top, rgba(205,32,39,0.9), rgba(205,32,39,0.4));
}
.scenario-tile h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
}

/* === STATS (mockup style) === */
.stats-section {
    background: var(--black);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat .num {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--red);
}
.stat .num .gold-accent { color: var(--gold); }
.stat .label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* === BLOG (mockup style) === */
.blog-grid .blog-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-grid .blog-card:hover {
    border-color: var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: none;
}
.blog-grid .blog-thumb {
    aspect-ratio: 16/10;
    background: var(--grey-50);
    overflow: hidden;
}
.blog-grid .blog-body { padding: 24px; }
.blog-grid .blog-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 8px;
}
.blog-grid .blog-body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}
.blog-grid .blog-body h3 a { color: var(--black); }
.blog-grid .blog-body h3 a:hover { color: var(--red); }
.blog-grid .blog-excerpt {
    font-size: 14px;
    color: var(--grey-600);
    line-height: 1.5;
    margin-bottom: 16px;
}
.blog-grid .read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.blog-grid .read-more:hover { color: var(--red-dark); }

/* === CTA BANNER (mockup style) === */
.cta-banner {
    background: var(--red);
    padding: 80px 0;
    text-align: center;
}
.cta-banner h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}
.cta-banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-banner .btn-white {
    background: var(--white);
    color: var(--red);
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.2s;
    display: inline-block;
}
.cta-banner .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cta-banner .btn-outline-white {
    background: transparent;
    color: var(--white);
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--white);
    transition: all 0.2s;
    display: inline-block;
}
.cta-banner .btn-outline-white:hover {
    background: var(--white);
    color: var(--red);
}

/* === HOMEPAGE RESPONSIVE === */
@media (max-width: 1199px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-content { padding: 0 24px 80px; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { text-align: center; }
    .section-title { font-size: 28px; }
    .section-subtitle { font-size: 16px; margin-bottom: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .scenarios-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .trust-bar-inner { gap: 16px; }
    .features-section, .scenarios-section { padding: 48px 0; }
    .stats-section { padding: 40px 0; }
    .cta-banner { padding: 48px 0; }
    .cta-banner h2 { font-size: 28px; }
    .cta-buttons { flex-direction: column; }
    .cta-banner .btn-white, .cta-banner .btn-outline-white { text-align: center; }
}

/* ========== MOBILE BOTTOM ACTION BAR (3 buttons) ========== */
.mobile-action-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: var(--white);
        border-top: 1px solid var(--grey-100);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .mobile-action-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 4px 8px;
        text-decoration: none;
        gap: 2px;
        transition: background 0.2s;
    }
    .mobile-action-btn:active { background: var(--grey-50); }
    .mobile-action-icon {
        font-size: 1.2rem;
        line-height: 1;
    }
    .mobile-action-label {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .mobile-action-quote,
    .mobile-action-products,
    .mobile-action-whatsapp { color: var(--red); }

    /* Add bottom padding to body so content isn't hidden behind bar */
    body { padding-bottom: 56px; }
}

/* ========== PLACEHOLDER IMAGE (blank theme fallback) ========== */
.meri-ph {
    display: block;
    background: #bbb;
    background-image: linear-gradient(135deg, #d9d9d9 25%, #bcbcbc 50%, #d9d9d9 75%);
    aspect-ratio: 4/3;
    min-height: 100px;
    border-radius: 4px;
}
.meri-ph[style*="aspect-ratio: 1/1"] { aspect-ratio: 1/1; }
.meri-ph[style*="aspect-ratio: 16/9"] { aspect-ratio: 16/9; }
.meri-ph[style*="aspect-ratio: 8/5"] { aspect-ratio: 8/5; }
.meri-ph[style*="aspect-ratio: 4/3"] { aspect-ratio: 4/3; }
