/* Main Stylesheet for Royal Corner Foodstuff Trading */

:root {
    /* Theme Colors */
    --primary-green: #2e7d32;
    --accent-green: #4caf50;
    --light-green-bg: #f1f8e9;
    --dark-text: #1d1d1f;
    /* Apple-like dark gray */
    --body-text: #424245;
    /* Softer body text */
    --white: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--body-text);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-text);
    font-weight: 500;
    /* "Not too bold" as requested */
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 500;
}

a {
    text-decoration: none;
}

/* --- Navbar --- */
.navbar {
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-green) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: brightness(1.1);
}

.nav-link {
    font-weight: 400;
    color: var(--dark-text) !important;
    margin: 0 0.8rem;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0.2rem !important;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-green);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
}

.btn-theme {
    background-color: var(--primary-green);
    color: white;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-theme::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-theme:hover::before {
    width: 300px;
    height: 300px;
}

.btn-theme:hover {
    background-color: #1b5e20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.btn-theme:active {
    transform: translateY(0);
}

.btn-outline-theme {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* --- Animations (Whisper Blur) --- */
.reveal-text {
    opacity: 0;
    /* Initial state handled by JS/GSAP usually, but setting opacity 0 avoids falsh */
}

/* --- Common Layouts --- */
.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.tag-pill {
    background-color: var(--light-green-bg);
    color: var(--primary-green);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Cards --- */
.feature-card,
.stat-card,
.trust-card {
    background: white;
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.feature-card:hover,
.stat-card:hover,
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

/* --- Hero --- */
.page-header {
    background: linear-gradient(rgba(20, 50, 20, 0.7), rgba(20, 50, 20, 0.6)), url('../images/page_header_bg.jpeg');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 5rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.page-header h1,
.page-header p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* --- Footer --- */
.footer {
    background-color: #1c1c1e;
    padding: 5rem 0 2rem;
    color: #86868b;
    font-size: 0.9rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: #86868b;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer li {
    margin-bottom: 0.5rem;
}

/* --- Forms --- */
.form-control {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    border-color: var(--primary-green);
}

/* --- Product Cards --- */
.product-card-wrap {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-wrap:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.product-card-wrap img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-wrap:hover img {
    transform: scale(1.05);
}

.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
}

.product-info h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white !important;
    margin-bottom: 0.25rem;
}

.product-info small {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0;
}