/* Brice Agribusiness — brand accents on top of Agrion template */
:root {
    --brice-green: #1f4e3d;
    --brice-green-dark: #163d30;
    --brice-yellow: #e6c229;
    --brice-yellow-soft: #f5e6a2;
}

.custom-cursor__cursor,
.custom-cursor__cursor-two {
    display: none !important;
}

.thm-btn,
.main-slider__btn {
    background-color: var(--brice-green) !important;
}

.thm-btn:hover,
.main-slider__btn:hover {
    background-color: var(--brice-green-dark) !important;
    color: #fff !important;
}

.section-title__tagline,
.main-slider__sub-title {
    color: var(--brice-yellow) !important;
}

.feature-one {
    background: linear-gradient(90deg, var(--brice-green-dark) 0%, var(--brice-green) 100%);
}

.feature-one__title {
    color: #fff !important;
}

.brice-section-heading {
    color: var(--brice-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.brice-yellow-rule {
    height: 3px;
    width: 72px;
    background: var(--brice-yellow);
    margin-bottom: 1.25rem;
}

.brice-product-card {
    border-top: 3px solid var(--brice-yellow);
}

.brice-contact-block {
    background: var(--brice-green);
    color: #fff;
    padding: 3rem 1.5rem;
}

.brice-contact-block .brice-label {
    color: var(--brice-yellow);
    font-weight: 600;
}

.brice-logo-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--brice-green);
    letter-spacing: -0.02em;
}

.brice-logo-text small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a6f66;
}

.main-header__logo img {
    max-height: 52px;
    width: auto;
}

.brice-logo-img {
    display: block;
    max-height: 84px;
    width: auto;
}

.brice-logo-img--mobile {
    max-height: 58px;
}

/* Header improvements are now handled by header-improvements.css */
/* Keep only brand-specific overrides here */

.main-header__logo img {
    max-height: 60px;
    width: auto;
}

.main-menu__list li.current > a {
    color: var(--brice-yellow) !important;
}

/* Enhanced mobile navigation styles */
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav__wrapper.mobile-nav-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-open .mobile-nav__content {
    transform: translateX(0);
}

.mobile-nav__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--brice-green);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.mobile-nav__container {
    margin-top: 60px;
}

.mobile-nav__container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav__container li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav__container a {
    display: block;
    padding: 15px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav__container a:hover,
.mobile-nav__container a.current {
    color: var(--brice-green);
}

.mobile-nav__contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.mobile-nav__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: none;
}

.mobile-nav__contact i {
    color: var(--brice-green);
    width: 20px;
}

/* Mobile navigation toggle animation */
.mobile-nav__toggler {
    position: relative;
    overflow: hidden;
}

.mobile-nav__toggler.is-active {
    background: var(--brice-green-dark);
}

.mobile-nav__toggler i {
    transition: transform 0.3s ease;
}

.mobile-nav__toggler.is-active i {
    transform: rotate(90deg);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-nav-active {
    overflow: hidden;
}

.main-menu__list li.current > a {
    color: var(--brice-yellow) !important;
}

.brice-page-header {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(135deg, var(--brice-green-dark) 0%, var(--brice-green) 100%);
}

.brice-page-header h1 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.brice-page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.brice-site-footer {
    background: linear-gradient(180deg, #14362b 0%, #102c23 100%);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
}

.brice-site-footer .site-footer__top {
    padding: 70px 0 36px;
}

.brice-footer-card {
    height: 100%;
}

.brice-footer-logo {
    width: 220px;
    max-width: 100%;
    margin-bottom: 18px;
    filter: none;
}

.brice-footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 700;
}

.brice-footer-text {
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 320px;
}

.brice-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: 0.25s ease;
}

.brice-footer-social a:hover {
    background: var(--brice-yellow);
    color: #17372d;
}

.brice-footer-list li {
    margin-bottom: 10px;
}

.brice-footer-list li a {
    color: rgba(255, 255, 255, 0.88);
    transition: 0.2s ease;
}

.brice-footer-list li a:hover {
    color: var(--brice-yellow);
    padding-left: 4px;
}

.brice-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.brice-footer-contact .icon {
    color: var(--brice-yellow);
    line-height: 1.5;
    min-width: 16px;
}

.brice-footer-contact .text {
    color: rgba(255, 255, 255, 0.9);
}

.brice-site-footer .site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brice-footer-bottom-inner {
    padding: 20px 0;
    width: 100%;
}

.brice-site-footer .site-footer__bottom-text {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================================
   Page-hero entrance animations — contact, services, about, projects
   ============================================================= */

@keyframes brice-hero-slide-down {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes brice-hero-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes brice-hero-media-zoom {
    from { transform: scale(1.1); }
    to   { transform: scale(1); }
}

/* Contain the zoom-out so it never overflows the section */
.brice-contact-hero,
.brice-services-hero,
.brice-about-hero,
.brice-projects-hero {
    overflow: hidden;
}

/* Kicker — slides down */
.brice-contact-hero__kicker,
.brice-services-hero__kicker,
.brice-about-hero__kicker,
.brice-projects-hero__kicker {
    animation: brice-hero-slide-down 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* H1 — fades up */
.brice-contact-hero__copy h1,
.brice-services-hero__copy h1,
.brice-about-hero__copy h1,
.brice-projects-hero__copy h1 {
    animation: brice-hero-fade-up 0.65s 0.12s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Lead paragraph */
.brice-contact-hero__lead,
.brice-services-hero__lead,
.brice-about-hero__lead,
.brice-projects-hero__lead {
    animation: brice-hero-fade-up 0.65s 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* CTAs / chips / actions */
.brice-contact-hero__chips,
.brice-services-hero__cta,
.brice-about-hero__actions,
.brice-projects-hero__cta {
    animation: brice-hero-fade-up 0.65s 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Media panel — slow zoom-out */
.brice-contact-hero__media,
.brice-services-hero__media,
.brice-about-hero__media,
.brice-projects-hero__media {
    animation: brice-hero-media-zoom 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .brice-contact-hero__kicker,  .brice-services-hero__kicker,
    .brice-about-hero__kicker,    .brice-projects-hero__kicker,
    .brice-contact-hero__copy h1, .brice-services-hero__copy h1,
    .brice-about-hero__copy h1,   .brice-projects-hero__copy h1,
    .brice-contact-hero__lead,    .brice-services-hero__lead,
    .brice-about-hero__lead,      .brice-projects-hero__lead,
    .brice-contact-hero__chips,   .brice-services-hero__cta,
    .brice-about-hero__actions,   .brice-projects-hero__cta,
    .brice-contact-hero__media,   .brice-services-hero__media,
    .brice-about-hero__media,     .brice-projects-hero__media {
        animation: none;
    }
}

/* Fallback: never block the page if template JS fails. */
.preloader {
    display: none !important;
}
