/* Custom Styles for Automation Consultancy Elements */

/* General Body Reset for the specific section if needed, utilizing variables if possible */
:root {
    --accent-orange: #FF7F50;
    /* Orange accent */
    --text-black: #101010;
    --text-grey: #666;
    --bg-off-white: #F9F9F9;
    --border-color: #000;
}

body {
    background-color: var(--bg-off-white) !important;
    font-family: 'Onest', sans-serif !important;
}

/* Accordion Wrapper */
.accordion-left-wrapper {
    background-color: transparent;
    max-width: 800px;
    margin: 0;
}

/* Tab/Accordion Item */
.accordion-left-tab-link {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 30px 0 !important;
    opacity: 1 !important;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Remove default Webflow tab styling */
.w-tab-link {
    background-color: transparent;
    color: inherit;
}

.accordion-left-tab-link.first {
    border-top: none !important;
}

/* Grid Layout for Item */
.accordion-left-tab-link-grid {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

/* Number Styling (01/, 02/) */
.accordion-left-tab-link .display-3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin-right: 20px;
    font-family: inherit;
}

.accordion-left-tab-link .color-accent-1 {
    color: var(--accent-orange) !important;
}

/* Content Container */
.accordion-left-tab-link-content {
    flex: 1;
}

/* Top Part (Title + Icon) */
.accordion-left-tab-link-content-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.accordion-left-tab-link-content-top h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    margin: 0;
}

/* Icon (Plus/Minus) */
.accordion-left-tab-link-content-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.accordion-left-icon-line {
    position: absolute;
    background-color: var(--accent-orange) !important;
    border-radius: 2px;
}

.accordion-left-icon-line.horizontal {
    width: 24px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.accordion-left-icon-line.vertical {
    width: 2px;
    height: 24px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    transition: transform 0.3s ease;
}

/* Active State - Turn Plus into Minus */
/* Webflow adds w--current to the active tab link */
.w-tab-link.w--current .accordion-left-icon-line.vertical {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
    /* Hide vertical line to leave just horizontal (minus) */
}


/* Bottom Part (Description) */
.accordion-left-tab-link-content-bottom {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, margin-top 0.3s ease;
}

/* When active, expand content */
.w-tab-link.w--current .accordion-left-tab-link-content-bottom {
    max-height: 500px;
    /* Large enough to fit content */
    margin-top: 20px;
}

.accordion-left-tab-link-content-bottom p {
    color: var(--text-black);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Hide the unused large image/tab content area */
.accordion-left-tabs-content {
    display: none !important;
}

/* Hide other sections if we want to focus on this? 
   For now, I won't hide them globally, but I might want to style the section container 
   to ensure this element pops. */
/* Space below consultancy service line */
.accordion-left-tabs-menu {
    margin-bottom: 200px !important;
}