/* Ramesco Public Theme Styles */

:root {
    --primary: #1B7A3D;
    --secondary: #2D2D2D;
    --accent: #4CAF50;
    --surface: #FFFFFF;
    --surface-alt: #F5F5F5;
    --text: #212121;
}

/* Font - Cairo for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

body, * {
    font-family: 'Cairo', sans-serif !important;
}

/* RTL defaults */
body {
    direction: rtl;
    text-align: right;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 700;
    color: var(--text);
}

/* Green top border on header */
.v-app-bar {
    border-top: 4px solid var(--accent) !important;
}

/* Section heading accent bar (4px green vertical bar) */
.section-heading {
    position: relative;
    padding-right: 16px;
}
.section-heading::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Accent bar utility class */
.accent-bar {
    position: relative;
    padding-right: 16px;
}
.accent-bar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Green top border utility */
.green-top-border {
    border-top: 3px solid var(--primary);
}

/* Hero section with diagonal geometric background */
.hero-section {
    position: relative;
    overflow: hidden;
    background: url('../images/hero-bg.png') center/cover no-repeat;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.6);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
}
/* Diagonal background utility */
.diagonal-bg {
    position: relative;
    overflow: hidden;
}
.diagonal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 45%, var(--primary) 45%, var(--primary) 100%);
    opacity: 0.05;
    pointer-events: none;
}

/* Card hover effects */
.v-card {
    transition: box-shadow 0.3s ease;
}
.v-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Surface alt */
.surface-alt {
    background-color: var(--surface-alt);
}

/* Footer */
.ramesco-footer {
    background-color: var(--primary) !important;
    color: #ffffff;
    flex-direction: column;
}
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}
.footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.footer-contact .v-icon {
    color: rgba(255, 255, 255, 0.9) !important;
}
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 960px) {
    .section-heading {
        font-size: 1.3rem;
    }
}

/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

/* Accent line (centered under section headings) */
.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* Product card hover */
.product-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
}

/* Partner card */
.partner-card {
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}
.partner-card:hover {
    transform: scale(1.05);
}
.partner-logo {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

/* News card hover */
.news-card {
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
}
