/* Font Face Declarations - Using Variable Fonts */
@font-face {
    font-family: 'Lexend Deca';
    src: url('../shared-assets/fonts/LexendDeca-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Public Sans';
    src: url('../shared-assets/fonts/PublicSans-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #014CC4;
    --text-color: #333333;
    --white: #FFFFFF;
    --black: #000000;
    --light-gray: #F8F9FA;
    --border-gray: #E9ECEF;
    --font-family-heading: 'Lexend Deca', sans-serif;
    --font-family-body: 'Public Sans', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    --letter-spacing-base: 0%;
}

body {
    font-family: var(--font-family-body);
    font-size: var(--font-size-base);
    font-weight: 300;
    line-height: var(--line-height-base);
    color: var(--text-color);
    letter-spacing: var(--letter-spacing-base);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation Styles - Based on Home page */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-logo .logo-img {
    height: 51.2px;
    width: auto;
    display: block;
    opacity: 1 !important;
    position: relative;
    z-index: 1002;
    transform: scale(1.1);
    transform-origin: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #014CC4;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #014CC4;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #014CC4;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Header scroll effects */
.header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-link {
    color: var(--text-color);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #014CC4;
}

.header.scrolled .nav-link.active::after {
    background: #014CC4;
}

.header.scrolled .nav-logo {
    left: 20px;
}

.header.scrolled .logo-img {
    height: 64px;
    transform: scale(0.84);
    transform-origin: center;
}

.header.scrolled .dropdown-menu {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled .dropdown-menu a {
    color: var(--text-color);
}

.header.scrolled .dropdown-menu a:hover {
    background: var(--light-gray);
    color: #014CC4;
}

.header.scrolled .nav-toggle .bar {
    background: var(--text-color);
}

/* Hero Section */
.hero {
    margin-top: 70px;
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-logo {
    height: 120px;
    width: auto;
}

/* Section Styles */
.section-title {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: left;
}

.section-subtitle {
    font-size: var(--font-size-base);
    text-align: center;
    margin-bottom: 40px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

strong {
    font-weight: 700;
}

/* New About Section Subtitle Styles */
.section-subtitle-new {
    text-align: left;
    margin-bottom: 200px;
}

.subtitle-normal {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.subtitle-highlight {
    font-family: var(--font-family-heading);
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 200px;
    align-items: start;
}

.mission-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
}

.mission-item:last-child {
    margin-bottom: 0;
}

.mission-item:last-child .mission-divider {
    display: none;
}

.mission-item-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.mission-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(13%) sepia(93%) saturate(7151%) hue-rotate(230deg) brightness(96%) contrast(106%);
}

.mission-text h3 {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.mission-text p {
    font-family: var(--font-family-body);
    line-height: 1.6;
}

.mission-divider {
    width: 100%;
    height: 2px;
    background-color: #E9ECEF;
    margin-bottom: 30px;
}

.company-info p {
    font-family: var(--font-family-body);
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: left;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background: var(--light-gray);
}

/* Product Category */
.product-category {
    margin-bottom: 150px;
}

.product-category:last-child {
    margin-bottom: 0;
}

/* Category Layout */
.category-layout {
    display: flex;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 40px;
}

.category-layout-reversed {
    flex-direction: row-reverse;
}

/* Category Header */
.category-header {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    height: 100%;
}

.category-header-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.category-icon {
    display: none;
}

.category-title h3 {
    font-family: var(--font-family-heading);
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.category-title p {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
}

/* Category Products */
.category-products {
    flex: 0 0 65%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Item */
.product-item {
    background: var(--white);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(13%) sepia(93%) saturate(7151%) hue-rotate(230deg) brightness(96%) contrast(106%);
}

.product-item-content {
    flex: 1;
}

.product-item-title {
    font-family: var(--font-family-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-item-description {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

/* Category Logo Area */
.category-logo-area {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 0;
    margin-top: auto;
}

.category-logo-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-logo-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(1, 76, 196, 0.3));
}

.category-logo {
    height: 53px;
    width: auto;
    margin-bottom: 12px;
}

.category-logo-subtitle {
    font-family: var(--font-family-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

/* Special styling for logo area in category header */
.category-header .category-logo-area {
    padding: 0;
    align-items: flex-end;
    margin-bottom: -25px;
    margin-top: 100px;
}

/* Specific spacing for SalesNail logo */
.category-header .category-logo-area#salesnail {
    margin-top: 320px;
}

/* Specific spacing for Providence logo */
.category-header .category-logo-area#providence {
    margin-top: 165px;
}

/* Specific size for Providence logo */
.category-header .category-logo-area#providence .category-logo {
    height: 45px;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
}

.footer-mission {
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    max-width: 500px;
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-link {
    color: var(--white);
    font-family: var(--font-family-heading);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #ccc;
    transform: translateY(-2px);
}

.footer-sublink {
    color: #ccc;
    font-family: var(--font-family-heading);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.footer-sublink:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Category Layout Responsive */
    .category-layout,
    .category-layout-reversed {
        flex-direction: column;
        gap: 30px;
    }
    
    .category-header {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
    
    .category-products {
        flex: 1;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-title h3 {
        font-size: 28px;
    }
    
    .category-title p {
        font-size: 16px;
    }
    
    .product-item {
        padding: 15px;
    }
    
    .product-item-title {
        font-size: 16px;
    }
    
    .product-item-description {
        font-size: 14px;
    }
    
    .category-logo {
        height: 50px;
    }
    
    .category-logo-subtitle {
        font-size: 14px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-logo {
        height: 60px;
    }
    
    .about-section,
    .products-section {
        padding: 60px 0;
    }
    
    .mission-item {
        margin-bottom: 30px;
    }
    
    .product-item {
        padding: 20px;
    }
    
    .footer {
        padding: 40px 0 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item,
.mission-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.mission-item:hover .mission-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.category-header:hover .category-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
