/* Common Styles for Total Label Website */

:root {
    --gold: #d4af37;
    --light-gold: #f5e7a3;
    --bronze: #cd7f32;
    --light-bronze: #e6bb9d;
    --dark: #2d2a26;
    --light: #faf9f7;
}

/* Firefox mobile fix - higher specificity */
html body .breadcrumb {
    display: block; /* default for desktop */
}

/* Scroll animation classes */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
    max-width: 350px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: baseline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--gold), var(--bronze));
    z-index: 101;
    padding-top: 80px;
    padding-bottom: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.mobile-nav-links a,
.mobile-nav-links .mobile-dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-dropdown-content a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    font-size: 1rem;
}

.mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-quote-btn {
    background-color: var(--dark);
    color: white;
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-quote-btn:hover {
    background-color: white;
    color: var(--bronze);
    transform: translateY(-2px);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    z-index: 103;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    top: 30px;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 500 !important;
    font-size: 1rem !important;
    white-space: nowrap;
}

.dropdown-content a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-content a:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-content a:hover {
    background-color: var(--light-bronze);
}

.dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 999;
}

.dropdown > a {
    position: relative;
    z-index: 1001;
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
    background-color: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    margin: 5px 0 10px 0;
    border-left: 2px solid var(--bronze);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.2;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 6px;
    color: var(--bronze);
    font-weight: bold;
    font-size: 0.75rem;
}

.breadcrumb-link {
    color: var(--bronze);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
}

.breadcrumb-home {
    margin-right: 2px;
    font-size: 0.75rem;
}

/* Hide breadcrumbs on mobile */
@media screen and (max-width: 768px),
       screen and (max-device-width: 768px),
       screen and (orientation: portrait) and (max-width: 768px) {
    .breadcrumb {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .breadcrumb {
        display: none !important;
    }
}

/* CTA Button Styles */
.cta-button {
    background-color: white;
    color: var(--bronze);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--dark);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/leaves.jpg') center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    color: white;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.hero .cta-button {
    font-size: 1.1rem;
    padding: 12px 25px;
    background: linear-gradient(to right, var(--gold), var(--bronze));
    color: white;
    border: 2px solid white;
    display: inline-block !important;
    margin: 10px;
}

.hero .cta-button:hover {
    background: white;
    color: var(--bronze);
    transform: translateY(-3px);
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, var(--gold), var(--bronze));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--bronze));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Common Card Styles */
.service-card,
.capability-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid var(--bronze);
    position: relative;
}

.service-card:hover,
.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(245, 231, 163, 0.1), rgba(230, 187, 157, 0.1));
}

.service-icon,
.capability-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gold), var(--light-bronze));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--dark);
}

.service-card h3,
.capability-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark);
}

/* Service card link styles */
.service-card-link {
    text-decoration: none !important;
    color: var(--dark) !important;
    display: block;
    height: 100%;
}

.service-card-link:hover,
.service-card-link:visited,
.service-card-link:active,
.service-card-link:focus {
    text-decoration: none !important;
    color: var(--dark) !important;
}

.service-card-link h3 {
    color: var(--dark) !important;
}

.service-card-link p {
    color: var(--dark) !important;
}

/* What is Flexo Section */
.what-is-flexo {
    padding: 80px 0;
    background-color: white;
}

.flexo-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.flexo-explanation {
    background: var(--light);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--bronze);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.flexo-explanation h3 {
    color: var(--bronze);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flexo-icon {
    background: linear-gradient(135deg, var(--light-gold), var(--light-bronze));
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.flexo-explanation p {
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--dark);
}

.process-highlight {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--light-bronze);
    margin-top: 20px;
}

.process-highlight h4 {
    color: var(--bronze);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    background: var(--bronze);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    min-width: 80px;
}

.step-arrow {
    color: var(--bronze);
    font-size: 1.2rem;
}

.flexo-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px 15px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.flexo-benefits {
    margin-top: 25px;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.benefits-list li::before {
    content: "✓";
    background: var(--bronze);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Form Styles */
.quote-form {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gold), var(--light-bronze));
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.quote-info {
    margin-bottom: 30px;
}

.quote-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.quote-info ul {
    list-style-type: disc;
    padding-left: 20px;
}

.quote-info li {
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-left: 5px solid var(--bronze);
    box-shadow: 0 0 0 2px rgba(205, 127, 50, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(to right, var(--gold), var(--bronze));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--gold);
}

/* Footer Styles */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(to right, var(--gold), var(--bronze));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-bronze);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.locally-owned {
    margin-top: 15px;
    font-style: italic;
    color: var(--light-gold);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 991px) {
    .nav-links,
    .cta-button:not(.hero .cta-button) {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo img {
        height: 55px;
        max-width: 250px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        padding: 20px;
        margin: 0 auto;
        text-align: center;
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    section {
        text-align: center;
        width: 100%;
    }
    
    section .container {
        margin: 0 auto;
        text-align: center;
    }
    
    .quote-form {
        text-align: center;
        width: 100%;
    }
    
    .quote-form .container {
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        text-align: center !important;
        width: 100%;
        margin: 0 auto 60px auto;
    }
    
    .form-container {
        text-align: left;
        margin: 0 auto;
        max-width: 90%;
    }
    
    .quote-info {
        text-align: left;
    }
    
    .flexo-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .flexo-images {
        order: -1;
    }
    
    .what-is-flexo {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .flexo-explanation {
        padding: 25px 20px;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        min-width: 100%;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .flexo-content-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px;
        max-width: 180px;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero p {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-content {
        padding: 15px;
        margin: 0 auto;
        text-align: center;
        width: 95%;
    }
    
    body {
        text-align: center;
    }
    
    section {
        text-align: center !important;
        margin: 0 auto;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        text-align: center;
        margin: 0 auto;
    }
    
    .section-title {
        text-align: center !important;
        margin: 0 auto 40px auto;
    }
    
    .section-title h2 {
        text-align: center !important;
    }
    
    .form-container {
        max-width: 95%;
        margin: 0 auto;
        text-align: left;
    }
    
    .what-is-flexo {
        padding: 40px 0;
    }
    
    .flexo-explanation {
        padding: 20px 15px;
    }
    
    .image-container img {
        height: 200px;
    }
}