@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Logo-Aligned Color Palette */
    --primary: #1A4728;        /* Deep Forest Green (SOCOTR logo text) */
    --primary-dark: #0E2B18;   /* Darkest Forest Green */
    --primary-light: #245C34;  /* Medium Forest Green */
    --secondary: #2C3E50;
    --accent: #7DA33A;         /* Olive Green (OASIS logo text) */
    --accent-hover: #8FBA45;   /* Lighter Olive on hover */
    --accent-dark: #5F7E2A;    /* Deeper Olive */
    --background: #FDFDFD;
    --surface: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #64748B;
    --border: #E5E7EB;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Elevated Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow: 0 8px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.08);
    --shadow-accent: 0 8px 24px rgba(125, 163, 58, 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }

/* Elegant Navbar — always solid, sits above hero */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(20px);
    padding: 0.4rem 0;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
}

.navbar-brand img {
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem !important;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-link {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--accent) !important;
}

/* Premium Buttons */
.btn-premium {
    background: var(--accent);
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    border: none;
    box-shadow: var(--shadow-accent);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.5s ease;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(125, 163, 58, 0.45);
    color: var(--primary);
}

.btn-premium-outline {
    background: transparent;
    border: 1px solid var(--surface);
    color: var(--surface);
    font-weight: 500;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.navbar.scrolled .btn-premium-outline,
.text-dark-context .btn-premium-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-premium-outline:hover {
    background: var(--surface);
    color: var(--primary);
}

.navbar.scrolled .btn-premium-outline:hover,
.text-dark-context .btn-premium-outline:hover {
    background: var(--primary);
    color: var(--surface);
}


/* Hero Section Ultra Premium */
.hero-section {
    position: relative;
    height: 55vh;
    min-height: 480px;
    max-height: 620px;
    display: flex;
    align-items: center;
    background: var(--primary);
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,71,40,0.88) 0%, rgba(14,43,24,0.70) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--surface);
}

.hero-subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.8rem;
}

.hero-title {
    color: var(--surface);
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem) !important; /* tighter than global h1 */
    line-height: 1.25;
}

/* Scale down lead text & button gap inside hero */
.hero-section .lead {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
}

.hero-section .btn-premium,
.hero-section .btn-premium-outline {
    padding: 0.7rem 1.8rem;
    font-size: 0.82rem;
}

.hero-section .d-flex.gap-4 {
    gap: 1rem !important;
}

/* Service Cards */
.card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.card-modern:hover::before {
    transform: scaleX(1);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(125, 163, 58, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.card-modern:hover .icon-box {
    background: var(--accent);
    color: var(--surface);
    transform: rotateY(360deg);
}

/* Product Section */
.product-card-modern {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
}

.product-card-modern:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image-container img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-modern:hover .product-image-container img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: var(--surface);
    padding: 6rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item h3 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Footer Refined */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 100px 0 40px;
    border-top: 5px solid var(--accent);
}

footer h5 {
    color: var(--surface);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    margin-bottom: 2rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--surface);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Utilities */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h6 {
    color: var(--accent);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--surface), var(--border));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(to right, var(--accent), #B5D46A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Admin overrides */
.admin-sidebar {
    background: var(--primary) !important;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
}
.admin-sidebar .nav-link:hover {
    color: var(--accent) !important;
}

/* Chat bubles from old css so we don't break existing features */
.chat-container { height: 600px; background-color: #e5ddd5; background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); background-repeat: repeat; }
.message-bubble { max-width: 75%; padding: 8px 12px; border-radius: 8px; position: relative; margin-bottom: 10px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); font-size: 0.95rem; line-height: 1.4; }
.message-bubble.mine { background-color: #dcf8c6; align-self: flex-end; margin-left: auto; border-top-right-radius: 0; }
.message-bubble.other { background-color: #ffffff; align-self: flex-start; margin-right: auto; border-top-left-radius: 0; }
.message-time { font-size: 0.7rem; color: rgba(0, 0, 0, 0.45); margin-top: 4px; text-align: right; }
.chat-header-info { display: flex; align-items: center; background-color: #075e54; color: white; padding: 10px 15px; }
.chat-input-area { background-color: #f0f0f0; padding: 10px 15px; }
.chat-input-area .form-control { border-radius: 20px; border: none; padding: 10px 20px; }
.product-thumbnail-chat { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; margin-right: 10px; }

/* ── Image Upload Widget ────────────────────────── */
.img-upload-widget .upload-zone {
    background: #fafafa;
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: #d1d5db !important;
    border-radius: .5rem !important;
    min-height: 130px;
    transition: border-color .25s ease, background .25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.img-upload-widget .upload-zone:hover {
    border-color: var(--accent) !important;
    background: rgba(125, 163, 58, .05);
}
.img-upload-widget .upload-zone img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
    border-radius: .375rem;
}

/* Variant mini upload zone */
.upload-zone-sm {
    transition: background .2s ease;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    border-radius: .375rem !important;
}
.upload-zone-sm:hover {
    background: rgba(125, 163, 58, .08) !important;
    border-color: var(--accent) !important;
}