/* CSS Variables for Brand Colors and Typography */
:root {
    /* Brand Colors */
    --primary-color: #7E834A;      /* Olive Green */
    --secondary-color: #AAA498;    /* Light Gray */
    --background-white: #FFFFFF;   /* White */
    --text-dark: #333333;          /* Dark text for readability */
    --text-light: #FFFFFF;         /* Light text for dark backgrounds */
    
    /* Typography */
    --font-heading: 'Zalando Sans SemiExpanded', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Font Sizes */
    --font-size-h1: 2.5rem;        /* Hero headline */
    --font-size-h2: 2rem;          /* Section headings */
    --font-size-h3: 1.5rem;        /* Subsection headings */
    --font-size-body: 1rem;        /* Body text */
    
    /* Font Weights */
    --font-weight-heading: 700;    /* Bold for headings */
    --font-weight-body: 400;       /* Regular for body */
    
    /* Line Heights */
    --line-height-heading: 1.2;
    --line-height-body: 1.6;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-body);
    line-height: var(--line-height-body);
    color: var(--text-dark);
    background-color: var(--background-white);
    padding-top: 120px; /* Space for fixed header */
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    line-height: var(--line-height-heading);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar {
    background-color: var(--background-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 12px 40px rgba(126, 131, 74, 0.2);
    transform: translateY(-2px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-menu a {
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-light);
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a.active {
    color: var(--text-light);
    background-color: var(--primary-color);
    font-weight: 600;
}

.cta-nav-button {
    background-color: var(--background-white) !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-nav-button:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    background-color: var(--background-white);
    color: var(--primary-color);
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Section Styles */
section {
    padding: var(--spacing-lg) 0;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Section */
.about-section {
    background-color: var(--background-white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-block {
    padding: 1rem 0;
}

.content-block p {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
}

.image-placeholder {
    background-color: var(--secondary-color);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    border-radius: 8px;
}

.image-placeholder-small {
    background-color: var(--secondary-color);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 1rem;
    border-radius: 5px;
}

/* Services Section */
.services-section {
    background-color: #f8f8f8;
}

.service-category {
    margin-bottom: 4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(126, 131, 74, 0.2);
}

.service-card h4 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

/* Expansion Section */
.expansion-section {
    background-color: var(--background-white);
}

.market-access {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 8px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.portfolio-section h2,
.portfolio-section h3 {
    color: var(--text-light);
}

.portfolio-category {
    margin-bottom: 3rem;
}

.portfolio-category > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-item {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
}

.licensing-section {
    background-color: var(--background-white);
    padding: 3rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Contact Section */
.contact-section {
    background-color: #f8f8f8;
}

.contact-intro {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--background-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(126, 131, 74, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.submit-button:hover {
    background-color: #6a6f3d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 131, 74, 0.3);
}



/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Base styles are mobile-first (< 768px) */

/* Prevent horizontal overflow on all elements */
* {
    max-width: 100%;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Ensure images and media scale properly */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Mobile Navigation Improvements (< 768px) */
@media (max-width: 767px) {
    /* Adjust body padding for mobile fixed header */
    body {
        padding-top: 180px;
    }
    
    /* Header and Navigation */
    header {
        padding: 0.5rem;
    }
    
    header.scrolled {
        padding: 0.25rem;
    }
    
    .navbar {
        border-radius: 20px;
        padding: 0.75rem;
        margin: 0 0.5rem;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        text-align: center;
        width: 100%;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        padding: 0 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Typography Adjustments */
    h2 {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    h3 {
        font-size: 1.3rem;
        padding: 0 1rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Section Spacing */
    section {
        padding: var(--spacing-md) 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Content Grids - Stack on Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-block p {
        text-align: left;
    }
    
    /* Service Grid - Single Column */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Image Placeholders */
    .image-placeholder {
        height: 250px;
        font-size: 1rem;
    }
    
    .image-placeholder-small {
        height: 120px;
    }
    
    /* Category List */
    .category-list {
        gap: 0.75rem;
    }
    
    .category-item {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .submit-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Market Access Section */
    .market-access {
        padding: 1.5rem;
    }
    
    /* Licensing Section */
    .licensing-section {
        padding: 2rem 1.5rem;
    }
    
    /* Service Category Spacing */
    .service-category {
        margin-bottom: 3rem;
    }
    
    .portfolio-category {
        margin-bottom: 2.5rem;
    }
}

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Adjust body padding for tablet fixed header */
    body {
        padding-top: 140px;
    }
    
    /* Navigation - Horizontal but Compact */
    .navbar {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        height: 55px;
    }
    
    .logo-container h1 {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 90px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.85rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Content Grids - 2 Columns on Tablet */
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    
    /* Service Grid - 2 Columns */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    /* Form - 2 Columns */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    /* Footer - 2 Columns */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Image Placeholders */
    .image-placeholder {
        height: 350px;
    }
}

/* Desktop Styles (> 1024px) */
@media (min-width: 1025px) {
    /* Navigation - Full Size */
    .navbar {
        padding: 1rem 2rem;
    }
    
    .logo {
        height: 60px;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1.25rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 120px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    /* Content Grids - Full Layout */
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    /* Service Grid - Auto-fit with minimum 280px */
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    /* Footer - 4 Columns */
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    /* Image Placeholders */
    .image-placeholder {
        height: 400px;
    }
}

/* Extra Large Screens (> 1400px) */
@media (min-width: 1401px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
    }
    
    .navbar {
        box-shadow: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   AI ASSISTANT CHATBOT STYLES
   ============================================ */

#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#chatbot-toggle:hover {
    background-color: #6a6f3d;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(126, 131, 74, 0.3);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

#chatbot-window.chatbot-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.chatbot-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

#chatbot-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

#chatbot-close:hover {
    opacity: 0.8;
}

#chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f9f9f9;
}

.chatbot-message {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.bot-message .message-content {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom-left-radius: 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background-color: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.suggestion-btn {
    background-color: var(--background-white);
    border: 1px solid var(--secondary-color);
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.chatbot-input-container {
    display: flex;
    padding: 1rem;
    background-color: var(--background-white);
    border-top: 1px solid #e0e0e0;
    gap: 0.5rem;
}

#chatbot-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-input:focus {
    border-color: var(--primary-color);
}

#chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#chatbot-send:hover {
    background-color: #6a6f3d;
    transform: scale(1.05);
}

#chatbot-send:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    #chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    
    #chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    #chatbot-window {
        width: calc(100vw - 30px);
        height: 450px;
        bottom: 70px;
    }
    
    .chatbot-suggestions {
        padding: 0.5rem;
    }
    
    .suggestion-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}
